
/* ==============================
   SneakerVerse Cart Pixel V6
   ============================== */

body.sv-cart-pixel-v6 {
    --sv6-bg:#f7f8fa;
    --sv6-card:#fff;
    --sv6-text:#111318;
    --sv6-muted:#737984;
    --sv6-line:#e9ebef;
    --sv6-green:#10a84f;
    --sv6-green-dark:#07883e;
    --sv6-red:#ff1f1f;
    --sv6-shadow:0 16px 42px rgba(16,24,40,.07);
    background:var(--sv6-bg);
}

body.sv-cart-pixel-v6 .main-page-wrapper,
body.sv-cart-pixel-v6 .site-content,
body.sv-cart-pixel-v6 .content-layout-wrapper,
body.sv-cart-pixel-v6 .page-title-default {
    background:var(--sv6-bg)!important;
}

body.sv-cart-pixel-v6 .site-content {
    padding-top:34px!important;
    padding-bottom:42px!important;
}

body.sv-cart-pixel-v6 .woocommerce {
    max-width:1280px;
    margin:0 auto;
    color:var(--sv6-text);
}

/* top area */
.sv6-top {
    margin-bottom:24px;
}
.sv6-crumb {
    display:flex;
    gap:10px;
    align-items:center;
    font-size:13px;
    font-weight:700;
    color:#6b7280;
    margin-bottom:18px;
}
.sv6-home {
    font-size:16px;
}
.sv6-heading-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.sv6-heading-row h1 {
    margin:0!important;
    font-size:34px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:-.03em;
    color:#0e1014!important;
}
.sv6-heading-row h1 span {
    font-weight:600;
    color:#626975;
}
.sv6-continue {
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:#111318!important;
    text-decoration:none!important;
    font-weight:800;
    font-size:14px;
}
.sv6-continue span {
    font-size:21px;
}

/* 2-column wrapper */
body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) 385px!important;
    gap:28px!important;
    align-items:start!important;
}
body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) > .woocommerce-notices-wrapper,
body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) > .sv6-top,
body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) > .sv6-benefits {
    grid-column:1 / -1!important;
}

/* left cart */
body.sv-cart-pixel-v6 form.woocommerce-cart-form {
    grid-column:1!important;
    margin:0!important;
    min-width:0!important;
}
body.sv-cart-pixel-v6 table.shop_table.cart {
    width:100%!important;
    margin:0!important;
    border:1px solid var(--sv6-line)!important;
    border-radius:18px!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:var(--sv6-shadow)!important;
}
body.sv-cart-pixel-v6 table.shop_table.cart thead th {
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid var(--sv6-line)!important;
    padding:18px 18px!important;
    font-size:12px!important;
    font-weight:900!important;
    color:#121418!important;
    text-transform:uppercase!important;
    letter-spacing:.045em!important;
}
body.sv-cart-pixel-v6 table.shop_table.cart tbody tr.cart_item {
    background:#fff!important;
}
body.sv-cart-pixel-v6 table.shop_table.cart tbody tr.cart_item td {
    padding:22px 18px!important;
    border:0!important;
    border-bottom:1px solid var(--sv6-line)!important;
    vertical-align:middle!important;
    background:#fff!important;
}
body.sv-cart-pixel-v6 table.shop_table.cart tbody tr.cart_item:last-of-type td {
    border-bottom:0!important;
}

/* thumbnail */
body.sv-cart-pixel-v6 .product-thumbnail {
    width:180px!important;
}
body.sv-cart-pixel-v6 .product-thumbnail a {
    display:block!important;
}
body.sv-cart-pixel-v6 .product-thumbnail img {
    width:154px!important;
    height:154px!important;
    max-width:154px!important;
    object-fit:contain!important;
    border-radius:12px!important;
    background:#f5f5f5!important;
}

/* product info */
body.sv-cart-pixel-v6 .product-name {
    min-width:320px!important;
}
body.sv-cart-pixel-v6 .sv6-product-name > a,
body.sv-cart-pixel-v6 .product-name > a {
    color:#0f1115!important;
    font-size:20px!important;
    line-height:1.25!important;
    font-weight:800!important;
    text-decoration:none!important;
}
body.sv-cart-pixel-v6 .product-name .variation {
    margin-top:12px!important;
    color:#20242a!important;
    font-size:14px!important;
}
body.sv-cart-pixel-v6 .product-name .variation dt,
body.sv-cart-pixel-v6 .product-name .variation dd {
    margin-bottom:4px!important;
}
body.sv-cart-pixel-v6 .product-price,
body.sv-cart-pixel-v6 .product-subtotal {
    white-space:nowrap!important;
    color:#101216!important;
    font-weight:900!important;
}
body.sv-cart-pixel-v6 .product-subtotal {
    font-size:17px!important;
}

/* quantity */
body.sv-cart-pixel-v6 .product-quantity {
    min-width:160px!important;
}
body.sv-cart-pixel-v6 .quantity {
    display:inline-flex!important;
    align-items:center!important;
    height:44px!important;
    border:1px solid #dde1e6!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fff!important;
}
body.sv-cart-pixel-v6 .quantity input.qty {
    width:48px!important;
    min-width:48px!important;
    height:42px!important;
    border:0!important;
    border-left:1px solid #edf0f2!important;
    border-right:1px solid #edf0f2!important;
    background:#fff!important;
    box-shadow:none!important;
    text-align:center!important;
    font-weight:800!important;
    color:#111318!important;
}
body.sv-cart-pixel-v6 .quantity .minus,
body.sv-cart-pixel-v6 .quantity .plus {
    width:40px!important;
    height:42px!important;
    border:0!important;
    background:#fff!important;
    color:#1b1f24!important;
    box-shadow:none!important;
    font-size:20px!important;
}
body.sv-cart-pixel-v6 .quantity .minus:hover,
body.sv-cart-pixel-v6 .quantity .plus:hover {
    background:#f6f7f8!important;
}

/* remove */
body.sv-cart-pixel-v6 .product-remove {
    width:90px!important;
    text-align:left!important;
}
body.sv-cart-pixel-v6 a.sv6-remove,
body.sv-cart-pixel-v6 a.remove.sv6-remove {
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    padding:6px 4px!important;
    border:0!important;
    border-radius:6px!important;
    background:transparent!important;
    color:var(--sv6-red)!important;
    font-size:14px!important;
    font-weight:800!important;
    text-decoration:none!important;
    box-shadow:none!important;
}
body.sv-cart-pixel-v6 a.sv6-remove:hover {
    background:#fff2f2!important;
    color:#dc1717!important;
}
.sv6-trash {
    font-size:15px;
    transform:rotate(180deg);
}

/* coupon/actions separate card look */
body.sv-cart-pixel-v6 table.shop_table.cart tr:last-child td.actions {
    padding:16px 18px!important;
    border-top:1px solid var(--sv6-line)!important;
    background:#fff!important;
}
body.sv-cart-pixel-v6 .actions .coupon {
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    float:none!important;
}
body.sv-cart-pixel-v6 .actions .coupon:before {
    content:"◇  Mã giảm giá";
    flex:0 0 auto;
    color:#111318;
    font-size:14px;
    font-weight:800;
    margin-right:8px;
}
body.sv-cart-pixel-v6 .actions .coupon label {
    display:none!important;
}
body.sv-cart-pixel-v6 .actions .coupon input.input-text {
    flex:1!important;
    width:auto!important;
    min-width:200px!important;
    height:48px!important;
    padding:0 16px!important;
    border:1px solid #dfe3e8!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
}
body.sv-cart-pixel-v6 .actions .coupon button {
    height:48px!important;
    padding:0 24px!important;
    border:0!important;
    border-radius:8px!important;
    background:#0c1118!important;
    color:#fff!important;
    font-weight:900!important;
}
body.sv-cart-pixel-v6 .actions button[name="update_cart"] {
    margin-top:12px!important;
    height:44px!important;
    border-radius:8px!important;
}

/* right totals */
body.sv-cart-pixel-v6 .cart-collaterals {
    grid-column:2!important;
    grid-row:2 / span 2!important;
    width:100%!important;
    margin:0!important;
    position:sticky!important;
    top:115px!important;
}
body.sv-cart-pixel-v6 .cart-collaterals .cart_totals {
    float:none!important;
    width:100%!important;
    margin:0!important;
    padding:28px 26px 24px!important;
    border:1px solid var(--sv6-line)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:var(--sv6-shadow)!important;
}
body.sv-cart-pixel-v6 .cart_totals h2 {
    margin:0 0 18px!important;
    padding-bottom:18px!important;
    border-bottom:1px solid var(--sv6-line)!important;
    font-size:25px!important;
    line-height:1.2!important;
    font-weight:900!important;
    color:#101216!important;
}
body.sv-cart-pixel-v6 .cart_totals table.shop_table {
    margin:0!important;
    border:0!important;
    border-collapse:collapse!important;
}
body.sv-cart-pixel-v6 .cart_totals table.shop_table th,
body.sv-cart-pixel-v6 .cart_totals table.shop_table td {
    padding:17px 0!important;
    border:0!important;
    border-bottom:1px solid #edf0f2!important;
    background:transparent!important;
    color:#111318!important;
    font-size:14px!important;
}
body.sv-cart-pixel-v6 .cart_totals table.shop_table th {
    width:48%!important;
    text-align:left!important;
    font-weight:800!important;
}
body.sv-cart-pixel-v6 .cart_totals table.shop_table td {
    text-align:right!important;
    font-weight:900!important;
}
body.sv-cart-pixel-v6 .cart_totals .order-total th,
body.sv-cart-pixel-v6 .cart_totals .order-total td {
    padding-top:22px!important;
    border-bottom:0!important;
}
body.sv-cart-pixel-v6 .cart_totals .order-total .amount {
    color:var(--sv6-green)!important;
    font-size:22px!important;
    font-weight:900!important;
}
body.sv-cart-pixel-v6 .wc-proceed-to-checkout {
    margin:18px 0 0!important;
    padding:0!important;
}
body.sv-cart-pixel-v6 .wc-proceed-to-checkout a.checkout-button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:58px!important;
    margin:0!important;
    padding:0 18px!important;
    border:0!important;
    border-radius:9px!important;
    background:linear-gradient(90deg,var(--sv6-green-dark),var(--sv6-green))!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    box-shadow:0 10px 24px rgba(16,168,79,.18)!important;
}
body.sv-cart-pixel-v6 .wc-proceed-to-checkout a.checkout-button:hover {
    filter:brightness(.96);
}

/* mini trust inside summary using pseudo block */
body.sv-cart-pixel-v6 .cart_totals:after {
    content:"Thanh toán an toàn   •   Giao hàng nhanh   •   Đổi trả dễ dàng";
    display:block;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid var(--sv6-line);
    text-align:center;
    color:#49515b;
    font-size:11px;
    font-weight:800;
    line-height:1.8;
}

/* benefit strip */
.sv6-benefits {
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:0!important;
    margin-top:28px!important;
    padding:22px 26px!important;
    border:1px solid var(--sv6-line)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 12px 32px rgba(16,24,40,.05)!important;
}
.sv6-benefit {
    display:flex;
    align-items:center;
    gap:14px;
    min-height:62px;
    padding:0 24px;
    border-right:1px solid var(--sv6-line);
}
.sv6-benefit:first-child { padding-left:0; }
.sv6-benefit:last-child { border-right:0; padding-right:0; }
.sv6-bicon {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 46px;
    width:46px;
    height:46px;
    border:2px solid var(--sv6-green);
    border-radius:50%;
    color:var(--sv6-green);
    font-size:20px;
    font-weight:900;
}
.sv6-benefit strong,
.sv6-benefit small {
    display:block;
}
.sv6-benefit strong {
    margin-bottom:4px;
    color:#111318;
    font-size:14px;
    font-weight:900;
}
.sv6-benefit small {
    color:#6f7680;
    font-size:12px;
}

/* never hide cart data */
body.sv-cart-pixel-v6 .cart_item,
body.sv-cart-pixel-v6 .cart_item td,
body.sv-cart-pixel-v6 .product-name,
body.sv-cart-pixel-v6 .product-thumbnail,
body.sv-cart-pixel-v6 .product-price,
body.sv-cart-pixel-v6 .product-quantity,
body.sv-cart-pixel-v6 .product-subtotal {
    visibility:visible!important;
    opacity:1!important;
}

/* responsive */
@media (max-width:1100px) {
    body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) {
        grid-template-columns:minmax(0,1fr) 340px!important;
        gap:20px!important;
    }
    body.sv-cart-pixel-v6 .product-thumbnail { width:135px!important; }
    body.sv-cart-pixel-v6 .product-thumbnail img {
        width:118px!important;
        height:118px!important;
        max-width:118px!important;
    }
    body.sv-cart-pixel-v6 .product-name { min-width:220px!important; }
}

@media (max-width:900px) {
    body.sv-cart-pixel-v6 .woocommerce:has(> form.woocommerce-cart-form) {
        display:block!important;
    }
    body.sv-cart-pixel-v6 .cart-collaterals {
        position:static!important;
        margin-top:24px!important;
    }
    .sv6-benefits {
        grid-template-columns:repeat(2,1fr)!important;
        row-gap:22px!important;
    }
    .sv6-benefit { border-right:0; padding:0!important; }
}

@media (max-width:768px) {
    .sv6-heading-row {
        flex-direction:column;
        align-items:flex-start;
    }
    .sv6-heading-row h1 { font-size:28px!important; }

    body.sv-cart-pixel-v6 table.shop_table.cart,
    body.sv-cart-pixel-v6 table.shop_table.cart tbody,
    body.sv-cart-pixel-v6 table.shop_table.cart tr,
    body.sv-cart-pixel-v6 table.shop_table.cart td {
        display:block!important;
        width:100%!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart thead {
        display:none!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item {
        display:grid!important;
        grid-template-columns:105px 1fr!important;
        gap:0 14px!important;
        padding:18px!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item td {
        width:auto!important;
        min-width:0!important;
        padding:6px 0!important;
        border:0!important;
        text-align:left!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-thumbnail {
        grid-column:1!important;
        grid-row:1 / span 5!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-thumbnail img {
        width:100px!important;
        height:100px!important;
        max-width:100px!important;
    }
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-name,
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-price,
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-quantity,
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-subtotal,
    body.sv-cart-pixel-v6 table.shop_table.cart tr.cart_item .product-remove {
        grid-column:2!important;
    }
    body.sv-cart-pixel-v6 .actions .coupon {
        flex-wrap:wrap!important;
    }
    body.sv-cart-pixel-v6 .actions .coupon:before {
        width:100%;
        margin-bottom:4px;
    }
    body.sv-cart-pixel-v6 .actions .coupon input.input-text {
        min-width:0!important;
        width:calc(100% - 120px)!important;
    }
    body.sv-cart-pixel-v6 .actions .coupon button {
        width:108px!important;
        padding:0 12px!important;
    }
    .sv6-benefits {
        grid-template-columns:1fr!important;
    }
}
