/* ============================================
   E-Commerce Store — Luxury Minimal Redesign
   Inspired by Scandinavian perfume store aesthetics
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --primary-dark: #0a0a0a;
    --accent: #c8a97e;
    --accent-light: #dcc4a4;
    --accent-dark: #a8875a;
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-warm: #f8f6f3;
    --bg-cool: #f5f5f5;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-full: 50px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 60px;
    --bottom-nav-h: 64px;
    --font-body: 'DM Sans', 'Cairo', sans-serif;
    --font-display: 'Playfair Display', 'Cairo', serif;
    --font-ar: 'Cairo', 'DM Sans', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { 
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}
body.font-cairo { font-family: var(--font-ar); }
body.font-outfit { font-family: var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media(min-width:768px) { .container { padding: 0 24px; } }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    padding: 7px 0;
    letter-spacing: 0.03em;
    display: none;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-lang { display: flex; gap: 2px; }
.lang-btn {
    padding: 2px 8px;
    border-radius: 3px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.top-bar-links { display: flex; gap: 18px; }
.top-bar-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.top-bar-links a:hover { color: #fff; }
@media(min-width:768px) { .top-bar { display: block; } }

/* ========== TRUST BAR ========== */
.trust-bar {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.trust-item {
    text-align: center;
    flex: 1;
    min-width: 70px;
    padding: 4px 8px;
    position: relative;
}
.trust-item + .trust-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
[dir="ltr"] .trust-item + .trust-item::before { right: auto; left: 0; }
.trust-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: block;
    line-height: 1.2;
}
.trust-lbl {
    font-size: 9.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media(min-width:768px) {
    .trust-bar { padding: 10px 24px; }
    .trust-num { font-size: 14px; }
    .trust-lbl { font-size: 10px; }
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-h);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: none;
}
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-cool);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}
.search-form:focus-within {
    border-color: var(--border);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 0.85rem;
    outline: none;
    color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    padding: 9px 14px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}
.search-btn:hover { color: var(--text); }
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: none;
    max-height: 380px;
    overflow-y: auto;
    z-index: 200;
}
.search-results.show { display: block; }
@media(min-width:768px) {
    .search-box { display: block; }
    .search-toggle { display: none !important; }
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 2px; }
.header-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.15rem;
    color: var(--text);
    position: relative;
    transition: var(--transition);
}
.header-btn:hover { background: var(--bg-cool); }
.badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}
[dir="rtl"] .badge { right: auto; left: 4px; }
.mobile-menu-btn { display: flex; }
@media(min-width:1024px) { .mobile-menu-btn { display: none; } }

/* ========== MOBILE NAV ========== */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}
.mobile-nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100%;
    background: white;
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}
[dir="rtl"] .mobile-nav-content { right: auto; left: 0; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
[dir="rtl"] .mobile-nav-content { animation-name: slideInRTL; }
@keyframes slideInRTL { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}
.mobile-nav-header .logo-text { font-weight: 600; font-size: 1.1rem; }
.close-nav { font-size: 1.4rem; color: var(--text-muted); }
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.mobile-nav-links li a:hover { color: var(--accent-dark); }
.mobile-nav-links li a i { font-size: 1.15rem; color: var(--text-muted); width: 22px; text-align: center; }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 12px;
    letter-spacing: 0.02em;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover { color: var(--primary); }
.cart-nav-icon { position: relative; }
.cart-nav-icon .badge { top: -4px; right: -8px; width: 15px; height: 15px; font-size: 0.5rem; }
@media(min-width:1024px) { .bottom-nav { display: none; } }

/* ========== MAIN CONTENT ========== */
.main-content {
    min-height: calc(100vh - var(--header-h));
    padding-bottom: calc(var(--bottom-nav-h) + 20px);
}
@media(min-width:1024px) { .main-content { padding-bottom: 0; } }

/* ========== HERO SECTION ========== */
.hero {
    background: var(--bg-warm);
    color: var(--text);
    padding: 48px 0;
    position: relative;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-light);
    max-width: 460px;
    margin: 0 auto 24px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
.hero-btn:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ========== SECTIONS ========== */
.section { padding: 36px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}
.section-title::after { display: none; }
.section-link {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.section-link:hover { color: var(--text); gap: 6px; }

/* ========== CATEGORIES ========== */
.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-cool);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--text-light);
}
.category-chip:hover {
    border-color: var(--border);
    color: var(--text);
}
.category-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.category-chip img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media(min-width:640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media(min-width:1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}
.product-card-img {
    display: block;
    position: relative;
    padding-top: 120%;
    background: var(--bg-warm);
    overflow: hidden;
}
.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
[dir="rtl"] .product-card-badges { left: auto; right: 8px; }
.product-badge {
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-badge.featured { background: var(--primary); color: #fff; }
.product-badge.discount { background: #c0392b; color: #fff; }
.product-badge.new { background: var(--accent); color: #fff; }
.product-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
}
.product-card:hover .product-card-fav { opacity: 1; }
.product-card-fav:hover, .product-card-fav.active { color: #c0392b; background: #fff; opacity: 1; }
[dir="rtl"] .product-card-fav { right: auto; left: 8px; }

.product-card-body { padding: 12px 14px 14px; }
.product-card-category {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.product-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.price-old {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
.btn-add-cart:hover { background: var(--primary-light); }
.btn-add-cart i { font-size: 0.9rem; }
.product-card-stock {
    font-size: 0.68rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.stock-in { color: #27ae60; }
.stock-out { color: #c0392b; }
.product-card-colors { display: flex; gap: 4px; margin-top: 8px; }
.color-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.color-dot:hover, .color-dot.active { border-color: var(--primary); transform: scale(1.15); }

/* ========== PRODUCT PAGE ========== */
.product-page { padding: 20px 0 60px; }
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media(min-width:768px) { .product-page-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.gallery { position: relative; }
.gallery-main {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-warm);
}
.gallery-main img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 4px 0; }
.product-info .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.product-info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--text-light);
}
.product-meta span { display: flex; align-items: center; gap: 4px; }

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-warm);
    border-radius: var(--radius);
}
.product-price-box .current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}
.product-price-box .old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-price-box .save {
    background: #ffeaea;
    color: #c0392b;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Color & Quantity Selectors */
.color-selector { margin-bottom: 20px; }
.color-selector label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.88rem; }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-option {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.color-option.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.color-option::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.75rem; opacity: 0;
}
.color-option.active::after { opacity: 1; }

.quantity-selector { margin-bottom: 20px; }
.quantity-selector label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.88rem; }
.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--text);
    background: var(--bg-cool);
    transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 60px; height: 40px;
    text-align: center; border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 600; font-size: 0.95rem;
    outline: none; background: #fff;
}
.weight-input { display: flex; align-items: center; gap: 8px; }
.weight-input input {
    width: 120px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600; outline: none;
}
.weight-input input:focus { border-color: var(--primary); }
.weight-input span { font-weight: 500; color: var(--text-light); }

.product-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-primary {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 13px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.92rem;
    transition: var(--transition); border: none;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-outline {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-light); font-size: 1.2rem;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline.active { border-color: #c0392b; color: #c0392b; background: #fff5f5; }

.product-description { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.product-description h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.product-description .content { color: var(--text-light); font-size: 0.92rem; line-height: 1.8; }
.product-description .content img { border-radius: var(--radius-sm); margin: 12px 0; }

.product-barcode {
    margin-top: 20px; padding: 16px;
    background: var(--bg-cool); border-radius: var(--radius);
    text-align: center;
}
.product-barcode p { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 5px; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem; outline: none;
    transition: var(--transition);
    background: #fff; color: var(--text);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.form-error { font-size: 0.75rem; color: #c0392b; margin-top: 3px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.85rem;
    transition: var(--transition); border: none; cursor: pointer;
    letter-spacing: 0.01em;
}
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 13px 28px; font-size: 0.92rem; }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-light); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-dark); }
.btn-red { background: #c0392b; color: #fff; }
.btn-red:hover { background: #a93226; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: var(--bg-warm);
}
.auth-card {
    width: 100%; max-width: 400px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.auth-card .logo { justify-content: center; margin-bottom: 24px; }
.auth-card h2 { text-align: center; font-size: 1.2rem; font-weight: 600; margin-bottom: 24px; }
.divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted); font-size: 0.8rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google {
    width: 100%; padding: 11px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--transition); background: #fff;
}
.btn-google:hover { border-color: var(--primary); background: var(--bg-cool); }

/* ========== ALERTS ========== */
.alert {
    padding: 11px 16px; border-radius: var(--radius-sm);
    margin-bottom: 14px; font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px;
}
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.alert-error { background: #fff5f5; color: #9b2c2c; border: 1px solid #fed7d7; }
.alert-warning { background: #fffaf0; color: #975a16; border: 1px solid #fefcbf; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex; justify-content: center; gap: 4px;
    margin-top: 32px; flex-wrap: wrap;
}
.pagination a, .pagination span {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 40px 0 20px;
    margin-bottom: var(--bottom-nav-h);
}
@media(min-width:1024px) { .footer { margin-bottom: 0; } }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media(min-width:640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.footer-desc { font-size: 0.82rem; opacity: 0.55; }
.footer-col h4 { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; margin-bottom: 8px; font-size: 0.82rem; opacity: 0.55; transition: var(--transition); }
.footer-col a:hover { opacity: 1; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.75rem; opacity: 0.35; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 2.5rem; color: var(--border); margin-bottom: 14px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 0.88rem; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-up { animation: fadeUp 0.4s ease forwards; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ========== RTL ========== */
[dir="rtl"] .badge { right: auto; left: 4px; }
[dir="rtl"] .product-card-badges { left: auto; right: 8px; }
[dir="rtl"] .product-card-fav { right: auto; left: 8px; }
[dir="rtl"] .mobile-nav-content { right: auto; left: 0; }
[dir="rtl"] .cart-nav-icon .badge { right: auto; left: -8px; }

/* ============================================
   HERO SLIDER BANNER — Luxury Minimal
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    background: var(--primary-dark);
}
@media(min-width:768px) { .hero-slider { min-height: 440px; } }
@media(min-width:1024px) { .hero-slider { min-height: 500px; } }

.slider-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    z-index: 1;
}
.slider-slide.active { opacity: 1; visibility: visible; z-index: 2; position: relative; }
.slide-bg {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center;
    filter: blur(25px) brightness(0.2);
    transform: scale(1.15);
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.5) 30%, rgba(10,10,10,0.85) 100%);
}
@media(min-width:768px) {
    .slide-overlay {
        background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(26,26,26,0.6) 50%, rgba(0,0,0,0.2) 100%);
    }
    [dir="rtl"] .slide-overlay {
        background: linear-gradient(225deg, rgba(10,10,10,0.88) 0%, rgba(26,26,26,0.6) 50%, rgba(0,0,0,0.2) 100%);
    }
}
.slide-content {
    position: relative; z-index: 3;
    height: 100%; min-height: 380px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    gap: 0; padding: 20px 16px 50px; text-align: center;
}
@media(min-width:768px) {
    .slide-content {
        flex-direction: row; align-items: center; justify-content: space-between;
        text-align: start; gap: 24px; padding: 30px 16px 50px; min-height: 440px;
    }
}
@media(min-width:1024px) { .slide-content { min-height: 500px; } }

.slide-image-wrap {
    width: 140px; height: 140px;
    flex-shrink: 0; position: relative;
    margin-bottom: 16px; order: -1;
}
@media(min-width:768px) { .slide-image-wrap { width: 280px; height: 280px; margin-bottom: 0; order: 0; } }
@media(min-width:1024px) { .slide-image-wrap { width: 340px; height: 340px; } }
.slide-image {
    width: 100%; height: 100%;
    object-fit: contain; border-radius: 12px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
    transition: transform 0.5s ease;
}
.slide-image-wrap::before {
    content: ''; position: absolute;
    width: 120%; height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,169,126,0.1) 0%, transparent 70%);
    top: -10%; left: -10%;
}
.slide-image-wrap::after { display: none; }

.slide-text { flex: 1; max-width: 100%; color: white; }
@media(min-width:768px) { .slide-text { max-width: 480px; } }

.slide-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
    padding: 4px 12px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 600; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.15);
}
.slide-title {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 500;
    line-height: 1.3; margin-bottom: 8px;
    letter-spacing: -0.02em;
}
@media(min-width:768px) { .slide-title { font-size: 1.6rem; } }
@media(min-width:1024px) { .slide-title { font-size: 2rem; } }

.slide-desc {
    font-size: 0.82rem; opacity: 0.65;
    line-height: 1.6; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; justify-content: center; }
@media(min-width:768px) { .slide-price { justify-content: flex-start; } }
[dir="rtl"] .slide-price { justify-content: center; }
@media(min-width:768px) { [dir="rtl"] .slide-price { justify-content: flex-start; } }
.slide-price-current { font-size: 1.4rem; font-weight: 700; color: var(--accent-light); }
@media(min-width:768px) { .slide-price-current { font-size: 1.7rem; } }
.slide-price-old { font-size: 0.85rem; color: rgba(255,255,255,0.35); text-decoration: line-through; }

.slide-actions { display: flex; gap: 8px; flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
@media(min-width:768px) { .slide-actions { flex-direction: row; width: auto; max-width: none; margin: 0; } }

.slide-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: var(--primary);
    padding: 11px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.85rem;
    transition: var(--transition);
}
.slide-btn-primary:hover { background: var(--bg-cool); transform: translateY(-1px); }

.slide-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: rgba(255,255,255,0.8); padding: 11px 20px;
    border-radius: var(--radius-sm); font-weight: 500; font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2); transition: var(--transition);
}
.slide-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Slider animations */
.slider-slide.active .slide-badge { animation: sliderUp 0.5s ease 0.15s both; }
.slider-slide.active .slide-title { animation: sliderUp 0.5s ease 0.25s both; }
.slider-slide.active .slide-desc { animation: sliderUp 0.5s ease 0.3s both; }
.slider-slide.active .slide-price { animation: sliderUp 0.5s ease 0.35s both; }
.slider-slide.active .slide-actions { animation: sliderUp 0.5s ease 0.4s both; }
.slider-slide.active .slide-image-wrap { animation: sliderScale 0.6s ease 0.2s both; }
@keyframes sliderUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes sliderScale { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }

/* Arrows */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7); font-size: 1.1rem;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
@media(min-width:768px) { .slider-arrow { display: flex; } }
.slider-arrow:hover { background: rgba(255,255,255,0.15); color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
[dir="rtl"] .slider-prev { left: auto; right: 12px; }
[dir="rtl"] .slider-next { right: auto; left: 12px; }

/* Dots */
.slider-dots {
    position: absolute; bottom: 18px;
    left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 6px;
}
.slider-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.25); border: none;
    cursor: pointer; transition: var(--transition); padding: 0;
}
.slider-dot.active { width: 20px; border-radius: 3px; background: #fff; }
.slider-dot:hover { background: rgba(255,255,255,0.5); }

/* Progress */
.slider-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.06); z-index: 10; }
.slider-progress-bar { height: 100%; width: 0%; background: var(--accent); }

/* ============================================
   TRUST BAR (overrides for new theme)
   ============================================ */

/* ============================================
   STICKY WHATSAPP BAR
   ============================================ */
.sticky-wa-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 8px 12px;
    display: flex; gap: 8px;
    z-index: 9999;
    box-shadow: 0 -1px 12px rgba(0,0,0,0.15);
}
.sticky-wa-btn {
    flex: 1; padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: #25d366; color: #fff !important;
    transition: var(--transition);
}
.sticky-wa-btn:hover { background: #20c05c; }
.sticky-account-btn {
    flex: 0.6; padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: rgba(255,255,255,0.08); color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}
.sticky-account-btn:hover { background: rgba(255,255,255,0.15); }

.bottom-nav { bottom: 52px !important; }
.main-content { padding-bottom: calc(var(--bottom-nav-h) + 72px) !important; }
.footer { margin-bottom: calc(var(--bottom-nav-h) + 52px) !important; }
@media(min-width:1024px) {
    .main-content { padding-bottom: 66px !important; }
    .footer { margin-bottom: 52px !important; }
}