/* ==========================================
   PRODUCT CARD STYLES
   ========================================== */

.product-item {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
}

.product-img img {
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

.product-action {
    padding: 0.5rem;
}

.product-action .btn-square {
    width: clamp(2rem, 8vw, 2.5rem);
    height: clamp(2rem, 8vw, 2.5rem);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem;
    font-size: clamp(0.75rem, 2vw, 1rem);
    transition: all 0.3s ease;
}

.product-action .btn-square:hover {
    background-color: #1f2b6c !important;
    border-color: #1f2b6c !important;
    color: white !important;
    transform: scale(1.1);
}

.product-action .btn.active {
    background-color: #1f2b6c !important;
    border-color: #1f2b6c !important;
    color: white !important;
}

.product-action .btn.active i {
    color: white !important;
}

/* Product Info Responsive Typography */
.product-name {
    font-size: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.4;
    word-break: break-word;
}

.product-price {
    font-size: clamp(0.875rem, 2.5vw, 1.5rem);
    margin-bottom: 0;
}

.product-discount-price {
    font-size: clamp(0.7rem, 1.8vw, 0.875rem);
    margin-bottom: 0;
}

    /* Live Search Styles */
    .amz-live-search-wrapper {
        position: relative;
        /* This wrapper (not the inner .amz-search-bar form) is the flex child
           of .amz-header-top, so it must grow/center. The form itself is then
           sized via flex-basis and centered inside the wrapper, which keeps
           the search bar centered between the logo and the nav cluster. */
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .live-search-input-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .live-search-input-container .amz-search-input {
        width: 100%;
        padding-right: 130px;
        box-sizing: border-box;
    }

    .live-search-results {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        z-index: 1050;
        background: #ffffff;
        border: 1px solid #e2e2e2;
        border-top: none;
        border-radius: 0 0 0.35rem 0.35rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        max-height: 420px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .live-search-result-item {
        transition: background-color 0.2s ease;
        text-decoration: none;
    }

    .live-search-result-item:hover {
        background: #fff7e6;
    }

    .live-search-result-image {
        width: 55px;
        height: 55px;
        border-radius: 0.35rem;
        overflow: hidden;
        flex-shrink: 0;
        background: #f7f7f7;
    }

    .live-search-result-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .live-search-result-info {
        min-width: 0;
    }

    .live-search-result-name {
        font-size: 0.95rem;
        font-weight: 600;
        color: #222222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .live-search-result-price {
        font-size: 0.85rem;
        color: #555555;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .live-search-spinner {
        position: absolute;
        right: 44px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

    .live-search-clear-btn {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #ddd;
        border-radius: 50%;
        color: #6c757d;
        font-size: 0.85rem;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s, color 0.2s;
    }

    .live-search-clear-btn:hover {
        background: #f8f9f9;
        color: #333;
    }

    .live-search-no-results {
        min-height: 120px;
    }

    .live-search-results-footer {
        padding: 0.6rem 0.75rem;
        background: #f8f9fa;
        border-top: 1px solid rgba(0,0,0,0.04);
        position: sticky;
        bottom: 0;
        z-index: 1060;
    }

    .js-live-search-view-all {
        display: block;
        width: 100%;
        text-align: center;
    }

    .js-live-search-view-all.btn-outline-warning {
        color: #212529 !important;
        border-color: #f59e0b !important;
        background: #ffc107 !important;
    }

    .js-live-search-view-all.btn-outline-warning:hover {
        color: #212529 !important;
        background: #ffca2c !important;
        border-color: #ffca2c !important;
    }

    /* Dark mode for live search — use data-theme attribute so the site
       theme toggle controls appearance, not the OS preference. */
    [data-theme="dark"] .live-search-results {
        background: #1f1f1f;
        border-color: #444;
        color: #e8e8e8;
    }

    [data-theme="dark"] .live-search-result-item {
        color: #e8e8e8;
    }

    [data-theme="dark"] .live-search-no-results {
        color: #c7c7c7;
    }

    [data-theme="dark"] .live-search-results-footer {
        background: #262626;
    }

    [data-theme="dark"] .js-live-search-view-all.btn-outline-warning {
        color: #f59e0b;
        border-color: #f59e0b;
        background: transparent;
    }

    [data-theme="dark"] .js-live-search-view-all.btn-outline-warning:hover {
        color: #fff;
        background: #f59e0b;
        border-color: #f59e0b;
    }

.product-rating-count {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    margin-left: 0.35rem;
}

.product-variant-badge {
    font-size: clamp(0.6rem, 1.3vw, 0.75rem);
    display: block;
    margin-top: 0.5rem;
}

.product-vendor-info {
    font-size: clamp(0.6rem, 1.3vw, 0.75rem);
    margin-top: 0.35rem;
}

.product-verified-badge {
    font-size: clamp(0.5rem, 1vw, 0.7rem);
    margin-left: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .product-item {
        margin-bottom: 1rem;
    }

    .product-action {
        padding: 0.35rem;
        gap: 0.25rem;
    }

    .product-action .btn-square {
        margin: 0.2rem;
    }
}

/* Tablet and Up */
@media (min-width: 768px) {
    .product-item {
        border-radius: 0.75rem;
    }
}

/* ==========================================
   TYPOGRAPHY — FONT OVERRIDES
   ========================================== */

:root {
    --font-heading: 'Space Grotesk', 'Instrument Sans', sans-serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --shop-primary: #1f2b6c;
    --shop-primary-dark: #16205a;
    --shop-accent: #1f2b6c;
    --shop-text: #1a1d23;
    --shop-muted: #6b7280;
    --shop-border: #e5e7eb;
    --shop-bg: #f9fafb;
    --shop-sidebar-bg: #ffffff;
    --shop-radius: 12px;
    --shop-shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shop-shadow-md: 0 4px 20px rgba(0,0,0,.09);
    --shop-shadow-lg: 0 12px 40px rgba(0,0,0,.13);
    --shop-transition: .22s ease;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.navbar-brand,
.dropdown-item,
.btn,
.amz-text-bold,
.amz-bottom-item,
.prod-title,
.shop-filter-label,
.fs-hero-title,
.fs-section-title,
.fs-card-title,
.vendors-shop-name,
.home-vendor-name,
.home-section-title,
.section-title,
.home-cat-name,
.vendor-card-name {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: 2.15rem; font-weight: 600; letter-spacing: -0.01em; }
h2, .h2 { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
h4, .h4 { font-weight: 500; }
h5, .h5 { font-weight: 500; }
h6, .h6 { font-weight: 500; }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: -0.01em;
    color: var(--theme-accent, #1f2b6c);
}

.home-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--theme-accent, #1f2b6c);
}

p, li, span:not(.amz-text-bold):not(.prod-title),
.text-body,
.form-control,
.amz-text-small {
    font-family: var(--font-body);
}

/* Orphaned word prevention */
h1, h2, h3, h4, h5, h6,
p, .section-title, .home-section-title,
.prod-title, .card-title {
    text-wrap: pretty;
}

/* ==========================================
   GENERAL CUSTOM STYLES
   ========================================== */

/* ==========================================
   SHOP PAGE STYLES
   ========================================== */

.co-page-wrap {
    padding-top: 32px;
    padding-bottom: 56px;
}

/* ── Page body ─────────────────────────────────────────────── */
.shop-main-wrap {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* Sidebar compact layout for col-lg-2 */
@media (min-width: 992px) {
    /* Sticky sidebar: follows the user as they scroll the product grid.
       Matches the standard e-commerce pattern (Amazon, Shopify, etc.).
       The sidebar sticks to the viewport top, and if its content is
       taller than the viewport, it scrolls independently. */
    .shop-filter-sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .shop-filter-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .shop-filter-sidebar::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.15);
        border-radius: 4px;
    }
    .shop-filter-sidebar .shop-sidebar-card {
        padding: 12px;
    }
    .shop-filter-sidebar .shop-filter-group {
        margin-bottom: 12px;
    }
    .shop-filter-sidebar .shop-filter-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    .shop-filter-sidebar .shop-filter-select,
    .shop-filter-sidebar .shop-search-input {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    .shop-filter-sidebar .shop-sidebar-header {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ── Breadcrumb Bar ────────────────────────────────────────── */
.shop-breadcrumb-bar {
    background: var(--shop-bg);
    border-bottom: 1px solid var(--shop-border);
    padding: 10px 0;
}

.shop-breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.84rem;
}

.shop-breadcrumb-nav .breadcrumb-item a {
    color: var(--shop-primary-dark);
    text-decoration: none;
    transition: color var(--shop-transition);
}

.shop-breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--shop-accent);
}

.shop-breadcrumb-nav .breadcrumb-item.active {
    color: var(--shop-muted);
}

.shop-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: #c4c4c4;
}

/* ── Brand Hero ────────────────────────────────────────────── */
.shop-brand-hero {
    background: linear-gradient(135deg, #1f2b6c 0%, #3f5aa9 100%);
    padding: 28px 0;
    margin-bottom: 4px;
}

.shop-brand-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.shop-brand-hero-logo {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-brand-hero-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(31, 43, 108, 0.25);
}

.shop-brand-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}

.shop-brand-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: .5px;
}

.shop-brand-hero-desc {
    color: rgba(255,255,255,.82);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Sidebar Card ──────────────────────────────────────────── */
.shop-sidebar-card {
    background: var(--shop-sidebar-bg);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-sm);
    padding: 0 0 16px;
    overflow: hidden;
}

.shop-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 4px;
}

/* ── Filter Groups ─────────────────────────────────────────── */
.shop-filter-group {
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
}

.shop-filter-group:last-child {
    border-bottom: none;
}

.shop-filter-group--inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.shop-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--shop-muted);
    margin-bottom: 6px;
}

/* ── Search Input ──────────────────────────────────────────── */
.shop-search-wrap {
    position: relative;
}

.shop-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.8rem;
    pointer-events: none;
}

.shop-search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    font-size: 0.86rem;
    background: var(--shop-bg);
    color: var(--shop-text);
    outline: none;
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-search-input:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(31,43,108,.18);
    background: #fff;
}

/* ── Filter Select ─────────────────────────────────────────── */
.shop-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    font-size: 0.86rem;
    background: var(--shop-bg);
    color: var(--shop-text);
    outline: none;
    appearance: auto;
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-filter-select:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(31,43,108,.18);
    background: #fff;
}

/* The shop filters are rendered by Select2, which hides the native
   .shop-filter-select and draws its own box + option list. Make that UI match
   the native filter design in light mode… */
body.shop-page .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    background: var(--shop-bg);
    font-size: 0.86rem;
}
body.shop-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
    color: var(--shop-text);
}
body.shop-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
body.shop-page .select2-container--default .select2-results__option {
    color: var(--shop-text);
}
/* select2's default highlight is blue — keep the fill, force white text so
   the option stays readable (the shop text color is too dark on it). */
body.shop-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #fff !important;
}

/* …and apply the full theme in dark mode (the option list previously stayed
   white with light text — unreadable). Mirrors the account-page treatment.
   Note: class-based --selected/--highlighted rather than [aria-selected]:
   select2 4.1 sets aria-selected="true" on the keyboard-active option too,
   so an aria-only rule would paint the highlight with the "selected" style. */
[data-theme="dark"] body.shop-page .select2-container--default .select2-selection--single,
[data-theme="dark"] body.shop-page .select2-dropdown {
    background: var(--theme-surface-raised) !important;
    border-color: var(--theme-border-strong) !important;
    color: var(--theme-text-strong) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-theme="dark"] body.shop-page .select2-container--default .select2-results__option {
    color: var(--theme-text-strong) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--theme-text-subtle) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--theme-text-muted) transparent transparent transparent !important;
}
[data-theme="dark"] body.shop-page .select2-container--default.select2-container--focus .select2-selection--single,
[data-theme="dark"] body.shop-page .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--theme-accent) !important;
    background: var(--theme-surface-raised) !important;
    box-shadow: 0 0 0 3px var(--theme-focus) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-results__option.select2-results__option--selected {
    background: var(--theme-surface-muted) !important;
    color: var(--theme-text-strong) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-results__option.select2-results__option--highlighted {
    background: var(--theme-accent) !important;
    color: var(--theme-on-primary) !important;
}
[data-theme="dark"] body.shop-page .select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--theme-surface-muted) !important;
    color: var(--theme-text-strong) !important;
    border-color: var(--theme-border-strong) !important;
}

/* ── Price Range ───────────────────────────────────────────── */
.shop-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-price-field {
    position: relative;
    flex: 1;
}

.shop-price-symbol {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #aaa;
}

.shop-price-input {
    width: 100%;
    padding: 7px 8px 7px 26px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    font-size: 0.84rem;
    background: var(--shop-bg);
    color: var(--shop-text);
    outline: none;
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-price-input:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(31,43,108,.18);
    background: #fff;
}

.shop-price-divider {
    color: #ccc;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Toggle Switches ───────────────────────────────────────── */
.shop-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--shop-text);
    margin: 0;
    cursor: pointer;
}

.shop-toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.shop-toggle-icon--sale {
    background: linear-gradient(135deg, #ff6f00, #e65100);
    color: #fff;
}

.shop-toggle-icon--stock {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.shop-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.shop-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.shop-toggle-slider {
    position: absolute;
    inset: 0;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--shop-transition);
}

.shop-toggle-slider::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform var(--shop-transition);
}

.shop-toggle-input:checked + .shop-toggle-slider {
    background: var(--shop-primary);
}

.shop-toggle-input:checked + .shop-toggle-slider::after {
    transform: translateX(18px);
}

/* ── Reset / Actions ───────────────────────────────────────── */
.shop-filter-actions {
    padding: 12px 18px 4px;
}

.shop-filter-actions--top {
    padding: 0 18px 8px;
    border-bottom: 1px solid var(--shop-border);
    margin-bottom: 4px;
}

.shop-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--shop-border);
    background: #fff;
    color: var(--shop-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--shop-transition);
    gap: 6px;
}

.shop-reset-btn:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary-dark);
    background: #fdf5f4;
    text-decoration: none;
}

/* ── Mobile Sidebar ────────────────────────────────────────── */
.shop-filter-overlay {
    display: none;
}

.mobile-filter-header {
    display: none;
}

.shop-sidebar-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--shop-muted);
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--shop-transition);
}

.shop-sidebar-close:hover {
    background: #f3f4f6;
}

@media (max-width: 991.98px) {
    .shop-filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 88vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        z-index: 1070;
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transition: left .3s ease-in-out;
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
        padding: 0 !important;
        border-radius: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }

    .shop-filter-sidebar.show {
        left: 0;
    }

    .shop-sidebar-card {
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 80px;
    }

    .shop-filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.48);
        z-index: 1040;
        display: none;
        backdrop-filter: blur(2px);
    }

    .shop-filter-overlay.show {
        display: block;
    }

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid var(--shop-border);
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-filter-header h5 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--shop-text);
    }
}

/* ── Results Bar ───────────────────────────────────────────── */
.shop-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shop-shadow-sm);
    gap: 12px;
}

.shop-results-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-results-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-results-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-results-text {
    font-size: 0.88rem;
    color: var(--shop-muted);
    font-weight: 500;
}

.shop-results-range {
    font-size: 0.82rem;
    color: var(--shop-muted);
}

.shop-mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--shop-border);
    background: #fff;
    color: var(--shop-text);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--shop-transition);
}

.shop-mobile-filter-btn:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary-dark);
    background: #fdf5f4;
}

/* ── Empty State ───────────────────────────────────────────── */
.shop-empty-state {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-sm);
}

.shop-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.shop-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--shop-text);
    margin-bottom: 6px;
}

.shop-empty-desc {
    font-size: 0.9rem;
    color: var(--shop-muted);
    margin-bottom: 20px;
}

.shop-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--shop-transition);
    box-shadow: 0 4px 12px rgba(31,43,108,.25);
}

.shop-empty-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31,43,108,.3);
}

/* ── Product List Area ─────────────────────────────────────── */
#product-list-area {
    position: relative;
    min-height: 400px;
}

/* ── Attribute Filters ─────────────────────────────────────── */
.attr-filter-container {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.attr-filter-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.attr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
}

.attr-checkbox-group::-webkit-scrollbar { width: 4px; }
.attr-checkbox-group::-webkit-scrollbar-track { background: #f1f1f1; }
.attr-checkbox-group::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.attr-checkbox-input { display: none; }

.attr-checkbox-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1.5px solid var(--shop-border);
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    background: #fff;
    color: #555;
    transition: all var(--shop-transition);
    user-select: none;
    margin-bottom: 0;
    line-height: 1.4;
}

.attr-checkbox-label:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary-dark);
    background: #fdf5f4;
}

.attr-checkbox-input:checked + .attr-checkbox-label {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31,43,108,.3);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    color: #111;
    background-color: #f5f5f5;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.pagination .page-link:hover:not(.disabled) {
    color: #fff;
    background-color: #1f2b6c;
    border-color: #1f2b6c;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #1f2b6c;
    border-color: #1f2b6c;
    box-shadow: 0 2px 4px rgba(31, 43, 108, 0.22);
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-link i {
    margin: 0 4px;
}

/* ── Shop product grid — tighter card gaps ─────────────────── */
.shop-product-grid > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 992px) {
    .shop-product-grid > [class*='col-'] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ── Shop grid tightening ──────────────────────────────────── */
.shop-product-grid > [class*='col-'] {
    /* keep equal gutters across breakpoints — overridden per breakpoint below */
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Give cards a touch more breathing room on tablets */
    .shop-main-wrap {
        padding-top: 18px;
    }
}
@media (max-width: 575.98px) {
    .shop-product-grid > [class*='col-'] {
        padding-left: 5px;
        padding-right: 5px;
        padding-bottom: 10px !important;
    }

    .shop-main-wrap {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .shop-results-bar {
        flex-wrap: wrap;
        padding: 9px 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .shop-results-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }
    .shop-results-range {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .shop-results-text {
        font-size: 0.8rem;
    }
    .shop-results-num {
        min-width: 28px;
        padding: 1px 6px;
        font-size: 0.74rem;
    }
    .shop-mobile-filter-btn {
        padding: 6px 11px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    /* Breadcrumb + brand hero — tighten vertical rhythm on phones */
    .shop-breadcrumb-bar {
        padding: 7px 0;
    }
    .shop-breadcrumb-bar .breadcrumb {
        font-size: 0.78rem;
    }
    .shop-brand-hero {
        padding: 18px 0;
    }
    .shop-brand-hero-inner {
        gap: 12px;
    }
    .shop-brand-hero-title {
        font-size: 1.2rem;
    }
    .shop-brand-hero-desc {
        font-size: 0.84rem;
    }

    /* Product card — make 2-up readable on narrow viewports.
       Uses higher specificity ( .shop-product-grid ) to outrank the base
       .prod-content rule defined later in this file (~5787). */
    .shop-product-grid .modern-prod-card {
        border-radius: 11px;
    }
    .shop-product-grid .prod-content {
        padding: 10px 10px 12px !important;
    }
    .shop-product-grid .prod-title {
        font-size: 0.82rem !important;
        line-height: 1.32 !important;
        min-height: 30px !important;
        margin: 3px 0 6px !important;
    }
    .shop-product-grid .prod-vendor-row {
        font-size: 0.66rem !important;
        min-height: 14px !important;
    }
    .shop-product-grid .prod-rating {
        font-size: 0.66rem !important;
    }
    .shop-product-grid .rating-count,
    .shop-product-grid .sold-count {
        font-size: 0.66rem !important;
    }
    .shop-product-grid .prod-variants {
        margin-bottom: 4px !important;
    }
    .shop-product-grid .variants-badge {
        font-size: 0.63rem !important;
        padding: 2px 6px !important;
    }
    .shop-product-grid .prod-price-row {
        margin-top: 5px !important;
        gap: 4px !important;
    }
    .shop-product-grid .price-display {
        font-size: 0.92rem !important;
    }
    .shop-product-grid .original-price {
        font-size: 0.72rem !important;
    }
    .shop-product-grid .prod-badge {
        font-size: 0.52rem !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
    }
    .shop-product-grid .prod-badge-container {
        top: 6px !important;
        right: 6px !important;
    }
    .shop-product-grid .prod-wishlist-overlay {
        top: 6px !important;
        left: 6px !important;
    }
    .shop-product-grid .prod-wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.73rem !important;
    }
    /* Filter sidebar content — keep Price row from overflowing */
    .shop-price-input {
        font-size: 0.8rem;
    }

    /* Pagination must never push the page wider than the viewport */
    .shop-pagination-wrap {
        flex-wrap: wrap;
        padding: 0 8px;
        overflow: hidden;
    }

    .shop-pagination-wrap .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }

    .shop-pagination-wrap .page-link {
        padding: 6px 9px;
        min-width: 34px;
        font-size: 0.82rem;
    }

    /* Keep only the essential links on phones so the pagination fits on one
       line: prev, first page, the current page ±1, the last page and next.
       All items are hidden first, then each kept position is restored with a
       higher-specificity rule (the :has() one brings back the link right
       before the active page, so mid-list users still see both neighbours).
       Desktop (≥576px) keeps the full window from onEachSide(). */
    .shop-pagination-wrap .page-item {
        display: none;
    }
    .shop-pagination-wrap .page-item:first-child,
    .shop-pagination-wrap .page-item:nth-child(2),
    .shop-pagination-wrap .page-item:nth-last-child(2),
    .shop-pagination-wrap .page-item:last-child,
    .shop-pagination-wrap .page-item.active,
    .shop-pagination-wrap .page-item.active + .page-item,
    .shop-pagination-wrap .page-item:has(+ .page-item.active) {
        display: block;
    }
}
/* Ultra-small phones (iPhone SE 320-374) — extra compact */
@media (max-width: 374.98px) {
    .shop-product-grid > [class*='col-'] {
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-bottom: 8px !important;
    }
    .shop-product-grid .prod-content {
        padding: 8px 8px 10px !important;
    }
    .shop-product-grid .prod-title {
        font-size: 0.78rem !important;
        min-height: 28px !important;
    }
    .shop-product-grid .price-display {
        font-size: 0.84rem !important;
    }
    .shop-results-bar {
        padding: 8px 9px;
    }
    .shop-results-text {
        display: none; /* keep only badge + count, saves line */
    }
    .shop-mobile-filter-btn span {
        display: none; /* icon-only filter button on <375 */
    }
    .shop-mobile-filter-btn {
        padding: 7px 11px;
        min-width: 38px;
        justify-content: center;
    }
}
@media (max-width: 359.98px) {
    /* On the narrowest viewports 2-up becomes extremely tight.
       Keep 2-up but reduce chrome further. */
    .shop-product-grid .prod-title {
        font-size: 0.76rem !important;
    }
    .shop-product-grid .price-display {
        font-size: 0.82rem !important;
    }
    .shop-product-grid .prod-vendor-row,
    .shop-product-grid .prod-rating {
        font-size: 0.62rem !important;
    }
}
/* Temporary single-column fallback for very small screens if cards
   still feel cramped — uncomment to force 1 per row on <360.
@media (max-width: 359.98px) {
    .shop-product-grid > [class*='col-'] { flex: 0 0 100%; max-width: 100%; }
    .modern-prod-card { flex-direction: row; }
    .prod-image-wrap { width: 42%; padding-top: 42%; flex-shrink: 0; }
    .prod-content { flex: 1; min-width: 0; }
}
*/

/* ==========================================
   FRONTEND VENDORS PAGE
   ========================================== */

.vendors-hero-box {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #1f2b6c 0%, #3f5aa9 100%);
    color: #fff;
}

.vendors-hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.4rem;
}

.vendors-hero-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.vendors-hero-subtitle {
    max-width: 680px;
    opacity: 0.95;
}

.vendors-hero-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vendors-hero-stat-item {
    min-width: 120px;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
}

.vendors-hero-stat-item small {
    display: block;
    color: #f4f4f4;
}

.vendors-hero-stat-item strong {
    font-size: 1.1rem;
    color: #fff;
}

.vendors-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 39, 75, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.vendors-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(24, 39, 75, 0.14);
}

.vendors-card-top {
    background: linear-gradient(160deg, #f7f9ff 0%, #eef3ff 60%, #ffe8d8 100%);
    padding: 1rem;
}

.vendors-logo-wrap {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(31, 43, 108, 0.12);
}

.vendors-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendors-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #3f5aa9;
}

.vendors-badges {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vendors-card-body {
    padding: 1rem;
}

.vendors-shop-name {
    font-weight: 700;
    color: #1d2330;
}

.vendors-owner-name {
    color: #6c757d;
    font-size: 0.85rem;
}

.vendors-meta-list {
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #4e5565;
}

.vendors-meta-list i {
    width: 14px;
    margin-right: 0.25rem;
    color: #3f5aa9;
}

.vendors-description {
    color: #697180;
    font-size: 0.86rem;
    min-height: 42px;
}

.vendors-empty-box {
    border: 1px dashed #d5d9e1;
    border-radius: 12px;
    padding: 2rem;
    background: #fafbff;
}

@media (max-width: 767.98px) {
    .vendors-hero-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendors-hero-stats {
        justify-content: flex-start;
        width: 100%;
    }

    .vendors-hero-stat-item {
        min-width: 46%;
    }
}

.vendors-toolbar .form-control {
    border-radius: 10px;
    min-height: 48px;
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.vendors-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vendors-chip {
    border: 1px solid rgba(17, 24, 39, 0.14);
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.vendors-chip:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.vendors-chip.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

@media (max-width: 767.98px) {
    .vendors-chip-wrap {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .vendors-chip {
        white-space: nowrap;
    }
}

/* ==========================================
   HOMEPAGE FEATURED VENDORS
   ========================================== */

.home-vendor-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 39, 75, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(24, 39, 75, 0.14);
}

.home-vendor-top {
    background: linear-gradient(160deg, #f7f9ff 0%, #eef3ff 60%, #ffe8d8 100%);
    padding: 1rem;
}

.home-vendor-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(31, 43, 108, 0.12);
}

.home-vendor-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-vendor-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #3f5aa9;
}

.home-vendor-badges {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.home-vendor-body {
    padding: 1rem;
}

.home-vendor-name {
    font-weight: 700;
    color: #1d2330;
}

.home-vendor-meta {
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #4e5565;
}

.home-vendor-meta i {
    width: 14px;
    margin-right: 0.25rem;
    color: #3f5aa9;
}

/* ==========================================
   AMAZON HEADER STYLES
   ========================================== */
.amz-header {
    background-color: var(--amz-header-bg, #0f172a);
    color: #ffffff;
}
.amz-header a {
    color: #ffffff;
    text-decoration: none;
}
.amz-header-top {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    min-height: 54px;
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 20;
}
.amz-nav-belt {
    display: flex;
    align-items: center;
    /* Auto margins push the side clusters to the edges and split the remaining
       space equally, so the search bar stays centred between them instead of
       sitting off-centre. Logical properties keep this mirrored in RTL (logo
       to the right, nav cluster to the left). */
    margin-inline-end: auto;
}
.amz-logo {
    margin-right: 20px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.amz-logo-img {
    display: block;
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.amz-logo-dark {
    display: none;
}

[data-theme="dark"] .amz-logo-light {
    display: none;
}

[data-theme="dark"] .amz-logo-dark {
    display: block;
}

.amz-logo:hover {
    border-color: rgba(255,255,255,0.4);
}
.amz-search-bar {
    display: flex;
    flex: 0 1 600px;
    max-width: 600px;
    min-width: 280px;
    margin: 0;
    height: 40px;
    align-items: center;
}
.amz-search-input {
    flex-grow: 1;
    border: none;
    padding: 0 10px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    outline: none;
    color: #000;
    background: #ffffff;
    font-size: 0.95rem;
    line-height: 1.3;
}
.amz-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--amz-search-btn-bg, #1f2b6c);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s;
    height: 100%;
    min-width: 52px;
}
.amz-search-btn:hover {
    background-color: var(--amz-search-btn-hover, #16205a);
}
.amz-nav-right {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
}
.amz-nav-item {
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5px;
    line-height: 1.2;
}
.amz-nav-item:hover {
    border-color: rgba(255,255,255,0.3);
}
.amz-text-small {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.amz-text-bold {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}
.amz-cart {
    display: flex;
    align-items: flex-end;
    position: relative;
}
.amz-cart-count {
    position: absolute;
    top: -5px;
    left: 15px;
    color: var(--amz-cart-badge, #fbbf24);
    font-weight: 700;
    font-size: 16px;
}

.amz-header-bottom {
    position: relative;
    z-index: 10;

    background-color: var(--amz-header-bottom-bg, #1e293b);
    padding: 5px 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.amz-bottom-item {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-right: 5px;
}
.amz-bottom-item:hover {
    border-color: rgba(255,255,255,0.3);
}

.amz-sell-link {
    color: #c7d2fe !important; /* light indigo: readable on the dark category bar */
}

.amz-sell-link:hover {
    color: #fbbf24 !important;
}

.amz-signin-btn {
    background-color: #1f2b6c;
    border-color: #16205a;
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    transition: background-color 0.2s;
}

.amz-signin-btn:hover {
    background-color: #16205a;
    border-color: #16205a;
    color: #fff;
}

/* Dropdown overrides for Amazon style */
.amz-dropdown-menu {
    border-radius: 3px;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #ffffff !important;
}
.amz-dropdown-menu .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}
.amz-dropdown-menu .dropdown-item:not(.text-danger):not(.text-primary) {
    color: #333333 !important;
}
.amz-dropdown-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}
.amz-dropdown-menu .dropdown-item.text-primary {
    color: #3f5aa9 !important;
}
.amz-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: #1f2b6c !important;
}
.amz-dropdown-menu .dropdown-divider {
    border-top: 1px solid #e5e7eb;
}
.amz-dropdown-menu a:not(.dropdown-item):not(.text-primary):not(.btn) {
    color: #333333 !important;
}
.amz-dropdown-menu a.text-primary {
    color: #3f5aa9 !important;
}
.amz-dropdown-menu a.btn-warning {
    color: #212529 !important;
}
.amz-dropdown-menu div {
    color: #333333 !important;
}

/* The header menu is capped to a handful of parents (see header-v2.blade.php),
   so the panel itself stays short — no panel scroll is needed, and adding any
   overflow-y here would CLIP the absolutely-positioned flyouts at the panel
   edge. Instead each flyout is height-capped and scrolls internally, so a
   parent with hundreds of children is fully browsable without a giant panel.
   The mobile sheet (<992px) overrides with its own full-screen rules below. */
#navbar-vertical .dropdown-menu {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid #eeeeee !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Hover-expand: the app's mouseenter handler adds .show to the parent item
   only (Bootstrap adds it to the menu on click). Without this the flyout
   stays display:none when hovered — the menu must render whenever its
   parent is .show, matching Bootstrap 5's standard pattern. */
#navbar-vertical .nav-item.dropdown.show > .dropdown-menu {
    display: block;
}

/* "All Categories" footer link — the escape hatch when the menu is capped.
   Styled as a distinct footer so users see there is more to browse. */
#navbar-vertical .amz-cat-all-link {
    border-top: 1px solid #eeeeee;
    margin-top: 4px;
    font-weight: 700;
    color: var(--theme-accent, #3f5aa9);
}
#navbar-vertical .amz-cat-all-link:hover {
    color: #ff6f00;
}

#navbar-vertical .dropdown-item {
    color: #333333;
    padding: 8px 20px;
}

#navbar-vertical .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #ff6f00;
}

@media (max-width: 991px) {
    .amz-header-top {
        flex-wrap: wrap;
    }
    /* The wrapper (not the inner form) is the flex child of .amz-header-top,
       so the wrap/order rules must target it. This keeps logo + account/cart
       on the first line and drops the search bar to its own full-width line
       below — the standard mobile header layout. */
    .amz-live-search-wrapper {
        order: 3;
        width: 100%;
        margin: 10px 0 5px 0;
    }
    .amz-nav-item.d-none-mobile {
        display: none !important;
    }
}

/* ==========================================
   SMALL SCREENS (iPhone SE, 320-480px)
   ========================================== */
@media (max-width: 480px) {
    .amz-header-top {
        padding: 4px 10px;
    }
    .amz-logo {
        margin-right: 10px;
        padding: 3px 6px;
    }
    .amz-logo-img {
        max-height: 32px;
    }
    .amz-nav-item {
        padding: 6px 6px;
        margin-left: 2px;
    }
    .amz-text-small {
        font-size: 10px;
    }
    .amz-text-bold {
        font-size: 12px;
    }
    .amz-cart-count {
        font-size: 13px;
        top: -3px;
        left: 10px;
    }
    .amz-cart i {
        font-size: 24px !important;
    }
    .amz-header-bottom {
    position: relative;
    z-index: 10;

        padding: 4px 10px;
        font-size: 12px;
    }
    .amz-bottom-item {
        padding: 4px 6px;
        font-size: 12px;
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION
   ========================================== */
.amz-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    /* Leave room for the fixed bar so content (esp. the footer) is never
       hidden behind it. Checkout defines its own bar + padding. */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
        --bottom-nav-h: 53px;
    }

    .amz-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1035;
        background: var(--theme-surface, #ffffff);
        border-top: 1px solid var(--theme-border, #e4e7ec);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
        padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    }
    .amz-bottom-nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px 2px 3px;
        color: var(--theme-text-muted, #667085);
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.1;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        position: relative;
    }
    .amz-bottom-nav-item i {
        font-size: 20px;
        line-height: 1;
    }
    .amz-bottom-nav-item:hover {
        color: var(--theme-accent, #3f5aa9);
        text-decoration: none;
    }
    .amz-bottom-nav-item.active {
        color: var(--theme-accent, #3f5aa9);
    }
    .amz-bottom-nav .amz-bottom-nav-badge {
        position: absolute;
        top: 2px;
        left: calc(50% + 5px);
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 9px;
        font-size: 10px;
        font-weight: 700;
        line-height: 17px;
        text-align: center;
        box-shadow: 0 0 0 2px var(--theme-surface, #ffffff);
    }

    /* Account sheet: slides up just above the bar */
    .amz-mobile-account {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--bottom-nav-h, 53px) + env(safe-area-inset-bottom));
        z-index: 1034;
        max-height: 62dvh;
        overflow-y: auto;
        background: var(--theme-surface-raised, #ffffff);
        border-top: 1px solid var(--theme-border, #e4e7ec);
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.16);
    }
    .amz-mobile-account-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--theme-surface-muted, #f9fafc);
        border-bottom: 1px solid var(--theme-border, #e4e7ec);
        font-weight: 700;
        color: var(--theme-text-strong, #111827);
    }
    .amz-mobile-account-close {
        background: none;
        border: none;
        font-size: 24px;
        line-height: 1;
        color: var(--theme-text-muted, #667085);
        cursor: pointer;
        padding: 0 4px;
    }
    .amz-mobile-account-body {
        padding: 6px 0 8px;
    }
    .amz-mobile-account-link {
        display: block;
        width: 100%;
        padding: 11px 18px;
        color: var(--theme-text, #172033);
        font-size: 14px;
        text-align: start;
        background: none;
        border: none;
        cursor: pointer;
    }
    .amz-mobile-account-link:hover {
        background: var(--theme-surface-muted, #f9fafc);
        color: var(--theme-text-strong, #111827);
        text-decoration: none;
    }
    .amz-mobile-account-signin {
        color: var(--theme-accent, #3f5aa9);
        font-weight: 700;
    }
    .amz-mobile-account-signout {
        color: var(--theme-danger-text, #b42318);
    }
    .amz-mobile-account-divider {
        margin: 6px 18px;
        padding-top: 10px;
        border-top: 1px solid var(--theme-border, #e4e7ec);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--theme-text-muted, #667085);
    }

    /* Categories panel becomes a full-screen sheet on phones (the dropdown
       under the header is unreachable once the user scrolls). */
    #navbar-vertical {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0;
        width: 100% !important;
        max-width: 100vw;
        /* height/max-height need !important: Bootstrap's collapse runs a
           height slide animation via INLINE styles, which would otherwise
           override these and flash the sheet at its content height (~418px)
           before snapping to the full viewport. !important pins the sheet to
           100dvh so the collapse only toggles visibility cleanly. */
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto;
        /* !important so it beats the inline z-index:999 on the element and
           stays above the header's locale selector (z-index: 1050). */
        z-index: 1060 !important;
        margin: 0;
        border-radius: 0;
        border: none;
        /* Stack head + nav vertically instead of Bootstrap's row/wrap layout,
           which stretched the wrapped lines and left a big gap between the
           panel head and the first category. align-items needs !important
           to beat the element's align-items-start utility class. */
        flex-direction: column;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: stretch !important;
    }
    .amz-cat-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--theme-surface-muted, #f9fafc);
        border-bottom: 1px solid var(--theme-border, #e4e7ec);
        font-weight: 700;
        color: var(--theme-text-strong, #111827);
    }
    .amz-cat-panel-close {
        background: none;
        border: none;
        font-size: 24px;
        line-height: 1;
        color: var(--theme-text-muted, #667085);
        cursor: pointer;
        padding: 0 4px;
    }

    /* Submenus expand INSIDE the full-screen sheet. Bootstrap's dropright +
       popper places them to the right of the toggle, which lands off-screen
       (x = 100vw) in a full-width sheet — hence "arrow icon, nothing happens". */
    #navbar-vertical .nav-item.dropdown.show > .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        max-height: none;
        box-shadow: none;
        /* !important so the accent indent wins over the base rule's
           border: 1px solid #eeeeee !important (custom.css). */
        border: none !important;
        border-inline-start: 3px solid var(--theme-accent, #3f5aa9) !important;
        padding-inline-start: 8px;
        background: transparent;
    }
    #navbar-vertical .nav-item.dropdown > .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    /* Hide Bootstrap's default caret — the chevron is the indicator here. */
    #navbar-vertical .nav-link.dropdown-toggle::after {
        display: none;
    }
    #navbar-vertical .nav-item.dropdown .fa-angle-right {
        transition: transform .18s ease;
    }
    #navbar-vertical .nav-item.dropdown.show .fa-angle-right {
        transform: rotate(90deg);
    }

    /* Keep the support-chat launcher and the font-fallback notice above the
       fixed bar on phones (checkout keeps its own offsets). */
    body:not(.co-checkout-page) .oc-chat-widget {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }
    body:not(.co-checkout-page) .font-load-notice {
        inset-block-end: calc(72px + env(safe-area-inset-bottom));
    }
}

/* The bar is a phone pattern — never show it on tablet/desktop, and drop a
   leftover open sheet if the viewport is resized up. */
@media (min-width: 768px) {
    .amz-bottom-nav,
    .amz-mobile-account {
        display: none !important;
    }
}

/* Checkout has its own sticky bottom bar — keep the two from stacking. */
body.co-checkout-page .amz-bottom-nav,
body.co-checkout-page .amz-mobile-account {
    display: none !important;
}

/* ==========================================
   AMAZON FOOTER STYLES
   ========================================== */
.amz-footer {
    background-color: var(--amz-footer-bg, #1e293b);
    color: #ffffff;
    font-size: 14px;
    margin-top: 40px;
}
.amz-back-to-top {
    background-color: var(--amz-back-top-bg, #334155);
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s;
}
.amz-back-to-top:hover {
    background-color: var(--amz-back-top-hover, #475569);
    color: #ffffff;
    text-decoration: none;
}
.amz-footer-links {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.amz-footer-col {
    margin-bottom: 20px;
}
.amz-footer-col h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}
.amz-footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.amz-footer-col a:hover {
    color: #ffffff;
}
.amz-footer-bottom {
    background-color: var(--amz-footer-bottom-bg, #0f172a);
    padding: 30px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
.amz-footer-bottom a {
    color: rgba(255,255,255,0.6);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}
.amz-footer-bottom a:hover {
    color: #ffffff;
}

.amz-newsletter-input {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    width: 100%;
    color: #333;
    outline: none;
}
.amz-newsletter-btn {
    background-color: var(--amz-newsletter-btn, #1f2b6c);
    border: 1px solid var(--amz-newsletter-border, #16205a);
    border-radius: 0 4px 4px 0;
    padding: 8px 15px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.amz-newsletter-btn:hover {
    background-color: var(--amz-newsletter-hover, #16205a);
}

/* ── Footer responsive ─────────────────────────────────────── */
/* Below 992px the four columns get narrow, so the newsletter form stacks
   (input + button full-width) instead of squeezing the button label until it
   wraps — which stretched the whole row to 60px. */
@media (max-width: 991.98px) {
    #newsletter-form-v2 {
        flex-wrap: wrap;
        gap: 8px;
    }
    #newsletter-form-v2 .amz-newsletter-input,
    #newsletter-form-v2 .amz-newsletter-btn {
        width: 100%;
        border-radius: 4px;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    /* Compact the tall stacked footer: 2×2 link grid, tighter padding */
    .amz-footer-links {
        padding: 28px 0 12px;
    }
    .amz-footer-col {
        margin-bottom: 26px;
    }
    .amz-footer-col h5 {
        margin-bottom: 12px;
    }
    .amz-footer-col a {
        margin-bottom: 8px;
    }

    /* Bottom bar: let the legal links wrap evenly, tighter spacing */
    .amz-footer-bottom {
        padding: 24px 16px;
    }
    .amz-footer-bottom .mb-2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }
    .amz-footer-bottom .mb-2 a {
        margin: 0 8px;
    }
    .amz-payment-methods {
        max-height: 26px;
    }
}

/* ==========================================
   FLASH SALES FEATURES STYLES
   ========================================== */

/* ===== Flash Sales List Page ===== */
.fs-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.fs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 82, 82, 0.08) 0%, transparent 60%);
    animation: fs-pulse 6s ease-in-out infinite;
}
@keyframes fs-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
.fs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.fs-hero-title .fs-bolt {
    color: #ff5252;
    text-shadow: 0 0 20px rgba(255, 82, 82, 0.6);
    animation: fs-bolt-glow 2s ease-in-out infinite;
}
@keyframes fs-bolt-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 82, 82, 0.6); }
    50% { text-shadow: 0 0 40px rgba(255, 82, 82, 1), 0 0 60px rgba(255, 82, 82, 0.4); }
}
.fs-hero-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.fs-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.fs-stat-item {
    text-align: center;
}
.fs-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #febd69;
}
.fs-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Titles */
.fs-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-section-title .fs-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.fs-icon-active { background: linear-gradient(135deg, #ff5252, #ff1744); }
.fs-icon-upcoming { background: linear-gradient(135deg, #448aff, #2979ff); }
.fs-icon-ended { background: linear-gradient(135deg, #78909c, #546e7a); }

/* Flash Sale Cards */
.fs-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.fs-card-header {
    padding: 20px 24px 16px;
    position: relative;
}
.fs-card-header.active-header {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-bottom: 2px solid #ff5252;
}
.fs-card-header.upcoming-header {
    background: linear-gradient(135deg, #e8f0fe, #d4e4ff);
    border-bottom: 2px solid #448aff;
}
.fs-card-header.ended-header {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-bottom: 2px solid #9e9e9e;
}
.fs-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.fs-badge-live {
    background: #ff5252;
    color: #fff;
    animation: fs-badge-pulse 2s infinite;
}
@keyframes fs-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 82, 82, 0); }
}
.fs-badge-upcoming {
    background: #448aff;
    color: #fff;
}
.fs-badge-ended {
    background: #9e9e9e;
    color: #fff;
}
.fs-badge-featured {
    background: linear-gradient(135deg, #febd69, #f0a030);
    color: #1a1a2e;
}
.fs-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}
.fs-card-body {
    padding: 16px 24px;
    flex: 1;
}
.fs-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}
.fs-card-meta i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
}
.fs-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3e0;
    color: #e65100;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 4px;
}

/* Countdown inside cards */
.fs-card-timer {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.fs-timer-unit {
    text-align: center;
    flex: 1;
}
.fs-timer-val {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 0;
    border-radius: 8px;
    min-width: 42px;
    display: block;
}
.fs-timer-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-top: 3px;
    display: block;
}
.fs-timer-sep {
    color: #ff5252;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding-bottom: 16px;
}

/* Card Footer */
.fs-card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.fs-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.fs-btn-shop {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: #fff;
}
.fs-btn-shop:hover {
    background: linear-gradient(135deg, #ff1744, #c62828);
    color: #fff;
    text-decoration: none;
    transform: scale(1.02);
}
.fs-btn-preview {
    background: linear-gradient(135deg, #448aff, #2962ff);
    color: #fff;
}
.fs-btn-preview:hover {
    background: linear-gradient(135deg, #2979ff, #1565c0);
    color: #fff;
    text-decoration: none;
}
.fs-btn-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Button-styled links keep their white label in dark mode — the link
   catch-all would otherwise recolor them to the accent color. */
[data-theme="dark"] .fs-btn-shop,
[data-theme="dark"] .fs-btn-preview {
    color: #fff !important;
}
[data-theme="dark"] .fs-btn-shop:hover,
[data-theme="dark"] .fs-btn-preview:hover {
    color: #fff !important;
}

/* Empty state */
.fs-empty {
    text-align: center;
    padding: 60px 20px;
}
.fs-empty-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 16px;
}
.fs-empty-text {
    font-size: 1.1rem;
    color: #999;
}

/* Products preview row */
.fs-product-previews {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.fs-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    background: #f9f9f9;
}
.fs-product-more {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
}

@media (max-width: 768px) {
    .fs-hero { padding: 30px 0 25px; }
    .fs-hero-title { font-size: 1.6rem; letter-spacing: 1px; }
    .fs-hero-sub { font-size: 0.95rem; }
    .fs-stats { gap: 20px; }
    .fs-stat-num { font-size: 1.5rem; }
}

/* ===== Single Flash Sale Page ===== */
.fs-detail-banner {
    background-color: #f8f9fa;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.fs-detail-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 53, 69, 0.05);
    z-index: 0;
}
.fs-detail-banner-content {
    position: relative;
    z-index: 1;
}
.fs-detail-timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.fs-detail-timer-box {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: #dc3545;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fs-detail-timer-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: bold;
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
}
.fs-detail-timer-sep {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
    padding-bottom: 15px;
    margin: 0 8px;
}

/* ===== Product Detail Page Price Wrap ===== */
.pd-price-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 15px;
}
.pd-original-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 0;
}
.pd-discount-badge {
    font-size: 0.9rem;
}

/* ==========================================
   CART PAGE STYLES
   ========================================== */

.cart-page-wrap {
    padding-top: 24px;
    padding-bottom: 56px;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.cart-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    border-left: 4px solid transparent;
}
.cart-alert--success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}
.cart-alert--danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}
.cart-alert--warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* ── Cart section header ─────────────────────────────────────── */
.cart-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.cart-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d23;
}
.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
.cart-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}
.cart-clear-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* ── Cart table ──────────────────────────────────────────────── */
.cart-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.cart-table thead tr {
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
}
.cart-table thead th {
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    text-align: center;
}
.cart-table thead th.text-left { text-align: left; }
.cart-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .18s ease;
}
.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: #f9fafb; }
.cart-table td {
    padding: 16px 18px;
    vertical-align: middle;
    text-align: center;
    color: #374151;
}

/* Product cell */
.cart-product-cell { text-align: left !important; }
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-product-img-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.cart-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-product-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.35;
}
.cart-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #3f5aa9;
    background: #eff3ff;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Price / subtotal cells */
.cart-price-cell, .cart-subtotal-cell {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.cart-subtotal-cell { color: var(--theme-accent, #1f2b6c); font-weight: 700; }

/* Qty control */
.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px 6px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: all .2s ease;
}
.cart-qty-btn:hover {
    background: var(--theme-accent, #1f2b6c);
    color: #fff;
}
.cart-qty-num {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
}

/* Remove button */
.cart-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.cart-remove-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* ── Cart summary card ───────────────────────────────────────── */
.cart-summary-card,
.cart-coupon-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cart-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .4px;
}
.cart-summary-body {
    padding: 18px 20px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #4b5563;
    padding: 7px 0;
}
.cart-summary-row--discount { color: #16a34a; font-weight: 600; }
.cart-summary-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 10px 0;
}
.cart-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1d23;
    padding: 6px 0;
}
.cart-summary-footer {
    padding: 0 20px 18px;
}
.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(31,43,108,.28);
    gap: 8px;
}
.cart-checkout-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31,43,108,.35);
}

/* ── Coupon ──────────────────────────────────────────────────── */
.cart-coupon-body { padding: 16px 20px; }
.cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
}
.cart-coupon-code {
    font-weight: 700;
    color: #15803d;
    font-size: 0.92rem;
}
.cart-coupon-remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.cart-coupon-remove-btn:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.cart-coupon-form {
    display: flex;
    gap: 8px;
}
.cart-coupon-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.86rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cart-coupon-input:focus {
    border-color: #3f5aa9;
    box-shadow: 0 0 0 3px rgba(63,90,169,.14);
}
.cart-coupon-apply-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.cart-coupon-apply-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Cart empty state ────────────────────────────────────────── */
.cart-empty-state {
    text-align: center;
    padding: 72px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cart-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #9ca3af;
    margin: 0 auto 20px;
}
.cart-empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.cart-empty-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 22px;
}
.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(31,43,108,.25);
}
/* Button-styled link — keep white text on the navy gradient in dark mode. */
[data-theme="dark"] .cart-empty-btn,
[data-theme="dark"] .cart-empty-btn:hover {
    color: #fff !important;
}
.cart-empty-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31,43,108,.32);
}

/* ── Responsive cart ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
    }
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 10px 14px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.84rem;
    }
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #6b7280;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .cart-product-cell { display: block !important; }
    .cart-product-info { flex-direction: column; align-items: flex-start; }
}

/* ==========================================
   CHECKOUT PAGE STYLES
   ========================================== */

/* ── Section cards ───────────────────────────────────────────── */
.co-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.co-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1d23;
}
.co-section-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.co-section-sub {
    font-size: 0.78rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}
.co-section-body { padding: 20px; }

/* ── Form inputs ─────────────────────────────────────────────── */
.co-form-group { margin-bottom: 16px; }
.co-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: 6px;
}
.co-required { color: #ef4444; }
.co-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.co-input:focus {
    border-color: #3f5aa9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63,90,169,.14);
}
.co-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #f9fafb;
    color: #111827;
    outline: none;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.co-textarea:focus {
    border-color: #3f5aa9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63,90,169,.14);
}

/* ── Toggle (ship to different address) ─────────────────────── */
.co-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #374151;
    margin: 0;
    user-select: none;
}
.co-toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.co-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.co-toggle-slider {
    position: absolute;
    inset: 0;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}
.co-toggle-slider::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .2s ease;
}
.co-toggle-input:checked + .co-toggle-slider { background: #3f5aa9; }
.co-toggle-input:checked + .co-toggle-slider::after { transform: translateX(18px); }

/* ── Shipping / Payment option rows ─────────────────────────── */
.co-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    background: #fff;
}
.co-shipping-option:last-child { margin-bottom: 0; }
.co-shipping-option:hover { border-color: #93aade; background: #f7f9ff; }
.co-shipping-option--active { border-color: #3f5aa9; background: #eff3ff; }
.co-radio-input { display: none; }
.co-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s ease;
}
.co-shipping-option--active .co-radio-dot {
    border-color: #3f5aa9;
    background: #3f5aa9;
    box-shadow: inset 0 0 0 3px #fff;
}
.co-shipping-info { flex: 1; font-size: 0.88rem; }
.co-shipping-cost {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1d23;
    flex-shrink: 0;
}
.co-free-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

/* ── Order items in summary ──────────────────────────────────── */
.co-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.84rem;
}
.co-order-item:last-child { border-bottom: none; }
.co-order-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.co-order-item-name { font-weight: 600; color: #111827; }
.co-order-item-variant {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3f5aa9;
    font-size: 0.74rem;
}
.co-order-item-price {
    font-weight: 700;
    color: var(--theme-accent, #1f2b6c);
    white-space: nowrap;
    font-size: 0.88rem;
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0f172a;
    color: #e2e8f0;
    padding: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
    flex: 1;
    min-width: 240px;
}

.cookie-banner-text a {
    color: #1f2b6c;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #fbbf24;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-heading);
}

.cookie-btn-accept {
    background: #1f2b6c;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #16205a;
}

.cookie-btn-decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

@media (max-width: 640px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   GRAIN TEXTURE OVERLAY
   ========================================== */

.grain-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0.03;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ==========================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ========================================== */

.reveal,
.reveal-up,
.reveal-scale {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    transform: translateY(16px) scale(0.97);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger > .revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 420ms; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-up, .reveal-scale,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   INTERACTIVE STATES & ACCESSIBILITY
   ========================================== */

html {
    scroll-behavior: smooth;
}

/* Focus ring for all interactive elements */
:focus-visible {
    outline: 2px solid #1f2b6c;
    outline-offset: 2px;
}

.btn:focus, a:focus, button:focus, input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(31, 43, 108, 0.15);
}

/* Active/pressed feedback on buttons */
.btn:active, button:active {
    transform: scale(0.98);
}

/* Social media footer links — circular icon buttons in BOTH modes.
   Previously only footer-dark-mode.css styled them as buttons, so in light
   mode they fell back to bare stretched text icons (display:block, full
   column width). Scoped under .amz-footer-col so these beat the generic
   .amz-footer-col a rules (display:block / color / margin-bottom). The base
   rule is the shared button treatment; the dark file only overrides colors. */
.amz-footer-col .amz-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-inline-end: 6px;
    margin-bottom: 0;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.amz-footer-col .amz-social-link:hover,
.amz-footer-col .amz-social-link:focus-visible {
    background: rgba(31, 43, 108, 0.12);
    border-color: #1f2b6c;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Skip to content link (visually hidden until focused) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-accent, #1f2b6c);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    color: #fff;
    text-decoration: none;
}
/* Skip link sits on the navy bar — keep white text in dark mode too. */
[data-theme="dark"] .skip-to-content,
[data-theme="dark"] .skip-to-content:focus {
    color: #fff !important;
}

/* ==========================================
   HERO SECTION (modern full-width slider)
   ========================================== */
.hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hero-carousel .carousel-inner {
    height: 460px;
}

.hero-slide {
    position: relative;
    height: 460px;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f3f4f6;
}

.hero-slide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(9, 14, 34, 0.78) 0%,
        rgba(9, 14, 34, 0.55) 38%,
        rgba(9, 14, 34, 0.12) 68%,
        rgba(9, 14, 34, 0) 100%);
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 9%;
    max-width: 640px;
    color: #fff;
    z-index: 2;
}

.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.14);
    border: 1px solid rgba(255, 209, 102, 0.35);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-slider-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero-slider-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 28px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-btn {
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 13px 30px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.hero-btn:hover { text-decoration: none; transform: translateY(-2px); }

.hero-btn-solid {
    background: #1f2b6c;
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 43, 108, 0.35);
}
.hero-btn-solid:hover {
    background: #2d3f8f;
    color: #fff;
    box-shadow: 0 14px 28px rgba(31, 43, 108, 0.45);
}

.hero-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
}
.hero-btn-ghost:hover {
    background: #fff;
    color: var(--theme-accent, #1f2b6c);
    border-color: #fff;
}

.hero-slide-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stat-star { font-size: 0.8em; vertical-align: 2px; }

.hero-stat-label {
    font-size: 0.78rem;
    opacity: 0.78;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,0.28);
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.88);
    color: #1f2b6c;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-size: 1.05rem;
    z-index: 5;
    transition: all 0.25s ease;
}
.hero-carousel-control:hover { background: #fff; color: #1f2b6c; transform: translateY(-50%) scale(1.08); }

.hero-carousel-control--prev { left: 24px; }
.hero-carousel-control--next { right: 24px; }

.hero-carousel-indicators {
    bottom: 20px;
    left: 9%;
    right: auto;
    margin: 0;
    z-index: 5;
}
.hero-carousel-indicators li {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
    border: 0;
    margin: 0 4px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.hero-carousel-indicators li.active {
    background: #ffd166;
    width: 42px;
}

/* Hero side column: overlapping offer cards + service chips */
.hero-side-col {
    position: relative;
    z-index: 2;
}

.hero-side-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--theme-surface, #fff);
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    margin-bottom: 14px;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    color: inherit;
    text-decoration: none;
}

.hero-side-card-img {
    position: relative;
    display: block;
    height: 148px;
    overflow: hidden;
}
.hero-side-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-side-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    z-index: 1;
}

.hero-side-badge--offer {
    background: var(--theme-accent, #1f2b6c);
    box-shadow: 0 4px 12px rgba(31, 43, 108, 0.35);
}

.hero-side-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px 13px;
}

.hero-side-card-tag {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent, #1f2b6c);
}

.hero-side-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--theme-text, #111827);
}

.hero-side-card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--theme-accent, #1f2b6c);
}

.hero-side-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--theme-accent, #1f2b6c);
}

.hero-side-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 0 0 auto;
}

.hero-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--theme-text, #111827);
    background: var(--theme-surface, #fff);
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 12px;
    padding: 8px 6px;
}
.hero-chip i {
    color: var(--theme-accent, #1f2b6c);
    font-size: 1.05rem;
}

/* Side column fills the slider height exactly (no gap under the slider) */
@media (min-width: 992px) {
    .hero-side-col {
        display: flex;
        flex-direction: column;
        height: 460px;
    }
    .hero-side-card {
        flex: 1 1 0;
        min-height: 0;
    }
    .hero-side-card-img {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }
    .hero-side-card-body {
        flex: 0 0 auto;
    }
}

/* Responsive slider height */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-inner,
    .hero-slide { height: 400px; }
    .hero-slide-content { padding: 0 8%; }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-inner,
    .hero-slide { height: 360px; }
    .hero-slide-actions { gap: 10px; margin-bottom: 26px; }
    .hero-btn { padding: 11px 22px; font-size: 0.88rem; }
    .hero-slide-stats { gap: 16px; }
    .hero-carousel-control { width: 38px; height: 38px; }
    .hero-carousel-control--prev { left: 14px; }
    .hero-carousel-control--next { right: 14px; }
    .hero-side-card-img { height: 132px; }
}

/* Hero dark-mode overrides */
[data-theme="dark"] .hero-side-badge--offer {
    background: #1f2b6c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .home-slider-placeholder {
    background: linear-gradient(135deg, #1f2937, #111827);
}
[data-theme="dark"] .home-slider-placeholder h5 {
    color: var(--theme-text);
}

/* ==========================================
   OFFER BANNERS (modern rounded cards)
   ========================================== */
.offer-banner-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    margin-bottom: 30px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    text-decoration: none;
}

.offer-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.offer-banner-card:hover .offer-banner-bg { transform: scale(1.04); }

.offer-banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(9, 14, 34, 0.72) 0%,
        rgba(9, 14, 34, 0.42) 45%,
        rgba(9, 14, 34, 0.05) 75%,
        rgba(9, 14, 34, 0) 100%);
}

.offer-banner-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 7%;
    max-width: 75%;
    color: #fff;
    z-index: 2;
}

.offer-banner-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.14);
    border: 1px solid rgba(255, 209, 102, 0.35);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.offer-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.offer-banner-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: #1f2b6c;
    border-radius: 50px;
    padding: 12px 26px;
    box-shadow: 0 10px 24px rgba(31, 43, 108, 0.35);
    transition: all 0.25s ease;
}
.offer-banner-card:hover .offer-banner-btn {
    background: #2d3f8f;
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .offer-banner-card { height: 230px; }
    .offer-banner-content { max-width: 85%; }
    .offer-banner-btn { padding: 10px 20px; font-size: 0.86rem; }
}

/* Vendor card visit button */
.vendor-visit-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 0.84rem;
    background: var(--theme-accent, #1f2b6c); color: #fff; text-decoration: none;
    transition: all 0.2s ease;
}
.vendor-visit-btn:hover {
    background: #3f5aa9; color: #fff; text-decoration: none;
}

/* ==========================================
   GLOBAL THEME SYSTEM (LIGHT / DARK)
   ========================================== */

:root {
    --theme-bg: #f6f7fb;
    --theme-surface: #ffffff;
    --theme-surface-2: #f9fafc;
    --theme-text: #111827;
    --theme-text-muted: #6b7280;
    --theme-border: #e5e7eb;
    --theme-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
    --theme-bg: #0f172a;
    --theme-surface: #111827;
    --theme-surface-2: #1f2937;
    --theme-text: #e5e7eb;
    --theme-text-muted: #9ca3af;
    --theme-border: #334155;
    --theme-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

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

[data-theme="dark"] .container-fluid,
[data-theme="dark"] .container,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text);
}

[data-theme="dark"] .text-dark { color: var(--theme-text) !important; }
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted { color: var(--theme-text-muted) !important; }

[data-theme="dark"] .card,
[data-theme="dark"] .product-item,
[data-theme="dark"] .shop-sidebar-card,
[data-theme="dark"] .shop-results-bar,
[data-theme="dark"] .shop-empty-state,
[data-theme="dark"] .vendors-card,
[data-theme="dark"] .vendor-card,
[data-theme="dark"] .home-feature-card,
[data-theme="dark"] .cart-table-wrap,
[data-theme="dark"] .cart-summary-card,
[data-theme="dark"] .cart-coupon-card,
[data-theme="dark"] .cart-empty-state,
[data-theme="dark"] .co-section-card,
[data-theme="dark"] .fs-card {
    background: var(--theme-surface) !important;
    color: var(--theme-text);
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow);
}

[data-theme="dark"] .home-feature-card {
    background: var(--theme-surface-2) !important;
}
[data-theme="dark"] .home-feature-title {
    color: var(--theme-text);
}
[data-theme="dark"] .home-feature-icon {
    background: linear-gradient(135deg, #3f5aa9, #93a7ee);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .shop-filter-select,
[data-theme="dark"] .shop-search-input,
[data-theme="dark"] .shop-price-input,
[data-theme="dark"] .cart-coupon-input,
[data-theme="dark"] .co-input,
[data-theme="dark"] .co-textarea {
    background: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .table,
[data-theme="dark"] .table td,
[data-theme="dark"] .table th,
[data-theme="dark"] .cart-table td,
[data-theme="dark"] .cart-table th,
[data-theme="dark"] .cart-table tbody tr {
    color: var(--theme-text);
    border-color: var(--theme-border) !important;
    background-color: transparent;
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .amz-dropdown-menu,
[data-theme="dark"] #navbar-vertical,
[data-theme="dark"] #navbar-vertical .dropdown-menu {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .dropdown-item,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .navbar-nav .nav-item,
[data-theme="dark"] a:not(.amz-bottom-nav-item):not(.amz-mobile-account-link) {
    color: var(--theme-text);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] #navbar-vertical .dropdown-item:hover,
[data-theme="dark"] .nav-link:hover {
    background: #1e293b !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] #navbar-vertical .amz-cat-all-link {
    border-top-color: var(--theme-border, #334155);
}

/* ── Shop / Vendor Store Dark Mode ────────────────────── */
[data-theme="dark"] .shop-breadcrumb-bar {
    background: var(--theme-surface-muted);
    border-color: var(--theme-border);
}
[data-theme="dark"] .shop-breadcrumb-nav .breadcrumb-item a {
    color: var(--theme-accent);
}
[data-theme="dark"] .shop-breadcrumb-nav .breadcrumb-item.active {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: var(--theme-border);
}
[data-theme="dark"] .shop-filter-group {
    border-color: var(--theme-border);
}
[data-theme="dark"] .shop-filter-label {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-search-input:focus,
[data-theme="dark"] .shop-filter-select:focus,
[data-theme="dark"] .shop-price-input:focus {
    background: var(--theme-surface-2);
}
[data-theme="dark"] .shop-toggle-slider {
    background: var(--theme-border);
}
[data-theme="dark"] .shop-toggle-label {
    color: var(--theme-text);
}
[data-theme="dark"] .shop-reset-btn {
    background: var(--theme-surface-2);
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-reset-btn:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: var(--theme-surface-muted);
}
[data-theme="dark"] .shop-results-num {
    background: var(--theme-accent);
}
[data-theme="dark"] .shop-results-text,
[data-theme="dark"] .shop-results-range {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-mobile-filter-btn {
    background: var(--theme-surface-2);
    border-color: var(--theme-border);
    color: var(--theme-text);
}
[data-theme="dark"] .shop-mobile-filter-btn:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}
[data-theme="dark"] .mobile-filter-header {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}
[data-theme="dark"] .mobile-filter-header h5 {
    color: var(--theme-text);
}
[data-theme="dark"] .shop-sidebar-close {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-sidebar-close:hover {
    background: var(--theme-surface-muted);
}
[data-theme="dark"] .shop-empty-icon {
    background: var(--theme-surface-muted);
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-empty-title {
    color: var(--theme-text);
}
[data-theme="dark"] .shop-empty-desc {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-empty-btn {
    background: var(--theme-accent);
}
[data-theme="dark"] .shop-price-divider {
    color: var(--theme-text-muted);
}
[data-theme="dark"] .attr-checkbox-label {
    background: var(--theme-surface-2);
    border-color: var(--theme-border);
    color: var(--theme-text);
}
[data-theme="dark"] .attr-checkbox-label:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: var(--theme-surface-muted);
}
[data-theme="dark"] .attr-filter-container {
    border-color: var(--theme-border);
}
[data-theme="dark"] .pagination .page-link {
    background: var(--theme-surface-2);
    border-color: var(--theme-border);
    color: var(--theme-text);
}
[data-theme="dark"] .pagination .page-link:hover:not(.disabled) {
    background: var(--theme-accent);
    color: #fff;
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
}
[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background: var(--theme-surface-muted);
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}
[data-theme="dark"] .shop-brand-hero {
    filter: brightness(0.8);
}

/* Header toggle */
.amz-theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-left: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.amz-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
}

.amz-theme-toggle i { font-size: 14px; }

[data-theme="dark"] .amz-theme-toggle {
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Theme toggle icon handled by JS */

[data-theme="dark"] .amz-header {
    background-color: #020617;
}

[data-theme="dark"] .amz-header-bottom {
    position: relative;
    z-index: 10;

    background-color: #0f172a;
}

[data-theme="dark"] .amz-search-input {
    background: #1e293b;
    color: #e5e7eb;
}
[data-theme="dark"] .amz-search-btn {
    background-color: #1f2b6c;
    color: #fff;
}
[data-theme="dark"] .amz-search-btn:hover {
    background-color: #16205a;
}
[data-theme="dark"] .live-search-clear-btn {
    background: rgba(17, 24, 39, 0.95);
    border-color: #374151;
    color: #d1d5db;
}
[data-theme="dark"] .live-search-clear-btn:hover {
    background: rgba(31, 41, 55, 0.95);
    color: #ffffff;
}

[data-theme="dark"] .amz-footer,
[data-theme="dark"] .amz-footer-bottom,
[data-theme="dark"] .amz-back-to-top {
    background-color: #020617;
    color: #94a3b8;
}

[data-theme="dark"] .amz-footer-bottom {
    background-color: #000000;
}

[data-theme="dark"] .amz-back-to-top {
    background-color: #0f172a;
}

[data-theme="dark"] .amz-back-to-top:hover {
    background-color: #1e293b;
}

@media (max-width: 991px) {
    .amz-theme-toggle {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* ==========================================
   STOREFRONT HEADER — small-screen compaction
   On phones the right nav (language, theme,
   account, cart) is wider than the viewport;
   collapse the text labels so only the
   icons/actions remain.
   ========================================== */
@media (max-width: 575.98px) {
    .amz-nav-right {
        gap: 2px;
    }

    .amz-nav-right .locale-selector__current {
        display: none;
    }

    .amz-nav-right .locale-selector__trigger {
        min-width: 0;
        padding: 5px 8px;
    }

    .amz-nav-right .locale-selector__menu {
        min-width: 10.5rem;
        max-width: calc(100vw - 1rem);
    }

    .amz-nav-right .amz-theme-toggle span {
        display: none;
    }

    .amz-nav-right .amz-theme-toggle {
        padding: 8px 10px;
        margin-left: 4px;
    }

    .amz-nav-right .amz-nav-item .amz-text-small {
        display: none;
    }

    .amz-nav-item {
        padding: 8px 6px;
        margin-left: 2px;
    }
}

/* ==========================================
   DARK MODE FIXES (HEADER / MENUS / AUTH)
   ========================================== */

/* Top header account trigger text */
[data-theme="dark"] .amz-nav-item .amz-text-small,
[data-theme="dark"] .amz-nav-item .amz-text-bold,
[data-theme="dark"] .amz-bottom-item,
[data-theme="dark"] .amz-header a {
    color: #e5e7eb !important;
}

/* Category vertical menu (All -> categories/subcategories) */
[data-theme="dark"] #navbar-vertical.navbar,
[data-theme="dark"] #navbar-vertical .navbar-nav,
[data-theme="dark"] #navbar-vertical .nav-item,
[data-theme="dark"] #navbar-vertical .nav-link,
[data-theme="dark"] #navbar-vertical .dropdown-menu,
[data-theme="dark"] #navbar-vertical .dropdown-item {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #navbar-vertical .nav-link.dropdown-toggle::after {
    color: #9ca3af;
}

[data-theme="dark"] #navbar-vertical .nav-link:hover,
[data-theme="dark"] #navbar-vertical .dropdown-item:hover,
[data-theme="dark"] #navbar-vertical .dropdown-item:focus {
    background: #1f2937 !important;
    color: #fbbf24 !important;
}

/* Account dropdown panel (sign in / sign up / my account menu) */
[data-theme="dark"] .amz-dropdown-menu,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-menu-right {
    background: #111827 !important;
    color: #e5e7eb !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-divider,
[data-theme="dark"] .dropdown-menu .dropdown-divider {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item,
[data-theme="dark"] .dropdown-menu .dropdown-item,
[data-theme="dark"] .dropdown-menu .dropdown-item:not(.text-danger):not(.text-primary) {
    color: #e5e7eb !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item.text-primary,
[data-theme="dark"] .dropdown-menu .dropdown-item.text-primary {
    color: #93c5fd !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item.text-danger,
[data-theme="dark"] .dropdown-menu .dropdown-item.text-danger {
    color: #fca5a5 !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus {
    background: #1f2937 !important;
    color: #fbbf24 !important;
}

/* Guest sign in box inside dropdown */
[data-theme="dark"] .amz-dropdown-menu .btn-warning {
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
    color: #111827 !important;
}

[data-theme="dark"] .amz-dropdown-menu .mt-2,
[data-theme="dark"] .amz-dropdown-menu .text-center,
[data-theme="dark"] .amz-dropdown-menu div,
[data-theme="dark"] .amz-dropdown-menu a:not(.dropdown-item):not(.btn) {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .amz-dropdown-menu a.text-primary {
    color: #93c5fd !important;
}

/* Global fallback for bootstrap light utility classes in dark mode */
[data-theme="dark"] .bg-light {
    background-color: #111827 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-left,
[data-theme="dark"] .border-right {
    border-color: #334155 !important;
}

/* ── Coupon within checkout summary ─────────────────────────── */
.co-coupon-section { padding: 4px 0 8px; }
.co-coupon-header {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ── Place order button ──────────────────────────────────────── */
.co-place-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 16px rgba(31,43,108,.3);
    gap: 8px;
    letter-spacing: .02em;
}
.co-place-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31,43,108,.38);
}
.co-place-order-btn:disabled {
    background: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
    color: #9ca3af;
}
.co-secure-note {
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ==========================================
   SHARED PAGE HERO BAR
   ========================================== */
.page-hero-bar {
    background: linear-gradient(135deg, #1f2b6c 0%, #3f5aa9 100%);
    padding: 28px 0;
}
.page-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}
.page-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}
.page-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: .4px;
}
.page-hero-sub {
    color: rgba(255,255,255,.82);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   BRANDS PAGE
   ========================================== */
.brands-search-wrap { max-width: 600px; }
.brands-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.brands-search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.brands-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.82rem;
    pointer-events: none;
}
.brands-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-size: 0.87rem;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.brands-search-input:focus {
    border-color: #3f5aa9;
    box-shadow: 0 0 0 3px rgba(63,90,169,.14);
}
.brands-search-btn {
    padding: 9px 18px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}
.brands-search-btn:hover { opacity: .9; transform: translateY(-1px); }
.brands-reset-btn {
    padding: 9px 14px;
    border-radius: 9px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.brands-reset-btn:hover { border-color: #3f5aa9; color: var(--theme-accent, #1f2b6c); text-decoration: none; }

.brand-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 4px;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.12); text-decoration: none; }
.brand-card-img-wrap {
    background: linear-gradient(135deg, #f7f9ff, #eef3ff);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
.brand-card-img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.brand-card:hover .brand-card-img { transform: scale(1.08); }
.brand-card-body {
    padding: 14px 18px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}
.brand-card-name { font-weight: 700; color: #111827; margin-bottom: 4px; font-size: 0.95rem; }
.brand-card-count { font-size: 0.78rem; color: #6b7280; }

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.contact-map { width: 100%; height: 240px; display: block; border: none; }
.contact-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .18s;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item:hover { background: #f9fafb; }
.contact-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.contact-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-bottom: 2px;
}
.contact-info-value { font-size: 0.88rem; font-weight: 600; color: #111827; }

/* ==========================================
   VENDORS PAGE
   ========================================== */
.vendors-page-hero {
    background: linear-gradient(135deg, #1f2b6c 0%, #3f5aa9 100%);
    padding: 32px 0;
}
.vendors-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.vendors-page-hero-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.vendors-page-hero-sub { color: rgba(255,255,255,.82); font-size: 0.92rem; margin: 0; }
.vendors-page-hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.vendors-page-stat {
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 110px;
}
.vendors-page-stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: #febd69; }
.vendors-page-stat-label { font-size: 0.72rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================
   CATEGORIES PAGE
   ========================================== */
.categories-page-hero {
    background: linear-gradient(135deg, #1f2b6c 0%, #3f5aa9 100%);
    padding: 32px 0;
}
.categories-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.categories-page-hero-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.categories-page-hero-sub { color: rgba(255,255,255,.82); font-size: 0.92rem; margin: 0; }
.categories-page-hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.categories-page-stat {
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 110px;
}
.categories-page-stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: #febd69; }
.categories-page-stat-label { font-size: 0.72rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .08em; }

.cat-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; overflow: hidden; height: 100%; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .22s, box-shadow .22s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.cat-card-main { display: flex; align-items: center; text-decoration: none; color: inherit; }
.cat-card-main:hover { text-decoration: none; }
.cat-card-img-wrap { width: 96px; height: 96px; flex-shrink: 0; overflow: hidden; background: #f3f4f6; }
.cat-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card:hover .cat-card-img { transform: scale(1.08); }
.cat-card-info { padding: 14px 16px; flex: 1; min-width: 0; }
.cat-card-name { font-weight: 700; color: #111827; margin-bottom: 4px; font-size: 0.9rem; }
.cat-card-count { font-size: 0.78rem; color: #6b7280; }
.cat-card-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.cat-card-chip {
    font-size: 0.72rem; color: #374151; background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 999px; padding: 3px 10px; text-decoration: none; transition: background .15s, color .15s;
}
.cat-card-chip:hover { background: var(--theme-accent, #1f2b6c); color: #fff; text-decoration: none; }
.cat-card-browse {
    margin-top: auto; display: block; padding: 10px 16px; border-top: 1px solid #f3f4f6;
    font-size: 0.8rem; font-weight: 600; color: var(--theme-accent, #1f2b6c); text-decoration: none; text-align: center;
}
.cat-card-browse:hover { background: #f8fafc; color: var(--theme-accent, #1f2b6c); text-decoration: none; }

[data-theme="dark"] .cat-card {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow);
}
[data-theme="dark"] .cat-card-name { color: var(--theme-text); }
[data-theme="dark"] .cat-card-count { color: var(--theme-text-muted); }
[data-theme="dark"] .cat-card-img-wrap { background: var(--theme-surface-2); }
[data-theme="dark"] .cat-card-chip {
    background: var(--theme-surface-2); border-color: var(--theme-border);
    /* !important: the dark link catch-all would otherwise recolor these
       anchors to the accent color. */
    color: var(--theme-text-muted) !important;
}
[data-theme="dark"] .cat-card-browse {
    color: #febd69 !important; border-top-color: var(--theme-border);
}
[data-theme="dark"] .cat-card-browse:hover { background: var(--theme-surface-2); }

@media (max-width: 575.98px) {
    .categories-page-hero-inner { flex-direction: column; align-items: flex-start; }
    .categories-page-hero-stats { width: 100%; }
    .cat-card-img-wrap { width: 84px; height: 84px; }
}

.vendors-filter-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.vendors-filter-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.vendors-filter-search { position: relative; flex: 1; min-width: 200px; }
.vendors-filter-search-icon {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: #aaa; font-size: 0.8rem; pointer-events: none;
}
.vendors-filter-input {
    width: 100%; padding: 8px 10px 8px 30px; border: 1px solid #e5e7eb;
    border-radius: 8px; font-size: 0.86rem; outline: none; background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
}
.vendors-filter-input:focus { border-color: #3f5aa9; box-shadow: 0 0 0 3px rgba(63,90,169,.14); background: #fff; }
.vendors-filter-select {
    padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 0.86rem; background: #f9fafb; outline: none; min-width: 140px; transition: border-color .2s;
}
.vendors-filter-select:focus { border-color: #3f5aa9; background: #fff; }
.vendors-filter-toggle {
    display: flex; align-items: center; gap: 8px; font-size: 0.86rem;
    color: #374151; cursor: pointer; margin: 0; user-select: none;
}
.vendors-filter-actions { display: flex; gap: 8px; }
.vendors-apply-btn {
    padding: 8px 18px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9); color: #fff;
    font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s;
}
.vendors-apply-btn:hover { opacity: .9; transform: translateY(-1px); }
.vendors-reset-btn {
    padding: 8px 16px; border-radius: 8px; border: 1.5px solid #e5e7eb;
    background: #fff; color: #6b7280; font-size: 0.84rem; font-weight: 600;
    text-decoration: none; transition: all .2s;
}
.vendors-reset-btn:hover { border-color: #3f5aa9; color: var(--theme-accent, #1f2b6c); text-decoration: none; }

/* Vendor card (shared between vendors & home page) */
.vendor-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .25s ease;
    height: 100%; display: flex; flex-direction: column;
}
.vendor-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(31,43,108,.1); }
.vendor-card-top {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: linear-gradient(160deg, #f7f9ff 0%, #eef3ff 60%, #ffe8d8 100%);
    border-bottom: 1px solid #f3f4f6;
}
.vendor-logo-wrap {
    width: 54px; height: 54px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 2px solid rgba(255,255,255,.8); box-shadow: 0 4px 12px rgba(31,43,108,.12); flex-shrink: 0;
}
.vendor-logo { width: 100%; height: 100%; object-fit: cover; }
.vendor-logo-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; color: #3f5aa9;
}
.vendor-card-name { font-weight: 700; color: #1d2330; margin-bottom: 2px; font-size: 0.92rem; }
.vendor-card-owner { color: #6b7280; font-size: 0.78rem; }
.vendor-card-meta { padding: 12px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.vendor-meta-item { font-size: 0.82rem; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.vendor-meta-item i { width: 14px; color: #3f5aa9; }
.vendor-card-desc { padding: 0 18px 10px; font-size: 0.82rem; color: #9ca3af; margin: 0; }
.vendor-card-footer { padding: 12px 18px; border-top: 1px solid #f3f4f6; }
.vendor-visit-btn {
    display: flex; align-items: center; justify-content: center; width: 100%;
    padding: 9px 16px; border-radius: 9px; background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff; font-size: 0.84rem; font-weight: 700; text-decoration: none;
    transition: all .22s ease; box-shadow: 0 3px 10px rgba(31,43,108,.22);
}
.vendor-visit-btn:hover {
    color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,43,108,.3);
}

/* ==========================================
   HOME PAGE
   ========================================== */
.home-slider-placeholder {
    height: 460px; background: linear-gradient(135deg, #f3f4f6, #e9ecef);
    border-radius: 20px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.home-slider-placeholder-icon { font-size: 3rem; color: #d1d5db; margin-bottom: 14px; }

.home-feature-card {
    display: flex; align-items: center; gap: 16px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .22s, box-shadow .22s;
}
.home-feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.home-feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.home-feature-title { font-weight: 700; font-size: 0.92rem; color: #111827; }

.home-section-head { display: flex; align-items: center; justify-content: space-between; }
.home-section-title {
    font-size: 1.1rem; font-weight: 600; color: var(--theme-text-strong, #1a1d23);
    display: flex; align-items: center; gap: 10px;
}
.home-section-title i { color: var(--theme-accent, #3f5aa9); }
.home-section-link { font-size: 0.84rem; font-weight: 700; color: var(--theme-accent, #3f5aa9); text-decoration: none; transition: color .2s; }
.home-section-link:hover { color: var(--theme-accent, #1f2b6c); text-decoration: none; }
.home-section-link-pill {
    display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px;
    border: 1.5px solid #ef4444; color: #ef4444; font-size: 0.82rem; font-weight: 700;
    text-decoration: none; transition: all .2s;
}
.home-section-link-pill:hover { background: #ef4444; color: #fff; text-decoration: none; }

.home-cat-card {
    display: flex; align-items: center; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; overflow: hidden; margin-bottom: 16px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .22s, box-shadow .22s;
}
.home-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); text-decoration: none; }
.home-cat-img-wrap { width: 90px; height: 90px; flex-shrink: 0; overflow: hidden; background: #f3f4f6; }
.home-cat-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-cat-card:hover .home-cat-img { transform: scale(1.1); }
.home-cat-info { padding: 14px 16px; flex: 1; }
.home-cat-name { font-weight: 700; color: #111827; margin-bottom: 4px; font-size: 0.9rem; }
.home-cat-count { font-size: 0.78rem; color: #6b7280; }

/* The card surface must switch to the dark surface too — the name is an h6
   that dark mode turns near-white, so a white card would make it invisible. */
[data-theme="dark"] .home-cat-card {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow);
}
[data-theme="dark"] .home-cat-img-wrap {
    background: var(--theme-surface-2);
}
[data-theme="dark"] .home-cat-name {
    color: var(--theme-text-strong) !important;
}
[data-theme="dark"] .home-cat-count {
    color: var(--theme-text-muted) !important;
}

/* ── Mobile: vertical category cards in 2-col grid ────────────── */
@media (max-width: 575.98px) {
    .home-cat-card {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 12px;
    }
    .home-cat-img-wrap {
        width: 100%;
        height: 110px;
    }
    .home-cat-info {
        padding: 10px 12px 12px;
        text-align: center;
    }
    .home-cat-name {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }
    .home-cat-count {
        font-size: 0.72rem;
    }
}

.home-flash-section-green {
    background-color: #00965e;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 30px 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.home-flash-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.home-flash-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.home-flash-info-col .ends-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.home-flash-info-col .deals-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: #ffffff;
}
.home-flash-info-col .offers-subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-flash-info-col .offers-subtitle {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}
.home-flash-info-col .arrow-circle {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00965e;
    font-size: 0.8rem;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
}
.home-flash-info-col .arrow-circle:hover {
    transform: scale(1.1);
    background-color: #f3f3f3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.flash-sale-green-card-link {
    display: block;
    height: 100%;
    text-decoration: none !important;
}
.flash-sale-green-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--theme-border, #e4e7ec);
    background: var(--theme-surface, #ffffff);
    overflow: hidden;
    text-align: start;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-sizing: border-box;
}
.flash-sale-green-card:hover {
    transform: translateY(-4px);
    border-color: var(--theme-accent, #3f5aa9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
/* Full-bleed square product image — the card's visual anchor. */
.flash-sale-green-card .img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--theme-surface-muted, #f6f7fb);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block;
}
.flash-sale-green-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.flash-sale-green-card:hover .img-box img {
    transform: scale(1.05);
}
.flash-sale-green-card .fs-card-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: #e03131;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(224, 49, 49, 0.4);
}
.flash-sale-green-card .fs-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.flash-sale-green-card .prod-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--theme-text, #333333);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.1em;
}
.flash-sale-green-card .fs-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}
.flash-sale-green-card .prod-price {
    font-size: 1rem;
    font-weight: 800;
    color: #e03131;
}
.flash-sale-green-card .prod-price-old {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--theme-text-muted, #98a2b3);
    text-decoration: line-through;
}

.home-flash-model-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
.home-flash-model-col img {
    max-height: 240px;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .vendors-page-hero-inner { flex-direction: column; align-items: flex-start; }
    .vendors-page-hero-stats { width: 100%; }
    .vendors-filter-fields { flex-direction: column; align-items: stretch; }
    .vendors-filter-select { width: 100% !important; min-width: unset; }
    .home-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================
   ACCOUNT COMMON & SIDEBAR
   ========================================== */
.acc-page-wrap {
    padding-top: 28px;
    padding-bottom: 56px;
}
.acc-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.acc-sidebar-profile {
    padding: 24px 20px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.acc-sidebar-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}
.acc-sidebar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acc-sidebar-user {
    display: flex;
    flex-direction: column;
}
.acc-sidebar-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.acc-sidebar-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}
.acc-sidebar-nav {
    padding: 12px 8px;
}
.acc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
.acc-sidebar-link:hover {
    background: #f3f4f6;
    color: var(--theme-accent, #1f2b6c);
    text-decoration: none;
}
.acc-sidebar-link--active {
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff !important;
}
.acc-sidebar-link-icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.acc-sidebar-link--active .acc-sidebar-link-icon {
    color: #fff;
}
.acc-sidebar-link-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.8;
}
.acc-sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 6px;
}
.acc-sidebar-link--logout {
    color: #dc2626;
}
.acc-sidebar-link--logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* ==========================================
   ACCOUNT DASHBOARD
   ========================================== */
.acc-welcome-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}
.acc-welcome-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}
.acc-welcome-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}
.acc-welcome-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid #fff;
}
.acc-welcome-text {
    flex: 1;
}
.acc-welcome-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}
.acc-welcome-email {
    font-size: 0.88rem;
    color: #4b5563;
    margin-bottom: 2px;
}
.acc-welcome-member {
    font-size: 0.78rem;
    color: #9ca3af;
}
.acc-welcome-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}
.acc-welcome-edit-btn:hover {
    border-color: #3f5aa9;
    color: var(--theme-accent, #1f2b6c);
    background: #f7f9ff;
    text-decoration: none;
}

/* Stat Cards */
.acc-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.acc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.acc-stat-card--blue .acc-stat-icon { background: #eff6ff; color: #3b82f6; }
.acc-stat-card--amber .acc-stat-icon { background: #fffbeb; color: #f59e0b; }
.acc-stat-card--green .acc-stat-icon { background: #f0fdf4; color: #22c55e; }
.acc-stat-card--rose .acc-stat-icon { background: #fff1f2; color: #f43f5e; }

.acc-stat-body {
    display: flex;
    flex-direction: column;
}
.acc-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}
.acc-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
}

/* Balance Cards */
.acc-balance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.acc-balance-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.acc-balance-icon--purple { background: #faf5ff; color: #a855f7; }
.acc-balance-icon--teal { background: #f0fdf4; color: #14b8a6; }
.acc-balance-icon--amber { background: #fffbeb; color: #f59e0b; }

.acc-balance-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: 2px;
}
.acc-balance-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-accent, #1f2b6c);
}
.acc-balance-value--teal { color: #0d9488; }
.acc-balance-value--amber { color: #d97706; }
.acc-balance-value small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

/* Recent Orders Table Card */
.acc-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.acc-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.acc-table-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d23;
}
.acc-table-title i { color: #3f5aa9; }
.acc-view-all-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3f5aa9;
    text-decoration: none;
    transition: color 0.2s;
}
.acc-view-all-btn:hover {
    color: var(--theme-accent, #1f2b6c);
    text-decoration: none;
}

.acc-table-wrap {
    overflow-x: auto;
}
.acc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.acc-table th {
    background: #f9fafb;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: .06em;
    color: #4b5563;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.acc-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}
.acc-table tr:last-child td { border-bottom: none; }
.acc-table tr:hover { background: #f9fafb; }

.acc-order-num {
    font-weight: 700;
    color: var(--theme-accent, #1f2b6c);
}
.acc-status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.acc-status-badge--success { background: #f0fdf4; color: #16a34a; }
.acc-status-badge--warning { background: #fffbeb; color: #d97706; }
.acc-status-badge--danger { background: #fef2f2; color: #dc2626; }
.acc-status-badge--info { background: #eff6ff; color: #2563eb; }

.acc-view-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #3f5aa9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}
.acc-view-btn:hover {
    border-color: #3f5aa9;
    background: #eff3ff;
    color: var(--theme-accent, #1f2b6c);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .acc-welcome-card { flex-direction: column; text-align: center; gap: 14px; }
    .acc-welcome-edit-btn { position: static; margin-top: 8px; }
}

/* ==========================================
   ORDER TRACKER TIMELINE (RESPONSIVE STEPPER)
   ========================================== */
.order-tracker {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 8px;
}
.tracker-step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 28px;
}
.tracker-step:last-child {
    padding-bottom: 0;
}
.tracker-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.tracker-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563; /* High contrast icon color for inactive steps */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}
.tracker-line {
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 18px; /* Perfectly centered relative to .tracker-step */
    width: 3px;
    background: #e5e7eb;
    z-index: 1;
}
.tracker-step:last-child .tracker-line {
    display: none;
}
.tracker-info {
    padding-top: 6px;
}
.tracker-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
}
.tracker-step--completed .tracker-label,
.tracker-step--current .tracker-label {
    color: var(--theme-accent, #1f2b6c);
}

@media (min-width: 768px) {
    .order-tracker {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-left: 0;
    }
    .tracker-step {
        flex-direction: column;
        align-items: center;
        flex: 1;
        text-align: center;
        padding-bottom: 0;
    }
    .tracker-icon-wrap {
        margin-bottom: 12px;
    }
    .tracker-line {
        top: 18px; /* Centered vertically relative to the 38px icon */
        left: calc(50% + 19px); /* Starts from the right edge of the icon */
        width: calc(100% - 38px); /* Extends exactly to the next icon */
        height: 3px;
        bottom: auto;
    }
    .tracker-info {
        padding-top: 0;
    }
}

/* Completed Step */
.tracker-step--completed .tracker-icon {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.tracker-step--completed .tracker-line {
    background: #16a34a;
}

/* Current Step */
.tracker-step--current .tracker-icon {
    background: #3f5aa9;
    color: #fff;
    border-color: #3f5aa9;
    box-shadow: 0 0 0 5px rgba(63, 90, 169, 0.2);
}


/* Cancelled Step */
.tracker-step--cancelled .tracker-icon {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}
.tracker-step--cancelled .tracker-line {
    background: #dc2626;
}

/* ==========================================
   CONTACT AND ADDRESS CARD READABILITY FIXES
   ========================================== */
.contact-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    color: #4b5563 !important;
}
.contact-info-card p,
.contact-info-card span:not(.acc-status-badge) {
    color: #4b5563 !important;
}
.contact-info-card p strong,
.contact-info-card strong {
    color: #111827 !important;
}
.contact-info-card .text-muted {
    color: #6b7280 !important;
}
.contact-info-card .text-secondary {
    color: #4b5563 !important;
}
.contact-info-card p i,
.contact-info-card i:not(.fa-ellipsis-v) {
    color: #3f5aa9 !important;
}

/* Utility Helpers */
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.is-invalid-co {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.is-invalid-co:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================
   MODERN PRODUCT CARD STYLES
   ========================================== */
.modern-prod-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef0f5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-prod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(31, 43, 108, 0.09);
    border-color: #dbe0ee;
}

/* Floating Badges Overlays */
.prod-badge-container {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.prod-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.badge-flash {
    background: linear-gradient(135deg, #ef4444 0%, #ff9700 100%);
}
.badge-discount {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.badge-out-of-stock {
    background: transparent;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    font-weight: 700;
}
.badge-low-stock {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    animation: lowStockPulse 2s ease-in-out infinite;
}
@keyframes lowStockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Wishlist Button Overlay */
.prod-wishlist-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}
.prod-wishlist-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.prod-wishlist-btn:hover {
    transform: scale(1.12);
    color: #ef4444;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}
.prod-wishlist-btn.active {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Image Wrap Section */
.prod-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8fafc;
}
.prod-image-link {
    position: absolute;
    top: 0;
    left: 0;
}
.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modern-prod-card:hover .prod-img {
    transform: scale(1.06);
}

/* Actions Overlay Inside Image */
.prod-actions-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
}
.modern-prod-card:hover .prod-actions-overlay {
    bottom: 12px;
    opacity: 1;
    pointer-events: auto;
}
.prod-action-btn {
    background: #131921;
    color: #ffffff !important;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.prod-action-btn:hover {
    background: #febd69;
    color: #131921 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(254, 189, 105, 0.35);
}

/* Details Section */
.prod-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Vendor Row */
.prod-vendor-row {
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    color: #6b7280;
    /* Keep the vendor name on one line so card heights stay uniform */
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    /* Reserve space even when the product has no vendor, so every card
       (grid or carousel) keeps the same height */
    min-height: 17px;
}
.prod-vendor-link {
    color: #6b7280;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prod-vendor-link:hover {
    color: #3f5aa9;
}

/* Muted vendor link — match the cart-vendor-name treatment so the link
   catch-all doesn't recolor it to accent in dark mode. */
[data-theme="dark"] .prod-vendor-link {
    color: #e5e7eb !important;
}
.prod-vendor-row .verified-icon {
    font-size: 0.75rem;
}

/* Product Title */
.prod-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 0 8px 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.prod-title a:hover {
    color: #1f2b6c !important;
}

/* Rating Stars */
.prod-rating {
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    /* Keep rating + sold count on one line so card heights stay uniform */
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}
.sold-count {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stars-wrap {
    color: #d1d5db;
}
.stars-wrap .filled {
    color: #ff9700;
}
.rating-count {
    color: #6b7280;
    font-weight: 500;
}
.sold-count {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.72rem;
}

/* Variants Badge */
.prod-variants {
    font-size: 0.72rem;
}
.variants-badge {
    background: #eff3ff;
    color: #3f5aa9;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Price Row */
.prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    /* Keep price + original on one line so card heights stay uniform */
    flex-wrap: nowrap;
    overflow: hidden;
    margin-top: 10px;
}
.price-display {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--theme-accent, #1f2b6c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.price-flash {
    color: #ef4444;
}
.original-price {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

/* Slightly smaller price on the narrowest cards so ranges fit on one line */
@media (max-width: 479.98px) {
    .price-display {
        font-size: 0.98rem;
    }
}

/* ==========================================
   PRODUCT CARD DARK MODE POLISH
   ========================================== */

[data-theme="dark"] .product-item,
[data-theme="dark"] .modern-prod-card {
    background: #111827 !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .product-img,
[data-theme="dark"] .prod-image-wrap {
    background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%) !important;
}

[data-theme="dark"] .product-name,
[data-theme="dark"] .prod-title,
[data-theme="dark"] .prod-title a,
[data-theme="dark"] .cart-product-name {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .product-name a:hover,
[data-theme="dark"] .prod-title a:hover {
    color: #fbbf24 !important;
}

[data-theme="dark"] .product-price,
[data-theme="dark"] .price-display,
[data-theme="dark"] .price-flash {
    color: #fbbf24 !important;
}

[data-theme="dark"] .product-discount-price,
[data-theme="dark"] .original-price,
[data-theme="dark"] .prod-vendor-row,
[data-theme="dark"] .rating-count,
[data-theme="dark"] .product-rating-count {
    color: #9ca3af !important;
}

[data-theme="dark"] .variants-badge,
[data-theme="dark"] .product-variant-badge {
    background: #1e293b !important;
    color: #93c5fd !important;
    border: 1px solid #334155;
}

[data-theme="dark"] .prod-action-btn,
[data-theme="dark"] .product-action .btn {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .prod-action-btn:hover,
[data-theme="dark"] .product-action .btn:hover,
[data-theme="dark"] .product-action .btn.active {
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
    color: #111827 !important;
}

[data-theme="dark"] .prod-wishlist-btn {
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .prod-wishlist-btn:hover {
    color: #f87171 !important;
    border-color: #f87171 !important;
}

[data-theme="dark"] .prod-wishlist-btn.active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

[data-theme="dark"] .prod-badge,
[data-theme="dark"] .badge-flash,
[data-theme="dark"] .badge-discount,
[data-theme="dark"] .badge-low-stock {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .stars-wrap {
    color: #475569;
}

[data-theme="dark"] .stars-wrap .filled {
    color: #fbbf24;
}

/* ── Flash Sale Scroll Carousel ──────────────── */
.flash-sale-carousel { position: relative; display: block; }
.fs-scroll-wrapper {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}
.carousel-product-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}
@media (max-width: 575.98px) {
    .carousel-product-item { width: 156px; }
    .flash-sale-green-card .prod-name { font-size: 0.76rem; }
    .flash-sale-green-card .prod-price { font-size: 0.9rem; }
    .flash-sale-green-card .fs-card-badge { font-size: 0.65rem; padding: 4px 7px; }
}

/* OwlCarousel item — no fixed width (OwlCarousel manages sizing) */
.owl-carousel-item {
    height: 100%;
    padding: 0 4px;
}

/* Carousel nav arrows (related / recently viewed on product pages, home products) */
.related-carousel .owl-nav,
.home-products-carousel .owl-nav,
.latest-products-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
    z-index: 6;
}
.related-carousel .owl-nav [class*='owl-'],
.home-products-carousel .owl-nav [class*='owl-'],
.latest-products-carousel .owl-nav [class*='owl-'] {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e6f0;
    color: var(--theme-accent, #1f2b6c);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(31, 43, 108, 0.12);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0;
}
.related-carousel .owl-nav [class*='owl-']:hover,
.home-products-carousel .owl-nav [class*='owl-']:hover,
.latest-products-carousel .owl-nav [class*='owl-']:hover {
    background: var(--theme-accent, #1f2b6c);
    border-color: var(--theme-accent, #1f2b6c);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(31, 43, 108, 0.28);
    transform: scale(1.08);
}
.related-carousel .owl-nav [class*='owl-'].disabled,
.home-products-carousel .owl-nav [class*='owl-'].disabled,
.latest-products-carousel .owl-nav [class*='owl-'].disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

[data-theme="dark"] .related-carousel .owl-nav [class*='owl-'],
[data-theme="dark"] .home-products-carousel .owl-nav [class*='owl-'],
[data-theme="dark"] .latest-products-carousel .owl-nav [class*='owl-'] {
    background: rgba(24, 35, 56, 0.92);
    border-color: #334155;
    color: #dbe4f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .related-carousel .owl-nav [class*='owl-']:hover,
[data-theme="dark"] .home-products-carousel .owl-nav [class*='owl-']:hover,
[data-theme="dark"] .latest-products-carousel .owl-nav [class*='owl-']:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #131921;
}

/* Desktop-only arrows: touch users swipe */
@media (max-width: 767.98px) {
    .related-carousel .owl-nav,
    .home-products-carousel .owl-nav,
    .latest-products-carousel .owl-nav {
        display: none;
    }
}

.owl-carousel-item .modern-prod-card {
    margin-bottom: 0;
    height: 100%;
}
.fs-detail-slide {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    box-sizing: border-box;
}
.fs-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.fs-scroll-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.2); border-radius: 3px; }
.fs-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.6); border-radius: 3px; }
.fs-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.45); color: #fff; font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; line-height: 1;
}
.fs-carousel-btn:hover { background: rgba(0,0,0,0.7); }
.fs-carousel-prev { left: 0px; }
.fs-carousel-next { right: 0px; }
.fs-dot {
    display:inline-block;width:10px;height:10px;border-radius:50%;border:none;
    background:rgba(255,255,255,0.5);margin:0 4px;cursor:pointer;padding:0;transition:background 0.25s;
}
.fs-dot.active { background:#fff; }
.home-flash-section-green .fs-dot { background:rgba(255,255,255,0.4); }
.home-flash-section-green .fs-dot.active { background:#fff; }

/* ── Flash Sale Section Carousel ──────────────── */
.fs-section-carousel {
    position: relative;
    overflow: hidden;
}
.fs-section-track {
    display: flex;
    transition: transform 0.5s ease;
}
.fs-section-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}
.fs-section-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; line-height: 1;
}
.fs-section-btn:hover { background: rgba(0,0,0,0.75); }
.fs-section-prev { left: 20px; }
.fs-section-next { right: 20px; }
.fs-section-dots {
    text-align: center;
    padding-top: 16px;
}
.fs-section-dots .fs-dot {
    background: rgba(0,0,0,0.25);
}
.fs-section-dots .fs-dot.active {
    background: #333;
}

/* On touch screens the strips/banners swipe natively, so the floating arrows
   only overlap the content — hide them below 768px (dots still page). */
@media (max-width: 767.98px) {
    .fs-section-btn,
    .fs-carousel-btn {
        display: none;
    }
}

/* ==========================================
   BUY NOW BUTTON
   ========================================== */
.btn-buy-now {
    background-color: #111827;
    border-color: #111827;
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}
.btn-buy-now:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 24, 39, 0.3);
    color: #fff;
}

/* ==========================================
   CART PAGE — VENDOR GROUPING
   ========================================== */
.cart-vendor-row {
    background: #f4f6ff;
    border-bottom: 1px solid #e5e7eb;
}
.cart-vendor-row:hover {
    background: #eef2ff !important;
}
.cart-vendor-cell {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left !important;
    padding: 10px 18px !important;
}
.cart-vendor-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-accent, #1f2b6c);
}
.cart-vendor-name i {
    font-size: 0.75rem;
    color: #3f5aa9;
    flex-shrink: 0;
}
.cart-vendor-meta {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
}

[data-theme="dark"] .cart-table tbody .cart-vendor-row {
    background: #1e293b;
    border-bottom-color: #334155;
}
[data-theme="dark"] .cart-table tbody .cart-vendor-row:hover {
    background: #243244 !important;
}
[data-theme="dark"] .cart-vendor-name {
    color: #e5e7eb !important;
}
[data-theme="dark"] .cart-vendor-meta {
    color: #94a3b8;
}

@media (max-width: 767.98px) {
    .cart-vendor-row {
        margin-bottom: 6px;
        border: 1px solid #dfe6f7;
        border-radius: 8px;
    }
    .cart-vendor-cell {
        padding: 9px 14px !important;
        border-bottom: none !important;
    }
    .cart-vendor-cell::before {
        display: none;
    }
    [data-theme="dark"] .cart-table tbody .cart-vendor-row {
        border-color: #334155;
    }
}

/* ==========================================
   SKELETON / SHIMMER LOADING EFFECTS
   ========================================== */
.skeleton-block {
    position: relative;
    overflow: hidden;
    background: #e9ecf2;
    border-radius: 8px;
}
.skeleton-block::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton product card — mirrors the real card structure so the
   layout height is identical while data is loading. */
.skeleton-card {
    pointer-events: none;
    cursor: default;
}
.skeleton-card .skeleton-img {
    width: 100%;
    padding-top: 100%;
    border-radius: 0;
    background: #e2e6ee;
}
.skeleton-card .prod-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.skeleton-line {
    height: 12px;
}
.skeleton-vendor {
    width: 55%;
    height: 10px;
}
.skeleton-title {
    width: 88%;
    height: 15px;
}
.skeleton-rating {
    width: 40%;
    height: 10px;
}
.skeleton-price {
    width: 45%;
    height: 16px;
}

/* ── Shop page AJAX skeleton grid ─────────────────────────── */
.shop-loading .shop-product-grid {
    display: none !important;
}
.shop-loading .shop-pagination-wrap {
    visibility: hidden;
}
.shop-skeleton-grid {
    display: flex;
    flex-wrap: wrap;
}

/* ── Shop page initial-landing skeleton overlay ───────────────
   Covers the results bar + grid + pagination on first paint and
   fades out to reveal the real product cards (which shimmer as
   their images stream in). */
.shop-landing-skeleton {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: var(--theme-bg, #f6f7fb);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.shop-landing-skeleton.is-fading {
    opacity: 0;
}

/* ── Page-loading state ───────────────────────────────────────
   Hides the real content that each landing skeleton covers until
   the skeleton fades out. Prevents the content from flashing in
   before the skeleton on first paint. */
body.page-loading #product-list-area,
body.page-loading #pd-main-area,
body.page-loading .home-widgets-wrap {
    visibility: hidden;
}
body.page-loading .landing-skeleton {
    visibility: visible !important;
}

/* ── Product image shimmer (used on every page with product cards) ── */
.prod-image-wrap.img-is-loading {
    background: #e8ebf1;
}
.prod-image-wrap.img-is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    z-index: 2;
}
.prod-img {
    transition: opacity 0.35s ease;
}
.prod-img.prod-img-loading {
    opacity: 0;
}

/* ── Product-detail gallery shimmer ─────────────────────────── */
.gallery-main-img-container.img-is-loading {
    background: #e8ebf1;
}
.gallery-main-img-container.img-is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    z-index: 2;
}
img.gallery-main-img.gallery-img-loading,
img.gallery-thumbnail.gallery-img-loading {
    opacity: 0;
}

/* ── Cart page product image shimmer ─────────────────────────── */
.cart-product-img-wrap {
    position: relative;
}
.cart-product-img {
    transition: opacity 0.35s ease;
}
.cart-product-img.cart-img-loading {
    opacity: 0;
}
.cart-product-img-wrap.img-is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* ── Product-detail landing skeleton overlay ────────────────── */
#pd-main-area {
    position: relative;
}
.pd-landing-skeleton {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: var(--theme-bg, #f6f7fb);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.pd-landing-skeleton.is-fading {
    opacity: 0;
}

/* ── Home page landing skeleton overlay ─────────────────────── */
#main-content {
    position: relative;
}
.home-landing-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--theme-bg, #f6f7fb);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.home-landing-skeleton.is-fading {
    opacity: 0;
}
.home-hero-block {
    height: 460px;
    border-radius: 20px;
}
.home-offer-block {
    height: 205px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.home-chip-block {
    height: 148px;
    border-radius: 16px;
    margin-top: 2px;
}
.home-section-title-bar {
    width: 240px;
    height: 28px;
    margin: 28px auto 20px;
}
.home-card-row {
    display: flex;
    flex-wrap: wrap;
}
.home-card-col {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px 20px;
}
@media (max-width: 767.98px) {
    .home-card-col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ── Skeleton responsive: match real hero heights ─────────────── */
@media (max-width: 991.98px) {
    .home-hero-block { height: 400px; }
}
@media (max-width: 575.98px) {
    .home-hero-block { height: 360px; border-radius: 14px; }
    .home-offer-block { height: 140px; border-radius: 12px; margin-bottom: 12px; }
    .home-chip-block { height: 110px; border-radius: 12px; }
    .home-section-title-bar { width: 180px; height: 22px; margin: 20px auto 14px; }
}
@media (max-width: 575.98px) {
    .home-landing-skeleton .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    .home-landing-skeleton .row.px-xl-5 {
        flex-direction: column;
    }
    .home-landing-skeleton .col-lg-8,
    .home-landing-skeleton .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .home-landing-skeleton .col-lg-4 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 12px;
    }
    .home-landing-skeleton .col-lg-4 .home-chip-block {
        grid-column: 1 / -1;
    }
}

/* Compare Button on Product Cards */
.prod-wishlist-overlay {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.compare-btn {
    background: var(--theme-surface, #fff) !important;
    color: var(--theme-text-muted, #6b7280) !important;
    border: 1px solid var(--theme-border, #e5e7eb) !important;
}
.compare-btn:hover, .compare-btn.active {
    background: var(--theme-accent, #6366f1) !important;
    color: #fff !important;
    border-color: var(--theme-accent, #6366f1) !important;
}

/* Floating Compare Bar */
.compare-bar {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10450;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--theme-surface, #fff);
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    transition: bottom .35s cubic-bezier(.25,.46,.45,.94);
    min-width: 320px;
}
.compare-bar.is-visible { bottom: 24px; }
.compare-bar-items { display: flex; gap: 8px; }
.compare-bar-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 2px solid var(--theme-border, #e5e7eb); background: var(--theme-surface-muted, #f3f4f6); }
.compare-bar-count { font-size: 0.85rem; font-weight: 700; color: var(--theme-text, #374151); white-space: nowrap; }
.compare-bar-btn { padding: 8px 18px; border-radius: 8px; border: none; background: linear-gradient(135deg, var(--theme-accent, #6366f1), #5a6fe0); color: #fff; font-weight: 700; font-size: 0.82rem; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap; }
.compare-bar-btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); }
.compare-bar-clear { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--theme-border, #e5e7eb); background: transparent; color: var(--theme-text-muted, #6b7280); font-size: 0.82rem; cursor: pointer; transition: all .2s; }
.compare-bar-clear:hover { border-color: #ef4444; color: #ef4444; }

[data-theme="dark"] .compare-bar {
    background: var(--theme-surface-raised, #1e293b);
    border-color: var(--theme-border-strong, #334155);
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
[data-theme="dark"] .compare-bar-thumb { border-color: var(--theme-border-strong); }

@media (max-width: 575.98px) {
    .compare-bar {
        min-width: auto;
        width: calc(100vw - 16px);
        padding: 10px 12px;
        bottom: -80px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .compare-bar.is-visible { bottom: calc(70px + env(safe-area-inset-bottom)); }
    .compare-bar-items { gap: 6px; }
    .compare-bar-thumb { width: 34px; height: 34px; }
    .compare-bar-btn { padding: 7px 14px; font-size: 0.78rem; }
    .compare-bar-clear { padding: 6px 10px; font-size: 0.78rem; }
}

/* Quick Add to Cart Button on Product Cards */
.prod-quick-add {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--theme-accent, #6366f1);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    z-index: 4;
    box-shadow: 0 3px 10px rgba(99,102,241,.3);
}
.modern-prod-card:hover .prod-quick-add {
    opacity: 1;
    transform: scale(1);
}
.prod-quick-add:hover {
    background: var(--theme-primary-hover, #4f46e5);
    transform: scale(1.1) !important;
    box-shadow: 0 5px 16px rgba(99,102,241,.4);
}
.prod-quick-add.is-loading {
    opacity: 1;
    transform: scale(1);
    pointer-events: none;
}
.prod-quick-add.is-loading i {
    animation: qa-spin .6s linear infinite;
}
@keyframes qa-spin { to { transform: rotate(360deg); } }
.prod-quick-add.is-added {
    background: #16a34a;
}
[data-theme="dark"] .prod-quick-add { box-shadow: 0 3px 10px rgba(99,102,241,.5); }

/* Mega Menu */
.mega-menu-wrap { position: relative; display: inline-block; }
.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 700px;
    min-height: 320px;
    background: var(--theme-surface, #fff);
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 10500;
    overflow: hidden;
}
.mega-menu-wrap:hover .mega-menu-panel,
.mega-menu-wrap.is-open .mega-menu-panel { display: flex; }
.mega-menu-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--theme-surface-muted, #f9fafb);
    border-right: 1px solid var(--theme-border, #e5e7eb);
    overflow-y: auto;
    max-height: 400px;
}
.mega-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.86rem;
    color: var(--theme-text, #374151);
    text-decoration: none;
    border-bottom: 1px solid var(--theme-border, #f3f4f6);
    transition: all .15s;
    cursor: pointer;
}
.mega-menu-item:hover,
.mega-menu-item.is-active {
    background: var(--theme-surface, #fff);
    color: var(--theme-accent, #6366f1);
}
.mega-menu-item i { font-size: 0.7rem; color: var(--theme-text-muted, #9ca3af); }
.mega-menu-all { font-weight: 700; color: var(--theme-accent, #6366f1); }
.mega-menu-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 400px;
}
.mega-menu-subcats { display: none; }
.mega-menu-subcats.is-active { display: block; }
.mega-menu-subcats-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--theme-text-strong, #111827);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--theme-accent, #6366f1);
    display: inline-block;
}
.mega-menu-subcats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.mega-menu-subcat-link {
    padding: 6px 10px;
    font-size: 0.84rem;
    color: var(--theme-text, #374151);
    text-decoration: none;
    border-radius: 6px;
    transition: all .15s;
}
.mega-menu-subcat-link:hover {
    background: var(--theme-focus, rgba(99,102,241,.06));
    color: var(--theme-accent, #6366f1);
}
[data-theme="dark"] .mega-menu-panel { background: var(--theme-surface-raised); border-color: var(--theme-border-strong); }
[data-theme="dark"] .mega-menu-sidebar { background: var(--theme-surface); border-color: var(--theme-border); }
[data-theme="dark"] .mega-menu-item:hover, [data-theme="dark"] .mega-menu-item.is-active { background: var(--theme-surface-raised); }
@media (max-width: 767.98px) {
    /* Desktop hover mega menu — repurpose as click-toggle overlay on mobile */
    .mega-menu-wrap:hover .mega-menu-panel { display: none !important; }
    .mega-menu-panel {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: 0 !important;
        z-index: 10800 !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: var(--theme-bg, #f6f7fb) !important;
        box-shadow: none !important;
        animation: megaSlideIn .25s ease;
    }
    .mega-menu-wrap.is-open .mega-menu-panel {
        display: flex !important;
    }

    /* Hide desktop sidebar+content split — replaced by accordion */
    .mega-menu-sidebar { display: none !important; }
    .mega-menu-content { display: none !important; }

    /* Mobile header bar */
    .mega-menu-panel::before {
        content: '';
        display: block;
        flex-shrink: 0;
        height: env(safe-area-inset-top, 0px);
    }
}

/* Mobile mega menu header */
.mega-menu-mobile-header {
    display: none;
}
@media (max-width: 767.98px) {
    .mega-menu-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: var(--theme-surface, #fff);
        border-bottom: 1px solid var(--theme-border, #e5e7eb);
        flex-shrink: 0;
    }
    .mega-menu-mobile-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--theme-text, #111827);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mega-menu-mobile-title i {
        color: var(--theme-accent, #6366f1);
        font-size: 0.95rem;
    }
}

/* Mobile accordion list */
.mega-menu-mobile-list {
    display: none;
}
@media (max-width: 767.98px) {
    .mega-menu-mobile-list {
        display: block;
        flex: 1 1 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .mega-menu-mobile-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: var(--theme-surface, #fff);
        border-bottom: 1px solid var(--theme-border, #f3f4f6);
        text-decoration: none;
        color: var(--theme-text, #1f2937);
        font-size: 0.92rem;
        font-weight: 600;
        transition: background .15s;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mega-menu-mobile-item:active {
        background: var(--theme-surface-muted, #f3f4f6);
    }
    .mega-menu-mobile-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
        background: var(--theme-surface-muted, #f3f4f6);
        color: var(--theme-accent, #6366f1);
    }
    .mega-menu-mobile-item-icon img {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }
    .mega-menu-mobile-item-name {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mega-menu-mobile-item-count {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--theme-text-muted, #9ca3af);
        flex-shrink: 0;
    }
    .mega-menu-mobile-item-chevron {
        font-size: 0.7rem;
        color: var(--theme-text-muted, #9ca3af);
        flex-shrink: 0;
        transition: transform .2s;
    }
    .mega-menu-mobile-item.is-open .mega-menu-mobile-item-chevron {
        transform: rotate(90deg);
    }

    /* Subcategory accordion panel */
    .mega-menu-mobile-subcats {
        display: none;
        background: var(--theme-surface-muted, #f9fafb);
        border-bottom: 1px solid var(--theme-border, #e5e7eb);
        padding: 0;
        overflow: hidden;
    }
    .mega-menu-mobile-subcats.is-open {
        display: block;
    }
    .mega-menu-mobile-subcats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 8px;
    }
    .mega-menu-mobile-subcat-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        font-size: 0.84rem;
        font-weight: 500;
        color: var(--theme-text, #374151);
        text-decoration: none;
        border-radius: 8px;
        transition: background .15s;
    }
    .mega-menu-mobile-subcat-link:active {
        background: var(--theme-border, #e5e7eb);
    }
    .mega-menu-mobile-subcat-img {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
    }
    .mega-menu-mobile-subcat-all {
        font-weight: 700;
        color: var(--theme-accent, #6366f1);
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--theme-border, #e5e7eb);
        margin-bottom: 4px;
        padding-bottom: 12px;
    }

    /* "All Categories" link at bottom */
    .mega-menu-mobile-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 16px;
        background: var(--theme-surface, #fff);
        border-top: 1px solid var(--theme-border, #e5e7eb);
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--theme-accent, #6366f1);
        text-decoration: none;
        flex-shrink: 0;
    }

    /* Safe area bottom padding */
    .mega-menu-mobile-list::after {
        content: '';
        display: block;
        height: env(safe-area-inset-bottom, 0px);
    }
}

/* Close button inside mega menu panel (mobile) */
.mega-menu-close {
    display: none;
}
@media (max-width: 767.98px) {
    .mega-menu-close {
        display: flex;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--theme-surface-muted, #f3f4f6);
        color: var(--theme-text, #374151);
        font-size: 1.3rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background .15s;
        -webkit-tap-highlight-color: transparent;
    }
    .mega-menu-close:active {
        background: var(--theme-border, #e5e7eb);
    }
}

/* Backdrop behind mega menu on mobile */
.mega-menu-backdrop {
    display: none;
}
@media (max-width: 767.98px) {
    .mega-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 10799;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }
    .mega-menu-wrap.is-open .mega-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@keyframes megaSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mega Menu Icons */
.mega-menu-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--theme-accent, #6366f1), #5a6fe0);
    color: #fff;
    margin-right: 10px;
}
.mega-menu-item:hover .mega-menu-item-icon,
.mega-menu-item.is-active .mega-menu-item-icon {
    background: var(--theme-accent, #6366f1);
    transform: scale(1.05);
}
.mega-menu-item span:last-child { flex: 1; }

/* ── Applied filter chips (#14) — removable active-filter pills ─────────── */
.shop-filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:10px 14px;background:#f8f9fa;border:1px solid #e9ecef;border-radius:12px}
.sfc-label{font-size:.75rem;font-weight:700;color:#6c757d;text-transform:uppercase;letter-spacing:.4px}
.shop-filter-chip{display:inline-flex;align-items:center;padding:5px 12px;background:#fff;border:1px solid #dee2e6;border-radius:999px;font-size:.8rem;font-weight:600;color:#343a40;text-decoration:none;transition:all .15s ease;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.shop-filter-chip i{color:#6c757d;font-size:.72rem}
.shop-filter-chip .sfc-x{font-size:.62rem;color:#adb5bd;margin-left:2px;transition:color .15s}
.shop-filter-chip:hover{border-color:#495057;transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,.08);text-decoration:none;color:#212529}
.shop-filter-chip:hover .sfc-x{color:#e03131}
.shop-filter-chip--clear{background:#fff5f5;border-color:#ffc9c9;color:#c92a2a}
.shop-filter-chip--clear:hover{background:#ffe3e3;border-color:#ffa8a8;color:#a61e1e}
[data-theme="dark"] .shop-filter-chips{background:#1a1d23;border-color:#2b3038}
[data-theme="dark"] .sfc-label{color:#9aa4b6}
[data-theme="dark"] .shop-filter-chip{background:#232733;border-color:#3a404d;color:#dee2e6}
[data-theme="dark"] .shop-filter-chip:hover{border-color:#748ffc;color:#fff}
[data-theme="dark"] .shop-filter-chip--clear{background:#2b1d20;border-color:#5c333a;color:#ff8787}

/* ── Card hover second-image swap (#30) ─────────────────────────────────── */
/* IMPORTANT: never set .prod-image-link to position:relative/display:block —
   the 1:1 card ratio comes from .prod-image-wrap's padding-top:100% while the
   link sits position:absolute on top of it. Flow-positioning the link puts the
   image back in normal flow and DOUBLES the card height. Clipping is already
   handled by .prod-image-wrap's overflow:hidden. */
.prod-img--alt{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.06);transition:opacity .35s ease,transform .45s ease;z-index:2;pointer-events:none}
.modern-prod-card:hover .prod-img--alt,.modern-prod-card:focus-within .prod-img--alt{opacity:1;transform:scale(1)}
@media (prefers-reduced-motion: reduce){.prod-img--alt{transition:none}}

/* ── Recent searches panel (#15) ────────────────────────────────────────── */
.live-search-recent-head{border-bottom:1px solid rgba(0,0,0,.06)}
.live-search-recent-head .js-recent-clear{text-decoration:none;font-size:.72rem}
.live-search-recent-head .js-recent-clear:hover{color:#e03131 !important}
[data-theme="dark"] .live-search-recent-head{border-bottom-color:#2b3038}

/* ── Floating compare bar: per-item remove badge ────────────────────────── */
.compare-bar-thumb-wrap{position:relative;display:inline-flex}
.compare-bar-x{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;border:2px solid #fff;background:#e03131;color:#fff;font-size:11px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:transform .15s ease,background .15s ease;z-index:3}
.compare-bar-x:hover{background:#c92a2a;transform:scale(1.15)}
[data-theme="dark"] .compare-bar-x{border-color:#232733}

/* ── Mega menu: category thumbnails + contrast hardening ──────────────────── */
/* img wrapper uses the new .mega-menu-item-main; keep the existing gap in
   .mega-menu-item for the chevron, but children inside main stay tight. */
.mega-menu-item-main{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.mega-menu-item-img{width:28px;height:28px;border-radius:7px;object-fit:cover;border:1px solid var(--theme-border,#e5e7eb);background:#f8f9fa;flex-shrink:0}
.mega-menu-item-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mega-menu-item:hover .mega-menu-item-img,.mega-menu-item.is-active .mega-menu-item-img{border-color:var(--theme-accent,#6366f1)}
/* icon fallback (no image) should not shrink beside the label */
.mega-menu-item-icon{flex-shrink:0}

/* Contrast fix — .amz-header a{color:#fff} (specificity 0-1-1) beats every
   class-only rule on the mega menu items, forcing them white.  Scoped
   !important within .mega-menu-panel only is the lowest-impact fix that
   defeats both the header rule and the global dark-mode a:not(...) hijacks. */
.amz-header .mega-menu-panel a.mega-menu-item{color:var(--theme-text,#374151)!important}
.amz-header .mega-menu-panel a.mega-menu-item:hover,
.amz-header .mega-menu-panel a.mega-menu-item.is-active{color:var(--theme-accent,#6366f1)!important;background:var(--theme-surface,#fff)}
.amz-header .mega-menu-panel a.mega-menu-item i{color:var(--theme-text-muted,#9ca3af)}
.amz-header .mega-menu-panel a.mega-menu-all{color:var(--theme-accent,#6366f1)!important;font-weight:700}
.amz-header .mega-menu-panel .mega-menu-mobile-item{color:var(--theme-text,#374151)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-item-icon{color:var(--theme-accent,#6366f1)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-title{color:var(--theme-text,#374151)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-subcat-link{color:var(--theme-text,#374151)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-subcat-all{color:var(--theme-accent,#6366f1)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-all{color:var(--theme-accent,#6366f1)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-item-count{color:var(--theme-text-muted,#9ca3af)!important}
.amz-header .mega-menu-panel .mega-menu-mobile-item-chevron{color:var(--theme-text-muted,#9ca3af)!important}
.amz-header .mega-menu-panel .mega-menu-close{color:var(--theme-text,#374151)!important}
.amz-header .mega-menu-panel a.mega-menu-subcat-link{color:var(--theme-text,#374151)}
.amz-header .mega-menu-panel a.mega-menu-subcat-link:hover{color:var(--theme-accent,#6366f1);text-decoration:underline}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-item{color:#cbd5e1!important}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-item:hover,
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-item.is-active{color:#a5b4fc!important;background:var(--theme-surface-raised,#232733)}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-item i{color:#7c8694}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-all{color:#a5b4fc!important}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-subcat-link{color:#cbd5e1}
[data-theme="dark"] .amz-header .mega-menu-panel a.mega-menu-subcat-link:hover{color:#a5b4fc}
[data-theme="dark"] .amz-header .mega-menu-panel .mega-menu-item-img{border-color:#3a404d;background:#2b3038}

.mega-menu-item-img[src=""]{display:none}

/* ── Mega menu subcategory thumbnails ────────────────────────────────────── */
.mega-menu-subcat-link{display:flex;align-items:center;gap:8px}
.mega-menu-subcat-img{width:26px;height:26px;border-radius:6px;object-fit:cover;flex-shrink:0;border:1px solid var(--theme-border,#e5e7eb);background:#f8f9fa}
.mega-menu-subcat-link:hover .mega-menu-subcat-img{border-color:var(--theme-accent,#6366f1)}
[data-theme="dark"] .mega-menu-subcat-img{border-color:#3a404d;background:#2b3038}

/* ── Mega menu thin scrollbar ────────────────────────────────────────────── */
.mega-menu-sidebar,.mega-menu-content{
    scrollbar-width:thin;
    scrollbar-color:#c5cbd6 transparent;
}
.mega-menu-sidebar::-webkit-scrollbar,.mega-menu-content::-webkit-scrollbar{width:6px}
.mega-menu-sidebar::-webkit-scrollbar-track,.mega-menu-content::-webkit-scrollbar-track{background:transparent;border-radius:3px}
.mega-menu-sidebar::-webkit-scrollbar-thumb,.mega-menu-content::-webkit-scrollbar-thumb{background:#c5cbd6;border-radius:3px}
[data-theme="dark"] .mega-menu-sidebar,[data-theme="dark"] .mega-menu-content{scrollbar-color:#4a5060 transparent}
[data-theme="dark"] .mega-menu-sidebar::-webkit-scrollbar-thumb,[data-theme="dark"] .mega-menu-content::-webkit-scrollbar-thumb{background:#4a5060}

/* ── Dark mode: mobile mega menu ──────────────────────────────── */
[data-theme="dark"] .mega-menu-mobile-header {
    background: var(--theme-surface, #1a1d23);
    border-bottom-color: var(--theme-border, #2d3139);
}
[data-theme="dark"] .mega-menu-mobile-title {
    color: var(--theme-text, #e5e7eb);
}
[data-theme="dark"] .mega-menu-mobile-item {
    background: var(--theme-surface, #1a1d23);
    border-bottom-color: var(--theme-border, #2d3139);
    color: var(--theme-text, #e5e7eb);
}
[data-theme="dark"] .mega-menu-mobile-item:active {
    background: var(--theme-surface-muted, #232733);
}
[data-theme="dark"] .mega-menu-mobile-item-icon {
    background: var(--theme-surface-muted, #232733);
}
[data-theme="dark"] .mega-menu-mobile-subcats {
    background: var(--theme-surface-muted, #1e222b);
    border-bottom-color: var(--theme-border, #2d3139);
}
[data-theme="dark"] .mega-menu-mobile-subcat-link {
    color: var(--theme-text, #cbd5e1);
}
[data-theme="dark"] .mega-menu-mobile-subcat-link:active {
    background: var(--theme-border, #2d3139);
}
[data-theme="dark"] .mega-menu-mobile-all {
    background: var(--theme-surface, #1a1d23);
    border-top-color: var(--theme-border, #2d3139);
}
[data-theme="dark"] .mega-menu-close {
    background: var(--theme-surface-muted, #232733);
    color: var(--theme-text, #e5e7eb);
}
[data-theme="dark"] .mega-menu-close:active {
    background: var(--theme-border, #2d3139);
}

/* ═══════════════════════════════════════════════════════════════
   Kamae-style mobile categories — split view (kamae.app)
   Left 30-35% list + Right 65-70% 3-col circular grid
   Triggered via top Categories + bottom-nav Category (mobile)
   ═══════════════════════════════════════════════════════════════ */
.mega-menu-mobile-kamae { display: none; }
.mega-menu-mobile-back { display: none; }
.mega-menu-mobile-search { display: none; }

@media (max-width: 767.98px) {
    /* Header: back arrow + search pill + close — kamae.app style */
    .mega-menu-mobile-header {
        padding: 10px 12px !important;
        gap: 10px !important;
        background: var(--theme-surface, #fff) !important;
        border-bottom: 1px solid var(--theme-border, #e5e7eb) !important;
        align-items: center !important;
    }
    .mega-menu-mobile-back {
        display: flex !important;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #e91e63;
        font-size: 1.1rem;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mega-menu-mobile-back:active { background: var(--theme-surface-muted, #f3f4f6); }
    .mega-menu-mobile-search {
        display: flex !important;
        flex: 1 1 0;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 12px;
        background: var(--theme-surface, #fff);
        border: 1.5px solid #e91e63;
        border-radius: 10px;
        color: var(--theme-text-muted, #9ca3af);
        font-size: 0.85rem;
        min-width: 0;
        overflow: hidden;
    }
    .mega-menu-mobile-search i { color: #e91e63; font-size: 0.95rem; flex-shrink: 0; }
    .mega-menu-mobile-search span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Title hidden on kamae split — we show left column title instead */
    .mega-menu-mobile-title { display: none !important; }

    /* Hide legacy accordion — replaced by split */
    .mega-menu-mobile-list { display: none !important; }

    /* Split container */
    .mega-menu-mobile-kamae {
        display: flex !important;
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        background: var(--theme-bg, #f6f7fb);
    }

    /* ── Left: main categories (30-35%) ── */
    .mega-menu-kamae-left {
        width: 36%;
        min-width: 108px;
        max-width: 138px;
        background: var(--theme-surface-muted, #f3f4f6);
        border-right: 1px solid var(--theme-border, #e5e7eb);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #c5cbd6 transparent;
    }
    .mega-menu-kamae-left::-webkit-scrollbar { width: 4px; }
    .mega-menu-kamae-left::-webkit-scrollbar-thumb { background: #c5cbd6; border-radius: 3px; }
    .mega-menu-kamae-left-title {
        padding: 14px 12px 10px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #e91e63;
        background: var(--theme-surface-muted, #f3f4f6);
        flex-shrink: 0;
        letter-spacing: -0.2px;
    }
    .mega-menu-kamae-left-nav {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .mega-menu-kamae-left-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 10px 13px 12px;
        background: transparent;
        border: none;
        border-left: 3px solid transparent;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        color: var(--theme-text, #374151);
        font-size: 0.82rem;
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
        cursor: pointer;
        transition: background .15s, color .15s, border-color .15s;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
    }
    .mega-menu-kamae-left-item:active { background: var(--theme-surface, #fff); }
    .mega-menu-kamae-left-item.is-active {
        background: var(--theme-surface, #fff);
        border-left-color: #e91e63;
        color: #111827;
        font-weight: 700;
    }
    .mega-menu-kamae-left-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
        background: var(--theme-surface, #fff);
        color: #6b7280;
        overflow: hidden;
    }
    .mega-menu-kamae-left-item.is-active .mega-menu-kamae-left-icon {
        background: rgba(233,30,99,.08);
        color: #e91e63;
    }
    .mega-menu-kamae-left-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }
    .mega-menu-kamae-left-icon i { font-size: 0.85rem; }
    .mega-menu-kamae-left-label {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    .mega-menu-kamae-left-all {
        border-top: 1px solid var(--theme-border, #e5e7eb);
        margin-top: 4px;
        font-weight: 700;
        color: var(--theme-accent, #6366f1);
    }

    /* ── Right: subcategories 3-col circular — kamae.app ── */
    .mega-menu-kamae-right {
        flex: 1 1 0;
        min-width: 0;
        background: var(--theme-surface, #fff);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 14px 8px calc(14px + env(safe-area-inset-bottom,0px));
        scrollbar-width: thin;
        scrollbar-color: #c5cbd6 transparent;
    }
    .mega-menu-kamae-right::-webkit-scrollbar { width: 4px; }
    .mega-menu-kamae-right::-webkit-scrollbar-thumb { background: #c5cbd6; border-radius: 3px; }
    .mega-menu-kamae-right-panel { display: none; }
    .mega-menu-kamae-right-panel.is-active { display: block; animation: kamaeFadeIn .18s ease; }
    @keyframes kamaeFadeIn { from { opacity:0; transform:translateY(4px);} to {opacity:1; transform:translateY(0);} }

    .mega-menu-kamae-right-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 6px;
        align-items: start;
    }
    .mega-menu-kamae-right-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        text-decoration: none;
        color: inherit;
        padding: 2px;
        -webkit-tap-highlight-color: transparent;
    }
    .mega-menu-kamae-right-card:active { opacity: 0.7; }
    .mega-menu-kamae-right-imgwrap {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--theme-surface-muted, #f9fafb);
        border: 1.5px solid #fda4af; /* kamae pink ring */
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .mega-menu-kamae-right-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    .mega-menu-kamae-right-img-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--theme-surface-muted, #f3f4f6);
        color: var(--theme-text-muted, #9ca3af);
        font-size: 1.1rem;
    }
    .mega-menu-kamae-right-label {
        font-size: 0.72rem;
        font-weight: 500;
        line-height: 1.25;
        color: var(--theme-text, #111827);
        text-align: center;
        max-width: 84px;
        min-height: 30px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    .mega-menu-kamae-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px 12px;
    }
    .mega-menu-kamae-empty-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: inherit;
    }
    .mega-menu-kamae-viewall {
        font-size: 0.78rem;
        font-weight: 700;
        color: #e91e63;
        margin-top: 4px;
    }

    /* Bottom nav Category active when mega open — kamae pink */
    .mega-menu-wrap.is-open ~ .amz-bottom-nav #amz-bottom-category-btn,
    #amz-bottom-category-btn[aria-expanded="true"] {
        color: #e91e63 !important;
    }
}

/* Desktop: keep kamae hidden, keep accordion hidden */
@media (min-width: 768px) {
    .mega-menu-mobile-kamae { display: none !important; }
    .mega-menu-mobile-back { display: none !important; }
    .mega-menu-mobile-search { display: none !important; }
}

/* ── Dark mode: kamae split ── */
[data-theme="dark"] .mega-menu-kamae-left {
    background: var(--theme-surface, #1a1d23);
    border-right-color: var(--theme-border, #2d3139);
}
[data-theme="dark"] .mega-menu-kamae-left-title {
    background: var(--theme-surface, #1a1d23);
    color: #f472b6;
}
[data-theme="dark"] .mega-menu-kamae-left-item {
    color: var(--theme-text, #cbd5e1);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .mega-menu-kamae-left-item.is-active {
    background: var(--theme-surface-raised, #232733);
    color: #f472b6;
    border-left-color: #f472b6;
}
[data-theme="dark"] .mega-menu-kamae-left-icon {
    background: var(--theme-surface-raised, #232733);
}
[data-theme="dark"] .mega-menu-kamae-left-item.is-active .mega-menu-kamae-left-icon {
    background: rgba(244,114,182,.15);
}
[data-theme="dark"] .mega-menu-kamae-right {
    background: var(--theme-surface, #1a1d23);
}
[data-theme="dark"] .mega-menu-kamae-right-label {
    color: var(--theme-text, #e5e7eb);
}
[data-theme="dark"] .mega-menu-kamae-right-imgwrap {
    border-color: #52525b;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    background: var(--theme-surface-raised, #232733);
}
[data-theme="dark"] .mega-menu-mobile-header {
    background: var(--theme-surface, #1a1d23) !important;
    border-bottom-color: var(--theme-border, #2d3139) !important;
}
[data-theme="dark"] .mega-menu-mobile-back { color: #f472b6; }
[data-theme="dark"] .mega-menu-mobile-search {
    background: var(--theme-surface-raised, #232733);
    border-color: #f472b6;
    color: var(--theme-text, #cbd5e1);
}

/* ── RTL support ── */
[dir="rtl"] .mega-menu-kamae-left {
    border-right: none;
    border-left: 1px solid var(--theme-border, #e5e7eb);
}
[dir="rtl"] .mega-menu-kamae-left-item {
    border-left: none;
    border-right: 3px solid transparent;
}
[dir="rtl"] .mega-menu-kamae-left-item.is-active {
    border-right-color: var(--theme-accent, #e91e63);
    border-left-color: transparent;
}
[dir="rtl"] .mega-menu-kamae-left { scrollbar-width: thin; }

/* ═══════════════════════════════════════════════════════════════
   Home categories marquee — kamae.app pill bar
   Standard infinite scroll (no <marquee>), CSS + JS duplication
   Auto-slides left→right, pause on hover/focus, respects reduced-motion
   ═══════════════════════════════════════════════════════════════ */
.cat-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0 8px;
    /* subtle edge fade like kamae */
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
            mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}
.cat-marquee-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    will-change: transform;
    animation: catMarqueeScroll 32s linear infinite;
}
.cat-marquee-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(233,30,99,0.12);
    border: 1px solid rgba(233,30,99,0.14);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.cat-marquee-item:hover {
    background: rgba(233,30,99,0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(233,30,99,0.12);
    color: #111827;
    text-decoration: none;
}
.cat-marquee-item:active {
    transform: translateY(0);
}
.cat-marquee-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
}
.cat-marquee-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #e91e63;
    font-size: 11px;
    flex-shrink: 0;
}
.cat-marquee-label {
    line-height: 1;
}
@keyframes catMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Pause on hover, focus, or when any pill is focused */
.cat-marquee:hover .cat-marquee-track,
.cat-marquee:focus-within .cat-marquee-track,
.cat-marquee.is-paused .cat-marquee-track {
    animation-play-state: paused;
}
/* Edge fade fallback for browsers without mask */
@supports not (mask-image: linear-gradient(to right, transparent, black)) {
    .cat-marquee::before,
    .cat-marquee::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 24px;
        z-index: 1;
        pointer-events: none;
    }
    .cat-marquee::before {
        left: 0;
        background: linear-gradient(to right, var(--theme-bg, #f6f7fb), transparent);
    }
    .cat-marquee::after {
        right: 0;
        background: linear-gradient(to left, var(--theme-bg, #f6f7fb), transparent);
    }
}
/* Responsive: slightly tighter on phones like kamae */
@media (max-width: 575.98px) {
    .cat-marquee { padding: 8px 0 6px; }
    .cat-marquee-item { padding: 7px 12px; font-size: 12.5px; gap: 5px; }
    .cat-marquee-item img,
    .cat-marquee-icon { width: 18px; height: 18px; }
}
/* Dark mode */
[data-theme="dark"] .cat-marquee-item {
    background: rgba(244,114,182,0.14);
    border-color: rgba(244,114,182,0.18);
    color: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
[data-theme="dark"] .cat-marquee-item:hover {
    background: rgba(244,114,182,0.22);
    color: #fff;
}
[data-theme="dark"] .cat-marquee-icon {
    background: #232733;
    color: #f472b6;
}
[data-theme="dark"] .cat-marquee-item img {
    background: #1a1d23;
}
/* RTL: marquee direction flips automatically via transform, but keep gap */
[dir="rtl"] .cat-marquee-track {
    /* In RTL, scroll still left→right but visually mirrored; keep same animation */
}
/* Reduced motion: disable auto-scroll, allow manual horizontal scroll like kamae's free-mode */
@media (prefers-reduced-motion: reduce) {
    .cat-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .cat-marquee::-webkit-scrollbar { display: none; }
    .cat-marquee-track {
        animation: none !important;
        transform: none !important;
        width: max-content;
    }
}

/* ════════════════════════════════════════════════════════════════════
   DOSHOP LARGE-SCREEN MEGA MENU — header-v2
   Inspired by doshop.com desktop categories mega menu (≥992px):
   - Wide panel (920→1240px) anchored under "All categories" trigger
   - 3-part layout: left nav (260px) | center grouped columns | right promo (260px, ≥1200px)
   - Orange accent (#c2410c) active state, multi-column grouped links, promo cards
   - Hover-intent, keyboard focus rings, chevron rotation, backdrop
   Keeps existing mobile sheet untouched (<768px)
   ════════════════════════════════════════════════════════════════════ */

/* ---------- Trigger: Doshop-style pill ---------- */
.doshop-trigger {
    gap: 8px;
    padding: 7px 14px 7px 10px !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f2b6c, #3f5aa9);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: 0 2px 10px rgba(31,43,108,.18);
    font-size: 13.5px;
    letter-spacing: .02em;
}
.doshop-trigger:hover,
.doshop-trigger:focus-visible {
    background: linear-gradient(135deg, #2a3a84, #4a65b8);
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(31,43,108,.28);
}
.doshop-trigger-icon {
    width: 28px; height: 28px; border-radius: 7px;
    background: rgba(255,255,255,.14);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.doshop-trigger-label { font-weight: 800; }
.doshop-trigger-all {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    opacity: .72; margin-left: 2px; display: none;
}
@media (min-width: 992px){ .doshop-trigger-all { display: inline; } }
.doshop-trigger-chevron { opacity: .85; }
.doshop-mega-wrap.is-open .doshop-trigger-chevron { transform: rotate(180deg) !important; }

/* ---------- Panel: wide Doshop container ---------- */
@media (min-width: 768px){
    .doshop-mega-wrap { position: relative; }
    .doshop-panel {
        width: 880px;
        height: auto;
        min-height: 0;
        max-height: min(86vh, 560px);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 18px 48px rgba(15,23,42,.18);
        overflow: hidden;
        display: none;
        flex-direction: row;
        align-items: stretch;
        animation: doshopSlideDown .22s cubic-bezier(.16,1,.3,1);
    }
    .doshop-mega-wrap:hover .doshop-panel,
    .doshop-mega-wrap.is-open .doshop-panel,
    .doshop-panel:hover { display: flex !important; }
}
@media (min-width: 992px){
    .doshop-panel { width: 1020px; max-height: min(86vh, 580px); }
}
@media (min-width: 1200px){
    .doshop-panel { width: 1180px; max-width: 1220px; max-height: min(86vh, 600px); border-radius: 0 0 16px 16px; }
}
@media (min-width: 1400px){
    .doshop-panel { width: 1280px; max-width: calc(100vw - 48px); }
}
@keyframes doshopSlideDown {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Backdrop: subtle dim on desktop ---------- */
@media (min-width: 768px){
    .doshop-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: 0; /* will be pushed below header via JS? fixed covers all, but panel is above */
        background: rgba(15,23,42,.38);
        backdrop-filter: blur(2px);
        z-index: 10499;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    .doshop-mega-wrap.is-open .doshop-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    /* keep panel above backdrop */
    .doshop-panel { z-index: 10500; }
}

/* ---------- Left sidebar: Doshop nav ---------- */
@media (min-width: 768px){
    .doshop-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 268px;
        min-width: 268px;
        max-width: 268px;
        background: #f8f9fb;
        border-right: 1px solid #e5e7eb;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #c5cbd6 transparent;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        padding: 6px 0 0;
        align-self: stretch;
        max-height: inherit;
    }
    .doshop-sidebar::-webkit-scrollbar { width: 6px; height: 6px; }
    .doshop-sidebar::-webkit-scrollbar-track { background: transparent; }
    .doshop-sidebar::-webkit-scrollbar-thumb { background:#c5cbd6; border-radius: 3px; border: 1px solid transparent; background-clip: content-box; }
    .doshop-sidebar::-webkit-scrollbar-thumb:hover { background:#9ca3af; background-clip: content-box; }
    .doshop-sidebar-item {
        padding: 10px 14px 10px 12px !important;
        font-size: .875rem;
        border-left: 3px solid transparent;
        border-bottom: 1px solid rgba(0,0,0,.03) !important;
        gap: 10px;
        color: #111827 !important;
        background: #f8f9fb !important;
        border-radius: 0;
        transition: all .13s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    .doshop-sidebar-item:hover,
    .doshop-sidebar-item:focus-visible {
        background: #fff !important;
        color: #c2410c !important;
        border-left-color: #c2410c !important;
        outline: none;
        box-shadow: inset 0 0 0 1px rgba(194,65,12,.08);
    }
    .doshop-sidebar-item.is-active {
        background: #fff !important;
        color: #c2410c !important;
        border-left-color: #c2410c !important;
        font-weight: 700;
        box-shadow: 0 1px 6px rgba(0,0,0,.05);
    }
    .doshop-sidebar-item.is-active .doshop-item-icon,
    .doshop-sidebar-item:hover .doshop-item-icon {
        background: linear-gradient(135deg, #c2410c, #ea580c);
        color: #fff !important;
        transform: scale(1.03);
    }
    .doshop-item-main { gap: 11px !important; }
    .doshop-item-img {
        width: 32px !important; height: 32px !important;
        border-radius: 9px !important;
        border: 1.5px solid #e5e7eb !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }
    .doshop-item-icon {
        width: 32px; height: 32px; border-radius: 9px;
        background: #fff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
        color: #c2410c !important;
        font-size: .82rem;
    }
    .doshop-item-label { font-size: .875rem; line-height: 1.2; color: #111827 !important; font-weight: 600; opacity: 1 !important; visibility: visible !important; }
    .doshop-item-count {
        margin-left: auto;
        font-size: 11px; font-weight: 700;
        color: #9ca3af;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 1px 6px;
        min-width: 22px; text-align: center;
    }
    .doshop-sidebar-item.is-active .doshop-item-count {
        color: #c2410c; border-color: rgba(194,65,12,.2); background: #fff7ed;
    }
    .doshop-item-chevron { font-size: 10px !important; color: #9ca3af !important; margin-left: 6px; transition: transform .16s, color .16s; }
    .doshop-sidebar-item.is-active .doshop-item-chevron,
    .doshop-sidebar-item:hover .doshop-item-chevron { color: #c2410c !important; transform: translateX(2px); }
    .doshop-view-all-cats {
        margin-top: auto;
        border-top: 1px solid #e5e7eb !important;
        background: #fff !important;
        color: #c2410c !important;
        font-weight: 800;
        padding: 12px 14px !important;
        justify-content: flex-start !important;
        gap: 8px;
    }
    .doshop-all-count { opacity: .65; font-weight: 700; }
}

/* ---------- Center content: Doshop grouped ---------- */
@media (min-width: 768px){
    .doshop-content {
        flex: 1 1 auto;
        min-width: 0;
        padding: 18px 20px 14px;
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
        scrollbar-width: thin;
        scrollbar-color: #c5cbd6 transparent;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        align-self: stretch;
        max-height: inherit;
    }
    .doshop-content::-webkit-scrollbar { width: 6px; height: 6px; }
    .doshop-content::-webkit-scrollbar-track { background: transparent; }
    .doshop-content::-webkit-scrollbar-thumb { background:#c5cbd6; border-radius:3px; border: 1px solid transparent; background-clip: content-box; }
    .doshop-content::-webkit-scrollbar-thumb:hover { background:#9ca3af; background-clip: content-box; }

    .doshop-panel-pane { display: none; }
    .doshop-panel-pane.is-active { display: block; animation: doshopPaneFade .18s ease; }
    @keyframes doshopPaneFade { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform:translateY(0);} }

    .doshop-pane-header {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin-bottom: 14px; padding-bottom: 10px;
        border-bottom: 1px solid #f3f4f6;
    }
    .doshop-pane-title-wrap { display:flex; align-items: baseline; gap: 10px; min-width:0; }
    .doshop-pane-title {
        font-size: 1.02rem; font-weight: 800; color: #111827; margin:0 !important;
        padding:0 !important; border:0 !important; display: inline !important;
        letter-spacing: -.015em;
    }
    .doshop-pane-count {
        font-size: 11px; font-weight:700; color:#6b7280; background:#f3f4f6; border-radius: 20px; padding: 3px 8px; white-space: nowrap;
    }
    .doshop-pane-viewall {
        font-size: 12.5px; font-weight: 700; color: #c2410c; text-decoration: none;
        display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
        padding: 6px 10px; border-radius: 8px; border:1px solid rgba(194,65,12,.12); background:#fff7ed;
        transition: all .15s;
    }
    .doshop-pane-viewall:hover { background:#c2410c; color:#fff; border-color:#c2410c; text-decoration:none; transform: translateY(-1px); }

    /* Grouped grid: child → grandchildren */
    .doshop-groups-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 18px;
        align-items: start;
    }
    @media (min-width: 1200px){ .doshop-groups-grid { grid-template-columns: repeat(3, 1fr); } }

    .doshop-group {
        background: #fff;
        border: 1px solid #f3f4f6;
        border-radius: 10px;
        padding: 10px 12px 12px;
        transition: border-color .15s, box-shadow .15s;
    }
    .doshop-group:hover { border-color: #ffe0cc; box-shadow: 0 4px 14px rgba(194,65,12,.08); }

    .doshop-group-title {
        display: flex; align-items: center; gap: 8px;
        font-size: .875rem; font-weight: 700; color:#111827;
        text-decoration:none; margin-bottom: 8px;
        padding-bottom: 7px; border-bottom: 2px solid #c2410c;
    }
    .doshop-group-title:hover { color:#c2410c; text-decoration:none; }
    .doshop-group-title-img { width:22px; height:22px; border-radius:6px; object-fit:cover; border:1px solid #e5e7eb; flex-shrink:0; }
    .doshop-group-title-icon { width:22px; height:22px; border-radius:6px; background:#fff7ed; border:1px solid #ffe0cc; display:inline-flex; align-items:center; justify-content:center; color:#c2410c; font-size:11px; flex-shrink:0; }
    .doshop-group-title-text { flex:1 1 auto; min-width:0; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
    .doshop-group-title-count { font-size:11px; font-weight:700; color:#9ca3af; background:#f9fafb; border:1px solid #f3f4f6; border-radius:6px; padding:1px 6px; }
    .doshop-group-title-chevron { font-size:9px; color:#9ca3af; margin-left:4px; }
    .doshop-group-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 2px; }
    .doshop-group-list-item { margin:0; }
    .doshop-grand-link {
        display: block; padding: 4px 6px; font-size: 12.8px; color:#4b5563; text-decoration:none; border-radius:6px; transition: all .13s;
    }
    .doshop-grand-link:hover { background:#fff7ed; color:#c2410c; padding-left: 10px; text-decoration:none; }
    .doshop-group-empty { font-size: 12px; color:#9ca3af; padding: 6px 0; }

    /* Flat grid: when no grandchildren, Doshop cards */
    .doshop-flat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    @media (min-width: 1200px){ .doshop-flat-grid { grid-template-columns: repeat(3, 1fr) !important; } }
    .doshop-flat-link {
        display:flex; align-items:center; gap:10px;
        padding: 10px 12px !important;
        border:1px solid #f3f4f6; border-radius:10px;
        background:#fff; font-size:.84rem; color:#374151 !important;
        transition: all .14s;
    }
    .doshop-flat-link:hover {
        border-color:#ffd8b8 !important;
        background:#fff7ed !important;
        color:#111827 !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(194,65,12,.10);
        text-decoration:none !important;
    }
    .doshop-flat-imgwrap {
        width:36px; height:36px; border-radius:9px; background:#f9fafb;
        border:1px solid #f3f4f6; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden;
    }
    .doshop-flat-img { width:28px !important; height:28px !important; border:0 !important; }
    .doshop-flat-icon { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#c2410c; font-size:13px; }
    .doshop-flat-label { flex:1 1 auto; min-width:0; font-weight:600; white-space: nowrap; overflow:hidden; text-overflow:ellipsis; }
    .doshop-flat-count { font-size:11px; font-weight:700; color:#9ca3af; background:#f9fafb; border:1px solid #f3f4f6; border-radius:6px; padding:1px 6px; }
    .doshop-flat-chevron { font-size:9px; color:#cbd5e1; margin-left:auto; }

    /* Empty pane (no children) */
    .doshop-empty-pane {
        display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
        padding: 36px 20px; background:#f9fafb; border:1px dashed #e5e7eb; border-radius:12px;
    }
    .doshop-empty-icon { width:54px; height:54px; border-radius:14px; background:#fff7ed; border:1px solid #ffe0cc; display:flex; align-items:center; justify-content:center; color:#c2410c; font-size:20px; margin-bottom:12px; }
    .doshop-empty-text { color:#6b7280; font-size:.92rem; margin-bottom:10px; }
    .doshop-empty-cta { font-weight:700; color:#c2410c; text-decoration:none; border:1px solid #ffe0cc; background:#fff; padding:7px 14px; border-radius:8px; }
    .doshop-empty-cta:hover { background:#c2410c; color:#fff; text-decoration:none; }

    /* Footer stats */
    .doshop-pane-footer {
        margin-top: 16px; padding-top: 12px; border-top:1px solid #f3f4f6;
        display:flex; align-items:center; justify-content:space-between; gap:10px;
        font-size:12px; color:#6b7280;
    }
    .doshop-footer-stats { display:flex; align-items:center; gap:8px; }
    .doshop-footer-link { color:#c2410c; font-weight:700; text-decoration:none; }
    .doshop-footer-link:hover { color:#9a3412; text-decoration:underline; }
}

/* ---------- Promo column: Doshop right highlight (desktop ≥1200px) ---------- */
@media (min-width: 768px){
    .doshop-promo { display: none; }
}
@media (min-width: 1200px){
    .doshop-promo {
        display:flex; flex-direction:column; gap:12px;
        width: 280px; min-width: 280px; max-width: 280px;
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%);
        border-left: 1px solid #ffe0cc;
        padding: 14px 14px 16px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #c5cbd6 transparent;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        align-self: stretch;
        max-height: inherit;
    }
    .doshop-promo::-webkit-scrollbar { width: 6px; height: 6px; }
    .doshop-promo::-webkit-scrollbar-track { background: transparent; }
    .doshop-promo::-webkit-scrollbar-thumb { background:#c5cbd6; border-radius:3px; border: 1px solid transparent; background-clip: content-box; }
    .doshop-promo-head {
        display:flex; align-items:center; justify-content:space-between; gap:8px;
        font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#c2410c;
        padding-bottom:8px; border-bottom:1px solid #ffe0cc;
    }
    .doshop-promo-head-link { font-size:11px; color:#c2410c; font-weight:700; text-decoration:none; }
    .doshop-promo-card {
        display:block; border:1px solid #ffe0cc; border-radius:12px; overflow:hidden;
        background:#fff; text-decoration:none; transition: all .18s;
        box-shadow: 0 2px 8px rgba(194,65,12,.07);
    }
    .doshop-promo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(194,65,12,.14); border-color:#ea580c; text-decoration:none; }
    .doshop-promo-card-imgwrap { position: relative; height: 112px; overflow:hidden; background:#fff7ed; display:flex; align-items:center; justify-content:center; }
    .doshop-promo-card-img { width:100%; height:100%; object-fit: cover; display:block; }
    .doshop-promo-card-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#ea580c; font-size:28px; background: linear-gradient(135deg, #fff7ed, #ffe0cc); }
    .doshop-promo-card-badge {
        position:absolute; top:8px; right:8px; background: linear-gradient(135deg, #c2410c, #ea580c);
        color:#fff; font-size:10px; font-weight:800; padding:4px 8px; border-radius:20px; box-shadow: 0 2px 8px rgba(194,65,12,.28);
    }
    .doshop-promo-card-body { padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px; }
    .doshop-promo-card-title { font-size:.88rem; font-weight:800; color:#111827; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
    .doshop-promo-card-cta { font-size:12px; font-weight:700; color:#c2410c; display:inline-flex; align-items:center; gap:4px; }
    .doshop-promo-trending { background:#fff; border:1px solid #f3f4f6; border-radius:10px; padding:10px 12px; }
    .doshop-promo-trending-title { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#111827; margin:0 0 8px; display:flex; align-items:center; gap:6px; }
    .doshop-promo-trending-links { display:flex; flex-wrap:wrap; gap:6px; }
    .doshop-promo-trend-link { font-size:11.5px; font-weight:600; color:#4b5563; background:#f9fafb; border:1px solid #f3f4f6; border-radius:20px; padding:4px 10px; text-decoration:none; transition: all .13s; }
    .doshop-promo-trend-link:hover { background:#fff7ed; color:#c2410c; border-color:#ffe0cc; text-decoration:none; }
    .doshop-promo-shop-btn {
        margin-top: auto; display:flex; align-items:center; justify-content:center;
        padding:10px 14px; border-radius:10px; background: linear-gradient(135deg, #c2410c, #ea580c);
        color:#fff !important; font-weight:800; font-size:.86rem; text-decoration:none;
        box-shadow: 0 4px 14px rgba(194,65,12,.28); transition: all .18s;
    }
    .doshop-promo-shop-btn:hover { background: linear-gradient(135deg, #9a3412, #c2410c); color:#fff; text-decoration:none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(194,65,12,.35); }
}

/* ---------- Dark mode: Doshop ---------- */
[data-theme="dark"] .doshop-trigger { background: linear-gradient(135deg, #0f172a, #1e293b) !important; border-color:#334155 !important; color:#f1f5f9 !important; }
[data-theme="dark"] .doshop-trigger-icon { background: rgba(255,255,255,.08); }
[data-theme="dark"] .doshop-panel { background:#111827 !important; border-color:#334155 !important; box-shadow: 0 18px 48px rgba(0,0,0,.5) !important; }
[data-theme="dark"] .doshop-backdrop { background: rgba(0,0,0,.58); }
[data-theme="dark"] .doshop-sidebar { background:#1f2937 !important; border-right-color:#334155 !important; }
[data-theme="dark"] .doshop-sidebar-item { color:#cbd5e1 !important; border-bottom-color: rgba(255,255,255,.03) !important; }
[data-theme="dark"] .doshop-sidebar-item:hover,
[data-theme="dark"] .doshop-sidebar-item.is-active { background:#111827 !important; color:#ff8c1a !important; border-left-color:#c2410c !important; }
[data-theme="dark"] .doshop-item-icon { background:#1e293b; border-color:#334155; color:#ff8c1a !important; }
[data-theme="dark"] .doshop-item-count { background:#111827; border-color:#334155; color:#94a3b8; }
[data-theme="dark"] .doshop-sidebar-item.is-active .doshop-item-count { background:#1e293b; color:#ff8c1a; border-color:rgba(194,65,12,.22); }
[data-theme="dark"] .doshop-content { background:#111827 !important; }
[data-theme="dark"] .doshop-pane-title { color:#f1f5f9 !important; }
[data-theme="dark"] .doshop-pane-count { background:#1e293b; color:#94a3b8; }
[data-theme="dark"] .doshop-group { background:#1f2937; border-color:#334155; }
[data-theme="dark"] .doshop-group:hover { border-color:#4a3a2a; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
[data-theme="dark"] .doshop-group-title { color:#f1f5f9; border-bottom-color:#c2410c; }
[data-theme="dark"] .doshop-grand-link { color:#cbd5e1; }
[data-theme="dark"] .doshop-grand-link:hover { background:#2a2430; color:#ff8c1a; }
[data-theme="dark"] .doshop-flat-link { background:#1f2937; border-color:#334155; color:#cbd5e1 !important; }
[data-theme="dark"] .doshop-flat-link:hover { background:#2a2430 !important; border-color:#4a3a2a !important; color:#fff !important; }
[data-theme="dark"] .doshop-flat-imgwrap { background:#111827; border-color:#334155; }
[data-theme="dark"] .doshop-promo { background: linear-gradient(180deg, #1a1d23, #111827) !important; border-left-color:#334155 !important; }
[data-theme="dark"] .doshop-promo-card { background:#1f2937; border-color:#334155; }
[data-theme="dark"] .doshop-promo-card-title { color:#f1f5f9; }
[data-theme="dark"] .doshop-promo-trending { background:#1f2937; border-color:#334155; }
[data-theme="dark"] .doshop-promo-trending-title { color:#f1f5f9; }
[data-theme="dark"] .doshop-promo-trend-link { background:#111827; border-color:#334155; color:#cbd5e1; }
[data-theme="dark"] .doshop-promo-trend-link:hover { background:#2a2430; color:#ff8c1a; border-color:#4a3a2a; }

/* ---------- RTL: mirror sidebar border, promo, etc. ---------- */
[dir="rtl"] .doshop-sidebar { border-right: none; border-left: 1px solid #e5e7eb; }
[dir="rtl"] .doshop-sidebar-item { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .doshop-sidebar-item:hover,
[dir="rtl"] .doshop-sidebar-item.is-active { border-right-color:#c2410c; border-left-color: transparent !important; }
[dir="rtl"] .doshop-promo { border-left: none; border-right: 1px solid #ffe0cc; }
[dir="rtl"] .doshop-panel { direction: rtl; }

/* ---------- Accessibility: focus rings on Doshop ---------- */
.doshop-sidebar-item:focus-visible,
.doshop-flat-link:focus-visible,
.doshop-grand-link:focus-visible,
.doshop-promo-card:focus-visible {
    outline: 2px solid #c2410c;
    outline-offset: 2px;
}

/* Legacy mega-menu styles are kept for mobile; ensure they don't leak to desktop Doshop when active */
@media (min-width: 768px){
    /* Old 700px width overridden by .doshop-panel rules above; neutralize old .mega-menu-panel default so old selectors don't clip */
    .mega-menu-panel:not(.doshop-panel) { width: 700px; }
}


/* ── Doshop visibility fix: header link color was forcing white-on-white in light mode
   .amz-header a (0-1-1) beats plain .doshop-* (0-1-0). Scope !important inside panel
   so sidebar/group/flat/promo links stay readable in BOTH themes ── */
.amz-header .doshop-panel a.doshop-sidebar-item { color: #374151 !important; }
.amz-header .doshop-panel a.doshop-sidebar-item:hover,
.amz-header .doshop-panel a.doshop-sidebar-item.is-active { color: #c2410c !important; }
.amz-header .doshop-panel a.doshop-group-title { color: #111827 !important; }
.amz-header .doshop-panel a.doshop-group-title:hover { color: #c2410c !important; }
.amz-header .doshop-panel a.doshop-grand-link { color: #4b5563 !important; }
.amz-header .doshop-panel a.doshop-grand-link:hover { color: #c2410c !important; }
.amz-header .doshop-panel a.doshop-flat-link { color: #374151 !important; }
.amz-header .doshop-panel a.doshop-flat-link:hover { color: #111827 !important; }
.amz-header .doshop-panel a.doshop-pane-viewall { color: #c2410c !important; }
.amz-header .doshop-panel a.doshop-pane-viewall:hover { color: #fff !important; }
.amz-header .doshop-panel a.doshop-footer-link { color: #c2410c !important; }
.amz-header .doshop-panel a.doshop-promo-card { color: #111827 !important; }
.amz-header .doshop-panel a.doshop-promo-trend-link { color: #4b5563 !important; }
.amz-header .doshop-panel a.doshop-promo-trend-link:hover { color: #c2410c !important; }

/* non-link text that was inheriting header/dark link colors */
.amz-header .doshop-panel .doshop-pane-title { color: #111827 !important; }
.amz-header .doshop-panel .doshop-pane-count { color: #6b7280 !important; background: #f3f4f6 !important; }
.amz-header .doshop-panel .doshop-group-title-count,
.amz-header .doshop-panel .doshop-flat-count,
.amz-header .doshop-panel .doshop-item-count { color: #6b7280 !important; background: #f9fafb !important; border-color: #e5e7eb !important; }
.amz-header .doshop-panel .doshop-group-empty,
.amz-header .doshop-panel .doshop-empty-text { color: #6b7280 !important; }
.amz-header .doshop-panel .doshop-pane-footer { color: #6b7280 !important; }
.amz-header .doshop-panel .doshop-promo-kicker { color: #c2410c !important; }
.amz-header .doshop-panel .doshop-promo-head-link { color: #c2410c !important; }
.amz-header .doshop-panel .doshop-promo-card-title { color: #111827 !important; }
.amz-header .doshop-panel .doshop-promo-card-cta { color: #c2410c !important; }
.amz-header .doshop-panel .doshop-promo-trending-title { color: #111827 !important; }
.amz-header .doshop-panel .doshop-promo-head { color: #c2410c !important; }
.amz-header .doshop-panel .doshop-promo-card-badge { color: #fff !important; }

/* ── Dark mode: same selectors with dark palette ── */
[data-theme="dark"] .amz-header .doshop-panel a.doshop-sidebar-item { color: #cbd5e1 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-sidebar-item:hover,
[data-theme="dark"] .amz-header .doshop-panel a.doshop-sidebar-item.is-active { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-group-title { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-grand-link { color: #cbd5e1 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-grand-link:hover { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-flat-link { color: #cbd5e1 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-flat-link:hover { color: #fff !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-pane-viewall { color: #ff8c1a !important; background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-pane-viewall:hover { color: #fff !important; background: #c2410c !important; border-color: #c2410c !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-footer-link { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-promo-card { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-promo-trend-link { color: #cbd5e1 !important; }
[data-theme="dark"] .amz-header .doshop-panel a.doshop-promo-trend-link:hover { color: #ff8c1a !important; }

[data-theme="dark"] .amz-header .doshop-panel .doshop-pane-title { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-pane-count { color: #94a3b8 !important; background: #1e293b !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-group-title-count,
[data-theme="dark"] .amz-header .doshop-panel .doshop-flat-count,
[data-theme="dark"] .amz-header .doshop-panel .doshop-item-count { color: #94a3b8 !important; background: #111827 !important; border-color: #334155 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-group-empty,
[data-theme="dark"] .amz-header .doshop-panel .doshop-empty-text { color: #94a3b8 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-pane-footer { color: #94a3b8 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-head { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-kicker { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-head-link { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-card-cta { color: #ff8c1a !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-trending-title { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-card-title { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-empty-cta { color: #ff8c1a !important; background: #1f2937 !important; border-color: #334155 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-empty-cta:hover { color: #fff !important; background: #c2410c !important; border-color: #c2410c !important; }

/* tighten contrast for counts/badges that were #9ca3af on near-white (WCAG AA) */
.doshop-group-title-count,
.doshop-flat-count,
.doshop-item-count { color: #6b7280 !important; }

/* ── Doshop/Alibaba pool-tables multi-image product card ──
   Replaces single hover swap with 1-5 image stack + dots + count.
   Alibaba shows 3-5 dots at bottom center and image count badge. */
.doshop-prod-gallery { position: relative; }
.doshop-prod-gallery .prod-image-link { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; display: block !important; }
.doshop-prod-gallery .prod-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity .35s ease, transform .45s ease;
    z-index: 1;
}
.doshop-prod-gallery .prod-img.is-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}
.doshop-prod-gallery:hover .prod-img.is-active {
    transform: scale(1.03);
}
.doshop-prod-gallery .prod-img--gallery { pointer-events: none; }

/* Count badge - top-left like Alibaba */
.prod-image-count-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: rgba(15,23,42,.62);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
    letter-spacing: .02em;
}

/* Dots - centered bottom, Alibaba pills */
.prod-image-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,.36);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}
.prod-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,.58);
    cursor: pointer;
    transition: all .18s ease;
    flex-shrink: 0;
}
.prod-dot.is-active {
    width: 14px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.prod-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Nav arrows - show on hover like Alibaba */
.prod-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.doshop-prod-gallery:hover .prod-gallery-nav,
.doshop-prod-gallery:focus-within .prod-gallery-nav {
    opacity: 1;
    pointer-events: auto;
}
.prod-gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.prod-gallery-nav:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }
.prod-nav-prev { left: 8px; }
.prod-nav-next { right: 8px; }

/* Hide dots/nav when single image */
.doshop-prod-gallery:not([data-gallery]) .prod-image-count-badge,
.doshop-prod-gallery:not([data-gallery]) .prod-image-dots,
.doshop-prod-gallery:not([data-gallery]) .prod-gallery-nav { display: none !important; }

/* Dark mode */
[data-theme="dark"] .prod-image-count-badge { background: rgba(0,0,0,.58); }
[data-theme="dark"] .prod-image-dots { background: rgba(0,0,0,.42); }
[data-theme="dark"] .prod-dot { background: rgba(255,255,255,.45); }
[data-theme="dark"] .prod-dot.is-active { background: #fff; }
[data-theme="dark"] .prod-gallery-nav { background: rgba(31,41,55,.92); color: #f1f5f9; }
[data-theme="dark"] .prod-gallery-nav:hover { background: #111827; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .doshop-prod-gallery .prod-img { transition: none; }
    .prod-gallery-nav, .prod-dot { transition: none; }
}

/* ── Doshop/Alibaba large-screen search bar (pool-tables style) ──
   Pill 44px, orange 2.5px border #FF6A00, left category 110px, center input, right 92px button */
.doshop-search-wrapper {
    flex: 1 1 480px;
    max-width: 640px;
    min-width: 240px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    justify-content: center;
    align-self: center;
}
.doshop-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    background: #fff;
    border: 2.5px solid #FF6A00;
    border-radius: 24px;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(194,65,12,.12);
    transition: box-shadow .18s ease, border-color .18s ease;
    position: relative;
}
.doshop-search-bar:focus-within {
    border-color: #E05E00;
    box-shadow: 0 4px 16px rgba(194,65,12,.18);
}
.doshop-search-category {
    position: relative;
    flex: 0 0 118px;
    min-width: 118px;
    max-width: 118px;
    border-right: 1px solid #f3f4f6;
    background: #fff;
    display: flex;
    align-items: stretch;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}
.doshop-category-btn {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}
.doshop-category-btn:hover { color: #111827; background: #fff7ed; }
.doshop-category-chevron { font-size: 10px; color: #9ca3af; transition: transform .16s ease; }
.doshop-search-category.is-open .doshop-category-chevron { transform: rotate(180deg); }
.doshop-category-menu {
    position: absolute;
    top: calc(100% + 2.5px);
    left: -2.5px;
    right: -1px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 24px rgba(15,23,42,.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 20;
}
.doshop-category-menu[hidden] { display: none !important; }
.doshop-category-menu li {
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background .13s, color .13s;
}
.doshop-category-menu li:hover,
.doshop-category-menu li:focus { background: #fff7ed; color: #111827; outline: none; }
.doshop-category-menu li.is-active { background: #fff7ed; color: #FF6A00; font-weight: 700; }
.doshop-input-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; position: relative; background: #fff; overflow: visible; }
.doshop-input-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}
.doshop-search-input.amz-search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 84px 0 34px !important;
    font-size: 14.5px;
    font-weight: 400;
    color: #111827;
    outline: none !important;
    box-shadow: none !important;
}
.doshop-search-input::placeholder { color: #9ca3af; }
.doshop-image-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background .15s, color .15s;
}
.doshop-image-search-btn:hover { background: #f3f4f6; color: #111827; }
.doshop-search-wrapper .live-search-clear-btn {
    right: 44px !important;
    width: 26px; height: 26px;
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}
.doshop-search-wrapper .live-search-spinner { right: 72px !important; }
.doshop-search-btn.amz-search-btn {
    flex: 0 0 96px;
    min-width: 96px;
    max-width: 96px;
    height: 100%;
    border: none;
    border-radius: 0 24px 24px 0;
    background: #FF6A00 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    gap: 7px;
    padding: 0 18px;
    letter-spacing: .01em;
    transition: background .16s ease;
}
.doshop-search-btn:hover { background: #E05E00 !important; }
.doshop-search-btn-text { white-space: nowrap; }
.doshop-live-results.live-search-results {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid #ffe0cc;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15,23,42,.14);
    overflow: hidden;
    background: #fff;
    z-index: 30;
}
.doshop-trending-bar {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.amz-header .doshop-trending-bar .doshop-trending-label { color: #FF6A00 !important; font-weight: 700; flex-shrink: 0; }
.amz-header .doshop-trending-bar .doshop-trending-link {
    color: #ffffff !important;
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all .13s;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.doshop-trending-link:hover { background: rgba(255,255,255,.3) !important; border-color: rgba(255,255,255,.4) !important; color: #fff !important; text-decoration: none; }
.trending-fire-icon { font-size: 10px; color: #f97316; margin-right: 3px; vertical-align: 1px; }

/* Responsive: tablet shrinks, mobile stacks */
@media (max-width: 991.98px) {
    .doshop-search-wrapper { margin: 0 10px; max-width: 560px; }
    .doshop-search-bar { height: 42px; border-radius: 12px; border-width: 2px; }
    .doshop-search-btn.amz-search-btn { border-radius: 0 12px 12px 0; min-width: 52px; flex: 0 0 52px; padding: 0 14px; }
    .doshop-search-btn-text { display: none; }
    .doshop-trending-bar { display: none !important; }
}
@media (max-width: 767.98px) {
    .doshop-search-wrapper { margin: 10px 0 0; max-width: none; width: 100%; }
    .doshop-search-category { display: none; }
    .doshop-search-input.amz-search-input { padding-left: 32px !important; padding-right: 76px !important; font-size: 14px; }
}
@media (max-width: 575.98px) {
    .doshop-search-bar { height: 40px; }
}

/* Dark mode */
[data-theme="dark"] .doshop-search-bar { background: #1e293b; border-color: #FF6A00; box-shadow: 0 2px 10px rgba(0,0,0,.28); }
[data-theme="dark"] .doshop-search-category { background: #1e293b; border-right-color: #334155; }
[data-theme="dark"] .doshop-category-btn { color: #cbd5e1; }
[data-theme="dark"] .doshop-category-btn:hover { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .doshop-category-menu { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .doshop-category-menu li { color: #cbd5e1; }
[data-theme="dark"] .doshop-category-menu li:hover { background: #0f172a; color: #fff; }
[data-theme="dark"] .doshop-category-menu li.is-active { background: #0f172a; color: #ff8c1a; }
[data-theme="dark"] .doshop-input-wrap { background: #1e293b; }
[data-theme="dark"] .doshop-search-input.amz-search-input { color: #f1f5f9 !important; background: transparent !important; }
[data-theme="dark"] .doshop-search-input::placeholder { color: #94a3b8; }
[data-theme="dark"] .doshop-image-search-btn { color: #94a3b8; }
[data-theme="dark"] .doshop-image-search-btn:hover { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .amz-header .doshop-trending-bar .doshop-trending-link { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
[data-theme="dark"] .doshop-trending-bar { background: #1e293b !important; border-color: #334155 !important; box-shadow: 0 4px 12px rgba(0,0,0,.24) !important; }
[data-theme="dark"] .doshop-trending-link:hover { background: #1e293b !important; border-color: #4a3a2a !important; color: #ff8c1a !important; }
[data-theme="dark"] .doshop-live-results.live-search-results { background: #1e293b; border-color: #334155; }


/* Header fix: trending bar overlays below without increasing header height, only shows on search focus or large hover */

@media (max-width: 991.98px) {
    .doshop-search-wrapper .doshop-trending-bar { display: none !important; }
}


.doshop-search-wrapper:focus-within .doshop-trending-bar,
.doshop-search-wrapper:hover .doshop-trending-bar { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

/* The live-results dropdown and the trending pill bar sit at the same
   overlay spot below the search bar. The trending bar comes later in the
   DOM, so while the dropdown is open (products / recent searches) it paints
   on top and covers the results' first rows — the product list appears to go
   "under" the trending categories. Keep the bar hidden until the dropdown
   closes. live-search.js toggles .live-search-results-open on the wrapper. */
.doshop-search-wrapper.live-search-results-open .doshop-trending-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-4px);
    pointer-events: none !important;
}


[data-theme="dark"] .doshop-search-wrapper:focus-within .doshop-trending-bar { opacity: 1; visibility: visible; transform: translateY(0); }

.amz-header .doshop-trending-bar { background: rgba(15,23,42,.85) !important; border-color: rgba(255,255,255,.12) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,.18) !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE CATEGORY SHEET FIX — 2026-09-01
   Issue: (1) Featured / promo column leaked into mobile sheet and
   was "not properly placed" (stacked below kamae, causing overflow).
   By design promo is desktop-only (≥1200px). Hide it on phones.
   (2) Header search bar appeared OVER the full-screen category
   sheet when opened from bottom-nav. Root cause: .amz-header-top
   (z-index:20) and .amz-header-bottom (z-index:10) each create a
   stacking context. .mega-menu-panel is a child of header-bottom,
   so even with z-index:10800 it painted behind header-top's
   context. Fix: when the sheet is open, lift the header's stacking
   context and drop header-top below header-bottom so the fixed
   panel (and its backdrop) paint above the entire header, including
   the search bar and its live-results dropdown.
   ═══════════════════════════════════════════════════════════════════ */
/* Promo / Featured is desktop-only — hide on phones explicitly.
   The existing rule hides it at 768-1199 but left <768 visible. */
@media (max-width: 767.98px) {
    .doshop-promo,
    .mega-menu-promo.doshop-promo,
    .mega-menu-promo {
        display: none !important;
    }
}
@media (max-width: 767.98px) {
    /* Lift the whole header when sheet is open so its fixed children
       can escape the old z-index:10 vs 20 ordering. :has() is widely
       supported; JS fallback below adds .amz-header--mega-open. */
    .amz-header:has(.mega-menu-wrap.is-open),
    .amz-header.amz-header--mega-open {
        position: relative;
        z-index: 10805 !important;
    }
    .amz-header:has(.mega-menu-wrap.is-open) .amz-header-bottom,
    .amz-header.amz-header--mega-open .amz-header-bottom {
        z-index: 10806 !important;
    }
    .amz-header:has(.mega-menu-wrap.is-open) .amz-header-top,
    .amz-header.amz-header--mega-open .amz-header-top {
        z-index: 1 !important;
    }
    .mega-menu-wrap.is-open {
        z-index: 10806 !important;
    }
    /* Panel + backdrop must sit above header search and bottom-nav (1035) */
    .mega-menu-panel.doshop-panel,
    .mega-menu-panel {
        z-index: 10810 !important;
    }
    .mega-menu-backdrop.doshop-backdrop,
    .mega-menu-backdrop {
        z-index: 10809 !important;
    }
    /* If live search was open before tapping Categories, its dropdown
       (z 1050 / 30) would otherwise peek above header-top. Hide it
       while the sheet is open. */
    .amz-header:has(.mega-menu-wrap.is-open) .live-search-results,
    .amz-header:has(.mega-menu-wrap.is-open) .doshop-live-results,
    .amz-header.amz-header--mega-open .live-search-results,
    .amz-header.amz-header--mega-open .doshop-live-results {
        display: none !important;
    }
    /* Ensure the sheet's flex column doesn't reserve space for the
       now-hidden promo — kamae split should fill the sheet. */
    .mega-menu-panel.doshop-panel .doshop-promo {
        display: none !important;
    }
}

/* ── Dark mode: DOSHOP mega menu gaps ──────────────────────────
   Light-only rules (some with !important) left dark-on-dark text and
   light patches in dark mode. Keep these after the doshop rules above. */
[data-theme="dark"] .amz-header .doshop-panel .doshop-item-label { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-item-chevron { color: #64748b !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-sidebar-item:hover .doshop-item-chevron { color: #ff8c1a !important; }
[data-theme="dark"] .doshop-group-title-icon,
[data-theme="dark"] .doshop-empty-icon { background: #2a2430; border-color: #4a3a2a; }
[data-theme="dark"] .doshop-flat-icon { color: #ff8c1a; }
[data-theme="dark"] .doshop-group-title-chevron,
[data-theme="dark"] .doshop-flat-chevron { color: #64748b; }
[data-theme="dark"] .doshop-promo-card-imgwrap,
[data-theme="dark"] .doshop-promo-card-placeholder { background: #111827; }
[data-theme="dark"] .doshop-promo-card-placeholder { color: #ff8c1a; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-card-title { color: #f1f5f9 !important; }
[data-theme="dark"] .amz-header .doshop-panel .doshop-promo-card-cta { color: #ff8c1a !important; }
