/* ==========================================================================
   Shop revamp: design tokens, nav search, mini-cart, cart page, catalogue,
   wishlist, quick view, order review
   ========================================================================== */

:root {
    --brand-accent: #F42F54;
    --brand-accent-2: #ff5f6d;
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1ebe5b;

    /* Type scale */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Surfaces / text (light default) */
    --page-bg: #f5f6f8;
    --surface: #ffffff;
    --surface-alt: #f7f7f9;
    --surface-hover: #f0f1f4;
    --text-primary: #1a1a1a;
    --text-secondary: #666a73;
    --text-muted: #9a9da3;
    --border-color: #ececee;
    --shadow-sm: 0 2px 10px rgba(20, 20, 30, .05);
    --shadow-md: 0 8px 24px rgba(20, 20, 30, .09);
    --shadow-lg: 0 16px 32px rgba(20, 20, 30, .16);
    --overlay-bg: rgba(15, 15, 20, .55);
    --price-highlight-bg: linear-gradient(135deg, #fff5f6, #ffecee);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

/* ---------- Accessibility: skip link + focus states ---------- */
.skip-to-content {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 3000;
    background: var(--brand-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none;
    transition: top .2s var(--ease);
}

.skip-to-content:focus {
    top: 0;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.card-action-btn:focus-visible,
.qty-btn:focus-visible,
.remove-from-cart:focus-visible,
.premium-modal-close:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ---------- Fade / slide-in micro-interactions ---------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); }
    60% { transform: scale(.92); }
    100% { transform: scale(1); }
}

.fade-slide-up {
    animation: fadeSlideUp .45s var(--ease) both;
}

/* ---------- WhatsApp button (shared) ---------- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--whatsapp-green);
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    transition: background-color .15s ease, opacity .15s ease;
}

.btn-whatsapp:hover:not(.disabled) {
    background-color: var(--whatsapp-green-dark);
    color: #fff;
}

.btn-whatsapp i {
    font-size: 1.15em;
}

.btn-whatsapp.disabled {
    opacity: .5;
    pointer-events: none;
}

.btn-whatsapp.btn-block {
    width: 100%;
}

.btn-whatsapp.btn-lg {
    padding: 14px 20px;
    font-size: 1.05rem;
}

.btn-whatsapp.btn-icon-only {
    padding: 10px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
}

/* ---------- Navbar: active link ---------- */
.navbar-nav .nav-link.active {
    font-weight: 700;
    color: var(--brand-accent) !important;
}

/* ---------- Navbar: search box ---------- */
.nav-search {
    position: relative;
    margin: 0 20px;
    min-width: 340px;
    flex: 1 1 340px;
    max-width: 480px;
}

.nav-search-input {
    width: 100%;
    border: 2px solid rgba(0,0,0,.25);
    border-radius: 26px;
    padding: 13px 20px 13px 46px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2.5"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 16px center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}

.nav-search-input::placeholder {
    font-weight: 500;
    color: #888;
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 4px 14px rgba(244,47,84,.2);
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    animation: fadeSlideUp .2s var(--ease) both;
}

.nav-search-results.show {
    display: block;
}

.nav-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color .12s var(--ease);
}

.nav-search-result-item:last-child {
    border-bottom: none;
}

.nav-search-result-item:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.nav-search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.nav-search-result-name {
    font-size: .875rem;
    line-height: 1.3;
}

.nav-search-result-price {
    font-size: .8rem;
    color: var(--brand-accent);
    font-weight: 600;
}

.nav-search-empty,
.nav-search-loading {
    padding: 14px;
    font-size: .875rem;
    color: #888;
    text-align: center;
}

@media only screen and (max-width: 991px) {
    .nav-search {
        margin: 10px 0 4px;
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ---------- Header mini-cart ---------- */
/* Pin to the viewport directly rather than trusting Bootstrap/Popper's
   trigger-relative positioning (this theme loads mixed Bootstrap 4/5
   scripts, which was pushing the panel off-screen at various widths). */
.cart_box.dropdown-menu {
    padding: 0;
}

.cart_box.dropdown-menu.show {
    position: fixed !important;
    top: 90px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
}

.minicart-panel {
    width: 420px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 110px) !important;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    color: var(--text-primary);
    box-sizing: border-box;
}

.minicart-items {
    flex: 1 1 auto;
}

.minicart-header {
    padding: 14px 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.minicart-items {
    max-height: 320px;
    overflow-y: auto;
}

.minicart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    animation: fadeSlideUp .3s var(--ease) both;
}

.minicart-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.minicart-item-info {
    flex: 1;
    min-width: 0;
}

.minicart-item-name {
    font-size: .875rem;
    font-weight: 600;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.minicart-item-meta {
    font-size: .8rem;
    color: var(--text-secondary);
}

.minicart-item-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--brand-accent);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color .15s var(--ease), transform .1s var(--ease);
}

.minicart-item-remove:hover {
    background: var(--surface-hover);
}

.minicart-item-remove:active {
    transform: scale(.85);
}

.minicart-item-meta .subtotal {
    color: var(--brand-accent);
    font-weight: 600;
}

.minicart-empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-muted);
}

.minicart-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-alt);
}

.minicart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 12px;
}

.minicart-actions {
    display: flex;
    gap: 8px;
}

.minicart-actions .btn,
.minicart-actions .btn-ghost,
.minicart-actions .btn-whatsapp {
    flex: 1;
}

/* Ghost/outline button — defined explicitly rather than relying on
   Bootstrap's .btn-outline-secondary, which the vendor theme's global
   .btn color rules were overriding into near-unreadable contrast. */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .15s var(--ease), border-color .15s var(--ease);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
    color: var(--text-primary) !important;
}

@media only screen and (max-width: 991px) {
    .minicart-panel {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh;
        border-radius: 14px 14px 0 0;
        transform: none !important;
    }

    .minicart-items {
        max-height: 45vh;
    }
}

/* ---------- Cart page ---------- */
.cart-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 15px 60px;
}

.cart-page-header {
    margin-bottom: 16px;
    gap: 10px;
}

.cart-page-title {
    margin: 0;
}

.shop-info-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeSlideUp .4s var(--ease) both;
}

.shop-info-card h3 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.shop-info-card p {
    margin: 2px 0;
    font-size: .92rem;
    color: var(--text-secondary);
}

.cart-table {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
    animation: fadeSlideUp .45s var(--ease) both;
}

.cart-table-head {
    background: var(--surface-alt);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 14px 20px;
}

.cart-table-head .cart-col-product { flex: 1 1 50%; }
.cart-table-head .cart-col-qty { flex: 0 0 160px; text-align: center; }
.cart-table-head .cart-col-subtotal { flex: 0 0 140px; text-align: right; }
.cart-table-head .cart-col-remove { flex: 0 0 60px; }

.cart-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    transition: opacity .2s var(--ease), background-color .2s var(--ease);
}

.cart-row:hover {
    background-color: var(--surface-hover);
}

.cart-row.removing {
    opacity: 0;
    transform: translateX(12px);
}

.cart-col-product {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.cart-item-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--brand-accent);
    font-weight: 600;
    display: block;
}

.cart-item-note {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cart-col-qty {
    flex: 0 0 160px;
    display: flex;
    justify-content: center;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--surface-alt);
    border: none;
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s var(--ease), transform .1s var(--ease);
}

.qty-btn:hover {
    background: var(--surface-hover);
}

.qty-btn:active {
    transform: scale(.88);
}

.qty-input {
    width: 46px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
    text-align: center;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-col-subtotal {
    flex: 0 0 140px;
    text-align: right;
    font-weight: 700;
    color: #d9364a;
}

.cart-col-remove {
    flex: 0 0 60px;
    text-align: center;
}

.remove-from-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}

.remove-from-cart:active {
    transform: scale(.85);
}

.remove-from-cart:hover {
    background: #fdeaec;
    color: #d9364a;
}

.cart-summary {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    animation: fadeSlideUp .5s var(--ease) both;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-secondary);
}

.cart-summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    padding-top: 14px;
}

.cart-summary-total .js-cart-total {
    color: var(--brand-accent);
}

.cart-summary-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cart-summary-actions > * {
    flex: 1 1 auto;
}

.cart-empty {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 60px 20px;
    color: var(--text-muted);
    animation: fadeSlideUp .4s var(--ease) both;
}

.cart-empty i {
    color: var(--border-color);
    margin-bottom: 16px;
}

/* Mobile: stack cart rows as cards */
@media only screen and (max-width: 767px) {
    .cart-table-head {
        display: none;
    }

    .cart-row {
        flex-wrap: wrap;
        position: relative;
        padding: 16px;
    }

    .cart-col-product {
        flex: 1 1 100%;
        margin-bottom: 12px;
    }

    .cart-col-qty {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .cart-col-subtotal {
        flex: 1 1 auto;
        text-align: right;
    }

    .subtotal-label {
        display: block;
        font-size: .75rem;
        color: #999;
        font-weight: 400;
    }

    .cart-col-remove {
        position: absolute;
        top: 12px;
        right: 12px;
        flex: 0 0 auto;
    }

    .cart-summary-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Product catalogue cards (/newproducts grid — React-rendered, CSS-only
   restyle since the compiled bundle can't be rebuilt in this environment)
   ========================================================================== */

.courses_box.radius_all_10 {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    animation: fadeSlideUp .4s var(--ease) both;
}

.courses_box.radius_all_10:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.courses_box .courses_img {
    background: var(--surface-alt);
    padding: 14px;
    text-align: center;
    position: relative;
}

.courses_box .courses_img img {
    border-radius: 10px;
}

.courses_box .pr_flash {
    left: auto;
    right: 14px;
    top: 14px;
    background: linear-gradient(135deg, #39b500, #2e9600);
    box-shadow: 0 2px 8px rgba(57, 181, 0, .35);
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 20px;
    padding: 4px 12px;
}

.courses_box .caption {
    padding: 18px 18px 20px;
}

.courses_box .caption table thead th h4 {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.courses_box .caption table {
    margin-bottom: 14px;
}

.courses_box .caption table tbody tr {
    background: transparent !important;
}

.courses_box .caption table tbody th,
.courses_box .caption table tbody td {
    padding: 7px 0;
    font-size: .85rem;
    border: none;
}

.courses_box .caption table tbody th {
    width: 34%;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .04em;
    vertical-align: top;
    padding-top: 9px;
}

.courses_box .caption table tbody td {
    color: var(--text-primary);
    font-weight: 500;
}

.courses_box .caption table tbody tr:last-child {
    background: var(--price-highlight-bg) !important;
    border-radius: 10px;
}

.courses_box .caption table tbody tr:last-child th,
.courses_box .caption table tbody tr:last-child td {
    padding: 12px 10px;
}

.courses_box .caption table tbody tr:last-child th {
    color: var(--brand-accent);
    text-transform: none;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0;
}

.courses_box .caption table tbody tr:last-child h5 {
    margin: 0;
    color: var(--brand-accent);
    font-size: 1.3rem;
    font-weight: 800;
}

.courses_box .caption table tbody tr:last-child h5 small {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 500;
}

.courses_box .btn-holder {
    margin: 0;
}

.courses_box .btn-holder .btn {
    background: linear-gradient(135deg, var(--brand-accent-2), var(--brand-accent));
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .85rem;
    border-radius: 30px;
    padding: 12px 0;
    box-shadow: 0 6px 16px rgba(244, 47, 84, .3);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.courses_box .btn-holder .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244, 47, 84, .4);
    color: #fff;
}

.courses_box .btn-holder .btn::before {
    font-family: "FontAwesome";
    content: "\f217";
    margin-right: 8px;
}

/* ---------- Wishlist heart + quick-view trigger (injected via JS) ---------- */
.card-action-btn {
    position: absolute;
    bottom: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    opacity: .85;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 2;
    transition: transform .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease), opacity .15s var(--ease);
}

/* Extend the actual clickable/tappable region beyond the visible circle
   (44px visible + 8px hit-slop on each side = 60px effective target). */
.card-action-btn::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.card-action-btn:hover {
    transform: scale(1.08);
    color: var(--brand-accent);
    opacity: 1;
}

.wishlist-heart-btn {
    right: 14px;
}

.wishlist-heart-btn.active {
    color: var(--brand-accent);
    opacity: 1;
}

.wishlist-heart-btn.active i {
    animation: pulseHeart .4s var(--ease);
}

.quick-view-btn {
    right: 74px;
}

/* ---------- Wishlist nav item ---------- */
.js-wishlist-count {
    background: var(--brand-accent);
}

/* ---------- Premium modal (quick view / order review) ---------- */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn .2s var(--ease) both;
}

.premium-modal-overlay.show {
    display: flex;
}

.premium-modal {
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeSlideUp .3s var(--ease) both;
}

.premium-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--surface-alt);
    color: var(--text-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background-color .15s var(--ease), transform .15s var(--ease);
}

.premium-modal-close:hover {
    background: var(--surface-hover);
    transform: rotate(90deg);
}

.premium-modal-body {
    padding: 28px;
}

/* Quick view */
.qv-body {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.qv-image {
    flex: 1 1 220px;
    background: var(--surface-alt);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-image img {
    max-width: 100%;
    border-radius: 8px;
}

.qv-info {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
}

.qv-info h3 {
    font-family: var(--font-heading);
    margin: 0 0 12px;
    padding-right: 30px;
}

.qv-meta {
    margin-bottom: 16px;
}

.qv-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .875rem;
}

.qv-meta-row span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .04em;
    font-weight: 600;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 20px;
}

.qv-price small {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.qv-add-to-cart {
    margin-top: auto;
}

/* Order review */
#review-title {
    font-family: var(--font-heading);
    margin: 0 0 18px;
    padding-right: 30px;
}

.review-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.review-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .9rem;
}

.review-item-name {
    color: var(--text-primary);
    font-weight: 600;
}

.review-item-qty {
    color: var(--text-muted);
    font-size: .8rem;
}

.review-item-subtotal {
    color: var(--brand-accent);
    font-weight: 700;
    white-space: nowrap;
}

.review-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.2rem;
    font-weight: 800;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.review-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-actions > * {
    flex: 1 1 auto;
}

@media only screen and (max-width: 575px) {
    .premium-modal-body {
        padding: 22px 18px;
    }

    .qv-body {
        flex-direction: column;
    }
}

/* ==========================================================================
   Product catalogue: list view rows (/newproducts, list-mode toggle)
   Scoped to #products_page's exact React-rendered structure — CSS-only,
   same rebuild constraint as the grid cards above.
   ========================================================================== */

#products_page .row > div.d-flex.flex-wrap.align-items-center {
    padding: 22px 14px;
    border-radius: 14px;
    gap: 10px;
    transition: background-color .2s var(--ease);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center:hover {
    background: var(--surface-alt);
}

#products_page .row > div.col-sm-12 > hr {
    border-top: 1px solid var(--border-color);
    opacity: 1;
    margin: 4px 0;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(1) img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-alt);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(2) {
    min-width: 280px;
    flex-grow: 1;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(2) p:first-child {
    margin-bottom: 8px;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(2) p:first-child b {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(2) p:last-child span {
    font-size: 1rem;
    color: var(--text-secondary);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(4) {
    text-align: right;
    min-width: 160px;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(4) p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-accent);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(4) strong {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(4) del {
    font-size: .85rem;
    color: var(--text-muted);
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(5) .btn {
    background: linear-gradient(135deg, var(--brand-accent-2), var(--brand-accent));
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: 30px;
    padding: 16px 34px;
    box-shadow: 0 6px 16px rgba(244, 47, 84, .3);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
    white-space: nowrap;
}

#products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(5) .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244, 47, 84, .4);
    color: #fff;
}

@media only screen and (max-width: 767px) {
    #products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(1) img {
        width: 110px;
        height: 110px;
    }

    #products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(4) {
        text-align: left;
        margin-top: 8px;
    }

    #products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(5) {
        width: 100%;
        margin-top: 8px;
    }

    #products_page .row > div.d-flex.flex-wrap.align-items-center > div:nth-child(5) .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Toast notifications (add/remove cart confirmations)
   ========================================================================== */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3500;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 340px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--whatsapp-green);
    animation: toastIn .3s var(--ease) both;
    cursor: pointer;
    pointer-events: auto;
}

.toast.toast-removing {
    animation: toastOut .22s var(--ease) both;
}

.toast.toast-removed {
    border-left-color: var(--text-muted);
}

.toast.toast-error {
    border-left-color: var(--brand-accent);
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--whatsapp-green);
    flex-shrink: 0;
}

.toast.toast-removed .toast-icon {
    color: var(--text-muted);
}

.toast.toast-error .toast-icon {
    color: var(--brand-accent);
}

.toast-message {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); max-height: 100px; margin-top: 0; }
    to { opacity: 0; transform: translateX(30px); }
}

@media only screen and (max-width: 575px) {
    #toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* ==========================================================================
   Category / brand picker chips (/newproducts — React-rendered).
   Was rendering one link per line, wasting a huge amount of vertical
   space on mobile; turned into a compact wrapped pill/chip row instead.
   ========================================================================== */

#products_page {
    width: 100% !important;
    max-width: 100% !important;
}

#products_page .d-flex.justify-content-center.flex-row.flex-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    gap: 8px 10px;
    padding: 4px 12px;
}

#products_page .d-flex.justify-content-center.flex-row.flex-wrap > a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}

#products_page .d-flex.justify-content-center.flex-row.flex-wrap > a:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

@media only screen and (max-width: 575px) {
    #products_page .d-flex.justify-content-center.flex-row.flex-wrap {
        gap: 6px 8px;
    }

    #products_page .d-flex.justify-content-center.flex-row.flex-wrap > a {
        padding: 7px 11px !important;
        font-size: .72rem;
    }
}
