/**
 * PhpCart Frontend Stylesheet — Luxe Neem Skincare & Ayurvedic Care
 * Rich dark forest (#0D2B12), neem green (#1A5C28), gold (#C8A84B), and dew white (#F0F7EE).
 * Scoped inside .phpcart-wrapper so it never conflicts with the host site.
 */

:root,
.phpcart-wrapper,
.phpcart-modal-backdrop,
.phpcart-modal-dialog {
    --phpcart-primary: #1A5C28;
    --phpcart-primary-hover: #0D2B12;
    --phpcart-accent: #C8A84B;
    --phpcart-accent-hover: #DFBF5E;
    --phpcart-text: #0D2B12;
    --phpcart-muted: #526b56;
    --phpcart-bg: #FFFFFF;
    --phpcart-card-bg: #FFFFFF;
    --phpcart-border: rgba(13, 43, 18, 0.15);
    --phpcart-radius: 14px;
    --phpcart-font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --phpcart-display-font: 'Cormorant Garamond', Georgia, serif;
    --phpcart-shadow: 0 10px 30px rgba(13, 43, 18, 0.08);

    font-family: var(--phpcart-font);
    color: var(--phpcart-text);
    box-sizing: border-box;
    line-height: 1.5;
}

.phpcart-wrapper *,
.phpcart-wrapper *::before,
.phpcart-wrapper *::after {
    box-sizing: inherit;
}

/* Product Grid */
.phpcart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.phpcart-card {
    background: var(--phpcart-card-bg);
    border: 1px solid var(--phpcart-border);
    border-radius: var(--phpcart-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--phpcart-shadow);
}

.phpcart-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 168, 75, 0.5);
    box-shadow: 0 16px 36px rgba(13, 43, 18, 0.12);
}

.phpcart-card-img-wrap {
    height: 240px;
    background: radial-gradient(circle, #EBF3E8 0%, #DCECD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    overflow: hidden;
    border-bottom: 1px solid rgba(13, 43, 18, 0.08);
}

.phpcart-card-img-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.phpcart-card-img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(13, 43, 18, 0.2));
}

.phpcart-card:hover .phpcart-card-img {
    transform: scale(1.05);
}

.phpcart-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--phpcart-accent);
    color: #0D2B12;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.phpcart-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phpcart-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--phpcart-text);
    text-decoration: none;
    line-height: 1.3;
}

.phpcart-card-title:hover {
    color: var(--phpcart-accent);
}

.phpcart-card-desc {
    font-size: 13px;
    color: var(--phpcart-muted);
    margin-bottom: 12px;
    flex: 1;
}

.phpcart-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.phpcart-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--phpcart-accent);
}

.phpcart-regular-price {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--phpcart-muted);
}

.phpcart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--phpcart-accent);
    color: #0D2B12;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: 0.02em;
}

.phpcart-btn:hover {
    background: var(--phpcart-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(200, 168, 75, 0.35);
}

.phpcart-btn-secondary {
    background: #F0F7EE;
    color: #0D2B12;
    border: 1.5px solid rgba(13, 43, 18, 0.2);
    border-radius: 999px;
    font-weight: 600;
}
.phpcart-btn-secondary:hover {
    background: #e2ede0;
    border-color: #1A5C28;
    color: #1A5C28;
}

/* Product Single Layout */
.phpcart-single-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.phpcart-gallery-main {
    background: #1b1b22;
    border: 1px solid var(--phpcart-border);
    border-radius: var(--phpcart-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
}

.phpcart-gallery-main img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.phpcart-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.phpcart-thumb-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    object-fit: contain;
    background: #1b1b22;
    padding: 4px;
}

.phpcart-thumb-item.active {
    border-color: var(--phpcart-accent);
}

.phpcart-single-title {
    font-family: var(--phpcart-display-font);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.phpcart-single-sku {
    font-size: 12px;
    color: var(--phpcart-muted);
    margin-bottom: 16px;
}

.phpcart-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(13, 43, 18, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #F8FAF6;
}

.phpcart-qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #0D2B12;
}

.phpcart-qty-btn:hover {
    background: #E8F4E6;
    color: #1A5C28;
}

.phpcart-qty-input {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #0D2B12;
    background: transparent;
}

/* Cart Page */
.phpcart-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.phpcart-cart-table th {
    background: transparent;
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--phpcart-muted);
    border-bottom: 1px solid var(--phpcart-border);
}

.phpcart-cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(13, 43, 18, 0.1);
    vertical-align: middle;
    color: var(--phpcart-text);
}

.phpcart-mobile-sticky-bar {
    display: none;
}

/* Checkout 3-Step Stepper */
.phpcart-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.phpcart-step {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--phpcart-muted);
    position: relative;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--phpcart-border);
}

.phpcart-step.active {
    color: var(--phpcart-accent);
    border-bottom-color: var(--phpcart-accent);
}

/* Form inputs */
.phpcart-input, .phpcart-select, .phpcart-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(13, 43, 18, 0.2) !important;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0D2B12 !important;
    background: #FFFFFF !important;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phpcart-input::placeholder, .phpcart-textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.phpcart-input:focus, .phpcart-select:focus, .phpcart-textarea:focus {
    outline: none;
    border-color: #1A5C28 !important;
    box-shadow: 0 0 0 3px rgba(26, 92, 40, 0.15) !important;
}

.phpcart-select option {
    background: #FFFFFF;
    color: #0D2B12;
}

.phpcart-modal-dialog label,
.phpcart-wrapper label {
    color: #0D2B12 !important;
    font-weight: 600;
}

/* Header Cart Icon Badge */
.phpcart-cart-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}

.phpcart-cart-badge {
    background: var(--phpcart-accent);
    color: #0b0b0e;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Wishlist Toggle Button Base & Active States */
.phpcart-wishlist-toggle {
    transition: all 0.2s ease;
    cursor: pointer;
}
.phpcart-wishlist-toggle.is-active {
    background: #FFF0F0 !important;
    border-color: #FFA5A5 !important;
    color: #C22D2D !important;
}
.phpcart-wishlist-toggle.is-active svg {
    fill: #C22D2D !important;
    stroke: #C22D2D !important;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .phpcart-single-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .phpcart-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .phpcart-card-img-wrap {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .phpcart-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mobile Auth Modal & DPDT Act 2023 UI Elements — Laxmi Naturals theme
   ========================================================================== */

.phpcart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    animation: phpcartFadeIn 0.2s ease-out;
}

@keyframes phpcartFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.phpcart-modal-dialog {
    background: #FFFFFF;
    border-radius: 14px;
    width: 100%;
    max-width: 740px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(200, 168, 75, 0.4);
}

.phpcart-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #475569;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.15s;
}

.phpcart-modal-close:hover {
    color: #ef4444;
}

.phpcart-auth-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 440px;
}

/* Left Brand Banner */
.phpcart-auth-banner {
    background: linear-gradient(160deg, #0D2B12 0%, #061709 100%);
    color: #ffffff;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(200, 168, 75, 0.3);
}

.phpcart-auth-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.phpcart-auth-logo {
    height: 44px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.phpcart-auth-banner h2 {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 28px;
    font-weight: 700;
    color: #DFBF5E;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

.phpcart-auth-banner p {
    font-size: 13px;
    color: #DCECD9;
    line-height: 1.5;
    margin: 0 0 24px;
}

.phpcart-auth-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(200, 168, 75, 0.25);
    padding-top: 20px;
}

.phpcart-auth-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #F0F7EE;
}

.phpcart-badge-icon {
    color: #C8A84B;
    display: inline-flex;
}

/* Right Form Panel */
.phpcart-auth-form-wrap {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.phpcart-auth-heading {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 24px;
    font-weight: 700;
    color: #0D2B12;
    margin: 0 0 6px;
}

.phpcart-auth-subtext {
    font-size: 13.5px;
    color: #526b56;
    margin: 0 0 20px;
}

.phpcart-auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-left: 3px solid #ef4444;
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Phone Input Group */
.phpcart-phone-input-group {
    display: flex;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phpcart-phone-input-group:focus-within {
    border-color: #1A5C28;
    box-shadow: 0 0 0 3px rgba(26, 92, 40, 0.15);
}

.phpcart-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    color: #0D2B12;
    user-select: none;
}

.phpcart-in-flag {
    font-size: 16px;
}

.phpcart-phone-input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #0D2B12;
    outline: none;
    background: #FFFFFF;
    font-family: inherit;
}

.phpcart-phone-input::placeholder {
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0;
    font-size: 14px;
}

/* DPDT Consent Box */
.phpcart-dpdt-consent-box {
    margin: 16px 0;
    padding: 10px 12px;
    background: #F8FAF6;
    border: 1px solid rgba(13, 43, 18, 0.15);
    border-radius: 6px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #0D2B12;
}

.phpcart-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.phpcart-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1A5C28;
    cursor: pointer;
}

.phpcart-link {
    color: #1A5C28;
    font-weight: 700;
    text-decoration: underline;
}

.phpcart-link:hover {
    color: #0D2B12;
}

/* Yellow Action Button (alias of .phpcart-btn-gold kept for compat) */
.phpcart-btn-gold {
    background: #C8A84B !important;
    color: #0D2B12 !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(200, 168, 75, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.phpcart-btn-gold:hover {
    background: #DFBF5E !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 168, 75, 0.4);
}

/* 6-box OTP Stepper */
.phpcart-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: 18px 0;
}

.phpcart-otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0D2B12;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.phpcart-otp-box:focus {
    border-color: #1A5C28;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(26, 92, 40, 0.15);
}

.phpcart-otp-timer-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #526b56;
    margin-bottom: 20px;
}

.phpcart-change-phone-btn {
    background: none;
    border: none;
    color: #1A5C28;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    text-decoration: underline;
}

.phpcart-test-mode-notice {
    margin-top: 14px;
    font-size: 11.5px;
    background: rgba(200, 168, 75, 0.12);
    border: 1px dashed rgba(200, 168, 75, 0.7);
    color: #8C6D1F;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.phpcart-auth-switch {
    margin-top: 16px;
    text-align: center;
}

.phpcart-text-btn {
    background: none;
    border: none;
    color: var(--phpcart-muted);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
}

.phpcart-text-btn:hover {
    color: var(--phpcart-accent);
}

/* Legacy utility kept for widget markup */
.btn-gold-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--phpcart-accent);
    color: #0b0b0e;
    border: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-gold-solid:hover {
    background: var(--phpcart-accent-hover);
    transform: translateY(-1px);
}

/* ============================================================
   Print — receipts only
   The widget surfaces are dark-themed; flatten them to ink-friendly
   black-on-white and drop anything marked .phpcart-print-hide.
   ============================================================ */
@media print {
    .phpcart-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .phpcart-wrapper,
    .phpcart-wrapper * {
        background: transparent !important;
        background-image: none !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        position: static !important;
    }

    .phpcart-print-hide,
    .phpcart-auth-overlay,
    .phpcart-toast {
        display: none !important;
    }

    .phpcart-wrapper table { border-collapse: collapse !important; }
    .phpcart-wrapper table,
    .phpcart-wrapper th,
    .phpcart-wrapper td {
        border-color: #ccc !important;
    }

    #phpcart-print-receipt {
        background: #fff !important;
        border: 1px solid #bbb !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #phpcart-print-receipt img { max-height: 90px !important; }
    #phpcart-print-receipt tr,
    #phpcart-print-receipt .phpcart-print-keep { page-break-inside: avoid; }
}

/* Modal Responsive */
@media (max-width: 640px) {
    .phpcart-auth-container {
        grid-template-columns: 1fr;
    }
    .phpcart-auth-banner {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 209, 0, 0.18);
    }
    .phpcart-auth-banner p,
    .phpcart-auth-badges {
        display: none;
    }
    .phpcart-auth-form-wrap {
        padding: 24px 20px;
    }
    .phpcart-otp-box {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Responsive Cart & Checkout Layouts — Mobile Card Transformations
   ========================================================================== */

@media (max-width: 860px) {
    /* Cart Layout: Stack items and summary */
    .phpcart-cart-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    /* Cart Layout Card Padding on Mobile */
    .phpcart-cart-card,
    .phpcart-cart-items-card,
    .phpcart-order-summary-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }

    /* Cart Table Mobile Transformation */
    .phpcart-cart-table,
    .phpcart-cart-table tbody {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
    }

    .phpcart-cart-table thead {
        display: none !important;
    }

    .phpcart-cart-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "product product"
            "qty subtotal" !important;
        row-gap: 12px !important;
        column-gap: 12px !important;
        align-items: center !important;
        padding: 16px 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(13, 43, 18, 0.1) !important;
        position: relative !important;
        background: transparent !important;
    }

    .phpcart-cart-row:last-child {
        border-bottom: none !important;
        padding-bottom: 6px !important;
    }

    /* CRITICAL: Zero out all td borders and paddings to prevent stray lines on mobile */
    .phpcart-cart-row td {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Product thumbnail + Title */
    .phpcart-col-product {
        grid-area: product !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 0 36px 0 0 !important; /* Space for remove button */
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .phpcart-col-product img {
        width: 58px !important;
        height: 58px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
        background: radial-gradient(circle, #EBF3E8 0%, #DCECD9 100%) !important;
        padding: 4px !important;
        border: 1.5px solid rgba(13, 43, 18, 0.1) !important;
    }

    .phpcart-col-product strong {
        display: block !important;
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .phpcart-col-product strong a {
        color: #0D2B12 !important;
        text-decoration: none !important;
        font-weight: 700 !important;
    }

    /* Hide redundant unit price cell on mobile, line total is clearly shown */
    .phpcart-col-price {
        display: none !important;
    }

    /* Quantity Stepper: Bottom Left */
    .phpcart-col-qty {
        grid-area: qty !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .phpcart-col-qty .phpcart-qty-stepper {
        display: inline-flex !important;
        align-items: center !important;
        border: 1.5px solid rgba(13, 43, 18, 0.2) !important;
        border-radius: 999px !important;
        background: #F8FAF6 !important;
        overflow: hidden !important;
    }

    /* Line total / Subtotal: Bottom Right */
    .phpcart-col-subtotal {
        grid-area: subtotal !important;
        text-align: right !important;
        padding: 0 !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        color: #0D2B12 !important;
        font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif) !important;
        letter-spacing: 0.02em !important;
    }

    /* Remove 'x' button: Top Right */
    .phpcart-col-remove {
        position: absolute !important;
        top: 14px !important;
        right: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        z-index: 2 !important;
    }

    .phpcart-col-remove .phpcart-cart-remove-btn {
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: rgba(239, 68, 68, 0.1) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
        color: #dc2626 !important;
        cursor: pointer !important;
        font-size: 15px !important;
        font-weight: bold !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s !important;
    }

    /* Promo Code Box: Compact Single-Row on Mobile */
    .phpcart-coupon-box {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        max-width: 100% !important;
        margin-top: 18px !important;
        align-items: stretch !important;
    }

    .phpcart-coupon-box input {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        border: 1.5px solid rgba(13, 43, 18, 0.2) !important;
        background: #FFFFFF !important;
        color: #0D2B12 !important;
    }

    .phpcart-coupon-box button {
        width: auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        background: #0D2B12 !important;
        color: #F0F7EE !important;
        border: none !important;
    }

    .phpcart-order-summary-card {
        position: static !important;
        padding: 18px 14px !important;
    }

    /* Sticky Mobile Checkout Bar */
    .phpcart-mobile-sticky-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: #FFFFFF !important;
        border-top: 1.5px solid rgba(13, 43, 18, 0.15) !important;
        padding: 10px 16px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .phpcart-mobile-sticky-bar .phpcart-sticky-info {
        display: flex !important;
        flex-direction: column !important;
    }

    .phpcart-mobile-sticky-bar .phpcart-sticky-label {
        font-size: 10.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        color: #526b56 !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    .phpcart-mobile-sticky-bar .phpcart-sticky-price {
        font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif) !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #0D2B12 !important;
        line-height: 1.2 !important;
    }

    .phpcart-mobile-sticky-bar .phpcart-sticky-tag {
        font-size: 10.5px !important;
        color: #1A5C28 !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    .phpcart-mobile-sticky-bar .phpcart-sticky-checkout-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 11px 24px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        background: #C8A84B !important;
        color: #0D2B12 !important;
        text-decoration: none !important;
        border: none !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(200, 168, 75, 0.35) !important;
    }

    /* Checkout Layout */
    .phpcart-checkout-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .phpcart-checkout-layout > div:last-child > div {
        position: static !important;
    }
}

@media (max-width: 640px) {
    /* Form fields in Checkout */
    .phpcart-grid-2col,
    .phpcart-grid-3col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .phpcart-steps {
        gap: 4px !important;
        margin-bottom: 20px !important;
    }

    .phpcart-step {
        font-size: 11px !important;
        padding-bottom: 6px !important;
        letter-spacing: -0.2px !important;
    }

    .phpcart-input, .phpcart-select, .phpcart-textarea {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .phpcart-saved-address {
        padding: 10px 12px !important;
    }

    /* Account Dashboard Nav Tabs Bar */
    .account-nav-tabs {
        gap: 6px !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .account-nav-tabs .phpcart-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 12.5px !important;
        padding: 8px 12px !important;
    }

    .account-header-card {
        padding: 18px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .account-header-card a.phpcart-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}
