/**
 * Serene Orient — WooCommerce Cart Page Styles (Redesigned)
 *
 * TENMOKUS-inspired clean layout:
 * - Flat item rows (no cards), large images, divider lines
 * - Collapsible accordion for coupon & shipping
 * - Stacked checkout buttons with express payment options
 * - Payment method logo row
 * - Order note textarea in sidebar
 * - "You may also like" product carousel
 *
 * Depends on: so-main (global :root tokens, header, footer)
 * Enqueue: wp_enqueue_style( 'so-wc-cart', ..., array( 'so-main' ) );
 */

/* ─── PAGE HEADER ─── */
[data-component="cart-header"] {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px 0;
}
[data-component="cart-header"] h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--fg);
    position: relative;
    padding-bottom: 16px;
}
[data-component="cart-header"] h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary, #b66a43);
    border-radius: 2px;
}

/* ─── LAYOUT ─── */
[data-component="cart-layout"] {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
    animation: cartFadeIn 0.5s ease-out;
}
@keyframes cartFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── MAIN COLUMN ─── */
.so-cart-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ─── CART ITEMS (flat rows, no cards) ─── */
[data-component="cart-items"] {
    display: flex;
    flex-direction: column;
}
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 20px;
    align-items: start;
    padding: 20px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--border-light, #eee);
    border-radius: 8px;
    transition: background 0.2s ease;
}
.cart-item:first-child {
    padding-top: 16px;
}
.cart-item:hover {
    background: rgba(0,0,0,0.015);
}

/* Item image — large, clean, no border */
.ci-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Item info column */
.ci-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-top: 2px;
}
.ci-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--fg);
}
.ci-name a {
    color: inherit;
    text-decoration: none !important;
}
.ci-name a:hover {
    color: var(--primary);
}

/* Five Elements badge — subtle pill */
.ci-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 100px;
    width: fit-content;
}
.badge-wood   { color: #4a8c5c; background: rgba(74, 140, 92, 0.1); }
.badge-fire   { color: #c94a3e; background: rgba(201, 74, 62, 0.1); }
.badge-earth  { color: #c99532; background: rgba(201, 149, 50, 0.1); }
.badge-metal  { color: #a69e8d; background: rgba(166, 158, 141, 0.1); }
.badge-water  { color: #3a7cb8; background: rgba(58, 124, 184, 0.1); }

.ci-variant {
    font-size: 13px;
    color: var(--muted);
}
.ci-unit-price {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}

/* Quantity + Remove column */
.ci-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.qty-control:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.qty-control .qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 18px;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
    flex-shrink: 0;
}
.qty-control .qty-btn:hover {
    background: #f0f0f0;
}
.qty-control .qty-btn:active {
    background: #e8e8e8;
    transform: scale(0.92);
}
.qty-control input.qty {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    -moz-appearance: textfield;
    background: #fff;
}
.qty-control input.qty::-webkit-inner-spin-button,
.qty-control input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove — text link */
.ci-remove {
    font-size: 13px;
    color: #999;
    text-decoration: none !important;
    transition: color 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}
.ci-remove:hover {
    color: #c94a3e;
}

/* Line total — right aligned */
.ci-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
    padding-top: 2px;
    text-align: right;
    min-width: 80px;
}

/* ─── CART ACTIONS ─── */
.so-cart-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}
.so-update-cart {
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--fg, #1a1a18);
    color: var(--bg, #fff);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.so-update-cart:hover {
    opacity: 0.85;
}

/* ─── ACCORDION (Coupon & Shipping) ─── */
.so-cart-accordion {
    margin-top: 16px;
    border-top: 1px solid var(--border-light, #eee);
}
.so-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    text-align: left;
}
.so-accordion-toggle:hover {
    color: var(--primary);
}
.so-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #999;
}
.so-cart-accordion.is-open .so-chevron {
    transform: rotate(180deg);
}
.so-accordion-body {
    display: none;
    padding-bottom: 20px;
}
.so-cart-accordion.is-open .so-accordion-body {
    display: block;
}

/* Coupon form (inside accordion) */
.coupon-row {
    display: flex;
    gap: 10px;
}
.coupon-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: var(--fg);
    outline: none;
    transition: border-color 0.2s;
}
.coupon-row input:focus {
    border-color: var(--primary);
}
.so-apply-coupon {
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--fg, #1a1a18);
    color: var(--bg, #fff);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.so-apply-coupon:hover {
    opacity: 0.85;
}

/* ─── ORDER SUMMARY SIDEBAR ─── */
[data-component="order-summary"] {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 28px;
    position: sticky;
    top: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.summary-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 18px;
}

/* Free shipping bar — at TOP */
.free-ship-bar {
    margin-bottom: 20px;
}
.free-ship-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 8px;
    line-height: 1.5;
}
.free-ship-done .free-ship-text {
    color: #4a8c5c;
}
.progress-track {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary, #b66a43);
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: progressFill 1.2s ease-out;
}
@keyframes progressFill {
    from { width: 0 !important; }
}
.free-ship-done .progress-fill {
    background: linear-gradient(90deg, #4a8c5c, #6db37e);
    box-shadow: 0 0 8px rgba(74, 140, 92, 0.3);
}

/* Summary rows */
.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.summary-subtotal {
    font-weight: 600;
    font-size: 16px;
}
.summary-row.discount {
    color: #4a8c5c;
}
.summary-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 4px 0;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 16px 12px;
    margin: 4px -16px 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(182,106,67,0.04), rgba(182,106,67,0.08));
}
.summary-note {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ─── ORDER NOTE ─── */
.order-note-section {
    margin-top: 24px;
}
.order-note-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 8px;
}
.order-note-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fg);
    background: #fff;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.order-note-input:focus {
    border-color: var(--primary);
}
.order-note-input::placeholder {
    color: #bbb;
}

/* ─── CHECKOUT BUTTONS (stacked) ─── */
.checkout-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-checkout-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a18 0%, #2d2d2a 50%, #1a1a18 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-checkout-primary:hover {
    background: linear-gradient(135deg, #2d2d2a 0%, #3d3d3a 50%, #2d2d2a 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}
.btn-checkout-primary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Express checkout container (PayPal/Google Pay smart buttons) */
.so-express-checkout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.so-express-checkout > div {
    width: 100% !important;
}

/* Continue shopping link */
.continue-shopping {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #999 !important;
    text-decoration: none !important;
    padding: 8px 0;
    transition: color 0.15s;
}
.continue-shopping:hover {
    color: var(--fg) !important;
}
.trust-row {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}
.trust-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--primary);
}

body.woocommerce-cart [data-component="order-summary"] .trust-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: center !important;
}

body.woocommerce-cart [data-component="order-summary"] .trust-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.woocommerce-cart [data-component="order-summary"] .trust-item svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
    display: block !important;
    transform: none !important;
}

body.woocommerce-cart [data-component="order-summary"] .trust-item .trust-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
}

/* ─── YOU MAY ALSO LIKE ─── */
.cart-recommendations {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 64px;
}
.cr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cr-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.cr-nav {
    display: flex;
    gap: 8px;
}
.cr-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #555;
}
.cr-nav-btn:hover {
    border-color: var(--fg);
    background: #f9f9f9;
}
.cr-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.cr-scroll::-webkit-scrollbar {
    display: none;
}
.cr-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cr-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
}
.cr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cr-card:hover .cr-img img {
    transform: scale(1.05);
}
.cr-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--fg);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cr-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

/* ─── EMPTY CART (preserve existing) ─── */
[data-component="empty-cart"] {
    text-align: center;
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.empty-illustration {
    margin: 0 auto 24px;
}
.empty-illustration svg {
    width: 120px;
    height: 120px;
    color: var(--metal);
}
[data-component="empty-cart"] h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
[data-component="empty-cart"] .desc {
    color: var(--muted);
    font-size: 15px;
    max-width: 42ch;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.suggested {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 680px;
    margin: 0 auto 32px;
}
.suggest-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    transition: box-shadow 0.2s;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}
.suggest-card:hover {
    box-shadow: 0 4px 16px rgba(26, 26, 24, 0.06);
}
.suggest-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--surface-alt), #e8e8e8);
    margin-bottom: 12px;
}
.suggest-card h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.suggest-card .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.btn-start {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    border: none;
}
.btn-start:hover {
    background: var(--primary-hover);
}

/* Hide WooCommerce notices on empty cart */
[data-component="empty-cart"] ~ .woocommerce-message,
[data-component="empty-cart"] ~ .woocommerce-info,
[data-component="empty-cart"] ~ .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .wc-block-components-notice-banner {
    display: none !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    [data-component="cart-layout"] {
        grid-template-columns: 1fr;
        gap: 32px;
        overflow-x: hidden;
    }
    [data-component="cart-layout"] > * {
        min-width: 0;
        max-width: 100%;
    }
    [data-component="order-summary"] {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    [data-component="cart-header"] h1 {
        font-size: 26px;
    }
    [data-component="cart-header"],
    [data-component="cart-layout"] {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Cart items stack vertically */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    .ci-image {
        width: 80px;
        height: 80px;
    }
    .ci-name {
        font-size: 15px;
    }
    .ci-qty {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0;
    }
    .ci-total {
        grid-column: 1 / -1;
        text-align: right;
    }

    /* Quantity controls touch-friendly */
    .qty-control {
        height: 40px;
    }
    .qty-control .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .qty-control input.qty {
        width: 48px;
        height: 40px;
        font-size: 16px;
    }

    .coupon-row {
        flex-direction: column;
    }
    .coupon-row input {
        width: 100%;
    }

    .suggested {
        grid-template-columns: 1fr;
    }

    .cr-card {
        flex: 0 0 160px;
    }
    .cr-img {
        width: 160px;
        height: 160px;
    }
    .cr-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }
    .ci-image {
        width: 72px;
        height: 72px;
    }
    .cr-card {
        flex: 0 0 140px;
    }
    .cr-img {
        width: 140px;
        height: 140px;
    }
}

/* Hard guard against WooCommerce/theme image rules stretching cart thumbnails. */
body.woocommerce-cart .woocommerce-cart-form [data-component="cart-items"] .cart-item {
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) 96px 100px !important;
    align-items: start !important;
    min-height: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-light, #eee) !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .cart-item .ci-image {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #f7f5f1 !important;
}

body.woocommerce-cart .woocommerce-cart-form .cart-item .ci-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    position: static !important;
    transform: none !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .woocommerce-cart-form [data-component="cart-items"] .cart-item {
        grid-template-columns: 80px minmax(0, 1fr) !important;
    }

    body.woocommerce-cart .woocommerce-cart-form .cart-item .ci-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
}

/* Premium cart polish */
body.woocommerce-cart {
    background: linear-gradient(180deg, #fff 0%, #fbfaf7 54%, #fff 100%);
}

body.woocommerce-cart [data-component="cart-header"] {
    padding-top: 58px;
    padding-bottom: 12px;
}

body.woocommerce-cart [data-component="cart-header"] h1 {
    max-width: 760px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
}

body.woocommerce-cart [data-component="cart-header"] .count {
    color: var(--muted);
    font-family: var(--font-body, inherit);
    font-size: 0.42em;
    font-weight: 600;
    vertical-align: middle;
}

body.woocommerce-cart [data-component="cart-layout"] {
    grid-template-columns: minmax(0, 760px) 360px;
    gap: 34px;
    padding-top: 22px;
}

body.woocommerce-cart .woocommerce-cart-form [data-component="cart-items"] {
    gap: 14px;
}

body.woocommerce-cart .woocommerce-cart-form [data-component="cart-items"] .cart-item {
    grid-template-columns: 112px minmax(0, 1fr) 86px 92px !important;
    gap: 18px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(26, 26, 24, 0.07) !important;
    border-bottom: 1px solid rgba(26, 26, 24, 0.07) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 28px rgba(26, 26, 24, 0.045) !important;
}

body.woocommerce-cart .woocommerce-cart-form .cart-item .ci-image {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    background: linear-gradient(145deg, #f8f5ef, #fff) !important;
}

body.woocommerce-cart .ci-name {
    font-size: 16px;
}

body.woocommerce-cart .ci-name a {
    color: var(--fg) !important;
    text-decoration: none !important;
}

body.woocommerce-cart .ci-name a:hover {
    color: var(--primary) !important;
}

body.woocommerce-cart .ci-variant {
    margin-top: 5px;
    color: var(--muted);
}

body.woocommerce-cart .ci-remove {
    color: var(--primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.woocommerce-cart .qty-control input.qty,
body.woocommerce-cart .qty-control .so-qty-input {
    width: 58px !important;
    height: 34px !important;
    border: 1px solid rgba(26, 26, 24, 0.16) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
}

body.woocommerce-cart .ci-total {
    color: var(--fg);
    font-size: 16px;
    font-weight: 700;
}

body.woocommerce-cart .so-cart-actions {
    margin-top: 18px;
}

body.woocommerce-cart .so-update-cart,
body.woocommerce-cart .so-apply-coupon {
    min-height: 42px;
    border-radius: 8px;
    background: var(--fg, #171714);
    box-shadow: 0 8px 18px rgba(26, 26, 24, 0.12);
}

body.woocommerce-cart [data-component="coupon"] {
    margin-top: 16px !important;
    padding: 18px;
    border: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(26, 26, 24, 0.035);
}

body.woocommerce-cart .coupon-label {
    margin-bottom: 9px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 700;
}

body.woocommerce-cart .coupon-row input {
    min-height: 42px;
    border-radius: 8px;
}

body.woocommerce-cart [data-component="shipping-estimator"] {
    margin-top: 12px !important;
}

body.woocommerce-cart .shipping-calculator-button {
    color: var(--primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

body.woocommerce-cart [data-component="order-summary"] {
    border: 1px solid rgba(26, 26, 24, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(26, 26, 24, 0.08);
}

body.woocommerce-cart .summary-title {
    font-size: 22px;
}

body.woocommerce-cart .summary-row,
body.woocommerce-cart .summary-shipping {
    padding: 4px 0;
}

body.woocommerce-cart .summary-row span:first-child,
body.woocommerce-cart .summary-shipping__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

body.woocommerce-cart .summary-row span:last-child {
    color: var(--fg);
    font-weight: 700;
}

body.woocommerce-cart .so-summary-shipping-table,
body.woocommerce-cart .so-summary-shipping-table tbody,
body.woocommerce-cart .so-summary-shipping-table tr,
body.woocommerce-cart .so-summary-shipping-table th,
body.woocommerce-cart .so-summary-shipping-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}

body.woocommerce-cart .so-summary-shipping-table th {
    display: none;
}

body.woocommerce-cart .so-summary-shipping-table td {
    margin-top: 8px;
}

body.woocommerce-cart .so-summary-shipping-table ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-cart .so-summary-shipping-table li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: 10px;
    background: #fff;
}

body.woocommerce-cart .so-summary-shipping-table label {
    color: var(--fg);
    font-size: 13px;
    line-height: 1.4;
}

body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-calculator {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

body.woocommerce-cart .summary-total {
    margin-top: 8px;
    padding: 15px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(246, 241, 234, 0.92), rgba(255, 250, 244, 0.86));
}

body.woocommerce-cart .btn-checkout-primary {
    min-height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, #151513, #282621);
    box-shadow: 0 12px 24px rgba(26, 26, 24, 0.18);
}

body.woocommerce-cart .continue-shopping {
    color: var(--muted) !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.woocommerce-cart [data-component="cart-layout"] {
        grid-template-columns: 1fr;
    }

    body.woocommerce-cart .woocommerce-cart-form [data-component="cart-items"] .cart-item {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }
}
