/* Bayleaf Main Stylesheet */
:root {
    --primary-green: #0B6B3A;
    --primary-hover: #095a30;
    --primary-light: #e8f5e9;
    --primary-orange: #FF6B00;
    --primary-orange-hover: #e55d00;
    --primary-orange-shadow: rgba(255,107,0,0.3);
    --dark-text: #222222;
    --gray-text: #555555;
    --border-color: #EAEAEA;
    --bg-light: #F8F9FA;
    --bg-white: #ffffff;
    
    /* Promos */
    --light-green: #e8f5e9;
    --light-yellow: #fff9e6;
    --light-purple: #f5efff;
    
    /* Header */
    --header-bg: #FFEB3B;
    --header-border: rgba(255,255,255,0.15);
    --header-text: #ffffff;
    --header-text-dark: #ffffff;
    
    /* Top Utilities Bar */
    --topbar-bg: #FFEB3B;
    --topbar-text: #1F2937;
    --delivery-bg: #E11D2E;
    --delivery-text: #FFFFFF;
    
    /* Download App Banner */
    --app-banner-bg: #0B6B3A;
    --app-banner-text: #FFFFFF;
    --app-btn-google: #00B14F;
    --app-btn-apple: #6C2BD9;
    
    /* Buttons */
    --btn-primary-bg: #0B6B3A;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #095a30;
    --btn-secondary-bg: #FF6B00;
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover: #e55d00;
    --btn-outline-border: #0B6B3A;
    --btn-outline-text: #0B6B3A;
    
    /* Links */
    --link-color: #0B6B3A;
    --link-hover: #095a30;
    
    /* Sale Badge */
    --sale-bg: #FF6B00;
    --sale-text: #ffffff;
    
    /* Star Rating */
    --star-color: #f59e0b;
    --star-empty: #e5e7eb;

    /* Status */
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    --info: #3b82f6;
    
    /* Dark Mode Overrides */
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text-mode: #f1f5f9;
    --dark-border: #334155;
    
    /* Shadows */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--bg-light);
    line-height: 1.5;
}

h1, h2, h3, h4, .brand-name, .countdown {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Top Utilities Bar */
.top-bar {
    background-color: var(--topbar-bg, #07701e);
    border-bottom: 1px solid rgba(31,41,55,0.12);
    border-bottom: 1px solid color-mix(in srgb, var(--topbar-text, #1F2937) 15%, transparent);
    font-size: 14px;
    color: var(--topbar-text, #1F2937);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 101;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .delivery-location {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 14px;
    border-radius: 8px;
    transition: all .2s;
    background: var(--delivery-bg, #E11D2E);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--delivery-text, #FFFFFF);
}
.top-bar-left .delivery-location:hover {
    background: color-mix(in srgb, var(--delivery-bg, #E11D2E) 88%, #000);
    border-color: color-mix(in srgb, var(--delivery-bg, #E11D2E) 30%, #000);
}
.top-bar-left .delivery-location i {
    width: 16px;
    height: 16px;
    color: var(--delivery-text, #FFFFFF);
}
.top-bar-left .delivery-location .chevron {
    width: 11px;
    height: 11px;
    margin-left: 2px;
    opacity: .85;
    transition: transform .2s;
}
.top-bar-left .delivery-location:hover .chevron {
    transform: translateY(1px);
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.top-bar-center .delivery-time {
    color: var(--topbar-text, #1F2937);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right .divider {
    color: rgba(31,41,55,0.25);
    color: color-mix(in srgb, var(--topbar-text, #1F2937) 25%, transparent);
}

.top-bar-right a:hover {
    color: #000000;
    color: color-mix(in srgb, var(--topbar-text, #1F2937) 60%, #000);
}

/* 2. Main Header */
.main-header {
    background-color: #ffe135;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 6px 0;
    position: sticky;
    top: 53px;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Uploaded site logo — transparency aware.
   Never paint a backdrop behind the artwork. The Super Admin can upload a logo
   with its background removed (transparent PNG/SVG), so the image has to
   composite straight onto whatever surface the header happens to use (yellow
   desktop bar, green mobile bar, dark theme). Sizing uses max-* caps rather
   than fixed width/height so the intrinsic aspect ratio survives and the logo
   is never letterboxed or squashed. */
.logo > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 46px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.logo-icon {
    background-color: var(--primary-green);
    color: var(--bg-white);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    width: 24px;
    height: 24px;
}

.logo-icon.white {
    background-color: var(--bg-white);
    color: var(--primary-green);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #03c524;
    line-height: 1.1;
}

.brand-name.white {
    color: var(--bg-white);
}

.tagline {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

/* Search Area */
.search-bar-container {
    flex: 1;
    max-width: 860px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}
.search-bar-container:focus-within {
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    background-color: #ffffff;
    white-space: nowrap;
    color: var(--gray-text);
    transition: color 0.2s;
    border-radius: 50px 0 0 50px;
}
.category-dropdown-btn:hover {
    color: var(--primary-green);
}
.category-dropdown-btn i {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
}
.search-bar-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 15px;
    background: transparent;
    color: var(--text-dark);
    min-width: 0;
}
.search-bar-container input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}
.search-btn {
    background: linear-gradient(135deg, var(--btn-secondary-bg), #07701e);
    color: var(--bg-white);
    border: none;
    outline: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}
.search-btn:hover {
    background: linear-gradient(135deg, var(--btn-secondary-hover), #07701e);
    box-shadow: 0 4px 16px rgba(255,107,0,0.4);
    transform: translateY(-1px);
}
.search-btn i {
    color: #fff;
    font-size: 18px;
}

/* Search Autocomplete Dropdown */
.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
}
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 200;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
}
.search-suggestions.active {
    display: block;
}
.search-suggestion-section {
    padding: 8px 0;
}
.search-suggestion-section:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}
.search-suggestion-label {
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.search-suggestion-item:hover {
    background: #f0fdf4;
}
.search-suggestion-item img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.search-suggestion-info {
    flex: 1;
    min-width: 0;
}
.search-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestion-meta {
    font-size: 12px;
    color: var(--gray-text);
}
.search-suggestion-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    white-space: nowrap;
}
.search-suggestion-cat-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light);
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.search-no-results {
    padding: 24px 18px;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
}
.search-no-results i {
    display: block;
    font-size: 28px;
    color: #d1d5db;
    margin-bottom: 8px;
}
.search-loading {
    padding: 16px 18px;
    text-align: center;
    color: var(--gray-text);
    font-size: 13px;
}
.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
.search-view-all {
    display: block;
    padding: 12px 18px;
    text-align: center;
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}
.search-view-all:hover {
    background: #f0fdf4;
}

/* ------------------------------------------------------------------
   Personalized search: recent/frequent term chips.
   Shared by the search dropdown, the search results page and the
   homepage "Suggested for You" rail, so it lives here rather than in
   a single page's inline <style> block.
   ------------------------------------------------------------------ */
.search-term-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}
.search-term-chip:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0fdf4;
}
.search-term-chip > svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.search-term-chip-badge {
    font-size: 11px;
    font-weight: 700;
    background: #f0fdf4;
    color: var(--primary-green);
    border-radius: 10px;
    padding: 1px 7px;
}
.search-terms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.search-terms-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    white-space: nowrap;
}
.search-terms-clear:hover {
    color: #C62828;
}
.search-terms-clear > svg {
    width: 13px;
    height: 13px;
}
.search-terms-clear[disabled] {
    opacity: 0.5;
    cursor: default;
}

/* Mobile Search Suggestions */
.fb-mobile-search-overlay .search-suggestions-mobile {
    display: none;
    background: #fff;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.fb-mobile-search-overlay .search-suggestions-mobile.active {
    display: block;
}
.fb-mobile-search-overlay .search-suggestion-item {
    padding: 12px 16px;
}
.fb-mobile-search-overlay .search-suggestion-item img,
.fb-mobile-search-overlay .search-suggestion-item .search-suggestion-cat-img {
    width: 46px;
    height: 46px;
}
.fb-mobile-search-overlay .search-suggestion-name {
    font-size: 15px;
}
.fb-mobile-search-overlay .search-suggestion-price {
    font-size: 15px;
}
.fb-mobile-search-overlay .search-no-results {
    padding: 40px 16px;
}
.fb-mobile-search-overlay .search-no-results i {
    font-size: 36px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #030303;
}

.icon-badge-container {
    position: relative;
    color: #050505;
}

.icon-badge-container i {
    width: 24px;
    height: 24px;
}

.hot-deals-icon {
    color: var(--error);
}

.icon-badge-container .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--error);
    color: rgb(0, 0, 0);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge-container .badge.green {
    background-color: #fdfdfd;
    color: var(--primary-green);
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-text .sub {
    font-size: 11px;
    color: rgb(0, 0, 0);
}

.action-text .main {
    font-size: 14px;
    font-weight: 600;
    color: #030303;
}

.cart-items-qty {
    font-weight: normal;
    color: #A8FFC0;
}

.auth-buttons {
    margin-left: 10px;
}

.login-btn {
    border: 1px solid rgba(255,255,255,0.3);
    background: #07701e;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #ffffff;
}

.login-btn:hover {
    border-color: #ffffff;
    background: #07701e;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-size: 14px;
    color: #0a0a0a;
}

.admin-link-btn {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.logout-btn {
    border: none;
    background: rgba(4, 197, 14, 0.8);
    color: #06d610;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}


/* 3. Main Grid Layout */
.main-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
    padding-top: 8px;
    margin-top: 25px;
}

/* Desktop Category Sidebar - Removed per requirements */
/* .sidebar-categories and .categories-list styles are no longer used */

/* Hero Slider Section */
.hero-slider-section {
    grid-column: 1 / -1;
}

.promo-banner {
    background-color: var(--primary-green);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--bg-white);
    min-height: 380px;
}

.banner-text {
    flex: 1.2;
    z-index: 2;
}

.banner-text h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.banner-text p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 320px;
}

.offer-tag {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.shop-now-btn {
    background-color: var(--bg-white);
    color: var(--primary-green);
    border: none;
    outline: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.banner-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

/* Hero Image Slider (inside promo banner) */
.hero-img-slider {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
}
.hero-img-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.hero-img-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-img-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}
.hero-img-slide a {
    display: block;
}
.hero-img-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.hero-img-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.hero-img-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: var(--bg-white);
    width: 24px;
    border-radius: 4px;
}

/* Key Features Bar */
.key-features {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 20px;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon.green-bg {
    background-color: #f0fbf2;
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.green-bg i {
    width: 20px;
    height: 20px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 13px;
    font-weight: 700;
}

.feature-text span {
    font-size: 11px;
    color: var(--gray-text);
}

/* Right Sidebar Utilities */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
}

/* Welcome Guest Card */
.welcome-card {
    display: flex;
    flex-direction: column;
}

.welcome-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

.welcome-header span {
    font-size: 12px;
    color: var(--gray-text);
}

.login-btn-green {
    background-color: var(--primary-green);
    color: var(--bg-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #fafafa;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
}

.benefit-item i {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
}

.benefit-item span {
    font-weight: 600;
    line-height: 1.2;
}

.benefit-item small {
    color: var(--gray-text);
    font-weight: normal;
}

/* Flash Sale Card */
.flash-sale-card {
    border-color: #ffd54f;
    background: linear-gradient(to bottom, #fffef9, #ffffff);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


/* Flash Offer Section - Premium */
.flash-offer-section {
    padding: 30px 0 34px;
    margin: 0 0 40px;
    position: relative;
    background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
    border-top: 1px solid #FFEBD1;
    border-bottom: 1px solid #FFEBD1;
    overflow: hidden;
}
.flash-offer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 8% 0%, rgba(255,107,0,0.06) 0%, transparent 42%),
                radial-gradient(circle at 92% 100%, rgba(11,107,58,0.05) 0%, transparent 45%);
    pointer-events: none;
}
.flash-offer-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-bottom: 22px;
    padding: 0 0;
    position: relative;
    z-index: 1;
}
.flash-offer-section .section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}
.flash-offer-section .section-header h2 span {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    background-clip: unset;
    color: #E11D2E;
}
.flash-offer-section .section-header h2 .flash-offer-icon-bolt {
    width: 30px;
    height: 30px;
    color: #FF6B00;
    background: linear-gradient(135deg, #FFE4C7, #FFD3A8);
    padding: 6px;
    border-radius: 9px;
    box-sizing: content-box;
}
.flash-offer-section .section-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.flash-offer-section .flash-ends-in {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.flash-offer-section .view-all-link.flash-view-all {
    color: #FF6B00;
    white-space: nowrap;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.flash-offer-section .view-all-link.flash-view-all:hover {
    color: #e55d00;
}

/* Countdown */
.flash-offer-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}
.flash-offer-countdown .cd-block {
    background: linear-gradient(160deg, #E11D2E, #B01224);
    border-radius: 10px;
    padding: 7px 10px 6px;
    text-align: center;
    min-width: 52px;
    box-shadow: 0 6px 14px rgba(225, 29, 46, 0.35);
    position: relative;
    overflow: hidden;
}
.flash-offer-countdown .cd-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.flash-offer-countdown .cd-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    position: relative;
}
.flash-offer-countdown .cd-lbl {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.8px;
    display: block;
    margin-top: 2px;
    position: relative;
}
.flash-offer-countdown .cd-sep {
    color: #E11D2E;
    font-size: 22px;
    font-weight: 800;
    animation: flashBlink 1s infinite;
}
@keyframes flashBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.flash-offer-empty {
    text-align: center;
    padding: 44px 20px;
    color: #6B7280;
    font-size: 14px;
    background: #fff;
    border: 1px dashed #E5E7EB;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}
.flash-offer-empty i {
    width: 34px;
    height: 34px;
    color: #F59E0B;
    display: block;
    margin: 0 auto 10px;
}
.flash-offer-empty p { margin: 0; }

/* Carousel */
.flash-offer-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 8px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.flash-offer-carousel::-webkit-scrollbar { display: none; }
.flash-offer-carousel .fb-slider-item {
    flex: 0 0 calc(20% - 13px);
    min-width: 200px;
}
@media (max-width: 1024px) {
    .flash-offer-carousel .fb-slider-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}
@media (max-width: 768px) {
    .flash-offer-carousel .fb-slider-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
}
@media (max-width: 480px) {
    .flash-offer-carousel .fb-slider-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }
}

/* Cards */
.flash-offer-card {
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.flash-offer-card:hover {
    border-color: #FFD3A8;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}
.flash-offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B00, #FF9500);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}
.flash-offer-img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 16px;
    background: #FAFAFA;
}
.flash-offer-details {
    padding: 14px;
}
.flash-offer-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.flash-offer-unit {
    font-size: 12px;
    color: #6B7280;
}
.flash-offer-moq {
    margin-top: 2px;
}
.flash-offer-details .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}
.flash-offer-details .new-price {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}
.flash-offer-details .old-price {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: line-through;
}
.flash-offer-details .add-to-cart-btn-full {
    width: 100%;
    padding: 9px;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.flash-offer-details .add-to-cart-btn-full:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.flash-offer-details .add-to-cart-btn-full:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.flash-offer-section .slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.flash-offer-section .slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all 0.3s;
}
.flash-offer-section .slider-dots .dot.active {
    background: #FF6B00;
    transform: scale(1.3);
}

/* Mobile */
@media (max-width: 768px) {
    .flash-offer-section {
        padding: 22px 12px 26px;
    }
    .flash-offer-section .section-header h2 {
        font-size: 20px;
    }
    .flash-offer-section .section-header h2 .flash-offer-icon-bolt {
        width: 20px;
        height: 20px;
        padding: 4px;
    }
    .flash-offer-countdown .cd-block {
        padding: 5px 7px 4px;
        min-width: 38px;
    }
    .flash-offer-countdown .cd-num {
        font-size: 16px;
    }
    .flash-offer-countdown .cd-lbl {
        font-size: 7px;
    }
    .flash-offer-section .section-actions {
        gap: 10px;
    }
    .flash-offer-section .flash-ends-in {
        font-size: 11px;
    }
    .flash-offer-img {
        height: 130px;
    }
}

.countdown {
    font-weight: 700;
    font-size: 14px;
    background-color: #fff8e1;
    color: var(--btn-secondary-bg);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.flash-product {
    position: relative;
    text-align: center;
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ff8f00;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.flash-img {
    height: 130px;
    object-fit: contain;
    margin-bottom: 10px;
}

.flash-details h4 {
    font-size: 15px;
    font-weight: 600;
}

.flash-details .unit {
    font-size: 12px;
    color: var(--gray-text);
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}

.new-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
}

.old-price {
    font-size: 13px;
    color: var(--gray-text);
    text-decoration: line-through;
}

.add-to-cart-btn-full {
    background-color: var(--primary-green);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn-full:hover {
    background-color: var(--primary-hover);
}



/* 4. Shop By Categories Carousel */
.categories-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.hot-offer-title-icon {
    width: 24px;
    height: 24px;
    color: #E11D2E;
}

.view-all-link {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-nav button {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-nav button:hover {
    background-color: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

.carousel-nav button i {
    width: 16px;
    height: 16px;
}

.categories-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 calc(12.5% - 14px);
    min-width: 110px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-green);
}

.category-img-container {
    width: 100%;
    max-width: 84px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f6f1ea, #eae5dd);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover .category-img-container {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.16), inset 0 0 0 1px rgba(0,0,0,0.04);
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .category-img-container { background: #26263a; }

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card span {
    font-size: 11px;
    color: var(--gray-text);
}

/* 4b. Shop By Brands Carousel */
.brands-section {
    margin-top: 40px;
}

.brands-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.brands-carousel::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex: 0 0 calc(12.5% - 14px);
    min-width: 110px;
    height: 110px;
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brand-item svg {
    width: 60px;
    height: 60px;
    display: block;
    max-width: 100%;
}

.brand-item .brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-green);
}

.brand-item:active {
    transform: scale(0.97);
}

/* 5. Promotional Banners Row */
.promo-grid-section {
    margin-top: 40px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-card {
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 180px;
    overflow: hidden;
}

.bg-light-green { background-color: var(--light-green); }
.bg-light-yellow { background-color: var(--light-yellow); }
.bg-light-purple { background-color: var(--light-purple); }

.promo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-text .sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 6px;
}

.promo-text h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.coupon-code {
    background-color: var(--bg-white);
    border: 1px dashed var(--primary-green);
    color: var(--primary-green);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.promo-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-green { background-color: var(--primary-green); color: white; }
.btn-dark { background-color: #2c2c2c; color: white; }
.btn-purple { background-color: #7b1fa2; color: white; }

.promo-img {
    flex: 0.8;
    height: 130px;
    display: flex;
    justify-content: flex-end;
}

.promo-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 6. Best Selling Products Layout */
.products-section {
    margin-top: 40px;
}

/* Homepage Shop-by-Category product rows */
.category-products-section {
    margin-top: 36px;
}
.category-product-block {
    margin-bottom: 36px;
}
.category-product-block:last-child {
    margin-bottom: 0;
}
.category-banner {
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.category-banner-link {
    display: block;
    text-decoration: none;
}
.category-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background-color: var(--bg-white);
}
.category-banner-img-mobile {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background-color: var(--bg-white);
}
@media (max-width: 768px) {
    .category-banner {
        margin-bottom: 12px;
        border-radius: 10px;
        background-color: var(--bg-white);
    }
    .category-banner-img {
        display: none;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        background-color: var(--bg-white);
    }
    .category-banner-img-mobile {
        display: block;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        background-color: var(--bg-white);
    }
}
.category-empty {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
}

.products-filters {
    display: flex;
    gap: 8px;
}

.filter-tab {
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-tab.active {
    background-color: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

.view-all-tab {
    border: none;
    color: var(--primary-green);
}

.products-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.products-grid::-webkit-scrollbar {
    display: none;
}
.fb-slider-track .fb-slider-item {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 180px;
}
.fb-product-slider-wrap {
    position: relative;
}
.fb-product-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    color: #333;
}
.fb-product-slider-btn:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}
.fb-product-slider-btn i {
    width: 16px;
    height: 16px;
}
.fb-product-slider-prev {
    left: -18px;
}
.fb-product-slider-next {
    right: -18px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-green);
}

.product-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
}
.product-card-header .wishlist-btn-card {
    margin-left: auto;
}

.product-card-header .discount-badge {
    background-color: var(--primary-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.wishlist-btn-card {
    border: none;
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wishlist-btn-card i {
    width: 14px;
    height: 14px;
    color: #bbb;
    transition: fill 0.2s, color 0.2s;
}

.wishlist-btn-card.active i {
    fill: var(--error);
    color: var(--error);
}

.product-img-container {
    height: 140px;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 11px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-unit {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.product-details .price-row {
    justify-content: flex-start;
    margin-top: 0;
}

/* --- Enhanced Product Card --- */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(198, 40, 40, 0.12);
    border-color: var(--primary-green);
}
.product-img-container {
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}
a.product-img-container {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 10px;
    text-decoration: none;
    color: inherit;
}
.product-card:hover .product-img-container {
    transform: scale(1.05);
}
.product-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.product-title-link:hover .product-title {
    color: var(--primary-green);
}
.product-card .add-to-cart-btn {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}
.product-card .wishlist-btn-card {
    transition: all 0.2s ease;
}
.product-card .wishlist-btn-card:hover {
    transform: scale(1.15);
}
.product-card .discount-badge {
    position: static;
    background: linear-gradient(135deg, var(--btn-secondary-bg), #e64a19);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.3);
    flex-shrink: 0;
    line-height: 1.3;
}

/* --- Skeleton Loading --- */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}
.skeleton-card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.skeleton-img {
    height: 140px;
    margin: 15px 0 10px;
    border-radius: 8px;
}
.skeleton-text-sm { height: 12px; width: 40%; margin-bottom: 6px; }
.skeleton-text-md { height: 14px; width: 70%; margin-bottom: 6px; }
.skeleton-text-lg { height: 16px; width: 50%; margin-bottom: 8px; }
.skeleton-btn { height: 34px; width: 100%; border-radius: 6px; margin-top: auto; }

/* --- Toast Notification System --- */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}
@keyframes authToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pfFadeIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Dividers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
}
.section-subtitle {
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 2px;
}

/* 7. Apps and Payments Area */
.apps-payment-section {
    margin-top: 40px;
    width : 80%;
}

.apps-payment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.app-banner-wide {
    position: relative;
    border-radius: 22px;
    padding: 42px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    min-height: 360px;
    color: var(--app-banner-text, #FFFFFF);
    background-color: #ffb343;
    background-image:
        radial-gradient(circle at 12% 135%, color-mix(in srgb, var(--app-banner-text, #FFFFFF) 20%, transparent), transparent 55%),
        radial-gradient(circle at 96% -15%, color-mix(in srgb, var(--app-banner-text, #FFFFFF) 14%, transparent), transparent 50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.app-banner-wide::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -8%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--app-banner-text, #FFFFFF) 7%, transparent);
    pointer-events: none;
}

.app-banner-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.app-banner-text h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.app-banner-text p {
    font-size: 15px;
    opacity: 0.92;
    margin-bottom: 24px;
}

.store-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 0.28s ease, filter 0.28s ease;
}

.store-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    filter: brightness(1.08);
}

.store-btn i {
    width: 18px;
    height: 18px;
}

.store-btn-google {
    background-image: linear-gradient(135deg,
        color-mix(in srgb, var(--app-btn-google, #00B14F) 88%, #FFFFFF),
        color-mix(in srgb, var(--app-btn-google, #00B14F) 88%, #000000));
}

.store-btn-apple {
    background-image: linear-gradient(135deg,
        color-mix(in srgb, var(--app-btn-apple, #6C2BD9) 88%, #FFFFFF),
        color-mix(in srgb, var(--app-btn-apple, #6C2BD9) 88%, #000000));
}

.app-banner-img {
    position: absolute;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    height: 118%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.app-banner-img .phone-mockup {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.2));
}

@media (max-width: 1024px) {
    .app-banner-wide {
        padding: 32px 34px;
        min-height: 320px;
    }
    .app-banner-text h3 {
        font-size: 24px;
    }
}

.payments-trust-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-methods-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.payment-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.payment-logo img {
    height: 26px;
    width: auto;
    max-width: 100%;
    display: block;
}

.payment-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10);
    border-color: #dde3ea;
}

.ssl-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    color: #166534;
    font-size: 13px;
    font-weight: 600;
}

.ssl-badge i,
.ssl-badge svg {
    width: 18px;
    height: 18px;
    color: #16a34a;
}

[data-theme="dark"] .payments-trust-card { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .payment-logo { background: #fff; border-color: #2a2a3e; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
[data-theme="dark"] .payment-logo:hover { border-color: #3b3b52; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .ssl-badge { background: rgba(22, 163, 74, 0.12); color: #4ade80; }
[data-theme="dark"] .ssl-badge i,
[data-theme="dark"] .ssl-badge svg { color: #22c55e; }

/* 8. Trust Badges Bar */
.trust-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    margin-top: 40px;
}

.trust-bar-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-item i {
    width: 28px;
    height: 28px;
    color: var(--primary-green);
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 13px;
    font-weight: 700;
}

.trust-text span {
    font-size: 11px;
    color: var(--gray-text);
}

/* 9. Footer styles */
.footer {
    background-color: #FFFFFF;
    color: #111111;
    padding: 60px 0 20px;
    font-size: 14px;
    border-top: 1px solid #EAEAEA;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #111111;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #111111;
    font-weight: 700;
}

.footer-col ul li a:hover {
    color: var(--error);
}

.branding-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.branding-desc {
    color: #111111;
    font-size: 13px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-links a {
    background-color: #f5f5f5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.social-links a:hover {
    background-color: var(--error);
    color: white;
}

.social-links i {
    font-size: 15px;
    line-height: 1;
}

.newsletter-col p {
    color: #111111;
    font-size: 13px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    background-color: #f5f5f5;
    color: #222222;
    font-size: 13px;
}

.subscribe-btn {
    background-color: var(--error);
    color: white;
    border: none;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.subscribe-btn:hover {
    background-color: #B71C1C;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    color: #111111;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-links {
    display: flex;
    gap: 15px;
}

.bottom-links a:hover {
    color: var(--error);
}

/* 10. Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background-color: white;
    z-index: 201;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-drawer {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-drawer-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.cart-item-info .qty-price {
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 4px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-controls button {
    border: none;
    background: #f9f9f9;
    width: 24px;
    height: 24px;
    font-weight: 700;
    cursor: pointer;
}

.cart-qty-controls span {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
}

.remove-cart-item {
    border: none;
    background: transparent;
    color: #ff5722;
    cursor: pointer;
    font-size: 14px;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.green-text {
    color: var(--primary-green);
}

.checkout-btn-full {
    background-color: var(--primary-green);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Cart drawer on mobile: full-screen takeover */
@media screen and (max-width: 768px) {
    .cart-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .cart-drawer-overlay.active,
    .cart-drawer-overlay[style*="display: block"],
    .cart-drawer-overlay[style*="display:block"] {
        opacity: 1;
        visibility: visible;
    }
    .cart-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        z-index: 10001;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        pointer-events: auto !important;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .cart-drawer.active,
    .cart-drawer[style*="transform: translateX(0)"],
    .cart-drawer[style*="transform:translateX(0)"] {
        transform: translateY(0);
    }
    .cart-drawer-header::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 8px;
    }
    .cart-drawer-header {
        padding: 14px 16px 10px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    .cart-drawer-header h3 { font-size: 15px; }
    .cart-drawer-items {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 0 14px;
    }
    .cart-drawer-item { padding: 10px 0; gap: 8px; }
    .cart-item-img { width: 50px; height: 50px; }
    .cart-item-info h4 { font-size: 12px; }
    .cart-item-info .qty-price { font-size: 11px; }
    .cart-qty-controls button { width: 26px; height: 26px; font-size: 13px; }
    .cart-qty-controls span { padding: 0 5px; font-size: 12px; }
    .remove-cart-item { font-size: 16px; }
    .cart-drawer-footer {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    .cart-subtotal { margin-bottom: 8px; font-size: 14px; }
    .checkout-btn-full { padding: 13px; font-size: 14px; border-radius: 12px; }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

/* Wishlist Modal */
.wishlist-modal-overlay .wishlist-modal {
    max-width: 560px;
    max-height: 80vh;
    padding: 26px 24px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wishlist-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-right: 28px;
}
.wishlist-modal-head i {
    color: #db2777;
    font-size: 20px;
}
.wishlist-modal-head h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
}
.wishlist-modal-count {
    font-size: 14px;
    font-weight: 600;
    color: #da3208;
}
.wishlist-items {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #f0f1f3;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.wishlist-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.wishlist-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: #f6f6f8;
    flex-shrink: 0;
}
.wishlist-item-info {
    flex: 1;
    min-width: 0;
}
.wishlist-item-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wishlist-item-info h4 a {
    color: inherit;
    text-decoration: none;
}
.wishlist-item-unit {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 3px;
}
.wishlist-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #C62828;
}
.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.wl-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #C62828;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.wl-add-btn:hover { background: #a81f1f; }
.wl-add-btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.wl-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.wl-remove-btn:hover { background: #fef2f2; border-color: #fca5a5; }
.wl-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}
.wl-loading i { color: #C62828; }
.wishlist-modal-empty {
    text-align: center;
    padding: 36px 12px 28px;
    color: #9ca3af;
}
.wishlist-modal-empty > i {
    font-size: 42px;
    color: #fca5a5;
    margin-bottom: 12px;
    display: block;
}
.wishlist-modal-empty p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 18px;
}
.wl-browse-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    background: #C62828;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: background 0.2s;
}
.wl-browse-btn:hover { background: #a81f1f; }

/* Header wishlist trigger (desktop) */
.header-actions .wishlist-trigger .icon-badge-container { color: #f70909; }
.header-actions .wishlist-trigger .icon-badge-container i { color: #fff; }
.header-actions .wishlist-trigger:hover .icon-badge-container i { transform: scale(1.1); transition: transform 0.2s; }

/* Mobile header wishlist trigger */
.fb-mh-wish {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}
.fb-mh-wish i,
.fb-mh-wish svg { width: 20px; height: 20px; }
.fb-mh-wish:hover { background: rgba(255,255,255,0.22); }
.fb-mh-wish-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #C62828;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1.5px solid #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
}

.form-group input, .form-group select, .form-group textarea {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-green);
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH MODAL - NEW REDESIGN
   ═══════════════════════════════════════════════════════════════════ */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal-overlay.open {
    display: flex;
}

.auth-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: authModalIn 0.3s ease;
}

@keyframes authModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}
.auth-modal-close:hover {
    background: #e5e7eb;
    color: #111;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--btn-primary-bg), var(--btn-primary-hover));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(198,40,40,0.3);
}
.auth-logo-icon i {
    font-size: 24px;
    color: #fff;
}

.auth-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.auth-modal-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    color: #6b7280;
    transition: all 0.25s;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Auth Toast (inline) */
.auth-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: authToastIn 0.3s ease;
    max-width: 90vw;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-required {
    color: #ef4444;
}

.auth-field-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 12px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.2s;
    overflow: hidden;
}

.auth-input-wrap:focus-within {
    border-color: var(--error);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}

.auth-input-icon {
    padding: 0 12px 0 14px;
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

.auth-input-wrap input,
.auth-input-wrap textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 12px 11px 0;
    font-size: 14px;
    outline: none;
    color: #111;
    width: 100%;
}

.auth-textarea-wrap {
    align-items: flex-start;
}

.auth-textarea-wrap textarea {
    resize: vertical;
    min-height: 48px;
    padding-top: 10px;
}

.auth-input-wrap input::placeholder,
.auth-textarea-wrap textarea::placeholder {
    color: #c0c4cc;
}

.auth-eye-btn {
    border: none;
    background: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.auth-eye-btn:hover {
    color: #6b7280;
}

.auth-field-hint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding-left: 2px;
}

/* Password Strength */
.auth-pw-strength {
    margin-top: 8px;
}

.auth-pw-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.auth-pw-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 0;
}

.auth-pw-label {
    font-size: 11px;
    font-weight: 600;
}

/* GPS Button */
.auth-gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.auth-gps-btn:hover {
    background: linear-gradient(135deg, #dbeafe, #bae6fd);
    border-color: #93c5fd;
}
.auth-gps-btn i {
    font-size: 14px;
}

/* Photo Upload */
.auth-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.auth-photo-upload {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.25s;
    background: #f9fafb;
}

.auth-photo-upload:hover {
    border-color: var(--error);
    background: #e8f5e9;
}

.auth-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #9ca3af;
}
.auth-photo-placeholder i {
    font-size: 22px;
}
.auth-photo-placeholder span {
    font-size: 10px;
    font-weight: 500;
}

.auth-photo-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #fff;
    z-index: 2;
}

.auth-photo-progress {
    width: 100px;
    margin-top: 8px;
}

.auth-progress-bar {
    height: 3px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.auth-progress-fill {
    height: 100%;
    background: var(--error);
    border-radius: 3px;
    transition: width 0.3s;
    width: 0;
}

/* Submit Button */
.auth-submit-btn {
    background: linear-gradient(135deg, var(--btn-primary-bg), var(--btn-primary-hover));
    color: #fff;
    border: none;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(198,40,40,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-text, .auth-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Global Auth Toast */
.auth-global-toast {
    display: none;
}

/* Scrollbar */
.auth-modal::-webkit-scrollbar { width: 6px; }
.auth-modal::-webkit-scrollbar-track { background: transparent; }
.auth-modal::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.hidden {
    display: none !important;
}

.checkout-summary-box {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.track-result-box {
    margin-top: 20px;
    background-color: #e8f5e9;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    padding: 15px;
}

.track-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
}

.track-status-badge.delivered { background-color: #e8f5e9; color: var(--error); }
.track-status-badge.processing { background-color: #fff8e1; color: var(--btn-secondary-bg); }
.track-status-badge.shipped { background-color: #e3f2fd; color: #1e88e5; }
.track-status-badge.cancelled { background-color: #e8f5e9; color: var(--error); }

/* ===== PREMIUM PROFILE PAGE ===== */
.profile-premium-wrap {
    padding: 30px 0 60px;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #e8f5e9 0%, #f8fafc 50%, #f0f9ff 100%);
}
.profile-premium-layout {
    display: grid;
    grid-template-columns: 290px 1fr 260px;
    gap: 24px;
    align-items: start;
}

/* Sidebar Cards */
.ps-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: box-shadow 0.3s ease;
}
.ps-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ps-card + .ps-card {
    margin-top: 16px;
}
.ps-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.ps-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* Photo Card */
.ps-photo-card {
    text-align: center;
}
.ps-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    transition: border-color 0.3s ease;
}
.ps-photo-wrap:hover {
    border-color: var(--primary-green);
}
.ps-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ps-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    color: #fff;
}
.ps-photo-overlay i {
    font-size: 22px;
}
.ps-photo-overlay span {
    font-size: 11px;
    font-weight: 500;
}
.ps-photo-wrap:hover .ps-photo-overlay {
    opacity: 1;
}
.ps-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ps-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.ps-tier-badge.tier-silver { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #475569; }
.ps-tier-badge.tier-gold { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }
.ps-tier-badge.tier-platinum { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #5b21b6; }
.ps-tier-badge.tier-diamond { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; }

/* Info Rows */
.ps-info-rows {
    text-align: left;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    margin-bottom: 14px;
}
.ps-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    padding: 6px 0;
}
.ps-info-row i {
    width: 16px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
}
.ps-info-row span {
    word-break: break-word;
}

/* Loyalty */
.ps-loyalty-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    padding: 14px;
}
.ps-loyalty-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.ps-loyalty-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.ps-loyalty-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), #22c55e);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-loyalty-hint {
    font-size: 11px;
    color: #9ca3af;
}

/* Quick Stats */
.ps-quick-stats .ps-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ps-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f9fafb;
    transition: background 0.2s ease;
}
.ps-stat-item:hover {
    background: #f3f4f6;
}
.ps-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.ps-stat-icon.orders { background: #dbeafe; color: #2563eb; }
.ps-stat-icon.spent { background: #d1fae5; color: #059669; }
.ps-stat-icon.items { background: #fef3c7; color: #d97706; }
.ps-stat-icon.points { background: #ede9fe; color: #7c3aed; }
.ps-stat-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
}
.ps-stat-lbl {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Tabs */
.ps-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-white);
    border-radius: 14px;
    padding: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
}
.ps-tab {
    flex: 1;
    min-width: fit-content;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.ps-tab:hover {
    background: #f3f4f6;
    color: var(--dark-text);
}
.ps-tab.active {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 166, 65, 0.3);
}
.ps-tab i {
    font-size: 13px;
}

/* Tab Panels */
.ps-tab-panel {
    display: none;
}
.ps-tab-panel.active {
    display: block;
    animation: pfFadeIn 0.35s ease;
}
@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Grid */
.ps-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Order Status Bars */
.ps-order-status-card .ps-order-status-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ps-os-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ps-os-label {
    font-size: 13px;
    color: #6b7280;
    min-width: 80px;
    font-weight: 500;
}
.ps-os-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}
.ps-os-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-os-fill.processing { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ps-os-fill.shipped { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ps-os-fill.delivered { background: linear-gradient(90deg, #10b981, #34d399); }
.ps-os-fill.cancelled { background: linear-gradient(90deg, #ef4444, #f87171); }
.ps-os-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    min-width: 28px;
    text-align: right;
}

/* Wallet Card */
.ps-wallet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #C62828 0%, #B71C1C 50%, #B71C1C 100%);
    border: none;
    color: #fff;
}
.ps-wallet-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}
.ps-wallet-label {
    font-size: 13px;
    opacity: 0.85;
    display: block;
}
.ps-wallet-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    display: block;
}
.ps-wallet-note {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}
.ps-wallet-btn {
    margin-top: 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}
.ps-wallet-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Referrals */
.pf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.pf-share-btn:hover { opacity: 0.85; color: #fff; }
.pf-ref-stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.pf-ref-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
.pf-ref-stat-lbl {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Recent Orders */
.ps-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ps-recent-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
}
.ps-recent-order-item:hover {
    background: #f3f4f6;
    border-color: var(--primary-green);
}
.ps-ro-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ps-ro-number {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-text);
}
.ps-ro-date {
    font-size: 12px;
    color: #9ca3af;
}
.ps-ro-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ps-ro-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-green);
}

/* Status Badges */
.ps-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.ps-status-badge.processing { background: #fef3c7; color: #92400e; }
.ps-status-badge.shipped { background: #dbeafe; color: #1e40af; }
.ps-status-badge.delivered { background: #d1fae5; color: #065f46; }
.ps-status-badge.cancelled { background: #fee2e2; color: #991b1b; }
.ps-status-badge.pending { background: #f3f4f6; color: #6b7280; }

/* Forms */
.ps-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ps-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.ps-field-hint {
    font-size: 11px;
    color: #9ca3af;
}

/* Buttons */
.ps-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.ps-btn-primary {
    background: var(--primary-green);
    color: #fff;
}
.ps-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.ps-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.ps-btn-ghost:hover {
    background: #f3f4f6;
    color: var(--dark-text);
}
.ps-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.ps-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}
.ps-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Tables */
.ps-orders-table-wrap {
    overflow-x: auto;
}
.ps-table {
    width: 100%;
    border-collapse: collapse;
}
.ps-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.ps-table td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--dark-text);
}
.ps-table tbody tr:hover {
    background: #f9fafb;
}
.ps-table .ps-action-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--primary-green);
    font-weight: 500;
    transition: all 0.2s ease;
}
.ps-table .ps-action-btn:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

/* Addresses */
.ps-address-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.ps-address-card:hover {
    border-color: #d1d5db;
}
.ps-address-card.is-default {
    border-color: var(--primary-green);
    background: #f0fdf4;
}
.ps-addr-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ps-addr-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ps-addr-icon.home { background: #d1fae5; color: #059669; }
.ps-addr-icon.office { background: #ede9fe; color: #7c3aed; }
.ps-addr-label {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-addr-default-tag {
    background: var(--primary-green);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.ps-addr-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.5;
}
.ps-addr-phone {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.ps-addr-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.ps-addr-action-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}
.ps-addr-action-btn:hover {
    background: #f3f4f6;
    color: var(--dark-text);
}
.ps-addr-action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Password Strength */
.ps-pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.ps-pw-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.ps-pw-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: all 0.3s ease;
}
.ps-pw-fill.weak { width: 33%; background: #ef4444; }
.ps-pw-fill.medium { width: 66%; background: #f59e0b; }
.ps-pw-fill.strong { width: 100%; background: #10b981; }
.ps-pw-fill.very-strong { width: 100%; background: #059669; }
#pf-pw-label {
    font-size: 11px;
    font-weight: 500;
    min-width: 80px;
}

/* Sessions */
.ps-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    margin-bottom: 8px;
}
.ps-session-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ps-session-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}
.ps-session-icon.current {
    background: #d1fae5;
    color: #059669;
}
.ps-session-device {
    font-size: 13px;
    font-weight: 600;
}
.ps-session-meta {
    font-size: 11px;
    color: #9ca3af;
}
.ps-session-current-tag {
    font-size: 10px;
    background: #d1fae5;
    color: #059669;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: 6px;
}

/* 2FA */
.ps-2fa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}
.ps-2fa-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ps-2fa-info i {
    font-size: 28px;
    color: var(--primary-green);
}
.ps-2fa-info strong {
    display: block;
    font-size: 14px;
}
.ps-2fa-info p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Support */
.ps-support-card {
    text-align: center;
    padding: 32px 24px;
}
.ps-support-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btn-primary-bg), var(--btn-primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.ps-support-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
}
.ps-support-card p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}
.ps-support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ps-support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-text);
    transition: all 0.2s ease;
    text-decoration: none;
}
.ps-support-link:hover {
    background: #f0fdf4;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Quick Actions (Right Sidebar) */
.ps-qa-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ps-qa-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
    width: 100%;
}
.ps-qa-item i {
    width: 18px;
    text-align: center;
    color: #9ca3af;
}
.ps-qa-item:hover {
    background: #f3f4f6;
    color: var(--primary-green);
}
.ps-qa-item:hover i {
    color: var(--primary-green);
}
.ps-qa-danger {
    color: #dc2626;
}
.ps-qa-danger i {
    color: #fca5a5;
}
.ps-qa-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Empty States */
.ps-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
}
.ps-empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}
.ps-empty-state p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #6b7280;
}
.ps-empty-state span {
    font-size: 12px;
}

/* Modal */
.ps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: pfFadeIn 0.25s ease;
}
.ps-modal {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ps-modal-sm {
    max-width: 440px;
}
.ps-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.ps-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
}
.ps-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.ps-modal-close:hover {
    background: #e5e7eb;
    color: var(--dark-text);
}
.ps-modal-body {
    padding: 24px;
}

/* Checkbox */
.ps-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}
.ps-checkbox-label input {
    width: auto;
}

/* GPS Button */
.gps-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.gps-btn:hover {
    background: var(--primary-hover);
}

/* Coupon Card */
.ps-coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px dashed #fbbf24;
    margin-bottom: 8px;
}
.ps-coupon-icon {
    font-size: 24px;
    color: #d97706;
}
.ps-coupon-code {
    font-weight: 700;
    font-size: 13px;
    color: #92400e;
}
.ps-coupon-desc {
    font-size: 11px;
    color: #b45309;
}

/* Activity Log Items */
.ps-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.ps-activity-item:last-child {
    border-bottom: none;
}
.ps-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.ps-activity-icon.login { background: #dbeafe; color: #2563eb; }
.ps-activity-icon.password { background: #fef3c7; color: #d97706; }
.ps-activity-icon.profile { background: #d1fae5; color: #059669; }
.ps-activity-text {
    font-size: 13px;
    color: var(--dark-text);
}
.ps-activity-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.gps-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.gps-btn:hover {
    background: var(--primary-hover);
}
.admin-link-btn {
    background: var(--primary-green);
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}
.admin-link-btn:hover {
    background: var(--primary-hover);
}
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-greeting {
    font-size: 13px;
    white-space: nowrap;
}
.logout-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    color: #ef4444;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.logout-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Footer Page Content */
.footer-page-content .page-body {
    max-width: 800px;
    line-height: 1.7;
    color: var(--dark-text);
}
.footer-page-content .page-body p {
    margin-bottom: 12px;
}
.footer-page-content .page-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-green);
}
.footer-page-nav {
    display: flex;
    gap: 15px;
}
.footer-page-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.footer-page-nav a:hover {
    color: var(--primary-green);
}

/* ===== IMAGE UPLOAD COMPONENT (Storefront) ===== */
.fb-upload-storefront {
    min-height: 150px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-upload-storefront:hover {
    border-color: var(--primary-green);
    background: rgba(30, 166, 65, 0.04);
}
.fb-upload-storefront.fb-upload-has-image {
    border-style: solid;
    border-color: var(--primary-green);
    background: #ffffff;
}
.fb-upload-storefront.fb-upload-dragover {
    border-color: var(--primary-green);
    background: rgba(30, 166, 65, 0.08);
}
.fb-upload-storefront .fb-upload-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.fb-upload-storefront .fb-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    z-index: 1;
}
.fb-upload-storefront .fb-upload-icon {
    font-size: 36px;
    color: #9ca3af;
    transition: color 0.3s ease;
}
.fb-upload-storefront:hover .fb-upload-icon { color: var(--primary-green); }
.fb-upload-storefront .fb-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}
.fb-upload-storefront .fb-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}
.fb-upload-storefront .fb-upload-preview {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 1;
}
.fb-upload-storefront .fb-upload-preview img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
}
.fb-upload-storefront .fb-upload-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px;
    background: rgba(255,255,255,0.92);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.fb-upload-storefront .fb-upload-progress span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.fb-upload-storefront .fb-upload-progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.fb-upload-storefront .fb-upload-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-green);
    border-radius: 999px;
    transition: width 0.3s ease;
}
.fb-upload-storefront .fb-upload-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}
.fb-upload-storefront:hover .fb-upload-overlay { opacity: 1; }
.fb-upload-storefront .fb-upload-actions {
    display: flex;
    gap: 12px;
}
.fb-upload-storefront .fb-upload-btn-replace,
.fb-upload-storefront .fb-upload-btn-remove {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}
.fb-upload-storefront .fb-upload-btn-replace {
    background: var(--primary-green);
    color: #ffffff;
}
.fb-upload-storefront .fb-upload-btn-replace:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}
.fb-upload-storefront .fb-upload-btn-remove {
    background: #ef4444;
    color: #ffffff;
}
.fb-upload-storefront .fb-upload-btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}
.fb-upload-storefront .fb-upload-error {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 16px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    z-index: 5;
    animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Slider Section (Full-Width) ────────────────────── */
.hero-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
}
.fb-hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.fb-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.fb-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.fb-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.fb-carousel-slide.leaving {
    opacity: 0;
    visibility: visible;
    z-index: 2;
}
.fb-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fb-slide-img-mobile { display: none; }
.fb-hero-carousel.anim-slide .fb-carousel-slide { transform: translateX(100%); }
.fb-hero-carousel.anim-slide .fb-carousel-slide.active { transform: translateX(0); }
.fb-hero-carousel.anim-slide .fb-carousel-slide.leaving { transform: translateX(-100%); }
.fb-hero-carousel.anim-zoom .fb-carousel-slide { transform: scale(1.08); }
.fb-hero-carousel.anim-zoom .fb-carousel-slide.active { transform: scale(1); }
.fb-hero-carousel.anim-zoom .fb-carousel-slide.leaving { transform: scale(1.08); }
.hero-slider-section .fb-hero-carousel {
    border-radius: 0;
    margin-bottom: 0;
    min-height: 500px;
}
.hero-slider-section .fb-carousel-track {
    min-height: 500px;
}
.hero-slider-section .fb-carousel-slide {
    min-height: 500px;
}
.hero-slider-section .fb-slide-img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}
.hero-slider-section .fb-carousel-dots {
    bottom: 24px;
}
.hero-slider-section .fb-carousel-dot {
    border-color: rgba(255,255,255,0.5);
}
.hero-slider-section .fb-carousel-dot.active {
    background: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
}
.hero-slider-section .fb-carousel-prev,
.hero-slider-section .fb-carousel-next {
    background: rgba(255,255,255,0.85);
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero-slider-section .fb-carousel-progress-fill {
    background: linear-gradient(90deg, var(--btn-primary-bg), var(--btn-secondary-bg));
}
/* Mobile hero sizing — consolidated in the mobile override block near EOF */
.fb-carousel-prev,
.fb-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    z-index: 5;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.fb-carousel-prev { left: 16px; }
.fb-carousel-next { right: 16px; }
.fb-carousel-prev:hover,
.fb-carousel-next:hover { background: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.fb-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.fb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.fb-carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}
.fb-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 4;
}
.fb-carousel-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--btn-primary-bg), var(--btn-secondary-bg));
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

/* ========== LIVE CHAT WIDGET ========== */
#chat-widget { font-family: 'Inter', sans-serif; }
#chat-toggle-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(30,166,65,0.5); }
#chat-box { animation: chatSlideUp 0.25s ease; }
@keyframes chatSlideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
#chat-messages::-webkit-scrollbar { width:4px; }
#chat-messages::-webkit-scrollbar-thumb { background:#ccc; border-radius:4px; }
#chat-msg-user { background:linear-gradient(135deg,#1ea641,#178c35); color:#fff; padding:10px 14px; border-radius:14px 14px 4px 14px; font-size:13px; line-height:1.45; max-width:80%; margin-left:auto; margin-bottom:8px; word-break:break-word; }
#chat-msg-admin { background:#fff; color:#333; padding:10px 14px; border-radius:14px 14px 14px 4px; font-size:13px; line-height:1.45; max-width:80%; margin-bottom:8px; word-break:break-word; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
#chat-msg-system { background:transparent; color:#999; font-size:11px; text-align:center; padding:6px 0; }
#chat-input:focus { border-color:#1ea641; }
#chat-send-btn:hover { transform:scale(1.08); }
#chat-send-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }

/* --- Live Chat Widget: base layout --- */
#chat-widget { position: fixed; bottom: 172px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#chat-toggle-btn { width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, #1ea641, #178c35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; box-shadow: 0 6px 24px rgba(30,166,65,0.4); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
#chat-unread-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }
#chat-box { display: none; width: 340px; max-width: calc(100vw - 32px); height: 440px; max-height: calc(100vh - 240px); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); overflow: hidden; flex-direction: column; }
#chat-header { background: linear-gradient(135deg, #1ea641, #178c35); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
#chat-header-title { font-weight: 700; font-size: 14px; }
#chat-header-sub { font-size: 11px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
#chat-presence-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#chat-presence-dot.chat-presence-on { background: #4caf50; box-shadow: 0 0 0 2px rgba(76,175,80,0.35); }
#chat-presence-dot.chat-presence-off { background: #b0bec5; }
#chat-close-btn { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
#chat-messages { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f8; }
#chat-welcome { text-align: center; color: #999; font-size: 12px; margin-top: 26px; }
#chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff; flex-shrink: 0; }
#chat-input { flex: 1; border: 1.5px solid #e0e0e0; border-radius: 20px; padding: 9px 14px; font-size: 13px; outline: none; font-family: inherit; color: #333; background: #fff; }
#chat-send-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: linear-gradient(135deg, #1ea641, #178c35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform 0.2s; flex-shrink: 0; }
@media (max-width: 768px) {
    #chat-widget { bottom: 64px; right: 16px; }
    #chat-toggle-btn { width: 52px; height: 52px; font-size: 20px; }
    #chat-box { height: 400px; }
}


/* ── Delivery Area Modal (Customer) ─────────────────────────────────── */
.delivery-overlay{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.delivery-modal-content{max-width:480px;width:95vw;max-height:85vh;padding:0;overflow:hidden;display:flex;flex-direction:column;border-radius:20px;box-shadow:0 25px 80px rgba(0,0,0,.25)}
.dm-header{display:flex;align-items:center;gap:14px;padding:22px 24px 16px;border-bottom:1px solid #f0f0f0;position:relative}
.dm-header-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#C62828,#B71C1C);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.dm-header h3{font-size:18px;font-weight:700;color:#1a1a1a;margin:0}
.dm-header p{font-size:12px;color:#888;margin:2px 0 0}
.dm-close{position:absolute;top:16px;right:16px;width:34px;height:34px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:all .15s}
.dm-close:hover{background:#fef2f2;color:#dc2626;border-color:#fca5a5}
.dm-search{padding:12px 24px;position:relative;border-bottom:1px solid #f0f0f0}
.dm-search i{position:absolute;left:40px;top:50%;transform:translateY(-50%);color:#999;font-size:13px}
.dm-search input{width:100%;padding:11px 14px 11px 40px;border:1.5px solid #e5e7eb;border-radius:12px;font-size:13px;background:#f9fafb;color:#1a1a1a;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}
.dm-search input:focus{outline:none;border-color:#C62828;box-shadow:0 0 0 3px rgba(198,40,40,.12);background:#fff}
.dm-search input::placeholder{color:#aaa}
.delivery-area-list{flex:1;overflow-y:auto;padding:12px 24px;display:flex;flex-direction:column;gap:8px;max-height:50vh}
.dm-area-card{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1.5px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer;transition:all .2s;text-align:left;width:100%;font-family:inherit}
.dm-area-card:hover{border-color:#C62828;background:#e8f5e9;transform:translateY(-1px);box-shadow:0 4px 12px rgba(198,40,40,.1)}
.dm-area-card.dm-selected{border-color:#C62828;background:#e8f5e9;box-shadow:0 0 0 3px rgba(198,40,40,.12)}
.dm-card-left{display:flex;align-items:center;gap:12px;min-width:0}
.dm-card-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#FFCDD2,#EF9A9A);color:#C62828;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.dm-card-icon.dm-free{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#d97706}
.dm-card-info{display:flex;flex-direction:column;min-width:0}
.dm-card-name{font-size:14px;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-card-sub{font-size:11px;color:#888;margin-top:1px}
.dm-card-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.dm-card-price{font-size:15px;font-weight:700;color:#1a1a1a;white-space:nowrap}
.dm-card-price.dm-free-price{color:#C62828}
.dm-radio{width:20px;height:20px;border:2px solid #d1d5db;border-radius:50%;flex-shrink:0;transition:all .2s}
.dm-area-card:hover .dm-radio{border-color:#C62828}
.dm-check{color:#C62828;font-size:20px;flex-shrink:0}
.dm-empty{padding:40px 20px;text-align:center;color:#999}
.dm-empty i{font-size:28px;margin-bottom:10px;display:block;color:#ccc}
.dm-empty p{font-size:13px;margin:0}
.dm-loading{padding:40px 20px;text-align:center;color:#999;font-size:13px}
.dm-loading i{margin-right:6px}
.dm-footer{padding:12px 24px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#888;background:#f9fafb}
.dm-footer i{color:#C62828}

/* --- Print Styles --- */
@media print {
    .top-bar, .main-header, .sidebar-right,
    .cart-drawer, .chat-widget, #chat-widget, .footer, .hero-carousel-wrapper { display: none !important; }
    .main-body { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    body { background: white; }
}

/* --- Popup Banner Overlay --- */
.fb-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
}
.fb-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.fb-popup-card {
    position: relative;
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.fb-popup-overlay.active .fb-popup-card {
    transform: scale(1) translateY(0);
}
.fb-popup-card img {
    width: 100%;
    display: block;
}
.fb-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.fb-popup-close:hover {
    background: rgba(0,0,0,0.8);
}
.fb-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.fb-popup-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.fb-popup-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.fb-popup-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}
.fb-popup-content a:hover {
    transform: scale(1.05);
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-img-slide, .carousel-track { transition: none !important; }
}

/* --- Dark Mode Responsive Overrides --- */
@media (prefers-color-scheme: dark) {
    /* Only apply if user has explicitly set dark mode via JS */
    [data-theme="dark"] .top-bar { background-color: var(--dark-bg); border-color: var(--dark-border); --topbar-bg: var(--dark-bg); --topbar-text: var(--dark-text-mode); }
    [data-theme="dark"] .main-header { background-color: #145C2F; border-color: var(--dark-border); }
}

/* --- Language Selector --- */
.lang-selector { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px; padding: 3px 8px; cursor: pointer;
    font-size: 12px; color: inherit; font-family: inherit;
    transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.25); }
.lang-btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.15); cursor: pointer;
    color: inherit; transition: background 0.2s;
}
.lang-btn-icon:hover { background: rgba(255,255,255,0.3); }
.lang-btn-icon i, .lang-btn-icon svg { width: 18px; height: 18px; }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-white, #fff); border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px; z-index: 1000; padding: 6px;
    /* Hard viewport guards: the panel is re-pinned with position:fixed on small
       screens, so it can never spill past either edge however long a locale
       name gets. */
    max-width: calc(100vw - 16px);
    max-height: min(60vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.lang-selector.is-open .lang-btn { border-color: var(--primary-green, #16a34a); }
.lang-selector.is-open .lang-btn-chevron { transform: rotate(180deg); }
.lang-dropdown.active { display: block; }
.lang-option {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 8px 12px; border: none; background: none;
    cursor: pointer; border-radius: 6px; font-family: inherit;
    transition: background 0.15s; gap: 8px;
}
.lang-option:hover { background: var(--light-green, #f0fdf4); }
.lang-option.active { background: var(--light-green, #dcfce7); font-weight: 600; }
.lang-option-name { font-size: 13px; color: var(--text-primary, #1a1a2e); }
.lang-option-native { font-size: 11px; color: var(--gray-text, #6b7280); }

/* --- RTL Support --- */
[dir="rtl"] .top-bar-right { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .main-header .header-content { flex-direction: row-reverse; }

/* --- Language Selector (header placement) --- */
.header-lang-switcher { display: flex; align-items: center; margin-left: 8px; flex-shrink: 0; }
.header-lang-switcher .lang-btn {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px; padding: 7px 12px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--text-primary, #1a1a2e);
    font-family: inherit; transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-lang-switcher .lang-btn:hover { border-color: var(--primary-green, #16a34a); box-shadow: 0 2px 8px rgba(22,163,74,0.12); }
.header-lang-switcher .lang-btn-icon { width: auto; height: auto; background: none; border: none; font-size: 12px; line-height: 1; }
.header-lang-switcher .lang-btn-name { white-space: nowrap; }
.header-lang-switcher .lang-btn-chevron { width: 14px; height: 14px; color: var(--gray-text, #6b7280); transition: transform .2s; }
.lang-selector.open .lang-btn-chevron,
.lang-selector.is-open .lang-btn-chevron { transform: rotate(180deg); }
.header-lang-switcher .lang-dropdown { top: calc(100% + 8px); right: 0; left: auto; min-width: 170px; }
.header-lang-switcher .lang-option { justify-content: flex-start; }
.header-lang-switcher .lang-option-icon { width: 20px; text-align: center; font-size: 12px; }

.fb-mh-lang { padding: 0 14px 10px; display: flex; justify-content: flex-end; }
.fb-mh-lang .lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #ff4d5a 0%, #e11d2e 55%, #b71c1c 100%);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px; padding: 5px 12px; cursor: pointer;
    font-size: 12px; font-weight: 700; color: #fff; font-family: inherit;
    box-shadow: 0 2px 6px rgba(183,28,28,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.fb-mh-lang .lang-btn-icon { width: auto; height: auto; background: none; border: none; font-size: 11px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); }
.fb-mh-lang .lang-btn-chevron { width: 13px; height: 13px; color: rgba(255,255,255,0.9); }
.fb-mh-lang .lang-btn:hover {
    background: linear-gradient(135deg, #ff5c68 0%, #e9333f 55%, #c62828 100%);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183,28,28,0.42), inset 0 1px 0 rgba(255,255,255,0.25);
}
.fb-mh-lang .lang-btn:active { transform: translateY(0); }
.fb-mh-lang .lang-dropdown { top: calc(100% + 6px); right: 0; left: auto; min-width: 160px; }

@media (max-width: 768px) {
    .header-lang-switcher { margin-left: 0; }
}

/* ================================================================
   STICKY MOBILE HEADER
   ================================================================ */
.fb-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #145C2F;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.fb-mobile-header.hidden-mobile {
    transform: translateY(-100%);
}
.fb-mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    /* Must stay `visible`: the language dropdown is a descendant and was being
       clipped away on every phone. Anything that needs clipping is clamped with
       min-width:0 + text-overflow on the element itself. */
    overflow: visible;
}
.fb-mh-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.fb-mh-logo img {
    display: block;
    height: auto;
    width: auto;
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
}
.fb-mh-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.fb-mh-logo-icon i,
.fb-mh-logo-icon svg {
    width: 18px;
    height: 18px;
}
.fb-mh-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.fb-mh-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    /* Allowed to shrink: the row is only as wide as the phone, and the delivery
       pill's label is the elastic part. Without this the group refuses to
       shrink and pushes the language switcher out of the viewport. */
    min-width: 0;
    flex-shrink: 1;
}
.fb-mh-delivery,
.fb-mh-search,
.fb-mh-cat,
.fb-mh-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}
.fb-mh-delivery {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}
.fb-mh-delivery i,
.fb-mh-delivery svg {
    width: 16px;
    height: 16px;
    color: #7CFC7C;
}
.fb-mh-delivery-text {
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 600;
}
.fb-mh-search i,
.fb-mh-search svg,
.fb-mh-cat i,
.fb-mh-cat svg,
.fb-mh-cart i,
.fb-mh-cart svg {
    width: 20px;
    height: 20px;
}
.fb-mh-delivery:hover,
.fb-mh-search:hover,
.fb-mh-cat:hover,
.fb-mh-cart:hover {
    background: rgba(255,255,255,0.22);
}
.fb-mh-delivery {
    background: var(--delivery-bg, #E11D2E);
    color: var(--delivery-text, #FFFFFF);
}
.fb-mh-delivery i,
.fb-mh-delivery svg {
    color: var(--delivery-text, #FFFFFF);
}
.fb-mh-delivery-text {
    color: var(--delivery-text, #FFFFFF);
}
.fb-mh-delivery:hover {
    background: color-mix(in srgb, var(--delivery-bg, #E11D2E) 88%, #000);
}
.fb-mobile-search-bar {
    padding: 0 12px 2px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.fb-mobile-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 0 12px;
    gap: 8px;
    margin-top: 3px;
    height: 36px;
}
.fb-mobile-search-inner i,
.fb-mobile-search-inner svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
}
.fb-mobile-search-inner input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}
.fb-mobile-search-inner input::placeholder {
    color: #aaa;
}
.fb-mobile-search-inner button {
    border: none;
    background: var(--header-bg, #1B7A3D);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.fb-mobile-search-inner button i,
.fb-mobile-search-inner button svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Mobile-only: ONLY the top row (logo + website name + deliver-to + language)
   becomes white so the green logo pops; the search bar below keeps its original
   dark-green background. */
@media (max-width: 768px) {
    .fb-mobile-header-inner {
        background: #FFFFFF;
        overflow: visible;
    }
    .fb-mh-brand {
        color: #1F2937;
    }
    .fb-mh-logo-icon {
        background: rgba(31,41,55,0.12);
        color: #1F2937;
    }
    .fb-mh-logo-icon i,
    .fb-mh-logo-icon svg {
        color: #1F2937;
    }
    .fb-mh-search,
    .fb-mh-cat,
    .fb-mh-cart,
    .fb-mh-burger {
        background: rgba(31,41,55,0.12);
        color: #1F2937;
    }
    .fb-mh-burger {
        color: var(--primary, #16A34A);
    }
    .fb-mh-search i,
    .fb-mh-search svg,
    .fb-mh-cat i,
    .fb-mh-cat svg,
    .fb-mh-cart i,
    .fb-mh-cart svg {
        color: #1F2937;
    }
    .fb-mh-search:hover,
    .fb-mh-cat:hover,
    .fb-mh-cart:hover,
    .fb-mh-burger:hover {
        background: rgba(31,41,55,0.2);
    }
    /* Mobile header keeps ONLY: logo + website name + deliver-to + language.
       Extra icon buttons (search, categories, wishlist/heart, profile/cart) are hidden;
       they remain available in the mobile bottom nav + search bar below. */
    .fb-mh-search,
    .fb-mh-cat,
    .fb-mh-wish,
    .fb-mh-cart {
        display: none !important;
    }
    /* Language switcher sits directly beside the "Deliver to" button. It is the
       last thing that must never be clipped, so it never shrinks and never
       wraps; the delivery label is what gives up space instead. */
    .fb-mh-lang {
        padding: 0;
        margin-left: 2px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        position: relative;
    }
    .fb-mh-lang .lang-btn {
        height: 26px;
        padding: 0 9px;
        gap: 3px;
        flex-shrink: 0;
        white-space: nowrap;
        max-width: 100%;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
        border-color: rgba(255,255,255,0.4);
        box-shadow: 0 2px 6px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    }
    .fb-mh-lang .lang-btn-icon {
        display: none;
    }
    .fb-mh-lang .lang-btn-name {
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fb-mh-lang .lang-btn-chevron {
        width: 11px;
        height: 11px;
        flex-shrink: 0;
    }
    .fb-mh-lang .lang-btn:hover {
        background: linear-gradient(135deg, #f87171 0%, #ef4444 55%, #dc2626 100%);
        box-shadow: 0 4px 12px rgba(220,38,38,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    }
    /* The mobile dropdown is pinned with position:fixed by the switcher script
       (the header row cannot contain it), so only the width needs guarding. */
    .fb-mh-lang .lang-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        margin: 0;
        min-width: 150px;
        max-width: calc(100vw - 16px);
        z-index: 100000;
    }
    /* "Deliver to" button switches to green. It is the one element in the row
       whose content is unbounded (a long branch name), so it is the element that
       gets clamped — otherwise it shoves the language switcher off-screen. */
    .fb-mh-delivery {
        background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.35);
        box-shadow: 0 2px 6px rgba(22,163,74,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
        flex-shrink: 1;
        min-width: 0;
        max-width: 42vw;
        overflow: hidden;
    }
    .fb-mh-delivery i,
    .fb-mh-delivery svg,
    .fb-mh-delivery-text {
        color: #fff;
    }
    .fb-mh-delivery:hover {
        background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    }
    /* Logo shrinks so the full website name always stays visible, but the whole
       logo group is capped and the name ellipsises rather than pushing the
       delivery pill and the language switcher past the right edge. */
    .fb-mh-logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: 34vw;
        overflow: hidden;
    }
    .fb-mh-logo img {
        width: auto;
        height: auto;
        min-width: 0;
        max-width: 110px;
        max-height: 46px;
        flex: 0 1 auto;
        object-fit: contain;
        background: transparent;
    }
    .fb-mh-brand {
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
        font-weight: 800;
        color: #111827;
    }
    /* The area/branch label inside the delivery pill gets the same treatment. */
    .fb-mh-delivery-value {
        max-width: 18vw;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .fb-mobile-header-inner {
        gap: 6px;
        padding: 4px 10px;
    }
}

/* Small phones (≤ 430px): the row is down to burger + logo + deliver-to +
   language. Shed everything optional so the language switcher is guaranteed to
   be on screen and fully tappable. */
@media (max-width: 430px) {
    .fb-mh-logo { max-width: 28vw; }
    .fb-mh-logo img { width: auto; height: auto; max-width: 86px; max-height: 38px; }
    .fb-mh-brand { font-size: 13px; }
    .fb-mh-delivery { max-width: 46vw; padding: 0 9px; gap: 4px; }
    .fb-mh-delivery-value { max-width: 26vw; }
    .fb-mobile-header-inner { gap: 5px; padding: 4px 8px; }
}

/* Very small phones (≤ 360px): the brand name goes away entirely — the logo
   mark still identifies the store — which frees enough room for a readable
   language pill. */
@media (max-width: 360px) {
    .fb-mh-brand { display: none; }
    .fb-mh-logo img { width: auto; height: auto; max-width: 78px; max-height: 34px; }
    .fb-mh-logo-icon { width: 28px; height: 28px; }
    .fb-mh-delivery { max-width: 52vw; }
    .fb-mh-delivery-value { max-width: 32vw; }
    .fb-mh-lang .lang-btn { padding: 0 9px; }
    .fb-mh-lang .lang-btn-name { font-size: 11px; }
}

/* Mobile Full-Screen Search Overlay */
.fb-mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    flex-direction: column;
}
.fb-mobile-search-overlay.active {
    display: flex;
}
.fb-mso-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--header-bg, #1B7A3D);
    padding-top: max(12px, env(safe-area-inset-top, 12px));
}
.fb-mso-back {
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.fb-mso-back i,
.fb-mso-back svg {
    width: 20px;
    height: 20px;
}
.fb-mso-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
    height: 40px;
}
.fb-mso-input-wrap i,
.fb-mso-input-wrap svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
}
.fb-mso-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

@media (max-width: 768px) {
    .fb-mobile-header { display: block; }
    .main-header { display: none !important; }
    .top-bar { display: none !important; }
    body { padding-top: 100px; }
}

/* ================================================================
   MOBILE HAMBURGER MENU & OFF-CANVAS DRAWER (mobile only)
   ================================================================ */
.fb-mh-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(22,163,74,0.10);
    color: var(--primary, #16A34A);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.fb-mh-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    transform-origin: center;
}
.fb-mh-burger:hover { background: rgba(22,163,74,0.18); }
.fb-mh-burger.active .fb-mh-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fb-mh-burger.active .fb-mh-burger-bar:nth-child(2) { opacity: 0; }
.fb-mh-burger.active .fb-mh-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.fb-drawer-open { overflow: hidden; }

.fb-mh-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.fb-mh-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.fb-mh-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    max-width: 340px;
    z-index: 99991;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1), visibility 0s linear 0.35s;
    box-shadow: 0 0 44px rgba(0,0,0,0.22);
    -webkit-overflow-scrolling: touch;
}
.fb-mh-drawer.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}

.fb-mh-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top, 14px));
    background: var(--header-bg, #1B7A3D);
    color: #fff;
    flex-shrink: 0;
}
.fb-mh-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}
.fb-mh-drawer-brand img {
    display: block;
    height: auto;
    width: auto;
    max-height: 38px;
    max-width: 150px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
}
.fb-mh-drawer-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.fb-mh-drawer-brand-icon i,
.fb-mh-drawer-brand-icon svg {
    width: 18px;
    height: 18px;
}
.fb-mh-drawer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fb-mh-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.fb-mh-drawer-close:hover { background: rgba(255,255,255,0.28); }
.fb-mh-drawer-close i,
.fb-mh-drawer-close svg {
    width: 20px;
    height: 20px;
}

.fb-mh-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 14px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}
.fb-mh-drawer-nav { padding-bottom: 6px; }
.fb-mh-drawer-subtitle {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 12px 8px 6px;
}
.fb-mh-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s;
}
.fb-mh-drawer-link:hover { background: #f3f4f6; }
.fb-mh-drawer-link i,
.fb-mh-drawer-link svg {
    width: 20px;
    height: 20px;
    color: var(--primary, #16a34a);
    flex-shrink: 0;
}

.fb-drawer-cat { border-bottom: 1px solid #f3f4f6; }
.fb-drawer-cat:last-child { border-bottom: none; }
.fb-drawer-cat-row {
    display: flex;
    align-items: center;
}
.fb-drawer-cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    transition: background 0.15s;
}
.fb-drawer-cat-link:hover { background: #f3f4f6; }
.fb-drawer-cat-link i,
.fb-drawer-cat-link svg {
    width: 20px;
    height: 20px;
    color: var(--primary, #16a34a);
    flex-shrink: 0;
}
.fb-drawer-cat-toggle {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.25s ease, color 0.15s;
}
.fb-drawer-cat-toggle:hover { background: #f3f4f6; }
.fb-drawer-cat-toggle i,
.fb-drawer-cat-toggle svg {
    width: 16px;
    height: 16px;
}
.fb-drawer-cat.expanded .fb-drawer-cat-toggle {
    transform: rotate(180deg);
    color: var(--primary, #16a34a);
}
.fb-drawer-cat-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.fb-drawer-cat-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 38px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.fb-drawer-cat-sub-link:hover {
    background: #f3f4f6;
    color: var(--primary, #16a34a);
}
.fb-drawer-cat-sub-link i,
.fb-drawer-cat-sub-link svg {
    width: 12px;
    height: 12px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}
.fb-drawer-cat-sub-link:hover i,
.fb-drawer-cat-sub-link:hover svg {
    color: var(--primary, #16a34a);
}

.fb-mh-drawer-viewall {
    margin-top: 6px;
    color: var(--primary, #16a34a);
}
.fb-mh-drawer-auth {
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}
.fb-mh-drawer-btn { color: #dc2626; }
.fb-mh-drawer-btn i,
.fb-mh-drawer-btn svg { color: #dc2626; }
.fb-mh-drawer-btn:hover { background: #fef2f2; }

.fb-mh-drawer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary, #16A34A) 0%, #15803D 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 18px rgba(22,163,74,0.3);
    transition: transform 0.15s;
}
.fb-mh-drawer-login:active { transform: scale(0.98); }
.fb-mh-drawer-login i,
.fb-mh-drawer-login svg {
    width: 18px;
    height: 18px;
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION BAR — PREMIUM REDESIGN
   ================================================================ */
.fb-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(255,255,255,0.96);
    border-top: none;
    box-shadow: 0 -2px 24px rgba(0,0,0,0.10), 0 -1px 4px rgba(0,0,0,0.04);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.fb-bottom-nav-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px 10px 6px;
    position: relative;
}

.fb-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-width: 64px;
    border-radius: 0;
    letter-spacing: 0.01em;
}

.fb-bottom-nav-item:active {
    transform: scale(0.92);
}

.fb-bottom-nav-item .fb-bni-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.fb-bottom-nav-item .fb-bni-icon svg,
.fb-bottom-nav-item .fb-bni-icon i {
    width: 22px;
    height: 22px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.fb-bottom-nav-item span:last-child {
    line-height: 1;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Active state — Red accent */
.fb-bottom-nav-item.active {
    color: #C62828;
}

.fb-bottom-nav-item.active .fb-bni-icon {
    background: linear-gradient(135deg, #e8f5e9, #FFCDD2);
    color: #C62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198,40,40,0.15);
}

.fb-bottom-nav-item.active span:last-child {
    font-weight: 700;
    color: #C62828;
}

/* Active indicator dot */
.fb-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C62828;
    animation: navDotIn 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes navDotIn {
    0% { transform: translateX(-50%) scale(0); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Badge */
.fb-bottom-nav-item .fb-bni-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}

/* WhatsApp center button — Premium */
.fb-bottom-nav-item.fb-bni-whatsapp {
    position: relative;
}

.fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-top: 0;
    box-shadow: 0 3px 8px rgba(37,211,102,0.35);
    border: none;
}

.fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon svg,
.fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon i {
    width: 22px;
    height: 22px;
    color: #fff;
}

.fb-bottom-nav-item.fb-bni-whatsapp:active .fb-bni-icon {
    transform: scale(0.9);
}

@keyframes waNavGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ================================================================
   ENHANCED FLOATING WHATSAPP BUTTON (DESKTOP + MOBILE)
   ================================================================ */
.wa-fab-enhanced {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    z-index: 9997;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
    animation: waFloat 3s ease-in-out infinite;
    text-decoration: none !important;
    overflow: visible;
}

.wa-fab-enhanced:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.wa-fab-enhanced:active {
    transform: scale(0.95);
}

.wa-fab-enhanced .wa-fab-ripple {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.3);
    animation: waRipple 2s infinite;
}

.wa-fab-enhanced .wa-fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.wa-fab-enhanced .wa-fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #fff;
}

.wa-fab-enhanced:hover .wa-fab-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes waRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wa-fab-enhanced.wa-pos-bottom-left { right: auto; left: 24px; }
.wa-fab-enhanced.wa-pos-bottom-left .wa-fab-tooltip { right: auto; left: calc(100% + 12px); }
.wa-fab-enhanced.wa-pos-bottom-left .wa-fab-tooltip::after { left: auto; right: 100%; border-left-color: transparent; border-right-color: #fff; }

/* ================================================================
   DESKTOP FLOATING CART BUTTON
   Premium horizontal pill — icon circle + stacked label + price.
   Visible on desktop only (>= 769px), hidden on mobile/tablet.
   ================================================================ */
.fb-desktop-floating-cart {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: var(--primary-green, #1B7A3D);
    color: #fff;
    border: none;
    border-radius: 60px;
    padding: 8px 22px 8px 8px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    box-shadow:
        0 4px 16px rgba(27, 122, 61, 0.28),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.fb-desktop-floating-cart:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow:
        0 8px 28px rgba(27, 122, 61, 0.38),
        0 2px 6px rgba(0, 0, 0, 0.1);
}
.fb-desktop-floating-cart:active {
    transform: translateY(-50%) scale(0.96);
    box-shadow:
        0 2px 8px rgba(27, 122, 61, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.08);
}
.fb-desktop-floating-cart:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* — Icon circle — */
.fb-desktop-floating-cart .fb-dfc-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.fb-desktop-floating-cart:hover .fb-dfc-icon {
    background: rgba(255, 255, 255, 0.3);
}
.fb-desktop-floating-cart .fb-dfc-icon i {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke-width: 2.2;
}

/* — Badge (top-right of circle) — */
.fb-desktop-floating-cart .fb-dfc-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #fff;
    color: var(--primary-green, #1B7A3D);
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary-green, #1B7A3D);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fb-desktop-floating-cart .fb-dfc-badge[style*="display: none"],
.fb-desktop-floating-cart .fb-dfc-badge:empty {
    transform: scale(0);
}

/* — Label block (count + total stacked) — */
.fb-dfc-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}
.fb-desktop-floating-cart .fb-dfc-count {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    opacity: 0.85;
    letter-spacing: 0.01em;
}
.fb-desktop-floating-cart .fb-dfc-total {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

@media (min-width: 769px) {
    .fb-desktop-floating-cart {
        display: flex;
    }
    .header-actions .cart-trigger {
        display: none !important;
    }
}

/* ================================================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .top-bar { display: none; }
    .main-header { position: sticky; top: 0; z-index: 1000; }
    .header-content { gap: 10px; }
    .search-bar-wrapper { flex: 1; min-width: 0; max-width: 100%; }
    .search-bar-container { flex: 1; min-width: 0; max-width: 100%; }
    .header-actions { gap: 12px; }
    .header-actions .action-text .main { display: none; }
    .header-actions .action-text .sub { font-size: 11px; }
    .sidebar-right { display: none !important; }
    .main-body { grid-template-columns: minmax(0, 1fr) !important; }
    .container { padding: 0 16px; }
    .fb-bottom-nav { display: block; }
    body { padding-bottom: 84px; }
    .wa-fab-enhanced { bottom: 100px; }
    .promo-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .key-features { grid-template-columns: repeat(3, 1fr) !important; }
    .categories-carousel .category-card { flex: 0 0 calc(25% - 12px); min-width: 100px; }
    .brands-carousel .brand-item { flex: 0 0 calc(25% - 12px); min-width: 100px; height: 100px; }
    .brand-item svg { width: 48px; height: 48px; }
    .products-grid .fb-slider-item { flex: 0 0 calc(33.333% - 14px); min-width: 150px; }
    .trust-bar-content { grid-template-columns: repeat(3, 1fr) !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .apps-payment-grid { grid-template-columns: 1fr !important; }
    .fb-hero-carousel { min-height: 0; }
    .fb-carousel-slide { min-height: 0; }
    .fb-slide-img { height: auto; }
    .fb-slide-img-desktop { display: block !important; }
    .fb-slide-img-mobile { display: none !important; }
    .fb-product-slider-prev { left: 4px; }
    .fb-product-slider-next { right: 4px; }
}

/* ================================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
    /* ===== RESET & BASE ===== */
    *, *::before, *::after { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
    body { overflow-x: clip; padding-bottom: 80px; padding-top: 100px; background: #f5f5f7; }
    .container { padding: 0 12px; max-width: 100%; }
    img { max-width: 100%; height: auto; }

    /* Main grid -> single column, minmax prevents content from expanding tracks */
    .main-body { grid-template-columns: minmax(0, 1fr) !important; gap: 0; margin-top: 0; width: 100%; max-width: 100%; overflow-x: hidden; }

    /* ==========================================================
       HERO / BANNERS — see consolidated mobile override near EOF
       ========================================================== */
    .promo-banner { min-height: 180px; border-radius: 16px; }
    .banner-text h1 { font-size: 20px; }
    .banner-text p { font-size: 12px; }

    /* ==========================================================
       HEADER — Mobile
       ========================================================== */
    .main-header { padding: 8px 0; }
    .logo .logo-text .brand-name { font-size: 18px; }
    .logo .logo-text .tagline { font-size: 10px; }
    .search-bar-wrapper { flex: 1; min-width: 0; max-width: 100%; }
    .search-bar-container { border-radius: 12px; max-width: 100%; }
    .category-dropdown-btn { padding: 10px 12px; font-size: 12px; border-radius: 12px 0 0 12px; }
    .search-bar-container input { padding: 10px 14px; font-size: 14px; }
    .search-btn { padding: 10px 16px; font-size: 13px; border-radius: 0 12px 12px 0; }
    .search-btn span { display: none; }
    .auth-buttons .login-btn { padding: 8px 12px; font-size: 12px; }
    .user-greeting { font-size: 12px; }
    .admin-link-btn { font-size: 11px; padding: 4px 8px; }

    /* ==========================================================
       KEY FEATURES — 2-col with white cards
       ========================================================== */
    .key-features { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 0 4px; }
    .feature-item {
        display: flex; align-items: center; gap: 10px;
        padding: 12px; border-radius: 14px;
        background: #fff; border: 1px solid #f0f0f0;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    }
    .feature-icon {
        width: 36px; height: 36px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        background: #e8f5e9; color: #C62828; flex-shrink: 0;
    }
    .feature-icon i { width: 18px; height: 18px; }
    .feature-text span { font-size: 11px; font-weight: 600; color: #1a1a2e; display: block; }
    .feature-text small { font-size: 10px; color: #6b7280; }

    /* ==========================================================
       SECTION HEADERS
       ========================================================== */
    .section-header { margin-bottom: 10px; padding: 0 2px; }
    .section-header h2 { font-size: 17px; font-weight: 700; color: #1a1a2e; }
    .section-header .view-all-link { font-size: 12px; color: #C62828; font-weight: 600; }

    /* ==========================================================
       CATEGORIES & BRANDS — see consolidated mobile override near EOF
       ========================================================== */

    /* ==========================================================
       PROMO GRID — stacked cards
       ========================================================== */
    .promo-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .promo-card {
        min-height: 130px; border-radius: 16px; padding: 20px;
        background: linear-gradient(135deg, #C62828, #B71C1C) !important;
        color: #fff !important;
    }
    .promo-text h3 { font-size: 16px; color: #fff; }
    .promo-text p { font-size: 12px; color: rgba(255,255,255,0.85); }

    /* ==========================================================
       PRODUCTS — 2-col premium cards
       ========================================================== */
    .products-section { margin-top: 20px; }
    .products-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin-bottom: 12px; gap: 6px; display: flex; flex-wrap: nowrap; }
    .products-filters::-webkit-scrollbar { display: none; }
    .filter-tab {
        padding: 7px 14px; font-size: 12px; white-space: nowrap;
        border-radius: 20px; border: 1px solid #e5e7eb; background: #fff;
        color: #6b7280; font-weight: 500; transition: all 0.2s;
    }
    .filter-tab.active, .filter-tab:hover {
        background: #C62828; color: #fff; border-color: #C62828;
    }
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        overflow-x: hidden;
    }

    /* Homepage product sliders on mobile: exactly 2 cards side-by-side,
       auto-advancing as a smooth horizontal strip (homepage sections only). */
    .fb-product-slider-wrap .fb-slider-track {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 8px;
    }
    .fb-product-slider-wrap .fb-slider-track .product-card {
        flex: 0 0 calc(50% - 5px);
        min-width: 0;
    }
    .fb-product-slider-wrap .fb-slider-track .product-card:only-child {
        flex: 0 0 100%;
    }
    .product-card {
        border-radius: 14px; overflow: hidden; background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #f0f0f0;
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
    }
    .product-card:active { transform: scale(0.98); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
    .product-card .product-image { height: 150px; border-radius: 14px 14px 0 0; }
    .product-card .product-details { padding: 10px 10px 12px; }
    .product-card .product-title {
        font-size: 12px; line-height: 1.3; margin-bottom: 4px;
        -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical;
        overflow: hidden; color: #1a1a2e; font-weight: 500;
    }
    .product-card .product-category { font-size: 10px; color: #9ca3af; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
    .product-card .price-row { gap: 4px; align-items: center; flex-wrap: wrap; }
    .product-card .current-price { font-size: 15px; font-weight: 700; color: #C62828; }
    .product-card .original-price { font-size: 10px; color: #9ca3af; text-decoration: line-through; }
    .product-card .discount-badge {
        font-size: 9px; padding: 2px 6px; border-radius: 6px;
        top: 8px; left: 8px; background: #fef2f2; color: #ef4444;
        border: 1px solid #fecaca; font-weight: 600;
    }
    .product-card .wishlist-btn-card {
        width: 28px; height: 28px; top: 8px; right: 8px;
        background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
        border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .product-card .wishlist-btn-card i { width: 14px; height: 14px; }

    /* Orange Add-to-Cart bar at bottom of card */
    .product-card .product-add-btn,
    .product-card .add-to-cart-btn,
    .product-card [onclick*="addToCart"] {
        width: 100% !important; padding: 8px !important; margin-top: 6px;
        background: #C62828 !important; color: #fff !important;
        border: none !important; border-radius: 8px !important;
        font-size: 11px !important; font-weight: 600 !important;
        cursor: pointer; display: flex !important; align-items: center;
        justify-content: center; gap: 4px; transition: background 0.2s;
    }
    .product-card .product-add-btn:active,
    .product-card .add-to-cart-btn:active {
        background: #B71C1C !important;
    }

    /* ==========================================================
       APPS & PAYMENTS
       ========================================================== */
    .apps-payment-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .app-banner-wide { border-radius: 18px; padding: 30px 20px 0; min-height: auto; flex-direction: column; text-align: center; gap: 10px; }
    .app-banner-wide h3 { font-size: 20px; }
    .app-banner-wide p { font-size: 13px; margin-bottom: 18px; }
    .store-buttons { justify-content: center; }
    .app-banner-img { position: relative; top: auto; right: auto; transform: none; height: auto; width: 100%; }
    .app-banner-img .phone-mockup { height: 260px; }
    .payments-trust-card { border-radius: 16px; padding: 16px; }

    /* ==========================================================
       TRUST BAR
       ========================================================== */
    .trust-bar-content { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 12px 0; }
    .trust-item {
        padding: 12px 8px; text-align: center; border-radius: 12px;
        background: #fff; border: 1px solid #f0f0f0;
    }
    .trust-item i { font-size: 20px; margin-bottom: 6px; color: #C62828; }
    .trust-text span { font-size: 11px; font-weight: 600; color: #1a1a2e; }
    .trust-text small { font-size: 10px; color: #6b7280; }

    /* ==========================================================
       FOOTER
       ========================================================== */
    .footer { padding: 32px 0 0; padding-bottom: 100px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .footer-col { text-align: center; }
    .footer-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
    .footer-col ul li a { font-size: 12px; color: #111111; font-weight: 700; }
    .newsletter-col { max-width: 100%; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    .newsletter-form input { width: 100%; }
    .footer-bottom-content { flex-direction: column; gap: 8px; text-align: center; }
    .bottom-links { justify-content: center; }

    /* ==========================================================
       CART DRAWER — Bottom sheet style
       ========================================================== */
    .cart-drawer {
        width: 100%; max-height: 85vh;
        border-radius: 20px 20px 0 0;
        bottom: 0; top: auto; right: 0; left: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .cart-drawer.active { animation: slideUpSheet 0.3s ease; }
    @keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .cart-drawer-header {
        padding: 16px 16px 12px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }
    .cart-drawer-header h3 { font-size: 16px; margin: 0; }
    .close-drawer { font-size: 24px; padding: 4px 8px; }
    .cart-drawer-items {
        padding: 0 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        overscroll-behavior: contain;
    }
    .cart-drawer-item {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .cart-drawer-item:last-child { border-bottom: none; }
    .cart-item-img { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
    .cart-item-info { flex: 1; min-width: 0; }
    .cart-item-info h4 { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
    .cart-item-info .qty-price { font-size: 12px; color: #888; }
    .cart-qty-controls { flex-shrink: 0; }
    .cart-qty-controls button { width: 28px; height: 28px; font-size: 14px; }
    .cart-qty-controls span { padding: 0 6px; font-size: 13px; }
    .remove-cart-item { font-size: 18px; padding: 4px; }
    .cart-drawer-footer {
        padding: 14px 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        bottom: 0;
    }
    .cart-subtotal { font-size: 15px; margin-bottom: 10px; }
    .checkout-btn-full { font-size: 15px; padding: 14px; border-radius: 12px; }

    /* ==========================================================
       MODALS
       ========================================================== */
    .modal-content {
        width: calc(100% - 16px); max-width: 100%;
        border-radius: 16px; margin: 8px;
        max-height: 90vh; overflow-y: auto;
    }
    .auth-modal { border-radius: 20px; margin: 8px; max-height: 92vh; }
    .delivery-modal-content { border-radius: 20px 20px 0 0; max-height: 80vh; bottom: 0; top: auto; position: absolute; }

    /* ==========================================================
       FLOATING WHATSAPP — HIDDEN ON MOBILE
       ========================================================== */
    .wa-fab-enhanced { display: none !important; }

    /* ==========================================================
       LIVE CHAT WIDGET — HIDDEN ON MOBILE
       ========================================================== */
    #chat-widget { display: none !important; }

    /* ==========================================================
       BOTTOM NAV — Orange accent
       ========================================================== */
    .fb-bottom-nav { display: block !important; }
    .fb-bottom-nav-inner { padding: 6px 4px 4px; }
    .fb-bottom-nav-item { min-width: 0; flex: 1; padding: 4px 0; gap: 1px; }
    .fb-bottom-nav-item .fb-bni-icon { width: 28px; height: 28px; }
    .fb-bottom-nav-item .fb-bni-icon svg,
    .fb-bottom-nav-item .fb-bni-icon i { width: 20px; height: 20px; }
    .fb-bottom-nav-item span:last-child { font-size: 10px; font-weight: 500; }
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon { width: 28px; height: 28px; margin-top: 0; }
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon svg,
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon i { width: 20px; height: 20px; }

    /* ==========================================================
       POPUP BANNER
       ========================================================== */
    .fb-popup-card { max-width: 90vw; border-radius: 14px; }

    /* ==========================================================
       LANGUAGE SELECTOR
       ========================================================== */
    .lang-dropdown { min-width: 140px; }

    /* ==========================================================
       SCROLLBAR HIDE
       ========================================================== */
    ::-webkit-scrollbar { width: 0; height: 0; }
    * { scrollbar-width: none; }

    /* ==========================================================
       PROFILE PAGE
       ========================================================== */
    .profile-premium-wrap { padding: 12px; }
    .ps-card { border-radius: 14px; padding: 16px; }
    .ps-photo-card { border-radius: 14px; }
    .ps-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; }
    .ps-tab { white-space: nowrap; padding: 8px 14px; font-size: 12px; border-radius: 20px; }

    /* ==========================================================
       CART PAGE — Mobile
       ========================================================== */
    .fb-cart-page { padding-bottom: 100px; }
    .fb-cart-header { padding: 60px 16px 24px; border-radius: 0 0 20px 20px; }
    .fb-cart-header h1 { font-size: 20px; }
    .fb-cart-container { padding: 0 12px; }
    .fb-cart-item { padding: 12px; border-radius: 14px; gap: 10px; }
    .fb-cart-item-img { width: 72px; height: 72px; border-radius: 10px; }
    .fb-cart-item-name { font-size: 13px; }
    .fb-cart-item-price { font-size: 14px; }
    .fb-cart-item-controls { border-radius: 8px; }
    .fb-cart-qty-btn { width: 30px; height: 30px; font-size: 14px; }
    .fb-cart-qty-val { font-size: 13px; min-width: 24px; }
    .fb-cart-item-remove { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
    .fb-cart-summary { padding: 16px; border-radius: 14px; }
    .fb-cart-summary-title { font-size: 15px; }
    .fb-cart-checkout-btn { font-size: 14px; padding: 13px; border-radius: 10px; }
    .fb-cart-continue-btn { font-size: 13px; padding: 13px; border-radius: 10px; }
    .fb-cart-empty { padding: 48px 16px; border-radius: 14px; }
    .fb-cart-empty h3 { font-size: 16px; }
    .fb-cart-empty p { font-size: 12px; }
}

/* ================================================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
    .products-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px; overflow-x: hidden; }
    .fb-product-slider-wrap .fb-slider-track {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
    }
    .fb-product-slider-wrap .fb-slider-track .product-card {
        flex: 0 0 calc(50% - 4px);
        min-width: 0;
    }
    .fb-product-slider-wrap .fb-slider-track .product-card:only-child {
        flex: 0 0 100%;
    }
    .product-card .product-image { height: 130px; }
    .product-card .current-price { font-size: 13px; }
    .product-card .product-title { font-size: 11px; }
    .product-card .product-details { padding: 8px; }

    .app-banner-img .phone-mockup { height: 230px; }
    .store-btn { padding: 11px 16px; font-size: 13px; }

    .categories-carousel { display: flex !important; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
    .categories-carousel .category-card { flex: 0 0 calc(33.333% - 6px); min-width: 0; }
    .category-card .category-img-container { max-width: 56px; border-radius: 18px; }
    .category-card h3 { font-size: 11px; }

    .brands-carousel { gap: 8px; }
    .brands-carousel .brand-item { flex: 0 0 calc(25% - 6px); min-width: 0; height: 84px; border-radius: 12px; padding: 12px 8px; }
    .brand-item svg { width: 40px; height: 40px; }

    .key-features { grid-template-columns: 1fr 1fr !important; gap: 6px; }
    .feature-item { padding: 10px 8px; gap: 8px; }
    .feature-icon { width: 30px; height: 30px; border-radius: 8px; }
    .feature-icon i { width: 14px; height: 14px; }
    .feature-text span { font-size: 10px; }
    .feature-text small { font-size: 9px; }

    /* Mobile hero sizing — consolidated in the mobile override block near EOF */

    .section-header h2 { font-size: 15px; }

    .fb-bottom-nav-item .fb-bni-icon { width: 24px; height: 24px; }
    .fb-bottom-nav-item .fb-bni-icon svg,
    .fb-bottom-nav-item .fb-bni-icon i { width: 18px; height: 18px; }
    .fb-bottom-nav-item span:last-child { font-size: 9px; }
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon { width: 24px; height: 24px; margin-top: 0; }
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon svg,
    .fb-bottom-nav-item.fb-bni-whatsapp .fb-bni-icon i { width: 18px; height: 18px; }

    /* WhatsApp and Live Chat hidden on mobile */

    .trust-bar-content { grid-template-columns: 1fr 1fr !important; gap: 6px; }
    .trust-item { padding: 10px 6px; }

    /* Cart page small mobile */
    .fb-cart-header { padding: 48px 12px 20px; }
    .fb-cart-header h1 { font-size: 18px; }
    .fb-cart-item-img { width: 60px; height: 60px; border-radius: 8px; }
    .fb-cart-item { padding: 10px; gap: 8px; }
    .fb-cart-item-name { font-size: 12px; }
    .fb-cart-item-price { font-size: 13px; }
    .fb-cart-qty-btn { width: 28px; height: 28px; font-size: 13px; }
    .fb-cart-summary { padding: 14px; }
}

/* ================================================================
   RESPONSIVE: Homepage category product sections (mobile)
   Two categories fit on one screen, each showing exactly 2 products
   side-by-side in a compact 2-column grid. Applies dynamically to
   every current and future homepage category (section-scoped, so the
   All Products / Flash / Special Offers sections are unaffected).
   ================================================================ */
@media (max-width: 768px) {
    /* --- Category product grid: fixed 2-column layout --- */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        overflow: hidden;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item {
        flex: none;
        min-width: 0;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:only-child {
        grid-column: 1 / -1;
    }
    /* Exactly 2 product cards per category section on mobile */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:nth-child(n + 3) {
        display: none !important;
    }

    /* --- Compact category blocks so two fit on one screen --- */
    #homepage-category-products .category-product-block {
        margin-bottom: 18px;
    }
    #homepage-category-products .section-header {
        margin-bottom: 8px;
    }
    #homepage-category-products .category-banner {
        margin-bottom: 8px;
    }
    #homepage-category-products .category-banner-img {
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 8px;
    }

    /* --- Compact product cards --- */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card {
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-card-header {
        top: 6px;
        left: 6px;
        right: 6px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card a.product-img-container {
        height: 88px;
        margin: 4px 0 6px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-details {
        padding: 0;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-category {
        display: none;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-title {
        font-size: 11px;
        line-height: 1.25;
        margin: 2px 0 3px;
        height: auto;
        -webkit-line-clamp: 1;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-moq {
        display: none !important;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-unit {
        font-size: 10px;
        margin-bottom: 4px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .price-row {
        gap: 5px;
        margin-top: 2px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .new-price {
        font-size: 13px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .old-price {
        font-size: 10px;
    }
    /* Inline-styled rating row: hide on compact mobile category cards */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .product-details > div[style*="display:flex"] {
        display: none !important;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .product-card .add-to-cart-btn-full {
        padding: 6px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        margin-top: 6px;
    }
}

/* ================================================================
   RESPONSIVE: Compact product cards & 2-column grids (mobile)
   Applies a compact 2-column layout to every product listing on
   mobile (homepage All Products, category page, Limited-Time Deals,
   Special Offers, Hot Deals, Flash Offer, Brand page) so that
   2 sections / 4 products are visible at a glance. Uses generic
   .product-card + grid rules, so it automatically covers all current
   and future categories and products.
   ================================================================ */
@media (max-width: 768px) {
    /* Fallback compact 2-column grid for every product listing grid */
    .cp-grid,
    .lt-grid,
    .sp-grid,
    .hd-grid,
    .fs-grid,
    .bp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    /* Compact product cards on mobile everywhere */
    .product-card {
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .product-card .product-card-header {
        top: 6px;
        left: 6px;
        right: 6px;
    }
    .product-card a.product-img-container {
        height: 110px;
        margin: 4px 0 6px;
    }
    .product-card .product-details {
        padding: 0;
    }
    .product-card .product-category {
        display: none;
    }
    .product-card .product-title {
        font-size: 11px;
        line-height: 1.25;
        margin: 2px 0 3px;
        height: auto;
        -webkit-line-clamp: 1;
    }
    .product-card .product-moq {
        display: none !important;
    }
    .product-card .product-unit {
        font-size: 10px;
        margin-bottom: 4px;
    }
    .product-card .price-row {
        gap: 5px;
        margin-top: 2px;
    }
    .product-card .new-price {
        font-size: 13px;
    }
    .product-card .old-price {
        font-size: 10px;
    }
    /* Inline-styled rating row: hidden on compact mobile cards */
    .product-card .product-details > div[style*="display:flex"] {
        display: none !important;
    }
    .product-card .add-to-cart-btn-full {
        padding: 6px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        margin-top: 6px;
    }
}

[data-theme="dark"] body { background: #0f0f1a; }
[data-theme="dark"] .fb-bottom-nav {
    background: rgba(26,26,46,0.96);
    box-shadow: 0 -2px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .fb-bottom-nav-item { color: #6b7280; }
[data-theme="dark"] .fb-bottom-nav-item.active { color: #fb923c; }
[data-theme="dark"] .fb-bottom-nav-item.active .fb-bni-icon {
    background: linear-gradient(135deg, rgba(251,146,60,0.15), rgba(251,146,60,0.08));
    color: #fb923c;
    box-shadow: 0 4px 12px rgba(251,146,60,0.15);
}
[data-theme="dark"] .fb-bottom-nav-item.active span:last-child { color: #fb923c; }
[data-theme="dark"] .fb-bottom-nav-item.active::after { background: #fb923c; }

[data-theme="dark"] .feature-item { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .feature-icon { background: rgba(251,146,60,0.12); }
[data-theme="dark"] .feature-text span { color: #e5e7eb; }
[data-theme="dark"] .category-card { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .category-card .category-name { color: #e5e7eb; }
[data-theme="dark"] .brand-item { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .product-card { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .product-card .product-title { color: #e5e7eb; }
[data-theme="dark"] .product-card .product-category { color: #9ca3af; }
[data-theme="dark"] .promo-card { background: linear-gradient(135deg, #B71C1C, #c2410c) !important; }
[data-theme="dark"] .trust-item { background: #1e1e2e; border-color: #2a2a3e; }
[data-theme="dark"] .trust-text span { color: #e5e7eb; }
[data-theme="dark"] .footer { background: #1a1a2e; }
[data-theme="dark"] .footer-col ul li a { color: #9ca3af; }
[data-theme="dark"] .filter-tab { background: #1e1e2e; border-color: #2a2a3e; color: #9ca3af; }
[data-theme="dark"] .filter-tab.active { background: #C62828; color: #fff; }
[data-theme="dark"] .cart-drawer { background: #1e1e2e; }
[data-theme="dark"] .modal-content { background: #1e1e2e; }
[data-theme="dark"] .ps-card { background: #1e1e2e; border-color: #2a2a3e; }

/* ================================================================
   INNER PAGE MOBILE RESPONSIVE — ALL PAGES
   ================================================================ */

/* ── Profile Page: 3-col → single col ── */
.profile-premium-layout { display: grid; grid-template-columns: 290px 1fr 260px; gap: 24px; align-items: start; }
.profile-sidebar-left, .profile-sidebar-right { position: sticky; top: 100px; }
.profile-content-center { min-width: 0; }

/* ── Footer/CMS Pages ── */
.footer-page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.footer-page-content .page-header h1 { font-size: 28px; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.footer-page-content .page-body { font-size: 15px; line-height: 1.8; color: #4a5568; }
.footer-page-content .page-body h1, .footer-page-content .page-body h2, .footer-page-content .page-body h3 { color: #1a1a2e; margin: 24px 0 12px; }
.footer-page-content .page-body p { margin-bottom: 16px; }
.footer-page-content .page-body ul, .footer-page-content .page-body ol { padding-left: 24px; margin-bottom: 16px; }
.footer-page-content .page-body li { margin-bottom: 8px; }
.footer-page-content .page-body img { max-width: 100%; height: auto; border-radius: 12px; }
.footer-page-content .page-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.footer-page-content .page-body table td, .footer-page-content .page-body table th { padding: 10px 14px; border: 1px solid #e5e7eb; font-size: 14px; }
.footer-page-content .page-body blockquote { border-left: 4px solid #C62828; padding: 12px 16px; background: #e8f5e9; border-radius: 0 8px 8px 0; margin: 16px 0; font-style: italic; }

/* ── Checkout Modal Mobile ── */
@media (max-width: 768px) {
    .profile-premium-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
    .profile-sidebar-left { position: static !important; }
    .profile-sidebar-right { position: static !important; }
    .footer-page-content { padding: 20px 12px 40px; }
    .footer-page-content .page-header h1 { font-size: 22px; }
    .footer-page-content .page-body { font-size: 14px; }
    .footer-page-content .page-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ================================================================
   RESPONSIVE: TABLET (max-width: 1024px) — INNER PAGES
   ================================================================ */
@media (max-width: 1024px) {
    .profile-premium-layout { grid-template-columns: 260px 1fr !important; }
    .profile-sidebar-right { display: none !important; }
}

/* ================================================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px) — INNER PAGES
   ================================================================ */
@media (max-width: 480px) {
    .footer-page-content .page-header h1 { font-size: 20px; }
    .footer-page-content .page-body { font-size: 13px; }
    .footer-page-content .page-body table td, .footer-page-content .page-body table th { padding: 8px 10px; font-size: 12px; }
}

/* ================================================================
   MODALS — MOBILE RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    /* Checkout Modal — bottom sheet, below bottom nav */
    #checkout-modal {
        z-index: 9000;
    }
    #checkout-modal .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 84px - 152px);
        border-radius: 20px 20px 0 0;
        padding: 0;
        margin: 0;
        position: fixed;
        bottom: 84px;
        top: auto;
        left: 0;
        right: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
    }
    #checkout-modal .modal-content > * { padding-left: 16px; padding-right: 16px; }
    #checkout-modal .modal-content .close-modal {
        position: sticky;
        top: 0;
        right: 0;
        z-index: 2;
        background: #fff;
        width: 100%;
        text-align: right;
        padding: 12px 16px 0;
        margin: 0;
        font-size: 22px;
    }
    #checkout-modal .modal-content .close-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 8px;
    }
    #checkout-modal .modal-content h3 {
        font-size: 17px;
        margin: 0 0 12px;
        padding: 0 16px;
    }
    #checkout-modal .modal-content form {
        padding: 0 16px 16px;
    }
    #checkout-modal .modal-content input,
    #checkout-modal .modal-content select,
    #checkout-modal .modal-content textarea {
        width: 100%;
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    #checkout-modal .modal-content textarea { min-height: 70px; resize: vertical; }
    #checkout-modal .modal-content button[type="submit"] {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
        margin-top: 8px;
    }
    #checkout-modal .form-group { margin-bottom: 12px; }
    #checkout-modal .form-group label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
    #checkout-modal .checkout-summary-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        font-size: 14px;
        border-bottom: 1px solid #f5f5f5;
    }
    #checkout-modal .checkout-summary-box:last-child { border-bottom: none; font-weight: 700; font-size: 15px; }
    #checkout-modal [style*="display:flex"] { padding: 0; gap: 8px; }
    #checkout-coupon-msg { font-size: 12px; }
    #checkout-wallet-section { margin: 0 0 12px; padding: 10px 12px !important; border-radius: 10px; }

    /* Track Order Modal — bottom sheet */
    #track-modal .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
    }

    /* Delivery Modal — bottom sheet */
    .delivery-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        position: fixed !important;
        bottom: 0;
        top: auto !important;
        left: 0;
        right: 0;
        max-height: 75vh !important;
        padding: 16px;
    }

    /* Cart Drawer — bottom sheet */
    .cart-drawer {
        width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
    }

    /* Auth Modal */
    .auth-modal-overlay .auth-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        top: auto;
    }

    /* Wishlist Modal */
    .wishlist-modal-overlay .wishlist-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        position: fixed;
        bottom: 0;
        top: auto;
    }

    /* Profile Page Modals */
    .ps-modal-overlay .ps-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        position: fixed;
        bottom: 0;
        top: auto;
    }

    /* Generic Modal — full-width on mobile */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 16px;
    }

    /* Form Inputs — mobile optimized */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        box-sizing: border-box;
    }
    .form-group textarea { min-height: 80px; resize: vertical; }
    .form-group label { font-size: 13px; }

    /* Buttons — full width, min-height 48px */
    .btn, .checkout-btn-full, .save-btn, .submit-btn {
        width: 100%;
        min-height: 48px;
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* Tables — responsive card layout */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    table th, table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 480px) {
    .modal-content { padding: 16px 12px; border-radius: 16px 16px 0 0; }
    #checkout-modal .modal-content { padding: 0; }
    table th, table td { padding: 8px 10px; font-size: 12px; }
}
/* ================================================================
   POPUP ADVERTISEMENT SYSTEM
   ================================================================ */

/* Frontend Popup */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.active .popup-wrapper {
    transform: scale(1);
}
.popup-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.popup-close-btn:hover {
    background: rgba(0,0,0,0.85);
    transform: scale(1.1);
}
.popup-img-link {
    display: block;
}
.popup-img {
    width: 100%;
    height: auto;
    display: block;
}
.popup-img-wrap {
    position: relative;
    overflow: hidden;
}
.popup-cta-wrap {
    padding: 16px;
    text-align: center;
    background: #fff;
}
.popup-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}
.popup-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.5);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.popup-cta-btn:active {
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
    .popup-overlay {
        padding: 10px;
        align-items: center;
    }
    .popup-wrapper {
        max-width: 100%;
        border-radius: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .popup-close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 6px;
        right: 6px;
    }
    .popup-cta-wrap {
        padding: 12px;
    }
    .popup-cta-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Admin Upload Box */
.popup-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    position: relative;
}
.popup-upload-box:hover,
.popup-upload-box.dragover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.12);
}
.popup-upload-box.has-image {
    border-style: solid;
    border-color: #10b981;
    padding: 14px;
    background: #fff;
}
.popup-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.popup-upload-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform 0.2s;
}
.popup-upload-box:hover .popup-upload-icon-wrap {
    transform: scale(1.08);
}
.popup-upload-icon-wrap i {
    font-size: 26px;
    color: #7c3aed;
}
.popup-upload-text-main {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.popup-upload-text-sub {
    font-size: 12px;
    color: #9ca3af;
}
.popup-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}
.popup-upload-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.popup-upload-preview img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.popup-upload-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}
.popup-upload-progress {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
}
.popup-progress-track {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.popup-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 3px;
    transition: width 0.2s ease;
}
.popup-progress-text {
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 600;
}

/* ================================================================
   CATEGORY FILTER VIEW — Full-screen product listing from categories
   ================================================================ */
.category-filter-header {
    background: linear-gradient(135deg, #C62828 0%, #E53935 100%);
    padding: 56px 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.cfh-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cfh-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    transition: background 0.2s;
    white-space: nowrap;
}
.cfh-back:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.cfh-back svg {
    flex-shrink: 0;
}
.cfh-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.cfh-count {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* When body has category-filter-view class, hide non-essential homepage sections */
body.category-filter-view #homepage-hero,
body.category-filter-view #homepage-categories-section,
body.category-filter-view #homepage-brands-section,
body.category-filter-view #flash-offer-section,
body.category-filter-view #homepage-promo-section,
body.category-filter-view #homepage-hotdeals-section,
body.category-filter-view #homepage-special-section,
body.category-filter-view #homepage-limited-section,
body.category-filter-view #homepage-apps-section,
body.category-filter-view #homepage-trust-bar,
body.category-filter-view .fb-mobile-header,
body.category-filter-view .main-header,
body.category-filter-view .top-bar {
    display: none !important;
}
body.category-filter-view {
    padding-top: 0 !important;
    padding-bottom: 84px !important;
}

/* Adjust products section layout when category-filtered */
body.category-filter-view .products-section .section-header {
    display: none;
}
body.category-filter-view .products-section {
    padding-top: 0;
}
body.category-filter-view .fb-product-slider-wrap {
    overflow: visible;
}
body.category-filter-view .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 16px;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible !important;
    overflow-x: visible !important;
}
body.category-filter-view .products-grid .product-card {
    flex: none;
    min-width: 0;
}

/* Category filter empty state */
.category-filter-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.category-filter-empty .empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}
.category-filter-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    margin: 0 0 8px;
}
.category-filter-empty p {
    font-size: 14px;
    margin: 0 0 20px;
    color: #888;
}
.category-filter-empty a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #C62828, #E53935);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}
.category-filter-empty a:active {
    transform: scale(0.96);
}

/* Category filter loading state */
.category-filter-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.category-filter-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #C62828;
    border-radius: 50%;
    animation: cfSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes cfSpin {
    to { transform: rotate(360deg); }
}
.category-filter-loading p {
    font-size: 14px;
    margin: 0;
}

/* Load more button */
.category-load-more-wrap {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px 0 32px;
}
.category-load-more-btn {
    padding: 12px 32px;
    background: #fff;
    color: #C62828;
    border: 2px solid #C62828;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.category-load-more-btn:active {
    background: #C62828;
    color: #fff;
}

/* Responsive adjustments for category filter view */
@media (min-width: 600px) {
    body.category-filter-view .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
    .cfh-title { font-size: 22px; }
}
@media (min-width: 900px) {
    body.category-filter-view .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px;
    }
    .category-filter-header { padding-top: 64px; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    body.category-filter-view .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 10px;
    }
}

/* -- Grade badge (storefront product cards + product page) ------- */
.grade-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
    background: #94a3b8;
}
.product-card-header .grade-badge {
    margin-right: 6px;
}
.grade-A { background: #16a34a; }
.grade-B { background: #2563eb; }
.grade-C { background: #d97706; }

/* ================================================================
   ALL CATEGORIES DROPDOWN (isolated header enhancement)
   ================================================================ */
.category-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    padding: 8px;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}
.category-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.category-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--gray-text);
    border-bottom: 1px solid var(--border-color);
}
.category-menu-close {
    border: none;
    background: transparent;
    color: #999;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.category-menu-close:hover {
    background: #f1f5f9;
    color: var(--dark-text);
}
.category-menu-close i,
.category-menu-close svg {
    width: 15px;
    height: 15px;
}
.category-menu-list {
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #d7ddd8 transparent;
}
.category-menu-list::-webkit-scrollbar {
    width: 6px;
}
.category-menu-list::-webkit-scrollbar-thumb {
    background: #d7ddd8;
    border-radius: 3px;
}
.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.category-item i,
.category-item svg {
    width: 17px;
    height: 17px;
    color: var(--primary-green);
    flex-shrink: 0;
}
.category-item:hover {
    background: var(--primary-light);
    color: var(--primary-green);
}
.category-menu-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.category-menu-viewall i,
.category-menu-viewall svg {
    width: 15px;
    height: 15px;
}
.category-menu-viewall:hover {
    background: #d4ecdc;
    color: var(--primary-hover);
}

.category-dropdown-btn.active {
    color: var(--primary-green);
}

/* Mobile (sticky header) dropdown */
.category-menu-mobile {
    top: calc(100% + 6px);
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    z-index: 99999;
}
.fb-mh-cat.active {
    background: rgba(255,255,255,0.22);
}

@media (max-width: 768px) {
    .category-menu-mobile {
        max-height: calc(100vh - 130px);
    }
}

/* ================================================================
   HERO SLIDER — PRESERVE ORIGINAL BANNER ASPECT RATIO
   Banners render at full width using their native aspect ratio:
   fully visible, no cropping, no stretching, no forced fixed size.
   ================================================================ */
.hero-slider-section .fb-hero-carousel,
.hero-slider-section .fb-carousel-track,
.hero-slider-section .fb-carousel-slide {
    min-height: 0;
}

.hero-slider-section .fb-carousel-track {
    display: grid;
    height: auto;
}

.hero-slider-section .fb-carousel-slide {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-section .fb-carousel-slide > a {
    display: block;
    width: 100%;
}

/* Device-specific hero carousels
   Desktop banners render in .fb-hero-carousel-desktop (shown on desktop/large screens only)
   Mobile banners render in .fb-hero-carousel-mobile (shown on phones only) */
.hero-slider-section .fb-slide-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-slider-section .fb-hero-carousel {
    min-height: 0;
}
.hero-slider-section .fb-carousel-track,
.hero-slider-section .fb-carousel-slide {
    min-height: 0;
}

.fb-hero-carousel-mobile { display: none; }

/* Hide the hero section on a device when there is no banner of its own type */
@media (min-width: 769px) {
    .hero-slider-section:has(.fb-hero-carousel-mobile):not(:has(.fb-hero-carousel-desktop)) { display: none; }
}
@media (max-width: 768px) {
    /* Device image visibility: hide desktop image, show mobile image */
    .fb-slide-img-desktop { display: none !important; }
    .fb-slide-img-mobile { display: block !important; }
}

/* Desktop hero banners: the carousel grows to fit each uploaded image's own
   aspect ratio (no fixed-height box). object-fit: contain is a safety net, so
   the FULL image is always visible - no cropping, no stretching, no cut-off
   edges, and no forced black bars. */
@media (min-width: 769px) {
    .hero-slider-section .fb-hero-carousel-desktop {
        min-height: 0;
    }
    .hero-slider-section .fb-hero-carousel-desktop .fb-carousel-track {
        height: auto;
        min-height: 0;
    }
    .hero-slider-section .fb-hero-carousel-desktop .fb-carousel-slide {
        height: auto;
        min-height: 0;
    }
    .hero-slider-section .fb-hero-carousel-desktop .fb-carousel-slide > a {
        height: auto;
    }
    .hero-slider-section .fb-hero-carousel-desktop .fb-slide-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

/* ================================================================
   MOBILE UNIFICATION: Show every product list exactly like the
   Flash Offer row on the homepage — a horizontal swipe carousel,
   ~2 cards per screen, all items swipeable.
   Front-end CSS only; no markup, backend, or admin changes.
   ================================================================ */
@media (max-width: 768px) {
    /* Generic product rows (All Products, Hot Offer, Best Sellers,
       New Arrivals, homepage "Shop by Category" rows, etc.) */
    .products-grid {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 4px 12px;
        scrollbar-width: none;
    }
    .products-grid::-webkit-scrollbar { display: none; }
    .products-grid .fb-slider-item,
    .products-grid .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }

    /* Homepage "Shop by Category" rows: swipe all products like Flash */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 4px 12px;
        scrollbar-width: none;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:only-child {
        flex: 0 0 100%;
    }
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:nth-child(n + 3) {
        display: block !important;
    }

    /* Category-filtered "All Products" view on the homepage */
    body.category-filter-view .products-grid {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 16px !important;
        padding: 8px 4px 12px !important;
        max-width: none;
        margin: 0;
        overflow: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.category-filter-view .products-grid .product-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: 150px;
    }

    /* Dedicated listing pages: Category, Brand, Flash Sale, Limited-Time,
       Hot Deals, Special Offers */
    body .cp-grid,
    body .lt-grid,
    body .sp-grid,
    body .hd-grid,
    body .fs-grid,
    body .bp-grid {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 16px !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 4px 12px;
        scrollbar-width: none;
    }
    body .cp-grid::-webkit-scrollbar,
    body .lt-grid::-webkit-scrollbar,
    body .sp-grid::-webkit-scrollbar,
    body .hd-grid::-webkit-scrollbar,
    body .fs-grid::-webkit-scrollbar,
    body .bp-grid::-webkit-scrollbar { display: none; }
    body .cp-grid .product-card,
    body .lt-grid .product-card,
    body .sp-grid .product-card,
    body .hd-grid .product-card,
    body .fs-grid .product-card,
    body .bp-grid .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
}

/* Smaller phones: slightly narrower cards, mirrors the Flash Offer row */
@media (max-width: 480px) {
    .products-grid .fb-slider-item,
    .products-grid .product-card,
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item,
    body.category-filter-view .products-grid .product-card,
    body .cp-grid .product-card,
    body .lt-grid .product-card,
    body .sp-grid .product-card,
    body .hd-grid .product-card,
    body .fs-grid .product-card,
    body .bp-grid .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }
}

/* ================================================================
   MOBILE: Flash Offer cards match the standard category product
   cards (same look as every other product row on the homepage).
   Front-end CSS only; no markup, backend, or admin changes.
   ================================================================ */
@media (max-width: 768px) {
    .flash-offer-card {
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .flash-offer-card .flash-offer-img-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 110px;
        margin: 4px 0 6px;
    }
    .flash-offer-card .flash-offer-img {
        height: 100%;
        padding: 0;
        background: none;
        object-fit: contain;
    }
    .flash-offer-card .flash-offer-details {
        padding: 0;
    }
    .flash-offer-card .flash-offer-details h4 {
        font-size: 11px;
        line-height: 1.25;
        margin: 2px 0 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .flash-offer-card .flash-offer-unit {
        font-size: 10px;
        margin-bottom: 4px;
    }
    .flash-offer-card .flash-offer-moq {
        display: none !important;
    }
    .flash-offer-card .price-row {
        gap: 5px;
        margin-top: 2px;
        margin-bottom: 0;
    }
    .flash-offer-card .new-price {
        font-size: 13px;
    }
    .flash-offer-card .old-price {
        font-size: 10px;
    }
    .flash-offer-card .add-to-cart-btn-full {
        padding: 6px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        margin-top: 6px;
    }
    .flash-offer-badge {
        top: 6px;
        left: 6px;
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ================= Minimum Order Value & Free Delivery notices ================= */
.fb-rules-notice {
    display: none;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.fb-rules-notice i { margin-top: 2px; }
.fb-rules-notice.fb-rule-warn {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.fb-rules-notice.fb-rule-good {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ================================================================
   BEST SELLING PRODUCTS SECTION
   ================================================================ */
.best-sellers-section {
    margin-top: 28px;
}
.best-sellers-section .best-seller-icon {
    color: #C62828;
    vertical-align: middle;
    margin-right: 4px;
}

/* ================================================================
   MOBILE HOME PAGE LAYOUT (max-width: 768px)
   ----------------------------------------------------------------
   Applies ONLY to mobile screens. Desktop and tablet are untouched.
   Layout order: Fixed Header (logo + actions) → Search Bar → Slider Banner → Categories → Brands → Best Selling Products → Flash → Category Products → All Products → Special Offers → Limited Offers → Footer

   This block intentionally appears LAST in the stylesheet so it
   overrides any earlier conflicting mobile rules.
   ================================================================ */
@media (max-width: 768px) {

    /* ── MOBILE HERO SLIDER / BANNER ─────────────────────────────
       Responsive banner height adapts to viewport width.
       Full width, rounded corners, proper overflow hidden. */
    .hero-slider-section {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-slider-section .fb-hero-carousel-desktop {
        display: none !important;
    }
    .hero-slider-section .fb-hero-carousel-mobile {
        display: block !important;
    }

    .hero-slider-section .fb-hero-carousel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 15 / 8 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-slider-section .fb-carousel-track {
        display: block !important;
        position: relative;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .hero-slider-section .fb-carousel-slide {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        height: 100% !important;
        min-height: 0 !important;
        display: block !important;
    }

    .hero-slider-section .fb-carousel-slide > a {
        display: block;
        width: 100%;
        height: 100%;
    }

.hero-slider-section .fb-slide-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center;
    }

    /* Nav arrows: touch-friendly */
    .hero-slider-section .fb-carousel-prev,
    .hero-slider-section .fb-carousel-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        background: rgba(255,255,255,0.85) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }

    /* Dots: touch-friendly */
    .hero-slider-section .fb-carousel-dots {
        bottom: 8px !important;
    }
    .hero-slider-section .fb-carousel-dot {
        width: 8px !important;
        height: 8px !important;
    }

    /* Hide non-mobile overlays */
    .hero-slider-section .fb-slide-overlay { display: none !important; }
    .hero-slider-section .fb-slide-content { display: none !important; }

    /* Collapse hero section when no mobile banner exists */
    .hero-slider-section:has(.fb-hero-carousel-desktop):not(:has(.fb-hero-carousel-mobile)) {
        display: none !important;
    }

    /* ── MOBILE CATEGORIES ───────────────────────────────────────
       Clean horizontal scroll, 4 compact cards per viewport below the banner.
       Force visible: override the scroll-reveal animation that keeps them
       at opacity:0 on mobile until IntersectionObserver fires. */
    .categories-section {
        margin-top: 14px !important;
    }

    .categories-section .section-header {
        margin-bottom: 10px !important;
        padding: 0 2px;
    }

    .categories-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 2px 0 8px !important;
    }
    .categories-carousel::-webkit-scrollbar { display: none; }

    .categories-carousel .category-card {
        flex: 0 0 calc(25% - 8px) !important;
        min-width: 0 !important;
        width: auto !important;
        border-radius: 14px !important;
        padding: 10px 6px 12px !important;
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
        text-align: center;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .categories-carousel .category-card:active {
        transform: scale(0.96);
    }

    .categories-carousel .category-card .category-img-container {
        max-width: 56px !important;
        width: 56px !important;
        height: 56px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto 6px !important;
        border-radius: 16px !important;
    }

    .categories-carousel .category-card .category-img-container img {
        border-radius: inherit;
    }

    .categories-carousel .category-card h3 {
        font-size: 11px !important;
        font-weight: 600 !important;
        margin-bottom: 1px !important;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
    }

    .categories-carousel .category-card span {
        font-size: 9px !important;
        color: #9ca3af !important;
    }

    /* ── MOBILE BRANDS ───────────────────────────────────────────
       Clean horizontal scroll, 4 compact logo cards below categories.
       Force visible: override the scroll-reveal animation. */
    .brands-section {
        margin-top: 16px !important;
    }

    .brands-section .section-header {
        margin-bottom: 10px !important;
        padding: 0 2px;
    }

    .brands-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 2px 0 8px !important;
    }
    .brands-carousel::-webkit-scrollbar { display: none; }

    .brands-carousel .brand-item {
        flex: 0 0 calc(25% - 8px) !important;
        min-width: 0 !important;
        width: auto !important;
        height: 88px !important;
        border-radius: 14px !important;
        padding: 14px 10px !important;
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .brands-carousel .brand-item:active {
        transform: scale(0.96);
    }

    .brands-carousel .brand-item svg {
        width: 44px !important;
        height: 44px !important;
    }

    .brands-carousel .brand-item .brand-logo-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* ── MOBILE BEST SELLING PRODUCTS ─────────────────────────────
Positioned right after brands. Horizontal swipe carousel,
        2 cards per viewport width. Force visible: override scroll-reveal. */
    .best-sellers-section {
        margin-top: 18px !important;
    }

    .best-sellers-section .section-header {
        margin-bottom: 10px !important;
        padding: 0 2px;
    }

    .best-sellers-section .products-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .best-sellers-section .products-grid::-webkit-scrollbar { display: none; }

    .best-sellers-section .products-grid .product-card,
    .best-sellers-section .products-grid .fb-slider-item {
        flex: 0 0 calc(50% - 5px);
        min-width: 0;
    }

    .best-sellers-section .products-grid .product-card:only-child {
        flex: 0 0 100%;
    }

    /* ── MOBILE SEARCH BAR SPACING ─────────────────────────────── */
    .fb-mobile-search-bar {
        padding: 0 12px 2px;
    }

    .fb-mobile-search-inner {
        border-radius: 10px;
        background: #fff;
        border: 1px solid #e5e7eb;
        padding: 0;
    }

    /* Ensure no gap between header/search and hero */
    #homepage-hero {
        margin-top: 0 !important;
    }

    /* Force all scroll-reveal sections visible on mobile.
       The IntersectionObserver-based reveal animation frequently fails to
       trigger on mobile, leaving sections permanently at opacity: 0. */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── MOBILE SMALL PHONES (max-width: 480px) ──────────────────────── */
@media (max-width: 480px) {
    .hero-slider-section .fb-hero-carousel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 15 / 8 !important;
    }

    .categories-carousel .category-card {
        flex: 0 0 calc(25% - 7px) !important;
    }

    .category-card .category-img-container {
        max-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 14px !important;
    }

    .category-card h3 { font-size: 10px !important; }

    .brands-carousel .brand-item {
        flex: 0 0 calc(25% - 7px) !important;
        height: 78px !important;
        border-radius: 12px !important;
        padding: 12px 8px !important;
    }

    .brands-carousel .brand-item svg {
        width: 38px !important;
        height: 38px !important;
    }

    /* Best Sellers on small phones: tighter card spacing */
    .best-sellers-section .products-grid .product-card,
    .best-sellers-section .products-grid .fb-slider-item {
        flex: 0 0 calc(50% - 4px);
        min-width: 0;
    }
}

/* ================================================================
   MOBILE HOME PAGE PRODUCT SECTIONS
   ----------------------------------------------------------------
   Non-category product sections render as a static 2-column grid
   showing exactly 6 products (2 per row x 3 rows).
   The "Shop by Category" area renders EVERY category block stacked
   vertically (no limit; applies to all current and future
   categories), each with its category header first followed
   immediately by a 2-column product grid showing all of that
   category's products in rows of 2. This overrides the horizontal
   swipe-carousel behaviour for the homepage sections only.
   The filtered "All Products" listing (category-filter-view) and the
   dedicated listing pages keep their swipeable carousel layout.
   ================================================================ */
@media (max-width: 768px) {
    body:not(.category-filter-view) #homepage-best-sellers-section .products-grid,
    body:not(.category-filter-view) #homepage-special-section .products-grid,
    body:not(.category-filter-view) #homepage-limited-section .products-grid,
    body:not(.category-filter-view) #products-section-anchor .products-grid,
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track,
    #homepage-flash-section .flash-offer-carousel {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        overflow: hidden;
        padding: 0;
        scrollbar-width: none;
    }

    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item,
    #homepage-flash-section .flash-offer-carousel .flash-offer-card,
    body:not(.category-filter-view) #homepage-best-sellers-section .products-grid .product-card,
    body:not(.category-filter-view) #homepage-special-section .products-grid .product-card,
    body:not(.category-filter-view) #homepage-limited-section .products-grid .product-card,
    body:not(.category-filter-view) #products-section-anchor .products-grid .product-card {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:only-child,
    #homepage-flash-section .flash-offer-carousel .flash-offer-card:only-child {
        grid-column: 1 / -1;
    }

    /* Every category block renders exactly 2 products in a 2-column grid
       (1 row x 2 columns) on mobile. Items beyond the first two are hidden.
       This overrides the earlier swipe-carousel rule that re-displayed them. */
    #homepage-category-products .fb-product-slider-wrap .fb-slider-track .fb-slider-item:nth-child(n + 3) {
        display: none !important;
    }

    /* No category is hidden or limited: every category block renders
       sequentially. Hide only the banner image so each category's heading
       appears first, immediately followed by its product grid. */
    #homepage-category-products .category-banner:not(:has(.category-banner-img-mobile)) {
        display: none !important;
    }

    /* Show exactly 6 products in the non-category 2-column grids
       (2 per row x 3 rows). */
    body:not(.category-filter-view) #homepage-best-sellers-section .products-grid > .product-card:nth-child(n + 7),
    body:not(.category-filter-view) #homepage-special-section .products-grid > .product-card:nth-child(n + 7),
    body:not(.category-filter-view) #homepage-limited-section .products-grid > .product-card:nth-child(n + 7),
    body:not(.category-filter-view) #products-section-anchor .products-grid > .product-card:nth-child(n + 7),
    #homepage-flash-section .flash-offer-carousel .flash-offer-card:nth-child(n + 7) {
        display: none !important;
    }
}

/* ================================================================
   TOP HEADER "DELIVER TO" LOCATION & BRANCH PICKER
   Driven by branch-location.js. Desktop = popover anchored under the
   trigger, mobile = bottom sheet. Both share the same markup.
   ================================================================ */

/* ---- Trigger (desktop top bar) ---------------------------------- */
.top-bar-left { min-width: 0; }
.top-bar-left .delivery-location {
    max-width: 100%;
    min-width: 0;
    text-align: left;
}
.top-bar-left .delivery-location .fb-loc-pin { flex-shrink: 0; }
.top-bar-left .delivery-location .fb-loc-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}
.top-bar-left .delivery-location .fb-loc-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .8;
    white-space: nowrap;
}
.top-bar-left .delivery-location .fb-loc-value {
    font-size: 14px;
    font-weight: 800;
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* "This district is served by that branch" — the confirmed signal. */
.top-bar-left .delivery-location .fb-loc-branch-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 11px;
    font-weight: 700;
    max-width: 16vw;
    overflow: hidden;
}
.top-bar-left .delivery-location .fb-loc-branch-tag[hidden] { display: none; }
.top-bar-left .delivery-location .fb-loc-branch-tag span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-bar-left .delivery-location .fb-loc-branch-tag svg { width: 13px; height: 13px; flex-shrink: 0; }
.top-bar-left .delivery-location .fb-loc-branch-tag.is-empty { display: none; }
.top-bar-left .delivery-location .chevron { flex-shrink: 0; }
.delivery-location[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* ---- Backdrop ---------------------------------------------------- */
.fb-loc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999990;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.fb-loc-backdrop.is-on { opacity: 1; visibility: visible; }

/* ---- Popover (desktop) ------------------------------------------- */
.fb-loc-pop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000;
    width: 380px;
    max-width: calc(100vw - 16px);
    max-height: min(74vh, 560px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .28), 0 0 0 1px rgba(15, 23, 42, .06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transform-origin: top left;
    transition: opacity .18s ease, transform .18s cubic-bezier(.2, .8, .3, 1);
}
/* Opens above the trigger when there is no room below it. */
.fb-loc-pop.is-up { transform-origin: bottom left; }
.fb-loc-pop.is-open { opacity: 1; transform: translateY(0) scale(1); }
.fb-loc-pop[hidden] { display: none; }

/* ---- Sheet frame -------------------------------------------------- */
.fb-loc-sheet {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    background: #fff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}
/* The drag handle is only meaningful for the mobile sheet. */
.fb-loc-grip { display: none; }

/* ---- Header ------------------------------------------------------- */
.fb-loc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #0e7490, #0891b2);
    color: #fff;
    flex-shrink: 0;
}
.fb-loc-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    flex-shrink: 0;
}
.fb-loc-head-icon svg { width: 16px; height: 16px; }
.fb-loc-head-text { flex: 1; min-width: 0; }
.fb-loc-title { font-size: 15px; font-weight: 800; line-height: 1.25; }
.fb-loc-sub { font-size: 11px; opacity: .88; line-height: 1.35; margin-top: 2px; }
.fb-loc-close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fb-loc-close:hover { background: rgba(255, 255, 255, .3); }
.fb-loc-close svg { width: 16px; height: 16px; }

/* ---- Current selection -------------------------------------------- */
.fb-loc-current {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 14px 0;
    padding: 11px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    flex-shrink: 0;
}
.fb-loc-current-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    flex-shrink: 0;
}
.fb-loc-current-icon svg { width: 14px; height: 14px; }
.fb-loc-current-text { display: flex; flex-direction: column; min-width: 0; }
.fb-loc-current-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #047857;
}
.fb-loc-current-value {
    font-size: 15px;
    font-weight: 800;
    color: #065f46;
    line-height: 1.25;
    word-break: break-word;
}
.fb-loc-current-branch { font-size: 12px; color: #059669; font-weight: 600; }
.fb-loc-current-branch[hidden] { display: none; }

/* ---- Detect ------------------------------------------------------- */
.fb-loc-actions { padding: 12px 14px 0; flex-shrink: 0; }
.fb-loc-detect {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
    color: #0369a1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.fb-loc-detect:hover:not(:disabled) { background: #e0f2fe; border-color: #7dd3fc; }
.fb-loc-detect:disabled { cursor: progress; opacity: .75; }
.fb-loc-detect svg { width: 16px; height: 16px; flex-shrink: 0; }
.fb-loc-detect.is-busy svg { animation: fb-loc-spin 1.1s linear infinite; }
@keyframes fb-loc-spin { to { transform: rotate(360deg); } }

/* ---- Status note --------------------------------------------------- */
.fb-loc-note {
    margin: 10px 14px 0;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12px;
    line-height: 1.4;
    flex-shrink: 0;
}
.fb-loc-note[hidden] { display: none; }
.fb-loc-note.is-err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.fb-loc-note.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---- Search -------------------------------------------------------- */
.fb-loc-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 12px 14px 0;
    flex-shrink: 0;
}
.fb-loc-search svg {
    position: absolute;
    left: 11px;
    width: 15px;
    height: 15px;
    color: #94a3b8;
    pointer-events: none;
}
.fb-loc-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 12px 9px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, background .15s;
}
.fb-loc-search input:focus { border-color: #0e7490; background: #fff; }
.fb-loc-search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---- Body / lists --------------------------------------------------- */
.fb-loc-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 16px;
}
.fb-loc-section + .fb-loc-section { margin-top: 14px; }
.fb-loc-section[hidden] { display: none; }
.fb-loc-section-title {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.fb-loc-list { display: flex; flex-direction: column; gap: 6px; }
.fb-loc-empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
}
.fb-loc-empty[hidden] { display: none; }

.fb-loc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.fb-loc-item:hover { border-color: #0e7490; background: #f0f9ff; }
.fb-loc-item.is-active { background: #f0fdf4; border-color: #86efac; }
/* Must out-specify .fb-loc-item.is-active (same specificity, later in the
   file) or the currently selected row stays visible while search filters it
   out — these rows are display:flex, which beats the UA [hidden] rule. */
.fb-loc-item[hidden],
.fb-loc-item.is-active[hidden] { display: none; }
.fb-loc-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f0f9ff;
    color: #0e7490;
    flex-shrink: 0;
}
.fb-loc-item-icon.is-branch { background: #f5f3ff; color: #6d28d9; }
.fb-loc-item-icon svg { width: 15px; height: 15px; }
.fb-loc-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fb-loc-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fb-loc-item-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    min-width: 0;
}
.fb-loc-charge { font-weight: 700; color: #334155; flex-shrink: 0; }
.fb-loc-charge.is-free { color: #059669; }
.fb-loc-eta { flex-shrink: 0; }
.fb-loc-item-branch {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.fb-loc-sep { flex-shrink: 0; opacity: .5; }
.fb-loc-tick {
    flex-shrink: 0;
    display: flex;
    color: #059669;
    opacity: 0;
    transition: opacity .15s;
}
.fb-loc-tick svg { width: 16px; height: 16px; }
.fb-loc-item.is-active .fb-loc-tick { opacity: 1; }

.fb-loc-all {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.fb-loc-all:hover { border-style: solid; border-color: #94a3b8; background: #f8fafc; }
.fb-loc-all svg { width: 15px; height: 15px; flex-shrink: 0; }
.fb-loc-all span:not(.fb-loc-tick) { flex: 1; text-align: left; }
.fb-loc-all.is-active { border-color: #86efac; background: #f0fdf4; color: #047857; }
.fb-loc-all.is-active .fb-loc-tick { opacity: 1; }

/* The sheet is a modal surface, so the page behind it must not scroll. */
body.fb-loc-open { overflow: hidden; }

/* ================================================================
   LOCATION PICKER — MOBILE (bottom sheet)
   ================================================================ */
@media (max-width: 768px) {
    .fb-loc-backdrop { z-index: 999990; }
    .fb-loc-pop {
        top: auto !important;
        left: 0 !important;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        /* Never taller than the screen, and never past the home-indicator
           inset — a sheet clipped by the safe area is unreadable. */
        max-height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -18px 48px rgba(2, 6, 23, .34);
        transform: translateY(100%);
        transform-origin: bottom center;
        transition: transform .26s cubic-bezier(.2, .8, .25, 1);
    }
    .fb-loc-pop.is-up { transform-origin: bottom center; }
    .fb-loc-pop.is-open { transform: translateY(0); }
    .fb-loc-sheet {
        max-height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .fb-loc-grip {
        display: block;
        width: 38px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 999px;
        background: #cbd5e1;
        flex-shrink: 0;
    }
    .fb-loc-head { padding: 10px 14px; }
    .fb-loc-title { font-size: 14px; }
    .fb-loc-sub { font-size: 10.5px; }
    .fb-loc-current { margin: 10px 12px 0; padding: 10px; }
    .fb-loc-actions { padding: 10px 12px 0; }
    .fb-loc-note { margin: 8px 12px 0; }
    .fb-loc-search { margin: 10px 12px 0; }
    .fb-loc-body { padding: 10px 12px 16px; }
    .fb-loc-item { padding: 11px 12px; }
    /* 44px is the smallest reliably tappable row. */
    .fb-loc-item, .fb-loc-all, .fb-loc-detect { min-height: 46px; }
    .fb-loc-item-name { font-size: 14px; }
}

@media (max-width: 380px) {
    .fb-loc-head-icon { display: none; }
    .fb-loc-item-icon { width: 26px; height: 26px; }
    .fb-loc-item-icon svg { width: 13px; height: 13px; }
    .fb-loc-item-meta { font-size: 10.5px; }
}

/* Landscape phones have almost no vertical room: shrink the chrome so the
   list still gets a usable number of rows. */
@media (max-width: 900px) and (orientation: landscape) {
    .fb-loc-pop { max-height: calc(100vh - 16px); }
    .fb-loc-sheet { max-height: calc(100vh - 16px); }
    .fb-loc-grip { display: none; }
    .fb-loc-head { padding: 8px 12px; }
    .fb-loc-sub { display: none; }
    .fb-loc-current { margin: 8px 12px 0; padding: 8px 10px; }
    .fb-loc-actions { padding: 8px 12px 0; }
    .fb-loc-search { margin: 8px 12px 0; }
    .fb-loc-body { padding: 8px 12px 12px; }
    .fb-loc-item, .fb-loc-all, .fb-loc-detect { min-height: 40px; }
}

/* The mobile header trigger mirrors the desktop one. */
.fb-mh-delivery .fb-mh-delivery-value {
    font-weight: 800;
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .fb-mh-delivery .fb-mh-delivery-value { max-width: 18vw; }
}
@media (max-width: 430px) {
    .fb-mh-delivery .fb-mh-delivery-value { max-width: 26vw; }
}
@media (max-width: 360px) {
    .fb-mh-delivery .fb-mh-delivery-value { max-width: 32vw; }
}
