:root{
    --vs-text:#2d2d2d;
    --vs-muted:#777;
    --vs-border:#ececec;
    --vs-card:#ffffff;
    --vs-accent:#2aa9ad;
    --vs-danger:#c25445;
    --vs-radius:24px;
    --vs-shadow:0 8px 24px rgba(0,0,0,.04);
}

body.woocommerce-cart{
    background:#F8FCFC;
}

.vs-cart-page{
    max-width:1360px;
    margin:56px auto;
}

.vs-cart-page *{
    box-sizing:border-box;
}

.vs-cart-page h1,
.vs-cart-page h2,
.vs-cart-page p{
    margin:0;
}

.vs-cart-page a{
    text-decoration:none;
}

.vs-cart-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:34px;
    align-items:start;
}

/* Shell gauche */
.vs-cart-shell{
    background:var(--vs-card);
    border-radius:28px;
    padding:32px 40px;
    box-shadow:var(--vs-shadow);
}

.vs-cart-shell-header{
    padding-bottom:18px;
    border-bottom:1px solid var(--vs-border);
    margin-bottom:24px;
}

/* Title */
.vs-cart-title{
    font-size:34px;
    line-height:1.05;
    font-weight:650;
    color:var(--vs-text);
}

/* Divider entre les articles */
.vs-cart-divider{
    height:1px;
    background:var(--vs-border);
    margin:24px 0;
}

/* Card interne */
.vs-cart-card{
    display:grid;
    grid-template-columns:120px minmax(0,1fr);
    gap:22px;
    padding:0;
    margin:0;
    background:none;
    box-shadow:none;
    border-radius:0;
}

.vs-cart-thumb img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:18px;
    display:block;
    background:#f5f5f5;
}

.vs-cart-content{
    min-width:0;
}

.vs-cart-topline{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:12px;
}

.vs-cart-product-title{
    flex:1;
    min-width:0;
    font-size:22px;
    line-height:1.2;
    font-weight:650;
}

.vs-cart-product-title,
.vs-cart-product-title a{
    color:var(--vs-text);
}

/* Remove reset */
.vs-cart-remove{
    flex-shrink:0;
}

.vs-cart-remove a.remove,
.vs-cart-remove a{
    all:unset;
    cursor:pointer;
    display:inline-block;
    color:var(--vs-danger);
    font-size:14px;
    font-weight:600;
    line-height:1.2;
    white-space:nowrap;
}

/* Meta */
.vs-cart-meta{
    margin-top:8px;
}

.vs-meta-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:9px 0;
    border-bottom:1px solid #f0f0f0;
}

.vs-meta-row:last-child{
    border-bottom:none;
}

.vs-meta-row span{
    font-size:15px;
    color:var(--vs-muted);
}

.vs-meta-row strong{
    font-size:15px;
    font-weight:600;
    color:var(--vs-text);
    text-align:right;
}

/* Bottom */
.vs-cart-bottomline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid var(--vs-border);
}

.vs-cart-note{
    font-size:14px;
    color:var(--vs-muted);
}

.vs-cart-price{
    font-size:24px;
    font-weight:700;
    color:var(--vs-text);
    white-space:nowrap;
}

/* Summary */
.vs-summary-box{
    background:var(--vs-card);
    border-radius:var(--vs-radius);
    padding:24px;
    box-shadow:var(--vs-shadow);
    position:sticky;
    top:32px;
}

.vs-summary-box h2{
    font-size:34px;
    line-height:1.05;
    font-weight:650;
    color:var(--vs-text);
    margin-bottom:18px;
}

.vs-summary-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
    font-size:17px;
    color:#666;
}

.vs-summary-row strong{
    color:var(--vs-text);
}

.vs-total{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--vs-border);
    font-size:22px;
    font-weight:700;
    color:var(--vs-text);
}

.vs-checkout-btn{
    display:block;
    width:100%;
    margin-top:22px;
    padding:15px 16px;
    border-radius:14px;
    background:var(--vs-accent);
    color:#fff;
    text-align:center;
    font-size:17px;
    font-weight:700;
    line-height:1.25;
    transition:.2s ease;
}

.vs-checkout-btn:hover{
    transform:translateY(-1px);
    opacity:.96;
}

.vs-cart-reassurance{
    margin-top:18px;
    font-size:14px;
    color:#666;
}

.vs-cart-reassurance p{
    margin:10px 0;
}

/* Empty */
.vs-cart-empty{
    padding:0;
}

/* Mini-cart: prevent duplicated/hidden product image from affecting layout */
.wc-block-mini-cart__drawer .wc-block-cart-item__image > img[hidden] {
	display: none !important;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image {
	width: 84px !important;
	min-width: 84px !important;
	max-width: 84px !important;
	padding-right: 0 !important;
	vertical-align: top;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image > a {
	display: block;
	width: 84px;
	height: 84px;
	overflow: hidden;
	border-radius: 10px;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image > a > img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__product {
	padding-left: 24px !important;
	vertical-align: top;
}

/* Responsive */
@media (max-width:1100px){

    .vs-cart-layout{
        grid-template-columns:1fr;
    }

    .vs-summary-box{
        position:static;
    }
}

@media (max-width:767px){

    .vs-cart-page{
        margin:40px auto;
        padding:0 16px;
    }

    .vs-cart-shell{
        padding:24px 20px;
    }

    .vs-cart-title{
        font-size:34px;
    }

    .vs-cart-card{
        grid-template-columns:1fr;
        gap:18px;
    }

    .vs-cart-thumb img{
        height:220px;
    }

    .vs-cart-topline{
        flex-direction:column;
        align-items:flex-start;
    }

    .vs-cart-product-title{
        font-size:20px;
    }

    .vs-meta-row{
        flex-direction:column;
        gap:4px;
    }

    .vs-meta-row strong{
        text-align:left;
    }

    .vs-cart-bottomline{
        flex-direction:column;
        align-items:flex-start;
    }

    .vs-summary-box h2{
        font-size:30px;
    }

    .vs-total{
        font-size:20px;
    }

    .vs-checkout-btn{
        font-size:16px;
    }
}