/* NexaStore Storefront — CSS v3 — RTL mobile fixes */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* CRITICAL: prevent horizontal overflow on RTL */
html, body { overflow-x: hidden; width: 100%; }

:root {
    --primary: #E53935;
    --primary-hover: #C62828;
    --primary-light: #FFF0F0;
    --secondary: #1A1A2E;
    --accent: #FF6F00;
    --text: #212121;
    --text-muted: #757575;
    --text-light: #9E9E9E;
    --bg: #FFFFFF;
    --bg-gray: #F7F7F9;
    --border: #EEEEEE;
    --border-dark: #E0E0E0;
    --success: #43A047;
    --warning: #FB8C00;
    --info: #4285F4;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.25s ease;
    --header-h: 64px;
}

body { font-family: 'Inter', 'Noto Kufi Arabic', -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
body[dir="rtl"] { font-family: 'Noto Kufi Arabic', 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ── Announcement ──────────────────────────────────────── */
.announcement-bar { background: var(--primary); color: #fff; text-align: center; padding: 8px 16px; font-size: 12px; font-weight: 500; }

/* ── Header ────────────────────────────────────────────── */
.store-header { background: #fff; position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s; margin: 0; padding: 0; border: none; display: flex; flex-direction: column; }
.store-header.scrolled { box-shadow: var(--shadow); }

/* Header inner — 3-column: left | center | right */
.header-inner { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; }
.header-logo .logo-text { font-size: 22px; font-weight: 700; color: var(--secondary); white-space: nowrap; }
.header-search { display: flex; width: 100%; border: 2px solid var(--border-dark); border-radius: 25px; overflow: hidden; transition: border-color 0.2s; }
.header-search:focus-within { border-color: var(--primary); }
.header-search input { flex: 1; padding: 9px 18px; border: none; outline: none; font-size: 14px; font-family: inherit; min-width: 0; background: transparent; }
.header-search button { padding: 9px 16px; background: var(--primary); color: #fff; border: none; cursor: pointer; border-radius: 0 22px 22px 0; display: flex; align-items: center; }
body[dir="rtl"] .header-search button { border-radius: 22px 0 0 22px; }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
body[dir="rtl"] .header-right { margin-left: 0; margin-right: auto; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { font-size: 13px; font-weight: 500; color: var(--text); transition: color var(--transition); white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-action-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--text); position: relative; transition: all var(--transition); }
.header-action-btn:hover { background: var(--bg-gray); color: var(--primary); }
.header-action-btn svg { width: 20px; height: 20px; }
.header-action-btn .badge-count { position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body[dir="rtl"] .header-action-btn .badge-count { right: auto; left: 2px; }
.header-lang { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border-dark); border-radius: 20px; color: var(--text); font-weight: 500; transition: all var(--transition); white-space: nowrap; }
.header-lang:hover { border-color: var(--primary); color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 6px; flex-shrink: 0; }
.mobile-menu-btn svg { width: 24px; height: 24px; }
.desktop-only { display: flex; }

/* ── Mobile Slide Menu (WoodMart style) ────────────────── */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-slide-menu { position: fixed; top: 0; width: 300px; max-width: 85vw; height: 100vh; background: #fff; z-index: 201; overflow-y: auto; box-shadow: var(--shadow-lg); transition: transform 0.3s ease; left: 0; right: auto; transform: translateX(-100%); }
body[dir="rtl"] .mobile-slide-menu { left: auto; right: 0; transform: translateX(100%); }
.mobile-slide-menu.open { transform: translateX(0) !important; }

/* Sidebar search */
.mm-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mm-search form { display: flex; flex: 1; border: 1px solid var(--border-dark); border-radius: 20px; overflow: hidden; }
.mm-search input { flex: 1; padding: 9px 14px; border: none; outline: none; font-size: 13px; font-family: inherit; min-width: 0; }
.mm-search button[type="submit"] { padding: 9px 12px; background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; }
.mm-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; flex-shrink: 0; }

/* Tabs */
.mm-tabs { display: flex; border-bottom: 2px solid var(--border); }
.mm-tab { flex: 1; padding: 14px 12px; font-size: 12px; font-weight: 700; text-align: center; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: inherit; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; }
.mm-tab.active { color: var(--text); border-bottom-color: var(--text); }

/* Panels */
.mobile-menu-panel { display: none; }
.mobile-menu-panel.active { display: block; }

/* Category links */
.mm-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--bg-gray); transition: background 0.15s; }
.mm-cat-link:hover { background: var(--bg-gray); color: var(--primary); }
.mm-arrow { color: var(--text-light); font-size: 18px; }

/* Menu links */
.mm-menu-link { display: block; padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--bg-gray); transition: background 0.15s; }
.mm-menu-link:hover { background: var(--bg-gray); color: var(--primary); }
.mm-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Shop Banner ───────────────────────────────────────── */
.shop-banner { background: var(--secondary); color: #fff; text-align: center; padding: 36px 20px 28px; margin-top: -6px; }
.shop-banner h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.shop-categories { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.shop-categories a { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px; transition: all var(--transition); }
.shop-categories a:hover, .shop-categories a.active { background: rgba(255,255,255,0.15); color: #fff; }
.shop-categories a .count { font-size: 11px; color: rgba(255,255,255,0.5); }

.shop-container { max-width: 1280px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.sidebar-widget { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-widget:last-child { border-bottom: none; }
.sidebar-widget h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; font-family: inherit; }
.price-range input:focus { border-color: var(--primary); }
.filter-btn { width: 100%; padding: 9px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.shop-toolbar .results-count { font-size: 13px; color: var(--text-muted); }
.shop-toolbar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; background: #fff; outline: none; }

/* ── Product Grid ──────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Product Card ──────────────────────────────────────── */
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); background: #fff; position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.product-card .card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-gray); }
.product-card .card-image-slider { position: relative; width: 100%; height: 100%; }
.product-card .card-image-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; opacity: 0; transition: opacity 0.3s; }
.product-card .card-image-slider img.active { opacity: 1; position: relative; }
.product-card .card-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2; opacity: 0; transition: opacity 0.2s; box-shadow: var(--shadow-sm); }
.product-card:hover .card-slider-btn { opacity: 1; }
.product-card .card-slider-btn.prev { left: 6px; }
.product-card .card-slider-btn.next { right: 6px; }
body[dir="rtl"] .product-card .card-slider-btn.prev { left: auto; right: 6px; }
body[dir="rtl"] .product-card .card-slider-btn.next { right: auto; left: 6px; }
.product-card .card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
body[dir="rtl"] .product-card .card-badges { left: auto; right: 8px; }
.product-card .card-badge { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; }
.card-badge.sale { background: var(--primary); }
.card-badge.sold-out { background: #333; }
.card-badge.new { background: var(--success); }
.product-card .card-actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
body[dir="rtl"] .product-card .card-actions { right: auto; left: 8px; }
.product-card .card-actions button { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); box-shadow: var(--shadow-sm); font-size: 14px; }
.product-card .card-actions button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-card .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card .card-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; color: var(--text); display: block; }
.product-card .card-title:hover { color: var(--primary); }
.product-card .card-category { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.product-card .card-rating { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.product-card .card-rating .stars { color: #FFC107; font-size: 13px; letter-spacing: -1px; }
.product-card .card-rating .stars-empty { color: #DDD; font-size: 13px; letter-spacing: -1px; }
.product-card .card-stock { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-bottom: 8px; }
.product-card .card-stock.in-stock { color: var(--success); }
.product-card .card-stock.out-of-stock { color: var(--text-light); }
.product-card .card-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.product-card .card-price .current { font-size: 16px; font-weight: 700; color: var(--primary); }
.product-card .card-price .original { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-inline-start: 6px; }
.product-card .card-color-swatches { display: flex; gap: 4px; align-items: center; }
.product-card .card-color-swatches .swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); }
.product-card .card-options { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.product-card .card-options .opt-btn { padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; color: var(--text-muted); background: none; }
.product-card .card-select-btn { display: block; width: 100%; padding: 10px; background: var(--info); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: all var(--transition); margin-top: auto; font-family: inherit; }
.product-card .card-select-btn:hover { background: #3367D6; }
.product-card .card-sku { font-size: 11px; color: var(--text-light); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bg-gray); }

/* ── Product Page ──────────────────────────────────────── */
.product-page { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
.breadcrumbs { font-size: 12px; color: var(--text-light); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; touch-action: pan-y; cursor: grab; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; cursor: zoom-in; transition: transform 0.3s; }
.gallery-main:hover img { transform: scale(1.1); }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); z-index: 2; }
.gallery-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-nav-btn.prev { left: 10px; }
.gallery-nav-btn.next { right: 10px; }
body[dir="rtl"] .gallery-nav-btn.prev { left: auto; right: 10px; }
body[dir="rtl"] .gallery-nav-btn.next { right: auto; left: 10px; }
.gallery-zoom-btn { position: absolute; bottom: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; }
body[dir="rtl"] .gallery-zoom-btn { left: auto; right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumbs .thumb { width: 70px; height: 70px; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; flex-shrink: 0; background: var(--bg-gray); }
.gallery-thumbs .thumb.active { border-color: var(--primary); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-info h1 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.product-rating { display: flex; align-items: center; gap: 4px; }
.product-rating .stars { color: #FFC107; font-size: 14px; }
.product-rating .count { font-size: 12px; color: var(--text-muted); }
.product-sku { font-size: 12px; color: var(--text-light); }
.product-price-box { margin: 16px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-price-box .price { font-size: 28px; font-weight: 700; color: var(--primary); }
.product-price-box .compare-price { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.product-price-box .discount-badge { background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.product-option-group { margin-bottom: 16px; }
.product-option-group .option-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.product-option-group .option-label span { color: var(--text-muted); font-weight: 400; }
.option-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.option-buttons .opt-btn { padding: 8px 18px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 13px; font-weight: 500; background: #fff; cursor: pointer; transition: all var(--transition); }
.option-buttons .opt-btn:hover { border-color: var(--text); }
.option-buttons .opt-btn.selected { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.option-buttons .opt-btn .opt-price-adj { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }
.option-buttons .opt-btn.selected .opt-price-adj { color: var(--primary); }
.color-swatches { display: flex; gap: 8px; }
.color-swatches .swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all var(--transition); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.color-swatches .swatch:hover { transform: scale(1.15); }
.color-swatches .swatch.selected { border-color: var(--primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.product-add-section { display: flex; gap: 10px; margin: 20px 0; align-items: center; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; }
.qty-selector button { width: 40px; height: 44px; background: var(--bg-gray); border: none; cursor: pointer; font-size: 18px; color: var(--text); }
.qty-selector input { width: 50px; height: 44px; text-align: center; border: none; font-size: 15px; font-weight: 600; font-family: inherit; outline: none; }
.btn-add-cart { flex: 1; min-width: 120px; padding: 12px 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.btn-add-cart:hover { background: var(--primary-hover); }
.btn-buy-now { padding: 12px 20px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.product-actions-row { display: flex; gap: 16px; margin-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
.product-actions-row a, .product-actions-row button { display: flex; align-items: center; gap: 5px; color: var(--text-muted); background: none; border: none; cursor: pointer; font-size: 13px; font-family: inherit; }
.product-actions-row a:hover, .product-actions-row button:hover { color: var(--primary); }
.watching-badge { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-gray); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ── Product Extra Features ────────────────────────────── */
.pef-section { margin-bottom: 16px; }
.pef-shipping { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pef-shipping .pef-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pef-shipping .pef-row:last-child { border-bottom: none; }
.pef-row .pef-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pef-row .pef-icon img { width: 28px; height: 28px; object-fit: contain; }
.pef-row .pef-details { flex: 1; min-width: 0; }
.pef-row .pef-details strong { display: block; font-size: 13px; font-weight: 600; }
.pef-row .pef-details small { color: var(--text-light); font-size: 12px; }
.pef-row .pef-extra { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pef-row .pef-price { font-weight: 600; color: var(--success); white-space: nowrap; font-size: 14px; }
.pef-guarantees { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.pef-guarantees .pef-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pef-guarantees .pef-row:last-child { border-bottom: none; }
.pef-guarantees .pef-price { color: var(--info); font-size: 13px; font-weight: 500; }

/* ── Product Tabs ──────────────────────────────────────── */
.product-tabs { border-top: 1px solid var(--border); padding-top: 30px; margin-top: 30px; }
.product-tabs .tabs-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.product-tabs .tabs-nav button { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all var(--transition); font-family: inherit; white-space: nowrap; }
.product-tabs .tabs-nav button:hover { color: var(--text); }
.product-tabs .tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-tabs .tab-panel { display: none; }
.product-tabs .tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tab-description { font-size: 14px; line-height: 1.8; }
.reviews-summary { text-align: center; margin-bottom: 24px; }
.reviews-summary .big-rating { font-size: 48px; font-weight: 700; }
.reviews-summary .stars { color: #FFC107; font-size: 20px; margin: 4px 0; }
.related-section { margin-top: 40px; }
.related-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Footer ────────────────────────────────────────────── */
.store-footer { background: var(--secondary); color: rgba(255,255,255,0.8); padding: 50px 16px 24px; margin-top: 60px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; padding: 0; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
.footer-newsletter-form { display: flex; gap: 6px; margin-top: 8px; }
.footer-newsletter-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; background: rgba(255,255,255,0.08); color: #fff; font-size: 13px; outline: none; font-family: inherit; }
.footer-newsletter-form button { padding: 9px 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }

/* ── WhatsApp Float ────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 99; }
body[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Mobile Bottom Nav ─────────────────────────────────── */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 100; padding: 4px 0 env(safe-area-inset-bottom, 4px); }
.mobile-bottom-nav .nav-items { display: flex; justify-content: space-around; }
.mobile-bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-muted); padding: 6px 8px; white-space: nowrap; }
.mobile-bottom-nav .nav-item.active { color: var(--primary); }
.mobile-bottom-nav .nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .product-main { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .desktop-only { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 58px; }

    /* Mobile header: burger (left) | logo (center) | lang+cart (right) */
    .header-inner { padding: 0 12px; gap: 0; position: relative; justify-content: space-between; }
    .header-left { flex: 0 0 auto; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
    body[dir="rtl"] .header-logo { left: auto; right: 50%; transform: translateX(50%); }
    .header-logo img { height: 28px; }
    .header-logo .logo-text { font-size: 18px; }
    .header-right { flex: 0 0 auto; gap: 4px; }
    .header-actions { gap: 2px; }
    .header-action-btn { width: 34px; height: 34px; }
    .header-action-btn svg { width: 20px; height: 20px; }
    .header-lang { font-size: 11px; padding: 4px 10px; }

    .shop-container { grid-template-columns: 1fr; padding: 16px 10px; }
    .shop-sidebar { display: none; }
    .shop-sidebar.show { display: block; position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .card-body { padding: 10px; }
    .product-card .card-title { font-size: 13px; }
    .product-card .card-slider-btn { opacity: 1; width: 24px; height: 24px; font-size: 12px; }
    .product-card .card-select-btn { font-size: 12px; padding: 8px; }
    .product-card .card-price .current { font-size: 14px; }

    .product-page { padding: 16px 10px; }
    .product-info h1 { font-size: 20px; }
    .product-price-box .price { font-size: 22px; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .whatsapp-float { bottom: 68px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-banner { padding: 28px 16px 22px; }
    .shop-banner h1 { font-size: 22px; }
}

/* ============================================================
   HOMEPAGE SECTIONS — Phase 3
   ============================================================ */

/* (header-search styles moved to header section above) */
/* (old mobile-search-bar placeholder removed) */

/* ── Mobile Menu Tabs ──────────────────────────────────── */
/* (old mobile menu tabs removed - now using .mm-tabs above) */

/* ── Hero Slider ───────────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; margin: -6px 0 0 0; padding: 0; line-height: 0; touch-action: pan-y; cursor: grab; }
.hero-slider { position: relative; width: 100%; line-height: 1.6; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: center; justify-content: center; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-img { width: 100%; display: block; }
.hero-slide-img.mobile-img { display: none; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); pointer-events: none; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.hero-title { font-size: 38px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 20px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-btn { display: inline-block; padding: 14px 36px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all var(--transition); }
.hero-btn:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); }
/* If no image uploaded, show a colored bg fallback */
.hero-slide-placeholder { width: 100%; min-height: 350px; background: var(--secondary); }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 20px; z-index: 3; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.hero-nav:hover { background: #fff; box-shadow: var(--shadow); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
body[dir="rtl"] .hero-nav.prev { left: auto; right: 20px; }
body[dir="rtl"] .hero-nav.next { right: auto; left: 20px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: #fff; transform: scale(1.3); }

/* ── Search Bar (mobile) ──────────────────────────────── */
.mobile-search-bar { display: none; background: var(--primary); padding: 8px 12px 10px; margin: 0; line-height: 1; position: relative; }
.mobile-search-bar::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 5px; background: var(--primary); }
.mobile-search-bar form { display: flex; gap: 0; background: #fff; border-radius: 22px; overflow: hidden; margin: 0; line-height: normal; }
.mobile-search-bar input { flex: 1; padding: 10px 16px; border: none; outline: none; font-size: 13px; font-family: inherit; min-width: 0; background: transparent; }
.mobile-search-bar button { padding: 10px 14px; background: var(--primary); border: none; cursor: pointer; color: #fff; display: flex; align-items: center; border-radius: 0 22px 22px 0; }
body[dir="rtl"] .mobile-search-bar button { border-radius: 22px 0 0 22px; }

/* ── Features Bar ──────────────────────────────────────── */
.features-bar { border-bottom: 1px solid var(--border); overflow-x: auto; }
.features-inner { max-width: 1280px; margin: 0 auto; display: flex; padding: 16px 20px; gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.feature-icon { font-size: 18px; color: var(--primary); }
.feature-item strong { font-size: 13px; display: block; }
.feature-item span { font-size: 11px; color: var(--text-light); }

/* ── Home Sections ─────────────────────────────────────── */
.home-section { padding: 40px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 22px; font-weight: 700; }
.section-link { font-size: 13px; font-weight: 600; color: var(--primary); }
.section-link:hover { text-decoration: underline; }

/* Products horizontal scroll */
.products-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
/* View: Slider */
.products-scroll.view-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.products-scroll.view-slider::-webkit-scrollbar { height: 4px; }
.products-scroll.view-slider::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.products-scroll.view-slider .product-card { min-width: 220px; max-width: 260px; flex-shrink: 0; scroll-snap-align: start; }
/* View: Masonry */
.products-scroll.view-masonry { columns: 4; column-gap: 16px; display: block; }
.products-scroll.view-masonry .product-card { break-inside: avoid; margin-bottom: 16px; display: inline-block; width: 100%; }

/* Categories views */
.categories-grid.view-slider { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.categories-grid.view-slider::-webkit-scrollbar { height: 4px; }
.categories-grid.view-slider::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.categories-grid.view-slider .category-card { min-width: 260px; flex-shrink: 0; }

/* ── Categories Grid ───────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.category-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); background: #fff; }
.category-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.category-img { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-img span { font-size: 32px; }
.category-info strong { font-size: 15px; display: block; margin-bottom: 4px; color: var(--text); }
.category-info span { font-size: 12px; color: var(--text-light); }

/* ── Promo Banners Grid ────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.promo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: flex; align-items: center; transition: all var(--transition); }
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-img-desktop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-img-mobile { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-content { position: relative; z-index: 2; padding: 24px; }
.promo-subtitle { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; display: block; margin-bottom: 6px; }
.promo-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.promo-btn { display: inline-block; padding: 8px 18px; border: 1px solid currentColor; border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: all var(--transition); }
.promo-btn:hover { background: rgba(0,0,0,0.1); }

/* ── Why Choose Us ─────────────────────────────────────── */
.why-choose-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.why-choose-heading { font-size: 30px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.why-choose-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.why-choose-video { position: relative; margin-top: 16px; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow); }
.why-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: start; }
.why-number { font-size: 28px; font-weight: 700; color: var(--primary); flex-shrink: 0; line-height: 1; }
.why-icon-wrap { width: 48px; flex-shrink: 0; display: flex; align-items: flex-start; }
.why-icon { width: 40px; height: 40px; }
.why-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.why-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Story Section ─────────────────────────────────────── */
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story-img img { width: 100%; border-radius: var(--radius); }
.story-text h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.story-text p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ── Flash Sale Countdown ──────────────────────────────── */
.countdown { display: flex; gap: 8px; }
.cd-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; text-align: center; min-width: 55px; }
.cd-box span { font-size: 22px; font-weight: 700; display: block; }
.cd-box small { font-size: 10px; color: var(--text-light); text-transform: uppercase; }

/* ── Newsletter ────────────────────────────────────────── */
.newsletter-form { display: flex; gap: 8px; max-width: 450px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; outline: none; font-family: inherit; min-width: 0; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { padding: 12px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }

/* ── Contact Section ───────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-item strong { font-size: 14px; display: block; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── Homepage Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .why-choose-layout { grid-template-columns: 1fr; }
    .story-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner > .search-wrapper { display: none; }
    .mobile-search-bar { display: block; }

    .hero-slide-img.desktop-img { display: none; }
    .hero-slide-img.mobile-img { display: block; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; }
    .hero-nav { width: 32px; height: 32px; font-size: 16px; }
    .hero-nav.prev { left: 8px; }
    .hero-nav.next { right: 8px; }
    body[dir="rtl"] .hero-nav.prev { left: auto; right: 8px; }
    body[dir="rtl"] .hero-nav.next { right: auto; left: 8px; }

    .features-inner { gap: 16px; padding: 12px 16px; }
    .feature-item strong { font-size: 12px; }

    .home-section { padding: 28px 0; }
    .section-header h2 { font-size: 18px; }
    .section-inner { padding: 0 12px; }

    .products-scroll { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .categories-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-card.has-mobile-img .promo-img-desktop { display: none; }
    .promo-card.has-mobile-img .promo-img-mobile { display: block; }
    .promo-content h3 { font-size: 18px; }

    .why-choose-heading { font-size: 22px; }
    .story-text h2 { font-size: 20px; }
    .countdown { gap: 4px; }
    .cd-box { padding: 6px 8px; min-width: 45px; }
    .cd-box span { font-size: 18px; }
    .newsletter-form { flex-direction: column; }
}

/* ============================================================
   PHASE 4 — Cart Sidebar, Cart Page, Checkout, Confirmation
   ============================================================ */

/* ── Cart Sidebar ──────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; visibility: hidden; transition: all 0.3s; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; width: 400px; max-width: 90vw; height: 100vh; background: #fff; z-index: 301; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
body[dir="rtl"] .cart-sidebar { right: auto; left: 0; transform: translateX(-100%); }
.cart-sidebar.open { transform: translateX(0) !important; }
.cart-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-sidebar-header h3 { font-size: 18px; font-weight: 700; }
.cart-sidebar-header button { background: none; border: none; font-size: 14px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-family: inherit; }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty-msg { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.cart-sidebar-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bg-gray); position: relative; }
.cart-item-img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--bg-gray); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; }
.cart-item-sku { font-size: 10px; color: var(--text-light); }
.cart-item-opts { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cart-item-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-qty-mini { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; }
.cart-qty-mini button { width: 26px; height: 26px; background: var(--bg-gray); border: none; cursor: pointer; font-size: 14px; }
.cart-qty-mini span { width: 28px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--primary); font-weight: 600; }
.cart-item-remove { position: absolute; top: 14px; right: 0; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-light); line-height: 1; }
body[dir="rtl"] .cart-item-remove { right: auto; left: 0; }

.cart-sidebar-footer { border-top: 1px solid var(--border); padding: 16px 20px; flex-shrink: 0; }
.cart-sidebar-subtotal { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cart-sidebar-subtotal span:last-child { color: var(--primary); }
.cart-sidebar-freeship { margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.cart-sidebar-freeship strong { color: var(--primary); }
.fs-qualified { color: var(--success) !important; font-weight: 600; }
.fs-bar { width: 100%; height: 6px; background: var(--bg-gray); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.fs-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--info)); border-radius: 3px; transition: width 0.3s; }
.cart-sidebar-viewcart { display: block; width: 100%; padding: 11px; text-align: center; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-bottom: 8px; transition: all var(--transition); }
.cart-sidebar-viewcart:hover { border-color: var(--text); }
.cart-sidebar-checkout { display: block; width: 100%; padding: 12px; text-align: center; background: var(--info); color: #fff; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: all var(--transition); }
.cart-sidebar-checkout:hover { background: #3367D6; color: #fff; }

/* ── Cart Page ─────────────────────────────────────────── */
.cart-page { max-width: 1280px; margin: 0 auto; padding: 30px 20px; }
.cart-page-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty h3 { margin: 12px 0 20px; color: var(--text-muted); }
.btn-continue-shop { display: inline-block; padding: 12px 28px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.free-ship-bar { padding: 16px 20px; background: var(--bg-gray); border-radius: var(--radius); margin-bottom: 20px; }
.free-ship-bar p { font-size: 14px; margin-bottom: 8px; }
.free-ship-bar strong { color: var(--primary); }
.free-ship-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.free-ship-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 4px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px 16px; font-size: 13px; font-weight: 600; text-align: left; border-bottom: 2px solid var(--border); }
body[dir="rtl"] .cart-table th { text-align: right; }
.cart-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--bg-gray); }
.cart-td-remove { width: 30px; }
.cart-remove-btn { font-size: 20px; color: var(--text-light); }
.cart-remove-btn:hover { color: var(--primary); }
.cart-product-row { display: flex; align-items: center; gap: 12px; }
.cart-product-img { width: 70px; height: 70px; object-fit: contain; border-radius: 6px; background: var(--bg-gray); }
.cart-product-row strong { font-size: 13px; display: block; }
.cart-product-opts { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cart-td-price { font-size: 14px; }
.cart-qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-qty button { width: 34px; height: 36px; background: var(--bg-gray); border: none; cursor: pointer; font-size: 16px; }
.cart-qty input { width: 40px; height: 36px; text-align: center; border: none; font-size: 14px; font-weight: 600; outline: none; font-family: inherit; }
.cart-td-total { font-size: 15px; }
.cart-actions-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; gap: 12px; flex-wrap: wrap; }
.cart-coupon-row { display: flex; gap: 8px; align-items: center; }
.cart-coupon-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; font-family: inherit; min-width: 180px; }
.cart-coupon-btn { padding: 10px 18px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cart-coupon-remove { color: var(--primary); font-size: 18px; }
.cart-update-btn { padding: 10px 20px; border: 1px solid var(--border-dark); border-radius: var(--radius); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cart-totals { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.cart-totals h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.ct-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--bg-gray); }
.ct-discount span:last-child { color: var(--success); }
.ct-total { border-bottom: none; font-size: 18px; font-weight: 700; border-top: 2px solid var(--border); padding-top: 14px; }
.ct-total-price { color: var(--primary); }
.ct-shipping { padding: 12px 0; border-bottom: 1px solid var(--bg-gray); }
.ct-shipping strong { font-size: 14px; display: block; margin-bottom: 8px; }
.ct-ship-option { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; cursor: pointer; gap: 8px; }
.ct-ship-option input { margin: 0; }
.cart-checkout-btn { display: block; width: 100%; padding: 14px; text-align: center; background: var(--primary); color: #fff; border-radius: var(--radius); font-size: 16px; font-weight: 600; margin-top: 16px; }
.cart-checkout-btn:hover { background: var(--primary-hover); color: #fff; }

/* ── Checkout Page ─────────────────────────────────────── */
.checkout-page { max-width: 1280px; margin: 0 auto; padding: 30px 20px; }
.checkout-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.checkout-errors { margin-bottom: 16px; }
.checkout-error { padding: 8px 14px; background: #FFEBEE; color: #C62828; border-radius: 6px; font-size: 13px; margin-bottom: 6px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 30px; }
.checkout-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.checkout-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.checkout-field { width: 100%; }
.checkout-field.half { width: calc(50% - 7px); }
.checkout-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.checkout-field .req { color: var(--primary); }
.checkout-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.checkout-input:focus { border-color: var(--primary); }
.checkout-shipping { display: flex; flex-direction: column; gap: 8px; }
.shipping-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s; }
.shipping-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.shipping-option-info { flex: 1; }
.shipping-option-info strong { font-size: 13px; display: block; }
.shipping-option-info span { font-size: 11px; color: var(--text-muted); }
.shipping-option-price { font-size: 13px; font-weight: 600; color: var(--success); }
.checkout-payment { display: flex; flex-direction: column; gap: 8px; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 14px; }
.checkout-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.checkout-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.order-items { margin-bottom: 16px; }
.order-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg-gray); }
.order-item img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; background: var(--bg-gray); }
.order-item-info { flex: 1; }
.order-item-info strong { font-size: 13px; display: block; line-height: 1.2; }
.order-item-info small { font-size: 11px; color: var(--text-muted); display: block; }
.order-item-info span { font-size: 12px; color: var(--text-muted); }
.order-item-total { font-weight: 600; font-size: 14px; white-space: nowrap; }
.order-totals { border-top: 1px solid var(--border); padding-top: 12px; }
.ot-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.ot-discount span:last-child { color: var(--success); }
.ot-total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--border); padding-top: 12px; }
.ot-total span:last-child { color: var(--primary); }
.place-order-btn { display: block; width: 100%; padding: 14px; text-align: center; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 16px; font-family: inherit; }
.place-order-btn:hover { background: var(--primary-hover); }

/* ── Order Confirmation ────────────────────────────────── */
.confirmation-page { padding: 40px 20px; }
.confirm-box { text-align: center; max-width: 600px; margin: 0 auto; }
.confirm-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px; }
.confirm-box h1 { font-size: 26px; margin-bottom: 6px; }
.confirm-subtitle { color: var(--text-muted); margin-bottom: 24px; }
.confirm-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; text-align: left; }
.cd-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bg-gray); }
.cd-row:last-child { border-bottom: none; }
.confirm-total { color: var(--primary); font-size: 18px; }
.confirm-items { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; text-align: left; }
.confirm-items h3 { margin-bottom: 12px; }
.ci-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.ci-row small { color: var(--text-muted); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp-order { padding: 12px 28px; background: #25D366; color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 14px; }

/* ── Cart/Checkout Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-totals { position: static; }
    .cart-table th:nth-child(3), .cart-table td.cart-td-price { display: none; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .checkout-field.half { width: 100%; }
    .cart-actions-row { flex-direction: column; }
    .cart-coupon-row { width: 100%; }
    .cart-coupon-input { flex: 1; min-width: 0; }
}

/* ============================================================
   CATEGORY DISCOUNT BADGES & BANNERS
   ============================================================ */

/* Badge — small inline (for lists) */
.cat-deal-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: linear-gradient(135deg, #FF6B35, #F7C948); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* Card — under category card on homepage */
.cat-deal-card { margin-top: 8px; padding: 6px 12px; background: linear-gradient(135deg, #FF6B35, #E53935); color: #fff; border-radius: 8px; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; animation: deal-pulse 2s ease-in-out infinite; }

/* Banner — full width (product page, shop page) */
.cat-deal-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%); color: #fff; margin: 0; text-align: center; position: relative; overflow: hidden; }
.cat-deal-banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 50%); animation: deal-shimmer 3s ease-in-out infinite; }
.cat-deal-icon { font-size: 22px; flex-shrink: 0; position: relative; z-index: 1; animation: deal-bounce 1.5s ease-in-out infinite; }
.cat-deal-text { font-size: 15px; font-weight: 700; letter-spacing: 0.3px; position: relative; z-index: 1; }

/* Product page banner — rounded with margin */
.product-main .cat-deal-banner { border-radius: var(--radius); margin: 0 0 16px 0; grid-column: 1 / -1; }

@keyframes deal-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
@keyframes deal-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes deal-shimmer { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } }

@media (max-width: 768px) {
    .cat-deal-banner { padding: 10px 14px; gap: 8px; }
    .cat-deal-text { font-size: 13px; }
    .cat-deal-icon { font-size: 18px; }
    .cat-deal-card { font-size: 10px; padding: 5px 8px; }
}

/* ============================================================
   LIVE SEARCH DROPDOWN
   ============================================================ */
.search-wrapper { position: relative; flex: 1; max-width: 480px; }
.search-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 12px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 150; max-height: 400px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--bg-gray); transition: background 0.15s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-gray); }
.search-result-item img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--bg-gray); flex-shrink: 0; }
.search-result-noimg { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-gray); border-radius: 6px; font-size: 20px; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-info strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.3; }
.search-result-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.search-result-old { font-size: 11px; color: var(--text-light); text-decoration: line-through; margin-right: 6px; }
body[dir="rtl"] .search-result-old { margin-right: 0; margin-left: 6px; }
.search-no-results { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

.mobile-search-bar .search-wrapper { max-width: none; }
.mobile-search-bar .search-dropdown { border-radius: 0 0 12px 12px; top: calc(100% + 2px); }

/* ============================================================
   LEAD MAGNET POPUP
   ============================================================ */
.leadpop-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; }
.leadpop { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 501; background: #fff; border-radius: 16px; overflow: hidden; max-width: 480px; width: 92vw; max-height: 90vh; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: popIn 0.3s ease; }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.leadpop-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
body[dir="rtl"] .leadpop-close { right: auto; left: 10px; }
.leadpop-img { width: 100%; overflow: hidden; }
.leadpop-img img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 280px; }
.leadpop-body { padding: 24px; text-align: center; }
.leadpop-heading { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.leadpop-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.leadpop-form { display: flex; flex-direction: column; gap: 10px; }
.leadpop-form input { padding: 12px 16px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 14px; outline: none; font-family: inherit; text-align: center; }
.leadpop-form input:focus { border-color: var(--primary); }
.leadpop-btn { padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.leadpop-btn:hover { background: var(--primary-hover); }
.leadpop-coupon-reveal { text-align: center; }
.leadpop-coupon-reveal p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.leadpop-coupon-code { font-size: 28px; font-weight: 800; color: var(--primary); background: var(--bg-gray); padding: 12px 24px; border-radius: 10px; letter-spacing: 3px; display: inline-block; margin-bottom: 12px; border: 2px dashed var(--primary); }
.leadpop-copy { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.leadpop-wa-msg { padding: 20px; }
.leadpop-wa-msg p { font-size: 16px; color: var(--success); font-weight: 600; }

/* Payment options styling */
.pay-opt-content { flex: 1; }
.pay-opt-content strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pay-logos { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s; }
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(229,57,53,0.03); }

@media (max-width: 480px) {
    .leadpop { width: 95vw; }
    .leadpop-heading { font-size: 18px; }
    .leadpop-body { padding: 18px; }
    .leadpop-coupon-code { font-size: 22px; padding: 10px 18px; }
}

/* ============================================================
   CONTACT US PAGE
   ============================================================ */
.contact-page { padding: 30px 0 60px; }
.contact-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.contact-map { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-card, .contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-info-card h3, .contact-form-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--bg-gray); }
.contact-item:last-of-type { border-bottom: none; }
.contact-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.contact-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--text-muted); margin: 0; }
.contact-item a { color: var(--primary); }
.contact-map-link { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 4px; display: inline-block; }
.contact-social { padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--border); }
.contact-social strong { display: block; font-size: 13px; margin-bottom: 10px; }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-gray); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text); transition: all 0.2s; }
.social-btn:hover { background: var(--primary); color: #fff; }

/* Contact Form */
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-field { margin-bottom: 14px; }
.contact-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.contact-field input, .contact-field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--primary); }
.contact-submit { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.contact-submit:hover { background: var(--primary-hover); }
.contact-success { text-align: center; padding: 30px; }
.contact-success span { display: block; font-size: 40px; margin-bottom: 12px; }
.contact-success p { color: var(--success); font-size: 15px; font-weight: 600; }

/* ============================================================
   RETURNS POLICY PAGE
   ============================================================ */
.policy-page { padding: 30px 0 60px; }
.policy-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.policy-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; font-size: 15px; line-height: 1.8; color: var(--text); }
.policy-content h2 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--secondary); }
.policy-content h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul, .policy-content ol { margin: 12px 0 14px 24px; }
body[dir="rtl"] .policy-content ul, body[dir="rtl"] .policy-content ol { margin: 12px 24px 14px 0; }
.policy-content li { margin-bottom: 6px; }
.policy-content strong { color: var(--secondary); }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-map iframe { height: 250px; }
    .contact-info-card, .contact-form-card { padding: 20px; }
    .policy-content { padding: 20px; font-size: 14px; }
}

/* ============================================================
   AUTH PAGES (Login, Register, Account)
   ============================================================ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; }
.auth-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px; width: 100%; max-width: 480px; }
.auth-box h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.auth-error { background: #FFEBEE; color: #C62828; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; text-align: center; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.auth-field input { width: 100%; padding: 11px 14px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.auth-field input:focus { border-color: var(--primary); }
.auth-field input:disabled { opacity: 0.6; background: var(--bg-gray); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-btn { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 8px; transition: background 0.2s; }
.auth-btn:hover { background: var(--primary-hover); }
.auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-link a { color: var(--primary); font-weight: 600; }

/* Account Page */
.account-page { padding: 30px 0 60px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.account-sidebar h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; text-align: start; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text); transition: all 0.15s; }
.account-nav a:hover { background: var(--bg-gray); }
.account-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.account-content { min-width: 0; }
.account-content h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.account-empty { text-align: center; padding: 40px 20px; }
.account-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.account-empty p { color: var(--text-muted); margin-bottom: 16px; }

/* Order cards */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card-header strong { font-size: 14px; }
.order-card-body { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }

/* Wishlist grid */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wishlist-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; position: relative; }
.wishlist-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 6px; background: var(--bg-gray); }
.wishlist-item strong { font-size: 13px; display: block; line-height: 1.3; }
.wishlist-remove { position: absolute; top: 8px; right: 8px; font-size: 18px; color: var(--text-light); }
body[dir="rtl"] .wishlist-remove { right: auto; left: 8px; }
.wishlist-remove:hover { color: var(--primary); }

/* Profile form */
.profile-form { max-width: 600px; }

/* Badge count in header */
.header-action-btn .badge-count { position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
    .auth-row { grid-template-columns: 1fr; }
    .auth-box { padding: 24px 18px; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: start; padding: 16px; }
    .account-sidebar h3 { font-size: 14px; }
    .account-avatar { width: 44px; height: 44px; font-size: 18px; margin: 0; }
    .account-nav { flex-direction: row; overflow-x: auto; margin-top: 10px; gap: 4px; }
    .account-nav a { white-space: nowrap; padding: 8px 12px; font-size: 12px; }
    .wishlist-grid { grid-template-columns: 1fr; }
}

/* Wishlist button states */
.card-wl-btn { background: rgba(255,255,255,0.9); width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--text-muted); }
.card-wl-btn:hover { background: #fff; color: var(--primary); transform: scale(1.1); }
.card-wl-btn.wishlisted { color: var(--primary); }
.product-actions-row button.wishlisted { color: var(--primary); }

/* Footer newsletter form */
.footer-newsletter-form { display: flex; gap: 0; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.footer-newsletter-form input { flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 13px; outline: none; font-family: inherit; min-width: 0; border-radius: 6px 0 0 6px; }
body[dir="rtl"] .footer-newsletter-form input { border-radius: 0 6px 6px 0; }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form button { padding: 10px 16px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; border-radius: 0 6px 6px 0; }
body[dir="rtl"] .footer-newsletter-form button { border-radius: 6px 0 0 6px; }

/* Mobile bottom nav badge */
.bottom-badge { position: absolute; top: -2px; right: 50%; transform: translateX(14px); background: var(--primary); color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   CUSTOM SECTIONS (Page Builder)
   ============================================================ */
.cs-section { position: relative; overflow: hidden; }
.cs-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cs-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 50px 20px; }
.cs-header { text-align: center; margin-bottom: 30px; }
.cs-title { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.cs-subtitle { font-size: 15px; opacity: 0.8; max-width: 600px; margin: 0 auto; }
.custom-page-header { background: var(--secondary); color: #fff; padding: 32px 0; text-align: center; }
.custom-page-header h1 { font-size: 28px; font-weight: 700; }

/* ── Custom Slider ────────────────────────────────────── */
.cs-slider { position: relative; min-height: 350px; border-radius: var(--radius); overflow: hidden; }
.cs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; display: flex; align-items: center; justify-content: center; }
.cs-slide.active { opacity: 1; position: relative; }
.cs-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-slide-overlay { position: absolute; inset: 0; }
.cs-slide-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px; max-width: 700px; }
.cs-slide-content h3 { font-size: 32px; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.cs-slide-content p { font-size: 16px; margin-bottom: 20px; opacity: 0.9; }
.cs-slide-btn { display: inline-block; padding: 12px 32px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 700; font-size: 15px; transition: background 0.2s; }
.cs-slide-btn:hover { background: var(--primary-hover); }
.cs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cs-nav:hover { background: #fff; }
.cs-nav.prev { left: 16px; }
.cs-nav.next { right: 16px; }
body[dir="rtl"] .cs-nav.prev { left: auto; right: 16px; }
body[dir="rtl"] .cs-nav.next { right: auto; left: 16px; }
.cs-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.cs-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; }
.cs-dot.active { background: #fff; transform: scale(1.3); }

/* ── Features Grid ────────────────────────────────────── */
.cs-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.cs-feature-item { display: flex; gap: 16px; align-items: flex-start; }
.cs-feature-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cs-feature-icon { font-size: 36px; flex-shrink: 0; width: 56px; text-align: center; }
.cs-feature-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.cs-feature-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cs-feature-body p { font-size: 13px; opacity: 0.75; line-height: 1.6; }

/* ── Story Layout ─────────────────────────────────────── */
.cs-story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cs-story-media img { width: 100%; border-radius: var(--radius); }
.cs-story-body { font-size: 15px; line-height: 1.8; opacity: 0.85; }
.cs-story-btn { display: inline-block; margin-top: 18px; padding: 12px 28px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 700; }

/* ── Card Carousel ────────────────────────────────────── */
.cs-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.cs-carousel::-webkit-scrollbar { height: 4px; }
.cs-carousel::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.cs-card { min-width: 280px; max-width: 320px; flex-shrink: 0; scroll-snap-align: start; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s; }
.cs-card:hover { transform: translateY(-4px); }
.cs-card-img img { width: 100%; height: 180px; object-fit: cover; }
.cs-card-icon { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--bg-gray); }
.cs-card-body { padding: 18px; }
.cs-card-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.cs-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.cs-card-btn { display: inline-block; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: var(--radius); font-size: 13px; font-weight: 600; }

/* ── Video ────────────────────────────────────────────── */
.cs-video { margin-top: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.cs-video-thumb { position: relative; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.cs-video-thumb img { width: 100%; display: block; }
.cs-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(0,0,0,0.7); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.2s; }
.cs-video-thumb:hover .cs-play-btn { background: var(--primary); transform: translate(-50%, -50%) scale(1.1); }

@media (max-width: 768px) {
    .cs-inner { padding: 30px 16px; }
    .cs-title { font-size: 22px; }
    .cs-slider { min-height: 250px; }
    .cs-slide-content h3 { font-size: 22px; }
    .cs-slide-content { padding: 24px 16px; }
    .cs-nav { width: 32px; height: 32px; font-size: 16px; }
    .cs-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .cs-story-layout { grid-template-columns: 1fr; gap: 20px; }
    .cs-card { min-width: 240px; }
    .custom-page-header { padding: 24px 0; }
    .custom-page-header h1 { font-size: 22px; }
}

/* ============================================================
   BRANDS SLIDER & BRAND PAGE
   ============================================================ */

/* Homepage brands slider */
.brands-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.brands-slider::-webkit-scrollbar { height: 4px; }
.brands-slider::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.brand-slide-card { min-width: 140px; max-width: 180px; flex-shrink: 0; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s; text-align: center; }
.brand-slide-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.brand-slide-img { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.brand-slide-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-slide-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--bg-gray); border-radius: 50%; }
.brand-slide-card strong { font-size: 13px; color: var(--text); white-space: nowrap; }

/* Brand page header */
.brand-header { background: linear-gradient(135deg, var(--secondary) 0%, #1a1a2e 100%); color: #fff; padding: 40px 0 0; }
.brand-header-inner { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.brand-logo-wrap { width: 90px; height: 90px; background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.brand-info p { font-size: 14px; opacity: 0.8; margin-bottom: 6px; }
.brand-count { font-size: 12px; opacity: 0.6; }

/* Brand category filter tabs */
.brand-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 0; -webkit-overflow-scrolling: touch; }
.brand-cats a { padding: 10px 18px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
.brand-cats a:hover { color: #fff; }
.brand-cats a.active { color: #fff; border-bottom-color: var(--primary); }
.brand-cats a span { font-size: 11px; opacity: 0.6; }

/* Brand toolbar */
.brand-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

@media (max-width: 768px) {
    .brand-header-inner { gap: 16px; }
    .brand-logo-wrap { width: 64px; height: 64px; border-radius: 12px; padding: 8px; }
    .brand-info h1 { font-size: 20px; }
    .brand-slide-card { min-width: 120px; padding: 14px 10px; }
    .brand-slide-img { width: 60px; height: 60px; }
    .brand-slide-card strong { font-size: 11px; }
}

/* Product brand link */
.product-brand-link { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: var(--bg-gray); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--primary); transition: all 0.2s; }
.product-brand-link:hover { background: var(--primary-light); }

/* ═══════════════════════════════════════════════════════════
   NEW SECTION TYPES (v2)
   Industrial + refined aesthetic — WG palette #D32F2F / #1A1A1A / #FFC107
   Distinctive typography: Playfair Display for numbers/headings, Cairo body
   CSS-only scroll-reveal animations for performance on mobile
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap');

/* Shared reveal animation */
@keyframes csReveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── STATS COUNTERS ─── */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 32px;
    padding: 20px 0;
}
.cs-stat {
    text-align: center;
    padding: 28px 16px;
    position: relative;
    animation: csReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    border-inline-start: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.cs-stat:hover { border-inline-start-color: #D32F2F; transform: translateY(-4px); }
.cs-stat-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.85; }
.cs-stat-number {
    display: flex; align-items: baseline; justify-content: center; gap: 4px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1;
    color: #D32F2F;
}
.cs-stat-value { font-size: clamp(42px, 7vw, 72px); letter-spacing: -0.02em; }
.cs-stat-suffix { font-size: clamp(20px, 3vw, 32px); color: #FFC107; font-weight: 700; }
.cs-stat-label { margin-top: 12px; color: #374151; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ─── TIMELINE ─── */
.cs-timeline { position: relative; max-width: 860px; margin: 20px auto; padding: 20px 0; }
.cs-timeline-rail {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px; background: linear-gradient(180deg, transparent, #D32F2F 15%, #D32F2F 85%, transparent);
    transform: translateX(-50%);
}
.cs-timeline-entry {
    position: relative;
    display: flex;
    margin-bottom: 36px;
    animation: csReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cs-timeline-entry.left  { justify-content: flex-start; padding-inline-end: 52%; }
.cs-timeline-entry.right { justify-content: flex-end;   padding-inline-start: 52%; }
.cs-timeline-dot {
    position: absolute;
    top: 18px; left: 50%;
    width: 40px; height: 40px;
    background: #1A1A1A; color: #FFC107;
    border: 3px solid #FFC107;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(-50%);
    font-size: 14px; font-weight: 700;
    box-shadow: 0 0 0 6px rgba(255,193,7,0.12);
}
.cs-timeline-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-inline-start: 4px solid #D32F2F;
    border-radius: 8px;
    padding: 18px 22px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cs-timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 900;
    color: #D32F2F; margin-bottom: 6px; letter-spacing: -0.01em;
}
.cs-timeline-img { width: 100%; border-radius: 6px; margin-bottom: 10px; }
.cs-timeline-card p { color: #374151; margin: 0; line-height: 1.6; }
@media (max-width: 720px) {
    .cs-timeline-rail { left: 24px; transform: none; }
    .cs-timeline-entry.left, .cs-timeline-entry.right { padding-inline: 60px 0; justify-content: flex-start; }
    .cs-timeline-dot { left: 24px; transform: translateX(-50%); }
}

/* ─── TESTIMONIALS ─── */
.cs-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding: 20px 0;
}
.cs-testimonial {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px 22px;
    margin: 0;
    animation: csReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-testimonial:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.cs-quote-mark {
    position: absolute; top: -12px; left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 92px; font-weight: 900; line-height: 1;
    color: #FFC107;
    opacity: 0.9;
    pointer-events: none;
}
.cs-quote {
    font-family: 'Playfair Display', serif;
    font-size: 17px; line-height: 1.55;
    color: #1A1A1A; margin: 10px 0 14px;
    font-style: italic;
    quotes: none;
}
.cs-rating { color: #FFC107; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.cs-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f3f4f6; padding-top: 14px; }
.cs-author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #FFC107; }
.cs-author-info { font-size: 13px; }
.cs-author-info strong { display: block; color: #1A1A1A; font-size: 14px; }
.cs-author-info span { color: #6b7280; font-size: 12px; }
.cs-author-info small { display: block; color: #9ca3af; font-size: 11px; margin-top: 1px; }

/* ─── GALLERY (masonry) ─── */
.cs-gallery {
    column-count: 3;
    column-gap: 14px;
    padding: 20px 0;
}
@media (max-width: 900px) { .cs-gallery { column-count: 2; } }
@media (max-width: 500px) { .cs-gallery { column-count: 1; } }
.cs-gallery-item {
    display: block;
    position: relative;
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
    animation: csReveal 0.6s ease both;
    background: #f3f4f6;
}
.cs-gallery-item img {
    width: 100%; height: auto; display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s;
}
.cs-gallery-item:hover img { transform: scale(1.04); filter: brightness(0.85); }
.cs-gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
    color: #fff; padding: 20px 14px 12px;
    font-size: 13px; font-weight: 600;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cs-gallery-item:hover .cs-gallery-caption { opacity: 1; transform: translateY(0); }

/* ─── CERTIFICATIONS (badge grid) ─── */
.cs-certs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    padding: 20px 0;
}
.cs-cert {
    text-align: center;
    padding: 28px 18px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: csReveal 0.6s ease both;
    position: relative;
}
.cs-cert:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(211, 47, 47, 0.12);
    border-color: #D32F2F;
}
.cs-cert-shield {
    width: 76px; height: 76px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #D32F2F 0%, #1A1A1A 100%);
    color: #FFC107;
    border-radius: 18px 4px 18px 4px;  /* asymmetric — "shield" look */
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.24);
}
.cs-cert-shield img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
.cs-cert-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px; font-weight: 700;
    color: #1A1A1A; margin: 10px 0 6px;
}
.cs-cert-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ─── RTL adjustments ─── */
[dir="rtl"] .cs-stat { border-inline-start: none; border-inline-end: 3px solid transparent; }
[dir="rtl"] .cs-stat:hover { border-inline-end-color: #D32F2F; }
[dir="rtl"] .cs-timeline-card { border-inline-start: none; border-inline-end: 4px solid #D32F2F; }
[dir="rtl"] .cs-quote-mark { left: auto; right: 20px; }
