/* ==========================================================================
   NEXUS STORE DESIGN SYSTEM - UIVERSE-INSPIRED ADVANCED UI/UX
   Version: 2.0 | Single-Vendor Next-Gen E-Commerce Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Light Mode */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --border-subtle: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-focus: #6366f1;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --primary-glow: rgba(99, 102, 241, 0.35);

    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-base: #090d16;
    --bg-surface: #0f172a;
    --bg-card: #141e33;
    --bg-elevated: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.85);

    --border-subtle: #1e293b;
    --border-medium: #334155;
    --border-focus: #818cf8;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --primary-50: #1e1b4b;
    --primary-100: #312e81;
    --primary-500: #6366f1;
    --primary-600: #818cf8;
    --primary-700: #a5b4fc;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-glow: rgba(99, 102, 241, 0.45);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.7);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==========================================================================
   BUTTON FAMILY (UIVERSE-INSPIRED)
   ========================================================================== */
.nexus-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.35;
    transition: all var(--transition-normal);
    text-decoration: none;
    box-sizing: border-box;
}

.nexus-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.nexus-btn:disabled, .nexus-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   CUSTOM ANIMATED NEON ROTATING GRADIENT BUTTON (GLOBAL)
   ========================================================================== */
.button,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *),
.btn-neon,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button) {
    position: relative;
    min-width: 80px;
    min-height: 38px;
    max-width: 100%;
    background-color: #000000;
    display: inline-flex;
    align-items: center;
    color: #ffffff !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
    border: none;
    padding: 10px 18px;
    gap: 8px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    isolation: isolate;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    overflow: visible !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Neon Gradient Rotating Frame */
.button::before,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *)::before,
.btn-neon::before,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button)::before {
    content: '';
    position: absolute;
    inset: -3px;
    margin: auto;
    border-radius: 11px;
    background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100% );
    z-index: -2;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ambient Neon Blur Glow */
.button::after,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *)::after,
.btn-neon::after,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button)::after {
    content: "";
    z-index: -3;
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
    transform: translate3d(0, 0, 0) scale(0.95);
    filter: blur(20px);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.button:hover::after,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *):hover::after,
.btn-neon:hover::after,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button):hover::after {
    filter: blur(30px);
    opacity: 1;
}

.button:hover::before,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *):hover::before,
.btn-neon:hover::before,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button):hover::before {
    transform: rotate(-180deg);
}

.button:active::before,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *):active::before,
.btn-neon:active::before,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button):active::before {
    scale: 0.7;
}

.button > *,
.nexus-btn-primary:not(.nexus-btn-sm):not(.card-action-btn):not(.product-card *) > *,
.btn-neon > *,
button[type="submit"]:not(.qty-btn):not(.product-card-wishlist):not(.variant-chip-btn):not([onclick*="copyText"]):not(.theme-toggle-btn):not(.nexus-btn-sm):not(.card-action-btn):not(.product-card button):not(.retail-shelf-grid button) > * {
    position: relative;
    z-index: 2;
}

/* Secondary & Outline */
.nexus-btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.nexus-btn-secondary:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.nexus-btn-outline {
    background-color: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.nexus-btn-outline:hover {
    background-color: var(--primary-50);
}

.nexus-btn-danger {
    background-color: var(--accent-rose);
    color: #ffffff;
}

.nexus-btn-danger:hover {
    background-color: #e11d48;
    transform: translateY(-1px);
}

.nexus-btn-sm,
button[type="submit"].nexus-btn-sm,
.nexus-btn-primary.nexus-btn-sm {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    border-radius: var(--radius-sm);
    gap: 4px;
}

.nexus-btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
    .nexus-btn-lg {
        padding: 0.7rem 1.15rem !important;
        font-size: 0.95rem !important;
    }
}

.nexus-btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HEADER & NAVIGATION BAR (GLASSMORPHIC)
   ========================================================================== */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: var(--bg-glass);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.glass-header.is-scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--border-medium);
}

.header-topbar {
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.825rem;
    padding: 0.35rem 0;
    color: var(--text-muted);
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-badge {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Instant Search Input */
.header-search-container {
    position: relative;
    flex: 1;
    max-width: 540px;
}

.header-search-input {
    width: 100%;
    padding: 0.7rem 1.15rem 0.7rem 2.85rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: var(--bg-surface);
}

.search-icon-adornment {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 150;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.search-suggestions-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

/* Navigation Links */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-500);
    background-color: var(--primary-50);
}

/* Action Icons (Wishlist, Cart, Profile) */
.nav-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-action-btn:hover {
    color: var(--primary-500);
    border-color: var(--primary-500);
    background-color: var(--bg-elevated);
}

.nav-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   PRODUCT CARD (UIVERSE-INSPIRED)
   ========================================================================== */
/* ==========================================================================
   PRODUCT CARD (UIVERSE-INSPIRED & FULLY RESPONSIVE)
   ========================================================================== */
.product-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-glow);
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #ffffff;
    overflow: hidden;
    display: block;
}
[data-theme="dark"] .product-card-img-wrap {
    background-color: var(--bg-elevated);
}

.product-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.06);
}

.product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.product-card-wishlist:hover, .product-card-wishlist.active {
    color: var(--accent-rose);
    border-color: var(--accent-rose);
    transform: scale(1.1);
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.product-card-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.product-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    word-break: break-word;
    text-decoration: none;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent-amber);
    margin-bottom: 0.65rem;
}

.product-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    min-width: 0;
    flex-wrap: wrap;
}

.product-price-current {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.product-price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.25rem;
    white-space: nowrap;
}

/* Product Card Button Group (Sleek 2-column or 1-column layout without neon glow) */
.product-card-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 0.75rem !important;
    box-sizing: border-box !important;
}

.card-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    max-height: 34px !important;
    padding: 6px 4px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.card-action-btn::before,
.card-action-btn::after,
.product-card button::before,
.product-card button::after,
.product-card .nexus-btn::before,
.product-card .nexus-btn::after {
    display: none !important;
    content: none !important;
}

.card-action-btn-secondary,
button.card-action-btn-secondary,
a.card-action-btn-secondary {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

.card-action-btn-secondary *,
button.card-action-btn-secondary *,
a.card-action-btn-secondary * {
    color: #0f172a !important;
    fill: currentColor !important;
}

[data-theme="dark"] .card-action-btn-secondary,
[data-theme="dark"] button.card-action-btn-secondary {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border: 1.5px solid #334155 !important;
}

[data-theme="dark"] .card-action-btn-secondary *,
[data-theme="dark"] button.card-action-btn-secondary * {
    color: #f8fafc !important;
}

.card-action-btn-secondary:hover,
button.card-action-btn-secondary:hover {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

.card-action-btn-secondary:hover *,
button.card-action-btn-secondary:hover * {
    color: #ffffff !important;
}

.card-action-btn-primary,
button.card-action-btn-primary,
a.card-action-btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

.card-action-btn-primary *,
button.card-action-btn-primary *,
a.card-action-btn-primary * {
    color: #ffffff !important;
    fill: currentColor !important;
}

.card-action-btn-primary:hover,
button.card-action-btn-primary:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
}

/* Flash Sale Specialized Responsive Styles */
.flash-hero-banner {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2rem;
    color: white;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.flash-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.flash-hero-desc {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.flash-campaign-card {
    background: var(--bg-card);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}
.flash-campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
.flash-countdown-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   BADGES SYSTEM
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.badge-sale {
    background-color: var(--accent-rose);
    color: #ffffff;
}

.badge-new {
    background-color: var(--accent-emerald);
    color: #ffffff;
}

.badge-featured {
    background: var(--primary-gradient);
    color: #ffffff;
}

.badge-stock {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.badge-low-stock {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.badge-out-stock {
    background-color: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

/* ==========================================================================
   FLASH SALE COUNTDOWN TIMER
   ========================================================================== */
.flash-sale-banner {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    width: 62px;
    height: 62px;
}

.countdown-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* ==========================================================================
   MINI CART SLIDE-OVER DRAWER
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}

.slide-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-elevated);
}

/* Quantity Control */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    overflow: hidden;
}

.qty-stepper button {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.qty-stepper button:hover {
    background-color: var(--bg-elevated);
}

.qty-stepper input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-primary);
}

/* ==========================================================================
   GLOBAL SLEEK TOP TOAST NOTIFICATION SYSTEM (MAX 2 SECONDS)
   ========================================================================== */
#toast-container, #adminToastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: auto;
    max-width: 92vw;
}

.nexus-toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 520px;
    padding: 10px 22px;
    border-radius: 9999px;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35), 0 4px 12px -2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    animation: toastSlideDownTop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.nexus-toast.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.98) 0%, rgba(5, 150, 105, 0.98) 100%);
    box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.nexus-toast.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
    box-shadow: 0 10px 25px -4px rgba(239, 68, 68, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.nexus-toast.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.98) 0%, rgba(217, 119, 6, 0.98) 100%);
    box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.nexus-toast.toast-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.98) 0%, rgba(79, 70, 229, 0.98) 100%);
    box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes toastSlideDownTop {
    from { opacity: 0; transform: translateY(-25px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-25px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ==========================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.nexus-input, .nexus-select, .nexus-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.nexus-input:focus, .nexus-select:focus, .nexus-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Toggle Switch */
.nexus-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.nexus-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nexus-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-medium);
    transition: 0.3s;
    border-radius: 34px;
}

.nexus-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

.nexus-toggle input:checked + .nexus-toggle-slider:before {
    transform: translateX(22px);
}

/* ==========================================================================
   ORDER TIMELINE COMPONENT
   ========================================================================== */
.order-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 2px;
    background-color: var(--border-subtle);
}

.timeline-step {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step-dot {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 3px solid var(--border-medium);
    transition: all var(--transition-fast);
}

.timeline-step.completed .timeline-step-dot {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.timeline-step.active .timeline-step-dot {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 99;
    align-items: center;
    justify-content: space-around;
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-bottom-item.active {
    color: var(--primary-500);
}

/* Base Layout Grids */
.retail-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.customer-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .desktop-nav-links {
        display: none !important;
    }
    .checkout-grid,
    .cart-grid,
    .payment-grid,
    .product-detail-grid,
    .customer-layout-grid,
    .contact-layout-grid,
    div[style*="grid-template-columns: 280px 1fr"],
    div[style*="grid-template-columns: 1fr 380px"],
    div[style*="grid-template-columns: 1fr 400px"],
    div[style*="grid-template-columns: 1fr 340px"],
    div[style*="grid-template-columns: 1fr 1.25fr"],
    div[style*="grid-template-columns: 1fr 200px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .product-page-container {
        margin-top: 0.75rem !important;
        margin-bottom: 3rem !important;
    }
    .product-breadcrumb-nav {
        margin-bottom: 0.65rem !important;
        font-size: 0.78rem !important;
    }
    .product-breadcrumb-nav .bc-current {
        max-width: 140px !important;
    }
    .product-gallery-stage {
        aspect-ratio: 1 / 1 !important;
        max-height: min(88vw, 360px) !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
    .gallery-stage-viewport {
        position: absolute !important;
        inset: 0 !important;
        box-sizing: border-box !important;
    }
    .gallery-stage-img {
        padding: 0.5rem !important;
        object-fit: contain !important;
        object-position: center center !important;
        max-width: 100% !important;
        max-height: 100% !important;
        box-sizing: border-box !important;
    }
    .product-title-heading {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    .product-price-current {
        font-size: 1.75rem !important;
    }
    .product-price-row {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
        gap: 8px !important;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    html, body {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }
    body {
        padding-bottom: 70px;
    }
    .container-custom {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
    .header-topbar {
        padding: 6px 0;
        font-size: 0.76rem;
    }
    .header-topbar .container-custom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .header-search-container {
        max-width: 100%;
        order: 3;
        width: 100%;
        margin-top: 6px;
    }
    .nav-main {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 8px 0 12px 0;
        height: auto !important;
        min-height: 60px;
    }
    .retail-shelf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .retail-shelf-title {
        font-size: 1.25rem !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    }
    .retail-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }
    .product-card {
        border-radius: var(--radius-md) !important;
    }
    .product-card-body {
        padding: 0.65rem 0.6rem 0.75rem 0.6rem !important;
    }
    .product-card-category {
        font-size: 0.65rem !important;
        margin-bottom: 0.15rem !important;
    }
    .product-card-title {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        height: 2.5em !important;
        margin-bottom: 0.35rem !important;
    }
    .product-price-current {
        font-size: 0.95rem !important;
    }
    .product-price-old {
        font-size: 0.72rem !important;
    }
    .product-card-rating {
        font-size: 0.72rem !important;
        margin-bottom: 0.35rem !important;
    }
    .product-card-wishlist {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        top: 6px !important;
        right: 6px !important;
    }
    .product-card-badges {
        top: 6px !important;
        left: 6px !important;
        gap: 3px !important;
    }
    .product-card-badges .badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    div[style*="grid-template-columns: repeat(2, 1fr)"]:not(.retail-shelf-grid):not(.keep-2col) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"]:not(.product-card-btn-group):not(.card-action-btn-group):not(.btn-group-2col):not(.keep-2col) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 600px) {
    .nexus-card {
        padding: 1.25rem 1rem !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"]:not(.product-card-btn-group):not(.card-action-btn-group):not(.btn-group-2col):not(.keep-2col),
    div[style*="grid-template-columns: repeat(2, 1fr)"]:not(.retail-shelf-grid):not(.keep-2col),
    div[style*="grid-template-columns: repeat(3, 1fr)"]:not(.keep-3col) {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .product-detail-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem !important;
        width: 100%;
    }
    .product-detail-actions .nexus-btn {
        width: 100% !important;
        min-width: 100% !important;
        justify-content: center !important;
    }
    .cart-grid > div:last-child,
    .checkout-grid > div:last-child {
        position: static !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }
    .nexus-btn-lg {
        padding: 10px 14px !important;
        font-size: 0.92rem !important;
    }
    .retail-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
    .product-card-body {
        padding: 0.5rem 0.45rem 0.65rem 0.45rem !important;
    }
    .product-card-title {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        height: 2.5em !important;
    }
    .product-price-current {
        font-size: 0.88rem !important;
    }
    .product-price-old {
        font-size: 0.68rem !important;
    }
    .card-action-btn {
        font-size: 0.72rem !important;
        padding: 5px 2px !important;
        gap: 2px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
}

@media (max-width: 360px) {
    .container-custom {
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }
    .retail-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
    }
    .product-card-body {
        padding: 0.4rem 0.35rem 0.55rem 0.35rem !important;
    }
    .card-action-btn {
        font-size: 0.68rem !important;
        padding: 4px 1px !important;
    }
}

/* Universal Button, Image, and Table Overflow Protections */
html, body {
    overflow-x: clip;
    max-width: 100vw;
}
.nexus-btn, button, .button, a.nexus-btn {
    box-sizing: border-box;
    max-width: 100%;
}
.nexus-btn > span, button > span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}
.admin-table-container, .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table-container table, .table-responsive table {
    min-width: 600px;
}

/* ==========================================================================
   CUSTOM ANIMATED NEOBRUTALISM CHECKBOX
   ========================================================================== */
/*checkbox container */
.container,
label.container,
.checkbox-container,
.neo-checkbox {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: 25px;
  user-select: none;
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  box-sizing: border-box;
}

.container input,
label.container input,
.checkbox-container input,
.neo-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

.container .checkmark,
label.container .checkmark,
.checkbox-container .checkmark,
.neo-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5em;
  width: 1.5em;
  background-color: #fdfcf0;
  border: 4px solid #1a1a1a;
  border-radius: 8% 92% 12% 88% / 87% 11% 89% 13%;
  box-shadow: 5px 5px 0px #1a1a1a;
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.2s;
  box-sizing: border-box;
  pointer-events: none;
}

.container:hover .checkmark,
label.container:hover .checkmark,
.checkbox-container:hover .checkmark,
.neo-checkbox:hover .checkmark {
  transform: scale(1.05) rotate(2deg);
}

.container input:checked ~ .checkmark,
label.container input:checked ~ .checkmark,
.checkbox-container input:checked ~ .checkmark,
.neo-checkbox input:checked ~ .checkmark {
  background-color: #ff5722;
  border-radius: 92% 8% 88% 12% / 11% 87% 13% 89%;
  transform: scale(1.1) rotate(-2deg);
}

.container .checkmark:after,
label.container .checkmark:after,
.checkbox-container .checkmark:after,
.neo-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 0.36em;
  top: 0.09em;
  width: 0.3em;
  transform: translate(-50%, -50%) rotate(40deg);
  height: 0.7em;
  border: solid #1a1a1a;
  border-width: 0 0.25em 0.25em 0;
  border-radius: 2px;
  box-sizing: border-box;
}

/* cheked */
.container input:checked ~ .checkmark:after,
label.container input:checked ~ .checkmark:after,
.checkbox-container input:checked ~ .checkmark:after,
.neo-checkbox input:checked ~ .checkmark:after {
  display: block;
  animation: splash 0.3s forwards;
}

.container:active .checkmark,
label.container:active .checkmark,
.checkbox-container:active .checkmark,
.neo-checkbox:active .checkmark {
  transform: scale(0.9) translateY(4px);
  box-shadow: 0px 0px 0px #1a1a1a;
}

@keyframes splash {
  0% {
    transform: scale(0) rotate(40deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.2) rotate(40deg);
  }
  100% {
    transform: scale(1) rotate(40deg);
    opacity: 1;
  }
}

/* Global Micro-Spinners for Instant Click Feedback */
.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nexusSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.spinner-md {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nexusSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes nexusSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MOBILE STORE NAVIGATION & TOP 4-ACTION QUICK ACCESS HUB
   ========================================================================== */
.mobile-store-menu-btn {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-store-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        cursor: pointer;
        transition: all var(--transition-fast);
        flex-shrink: 0;
        padding: 0;
    }
    .mobile-store-menu-btn:hover,
    .mobile-store-menu-btn:active {
        background: var(--bg-elevated);
        border-color: var(--primary-500);
        color: var(--primary-500);
    }
}

/* Mobile Store Drawer Backdrop & Panel */
.mobile-store-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-store-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-store-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: var(--bg-surface);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--border-subtle);
}
.mobile-store-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.mobile-drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.mobile-drawer-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

.mobile-drawer-user-strip {
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}
.user-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    scrollbar-width: thin;
}
.drawer-nav-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.mobile-drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
}
.mobile-drawer-nav-item:hover,
.mobile-drawer-nav-item.active {
    background: var(--bg-elevated);
    color: var(--primary-500);
}
.drawer-nav-icon {
    font-size: 1.15rem;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-nav-text {
    flex: 1;
    min-width: 0;
}
.drawer-nav-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.drawer-badge-hot {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.mobile-drawer-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.drawer-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.drawer-cat-pill:hover,
.drawer-cat-pill:active {
    background: var(--primary-50);
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.mobile-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.mobile-drawer-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    background: #25d366;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-drawer-wa-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* 4-Tile Quick Access Hub on Homepage */
.mobile-quick-hub {
    display: none;
}
@media (max-width: 768px) {
    .mobile-quick-hub {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 0.85rem;
        margin-bottom: 0.85rem;
    }
    .mobile-hub-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 4px 8px 4px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        text-decoration: none;
        position: relative;
        transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .mobile-hub-card:active {
        transform: scale(0.96);
        border-color: var(--primary-500);
    }
    .hub-icon-wrap {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    .hub-icon-wrap.icon-shop {
        background: rgba(37, 99, 235, 0.12);
        color: #2563eb;
    }
    .hub-icon-wrap.icon-categories {
        background: rgba(16, 185, 129, 0.12);
        color: #10b981;
    }
    .hub-icon-wrap.icon-brands {
        background: rgba(139, 92, 246, 0.12);
        color: #8b5cf6;
    }
    .hub-icon-wrap.icon-deals {
        background: rgba(239, 68, 68, 0.14);
        color: #ef4444;
    }
    .hub-title {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.2;
    }
    .hub-subtitle {
        font-size: 0.65rem;
        color: var(--text-muted);
        line-height: 1;
        margin-top: 2px;
    }
    .hub-hot-badge {
        position: absolute;
        top: -6px;
        right: -3px;
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: #ffffff;
        font-size: 0.58rem;
        font-weight: 800;
        padding: 1px 5px;
        border-radius: 6px;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    }
}

/* Retail Deal Pill in Navigation Bar */
.retail-deal-pill {
    color: #ef4444 !important;
    font-weight: 700 !important;
}
.retail-deal-pill-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

/* ==========================================================================
   LANGUAGE SWITCHER & RELOCATED TRUST STRIP
   ========================================================================== */
.header-lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 3px;
    flex-shrink: 0;
}
.header-lang-btn {
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1.2;
}
.header-lang-btn:hover {
    color: var(--text-primary);
}
.header-lang-btn.active {
    color: var(--primary-500);
    background: var(--primary-50);
}
.header-lang-sep {
    color: var(--border-subtle);
    font-size: 0.7rem;
    user-select: none;
}

.lang-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.lang-pill-btn.active {
    background: var(--primary-500);
    color: #ffffff !important;
    border-color: var(--primary-500);
}

.storefront-trust-strip {
    background-color: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.9rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   UIVERSE MORPHING SUN/MOON THEME SWITCH
   ========================================================================== */
:root {
  --transDur: 0.3s;
  --primaryT: rgba(99, 102, 241, 0.25);
}

.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  font-size: 9px;
  cursor: pointer;
  margin: 0;
  user-select: none;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .theme {
    font-size: 8px;
  }
}

.theme,
.theme *,
.theme *::before,
.theme *::after {
  box-sizing: border-box;
}

.theme__fill,
.theme__icon {
  transition: 0.3s;
}

.theme__fill {
  background-color: var(--bg-base, #ffffff);
  display: none !important;
  mix-blend-mode: difference;
  position: fixed;
  inset: 0;
  height: 100%;
  transform: translateX(-100%);
}

.theme__icon,
.theme__toggle {
  z-index: 1;
}

.theme__icon,
.theme__icon-part {
  position: absolute;
}

.theme__icon {
  display: block;
  top: 0.5em;
  left: 0.5em;
  width: 1.5em;
  height: 1.5em;
  pointer-events: none;
}

.theme__icon-part {
  border-radius: 50%;
  box-shadow: 0.4em -0.4em 0 0.5em hsl(0,0%,100%) inset;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em);
  width: 1em;
  height: 1em;
  transition: box-shadow var(--transDur, 0.3s) ease-in-out,
		opacity var(--transDur, 0.3s) ease-in-out,
		transform var(--transDur, 0.3s) ease-in-out;
  transform: scale(0.5);
}

.theme__icon-part ~ .theme__icon-part {
  background-color: hsl(0,0%,100%);
  border-radius: 0.05em;
  top: 50%;
  left: calc(50% - 0.05em);
  transform: rotate(0deg) translateY(0.5em);
  transform-origin: 50% 0;
  width: 0.1em;
  height: 0.2em;
}

.theme__icon-part:nth-child(3) {
  transform: rotate(45deg) translateY(0.45em);
}

.theme__icon-part:nth-child(4) {
  transform: rotate(90deg) translateY(0.45em);
}

.theme__icon-part:nth-child(5) {
  transform: rotate(135deg) translateY(0.45em);
}

.theme__icon-part:nth-child(6) {
  transform: rotate(180deg) translateY(0.45em);
}

.theme__icon-part:nth-child(7) {
  transform: rotate(225deg) translateY(0.45em);
}

.theme__icon-part:nth-child(8) {
  transform: rotate(270deg) translateY(0.5em);
}

.theme__icon-part:nth-child(9) {
  transform: rotate(315deg) translateY(0.5em);
}

.theme__label,
.theme__toggle,
.theme__toggle-wrap {
  position: relative;
}

.theme__toggle,
.theme__toggle:before {
  display: block;
}

.theme__toggle {
  background-color: hsl(48,90%,85%);
  border-radius: 25% / 50%;
  box-shadow: 0 0 0 0.125em var(--primaryT, rgba(99, 102, 241, 0.25));
  padding: 0.25em;
  width: 6em;
  height: 3em;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  margin: 0;
  outline: none;
  transition: background-color var(--transDur, 0.3s) ease-in-out,
		box-shadow 0.15s ease-in-out,
		transform var(--transDur, 0.3s) ease-in-out;
}

.theme__toggle:before {
  background-color: hsl(48,90%,55%);
  border-radius: 50%;
  content: "";
  width: 2.5em;
  height: 2.5em;
  transition: 0.3s;
}

.theme__toggle:focus {
  box-shadow: 0 0 0 0.125em var(--primary, #6366f1);
  outline: transparent;
}

/* Checked */
.theme__toggle:checked {
  background-color: hsl(198,90%,15%);
}

.theme__toggle:checked:before,
.theme__toggle:checked ~ .theme__icon {
  transform: translateX(3em);
}

.theme__toggle:checked:before {
  background-color: hsl(198,90%,55%);
}

.theme__toggle:checked ~ .theme__fill {
  transform: translateX(0);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
  box-shadow: 0.2em -0.2em 0 0.2em hsl(0,0%,100%) inset;
  transform: scale(1);
  top: 0.2em;
  left: -0.2em;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
  opacity: 0;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
  transform: rotate(45deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
  transform: rotate(90deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
  transform: rotate(135deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
  transform: rotate(135deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
  transform: rotate(225deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
  transform: rotate(270deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
  transform: rotate(315deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
  transform: rotate(360deg) translateY(0.8em);
}

.theme__toggle-wrap {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

@supports selector(:focus-visible) {
  .theme__toggle:focus {
    box-shadow: 0 0 0 0.125em var(--primaryT, rgba(99, 102, 241, 0.25));
  }

  .theme__toggle:focus-visible {
    box-shadow: 0 0 0 0.125em var(--primary, #6366f1);
  }
}

[data-theme="dark"] .theme__toggle {
  box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   UIVERSE ACTION CONFIRMATION MODAL CARD
   ========================================================================== */
.nexus-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nexus-confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nexus-confirm-overlay .card,
.nexus-confirm-card {
  overflow: hidden;
  position: relative;
  background-color: var(--bg-surface, #ffffff);
  text-align: left;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 320px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.25),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle, #e5e7eb);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.nexus-confirm-overlay.active .card,
.nexus-confirm-overlay.active .nexus-confirm-card {
  transform: scale(1);
}

.nexus-confirm-overlay .header,
.nexus-confirm-card .header {
  padding: 1.25rem 1rem 1rem 1rem;
  background-color: var(--bg-surface, #ffffff);
  box-sizing: border-box;
}

.nexus-confirm-overlay .image,
.nexus-confirm-card .image {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  background-color: #fee2e2;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

[data-theme="dark"] .nexus-confirm-overlay .image,
[data-theme="dark"] .nexus-confirm-card .image {
  background-color: rgba(220, 38, 38, 0.2);
}

.nexus-confirm-overlay .image svg,
.nexus-confirm-card .image svg {
  color: #dc2626;
  width: 1.5rem;
  height: 1.5rem;
}

.nexus-confirm-overlay .content,
.nexus-confirm-card .content {
  margin-top: 0.75rem;
  text-align: center;
}

.nexus-confirm-overlay .title,
.nexus-confirm-card .title {
  color: var(--text-primary, #111827);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  display: block;
}

.nexus-confirm-overlay .message,
.nexus-confirm-card .message {
  margin-top: 0.5rem;
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  line-height: 1.35;
  word-break: break-word;
}

.nexus-confirm-overlay .actions,
.nexus-confirm-card .actions {
  margin: 0.75rem 0.5rem 0.5rem 0.5rem;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nexus-confirm-overlay .desactivate,
.nexus-confirm-card .desactivate {
  display: inline-flex;
  padding: 0.6rem 1rem;
  background-color: #dc2626;
  color: #ffffff !important;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.nexus-confirm-overlay .desactivate:hover,
.nexus-confirm-card .desactivate:hover {
  background-color: #b91c1c;
}

.nexus-confirm-overlay .cancel,
.nexus-confirm-card .cancel {
  display: inline-flex;
  padding: 0.6rem 1rem;
  background-color: var(--bg-surface, #ffffff);
  color: var(--text-secondary, #374151) !important;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-medium, #d1d5db);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.nexus-confirm-overlay .cancel:hover,
.nexus-confirm-card .cancel:hover {
  background-color: var(--bg-elevated, #f3f4f6);
}


