/* ==========================================================================
   VMA cart  v2.0.1
   Styles [vma_cart]. The item list is our own markup, so there is no
   WooCommerce table to fight. The totals panel is still WooCommerce's
   template, so those selectors remain.
   ========================================================================== */

.vma-cart {
    --vma-navy: #022c46;
    --vma-blue: #006090;
    --vma-blue-bright: #1076ab;
    --vma-sand-bg: #f5f1e9;
    --vma-sand-border: #e6ddcd;
    --vma-grey-bg: #f6f8fa;
    --vma-border: #dbe0e5;
    --vma-ink: #111820;
    --vma-body: #44515e;
    --vma-muted: #64717e;

    max-width: 1192px;
    margin: 0 auto;
    padding: 48px 20px 56px;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    color: var(--vma-body);
    box-sizing: border-box;
}

.vma-cart * { box-sizing: border-box; }

.vma-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Line items
   -------------------------------------------------------------------------- */

.vma-cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 118px 128px 40px;
    align-items: center;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--vma-border);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vma-cart-item:hover {
    border-color: #bcdcee;
    box-shadow: 0 6px 18px rgba(2, 44, 70, 0.08);
}

.vma-cart-item-media img {
    width: 96px;
    height: 96px;
    max-width: none;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #e4f1f8;
}

.vma-cart-item-body { min-width: 0; }

.vma-cart-item-title {
    margin: 0 0 6px;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--vma-ink);
}

.vma-cart-item-title a {
    color: inherit;
    text-decoration: none;
}

.vma-cart-item-title a:hover { color: var(--vma-blue); }

.vma-cart-item-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: #c07a10;
}

/* Price sits under the title, so the row keeps a readable title width. */
.vma-cart-item-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.vma-cart-label {
    display: block;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b96a1;
    margin-bottom: 6px;
}

.vma-cart-item-meta .vma-cart-label { margin-bottom: 0; }

.vma-cart-price {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--vma-navy);
    white-space: nowrap;
}

.vma-cart-price--strong { font-size: 19px; }

.vma-cart-item-qty { text-align: center; }
.vma-cart-item-subtotal { text-align: right; }

.vma-cart .quantity input.qty,
.vma-cart input.qty {
    width: 88px !important;
    padding: 10px 8px !important;
    border: 1px solid var(--vma-border) !important;
    border-radius: 99px !important;
    background: #fff !important;
    font-family: 'Barlow', Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--vma-ink) !important;
    text-align: center;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

.vma-cart-item-remove { text-align: right; }

.vma-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    color: #8b96a1;
    border: 1px solid var(--vma-border);
    border-radius: 99px;
    background: #fff;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.vma-cart-remove:hover {
    color: #fff;
    background: #c0392b;
    border-color: #c0392b;
}

/* --------------------------------------------------------------------------
   Coupon + update
   -------------------------------------------------------------------------- */

.vma-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.vma-cart-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

.vma-cart-coupon-input {
    padding: 13px 20px !important;
    border: 1px solid var(--vma-border) !important;
    border-radius: 99px !important;
    background: #fff !important;
    font-family: 'Barlow', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    color: var(--vma-ink) !important;
    width: 220px !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

.vma-cart-coupon-input::placeholder { color: var(--vma-muted); opacity: 1; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.vma-cart .vma-cart-btn,
.vma-cart a.vma-cart-btn,
.vma-cart button.vma-cart-btn {
    display: inline-block;
    padding: 14px 28px !important;
    border: 0 !important;
    border-radius: 99px !important;
    background: var(--vma-blue) !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vma-cart .vma-cart-btn:hover {
    background: var(--vma-blue-bright) !important;
    transform: translateY(-1px);
}

.vma-cart .vma-cart-btn--ghost,
.vma-cart button.vma-cart-btn--ghost {
    background: transparent !important;
    color: var(--vma-blue) !important;
    border: 1.5px solid var(--vma-border) !important;
}

.vma-cart .vma-cart-btn--ghost:hover {
    background: var(--vma-blue) !important;
    color: #fff !important;
    border-color: var(--vma-blue) !important;
}

.vma-cart .vma-cart-btn:disabled {
    opacity: 0.35;
    transform: none !important;
}

/* --------------------------------------------------------------------------
   Totals panel (WooCommerce template, our styling)
   -------------------------------------------------------------------------- */

.vma-cart-side .cart_totals {
    background: var(--vma-sand-bg) !important;
    border: 1px solid var(--vma-sand-border) !important;
    border-radius: 8px !important;
    padding: 26px !important;
    width: 100% !important;
    float: none !important;
}

.vma-cart-side .cart_totals h2 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #000 !important;
    text-transform: none !important;
}

.vma-cart-side table.shop_table {
    border: 0 !important;
    background: transparent !important;
    margin: 0 0 18px !important;
    width: 100% !important;
}

.vma-cart-side table.shop_table th,
.vma-cart-side table.shop_table td {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vma-sand-border) !important;
    padding: 13px 0 !important;
    font-size: 14px !important;
}

.vma-cart-side table.shop_table th {
    font-family: 'Barlow', Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--vma-body) !important;
    text-align: left;
}

.vma-cart-side table.shop_table td {
    text-align: right;
    color: var(--vma-navy) !important;
    font-weight: 600;
}

.vma-cart-side tr.order-total th,
.vma-cart-side tr.order-total td {
    border-bottom: 0 !important;
    padding-top: 18px !important;
}

.vma-cart-side tr.order-total th {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--vma-ink) !important;
}

.vma-cart-side tr.order-total td {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--vma-navy) !important;
}

.vma-cart-side .wc-proceed-to-checkout { padding: 0 !important; margin-top: 18px; }

.vma-cart-side .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 17px 26px !important;
    border-radius: 99px !important;
    background: var(--vma-blue-bright) !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    height: auto !important;
}

.vma-cart-side .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--vma-blue) !important;
}

/* --------------------------------------------------------------------------
   Notices and empty state
   -------------------------------------------------------------------------- */

.vma-cart-notices .woocommerce-message,
.vma-cart-notices .woocommerce-info,
.vma-cart-notices .woocommerce-error {
    border-top: 0 !important;
    border-left: 4px solid var(--vma-blue) !important;
    border-radius: 6px !important;
    background: var(--vma-grey-bg) !important;
    padding: 16px 20px !important;
    margin: 0 0 20px !important;
    font-size: 14px !important;
    color: var(--vma-body) !important;
    list-style: none;
}

.vma-cart-notices .woocommerce-error {
    border-left-color: #c07a10 !important;
    background: #fbf0da !important;
}

.vma-cart-empty {
    background: var(--vma-grey-bg);
    border-left: 4px solid var(--vma-blue);
    border-radius: 8px;
    padding: 28px;
}

.vma-cart-empty-title {
    margin: 0 0 18px;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--vma-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .vma-cart-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .vma-cart-item {
        grid-template-columns: 84px minmax(0, 1fr) 110px 120px 40px;
        gap: 18px;
    }

    .vma-cart-item-media img { width: 84px; height: 84px; }
}

@media (max-width: 767px) {
    .vma-cart { padding: 32px 16px 40px; }

    .vma-cart-item {
        grid-template-columns: 68px minmax(0, 1fr) 40px;
        grid-template-areas:
            "media body remove"
            "qty   qty  qty"
            "sub   sub  sub";
        gap: 12px 14px;
        padding: 16px;
    }

    .vma-cart-item-media    { grid-area: media; }
    .vma-cart-item-body     { grid-area: body; }
    .vma-cart-item-remove   { grid-area: remove; }
    .vma-cart-item-qty      { grid-area: qty; text-align: left; }
    .vma-cart-item-subtotal { grid-area: sub; text-align: left; }

    .vma-cart-item-media img { width: 68px; height: 68px; }
    .vma-cart-item-title { font-size: 15px; }

    .vma-cart-actions,
    .vma-cart-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .vma-cart-coupon-input { width: 100% !important; }

    .vma-cart .vma-cart-btn { width: 100%; text-align: center; }

    .vma-cart-side .cart_totals { padding: 20px !important; }
}
