/* Fonts are loaded via <link> in index.html (faster than @import) */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: rgba(22, 22, 22, 0.7);
    --bg-input: #1a1a1a;
    --color-gold: #c5a028;
    --color-gold-light: #f3e5ab;
    --color-gold-hover: #e5b82e;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-muted: #8a8a8a; /* ≥4.5:1 contrast on dark backgrounds (a11y) */
    --color-success: #2ecc71;
    --color-warning: #e67e22;
    --color-danger: #e74c3c;
    --color-info: #3498db;
    --border-glass: 1px solid rgba(197, 160, 40, 0.15);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-hover);
}

/* Screen-reader-only text (keeps heading structure without visual impact) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    box-shadow: var(--shadow-premium);
}

/* On phones, drop the expensive blur (heavy on mid/low-end devices common in
   Lebanon) and use a solid opaque panel instead — same look, far less GPU work. */
@media (max-width: 640px) {
    .glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #161616;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.6rem 2rem;
    border-bottom: var(--border-glass);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(197, 160, 40, 0.2);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(197, 160, 40, 0.4);
}

.sell-nav-link {
    color: var(--color-gold) !important;
    border: 1px solid rgba(197, 160, 40, 0.3);
    border-radius: 20px !important;
    padding: 0.3rem 0.8rem !important;
    margin-right: 0.5rem;
}

.sell-nav-link:hover {
    background: rgba(197, 160, 40, 0.1);
}

/* Hamburger Button (hidden on desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1200;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 149;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-admin-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-admin-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 10px rgba(197, 160, 40, 0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 2rem 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(197, 160, 40, 0.08) 0%, rgba(10, 10, 10, 1) 70%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 160, 40, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge-germany {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.25);
    color: var(--color-gold);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}



.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-title span {
    color: var(--color-gold);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(197, 160, 40, 0.2);
    z-index: -1;
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #aa7c11 100%);
    color: var(--bg-primary);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 40, 0.45);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    background: rgba(197, 160, 40, 0.05);
}

/* Category Filter Tabs */
.categories-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    border-color: rgba(197, 160, 40, 0.3);
    color: var(--color-text-primary);
}

.category-tab.active {
    background: var(--color-gold);
    color: var(--bg-primary);
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.25);
}

/* Search and Filter panel */
.search-filter-section {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.search-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 0.75rem 2.8rem 0.75rem 1rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(197, 160, 40, 0.1);
}

.search-box svg {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.sort-box select {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sort-box select:focus {
    border-color: var(--color-gold);
}

/* Product Catalog */
.catalog-section {
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 40, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #141414;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-instock {
    background: linear-gradient(135deg, var(--color-success) 0%, #219a52 100%);
}

.badge-lowstock {
    background: linear-gradient(135deg, var(--color-warning) 0%, #b25d0c 100%);
}

.badge-outofstock {
    background: linear-gradient(135deg, var(--color-danger) 0%, #b82e20 100%);
}

.badge-preorder {
    background: linear-gradient(135deg, var(--color-info) 0%, #1d72b8 100%);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--color-text-primary);
}

.product-description {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.product-meta {
    margin-top: auto;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-usd {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.price-lbp {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stock-indicator {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.stock-indicator span {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Counter & Order Button Section */
.order-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.3rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.qty-btn:hover:not(:disabled) {
    background: rgba(197, 160, 40, 0.2);
    color: var(--color-gold);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-val {
    font-size: 1rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.btn-order-whatsapp {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}

.btn-order-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-order-whatsapp.preorder {
    background: linear-gradient(135deg, var(--color-info) 0%, #1d72b8 100%);
}

.btn-order-whatsapp.disabled {
    background: #333333 !important;
    color: #666666 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* "اطلب من ألمانيا" Request section */
.request-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
}

.request-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.request-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: var(--border-glass);
    box-shadow: var(--shadow-premium);
}

.request-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-content h2 {
    font-size: 2.2rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.request-content h2 span {
    color: var(--color-gold);
}

.request-desc {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--color-text-primary);
}

.btn-request {
    background: linear-gradient(135deg, var(--color-gold) 0%, #aa7c11 100%);
    color: var(--bg-primary);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.3);
}

/* Payment & Delivery Section */
.info-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.info-title span {
    color: var(--color-gold);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition-smooth);
    border: var(--border-glass);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 40, 0.3);
}

.info-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
}

.info-icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.info-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Whish Money Badge specifically */
.whish-badge {
    background: #0084FF;
    color: #fff;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

/* ============================================================
   "How It Works" Section (كيف يعمل حدك)
   ============================================================ */
.how-it-works-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.how-it-works-section .section-title span {
    color: var(--color-gold);
}

.how-it-works-section .section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connector line between steps */
.how-steps-grid::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 40, 0.3), rgba(197, 160, 40, 0.3), transparent);
    z-index: 0;
}

.how-step-card {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.how-step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 40, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), #aa7c11);
    color: var(--bg-primary);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.3);
    position: relative;
}

.step-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(197, 160, 40, 0.08);
    border: 1px solid rgba(197, 160, 40, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}

.how-step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-primary);
}

.how-step-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Seller CTA Banner (عندك منتج وتريد بيعه) */
.seller-cta-banner {
    margin-top: 3rem;
    padding: 1.8rem 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(197, 160, 40, 0.06) 0%, rgba(197, 160, 40, 0.02) 100%);
    border: 1px solid rgba(197, 160, 40, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: right;
    transition: var(--transition-smooth);
}

.seller-cta-banner:hover {
    border-color: rgba(197, 160, 40, 0.35);
    box-shadow: 0 8px 30px rgba(197, 160, 40, 0.08);
}

.seller-cta-icon {
    font-size: 2.2rem;
    min-width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-cta-content {
    flex: 1;
}

.seller-cta-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
}

.seller-cta-content p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.btn-seller-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #aa7c11 100%);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.2);
}

.btn-seller-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 40, 0.35);
}

/* ============================================================
   Stats Counter Bar (شريط الأرقام)
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(197, 160, 40, 0.08);
    border-bottom: 1px solid rgba(197, 160, 40, 0.08);
    padding: 2.5rem 2rem;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 1rem 0.5rem;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 0;
    height: 60%;
    width: 1px;
    background: rgba(197, 160, 40, 0.15);
}

[dir="rtl"] .stat-item:not(:last-child)::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .stat-item:first-child::after {
    display: none;
}

[dir="rtl"] .stat-item:not(:first-child)::after {
    display: block;
}

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: block;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gold);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: block;
    margin-top: 0.3rem;
}

/* ============================================================
   "Why Trust Us" Section (لماذا حدك؟)
   ============================================================ */
.trust-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.6rem;
}

.trust-section .section-title span {
    color: var(--color-gold);
}

.trust-section .section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trust-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.trust-card:hover {
    border-color: rgba(197, 160, 40, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trust-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(197, 160, 40, 0.08);
    border: 1px solid rgba(197, 160, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.trust-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
}

.trust-card-content p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Footer Section */
footer {
    background: #060606;
    border-top: var(--border-glass);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-right: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.contact-item svg {
    color: var(--color-gold);
    width: 20px;
    height: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.medical-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    max-width: 600px;
    text-align: left;
    line-height: 1.5;
}

[dir="rtl"] .medical-disclaimer {
    text-align: right;
}

/* Order Setup Modal (Pre-order details, payment, region entry) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.modal-content {
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    color: var(--color-gold);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-option.active {
    border-color: var(--color-gold);
    background: rgba(197, 160, 40, 0.08);
}

.payment-option svg {
    color: var(--color-text-secondary);
    width: 24px;
    height: 24px;
}

.payment-option.active svg {
    color: var(--color-gold);
}

.payment-option span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Admin Dashboard Drawer */
.admin-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    background: #0d0d0d;
    border-right: var(--border-glass);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
}

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

[dir="rtl"] .admin-drawer {
    left: auto;
    right: 0;
    border-right: none;
    border-left: var(--border-glass);
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

[dir="rtl"] .admin-drawer.active {
    transform: translateX(0);
}

.admin-drawer-header {
    padding: 1.5rem;
    border-bottom: var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #080808;
}

.admin-drawer-title {
    font-size: 1.25rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-drawer-close {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-drawer-close:hover {
    color: var(--color-danger);
}

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

.admin-intro {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(197, 160, 40, 0.05);
    border-right: 3px solid var(--color-gold);
}

[dir="rtl"] .admin-intro {
    border-right: none;
    border-left: 3px solid var(--color-gold);
}

.admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.admin-product-item {
    padding: 1rem;
    border-radius: 12px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-product-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-product-details span {
    font-size: 0.8rem;
    color: var(--color-gold);
}

.admin-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.admin-inputs-row label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.3rem;
    display: block;
}

.admin-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
}

.admin-input:focus {
    border-color: var(--color-gold);
    outline: none;
}

.admin-formula-preview {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    align-items: center;
}

.admin-status-indicator {
    font-weight: 700;
}

.admin-status-indicator.متوفر { color: var(--color-success); }
.admin-status-indicator.كمية-قليلة { color: var(--color-warning); }
.admin-status-indicator.نفد { color: var(--color-danger); }
.admin-status-indicator.بالحجز { color: var(--color-info); }

.admin-actions {
    padding: 1.5rem;
    border-top: var(--border-glass);
    background: #080808;
    display: flex;
    gap: 1rem;
}

.btn-admin-save {
    flex: 1;
    background: var(--color-gold);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-admin-save:hover {
    background: var(--color-gold-hover);
}

.btn-admin-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-admin-reset:hover {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* Collapsible Add Product Form in Drawer */
.btn-admin-add-toggle {
    width: 100%;
    background: rgba(197, 160, 40, 0.08);
    border: 1px dashed var(--color-gold);
    color: var(--color-gold);
    padding: 0.75rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-admin-add-toggle:hover {
    background: rgba(197, 160, 40, 0.15);
    box-shadow: 0 0 10px rgba(197, 160, 40, 0.1);
}

.admin-add-form-container {
    background: #141414;
    border: var(--border-glass);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.admin-add-form-container.hidden {
    display: none;
}

.admin-add-form-container h4 {
    color: var(--color-gold);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
}

/* Admin product action buttons (Hide / Delete) */
.admin-product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-admin-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-toggle-vis {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}
.btn-toggle-vis:hover {
    background: rgba(52, 152, 219, 0.2);
}

.btn-delete-prod {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.15);
}
.btn-delete-prod:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Hidden product dimmed look in admin */
.admin-product-hidden {
    opacity: 0.55;
    border-color: rgba(231, 76, 60, 0.2) !important;
    background: rgba(231, 76, 60, 0.03) !important;
}

/* Sticky WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 901;
    cursor: pointer;
    transition: var(--transition-smooth);
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Smaller WhatsApp float on small screens (cart float overrides live with the
   cart-float definition further down so they win the cascade). */
@media (max-width: 640px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.25rem;
    }
    [dir="rtl"] .whatsapp-float { right: 1.25rem; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 40, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(197, 160, 40, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 40, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-slogan {
        font-size: 1.25rem;
    }
    .request-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .request-visual {
        order: -1;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .how-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .how-steps-grid::before {
        display: none;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2)::after {
        display: none !important;
    }
    .seller-cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: #111111;
        border-left: 1px solid rgba(197, 160, 40, 0.15);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.3rem;
        z-index: 150;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.mobile-open {
        transform: translateX(0);
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(197, 160, 40, 0.1);
    }
    .hero-section {
        padding: 9.5rem 1.8rem 3rem;
        min-height: auto;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .search-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .sort-box select {
        width: 100%;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
    }
    .admin-drawer {
        max-width: 100%;
    }
    .how-it-works-section {
        padding: 3rem 1rem;
    }
    .how-it-works-section .section-title,
    .trust-section .section-title {
        font-size: 1.6rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .trust-section {
        padding: 3rem 1rem;
    }
    .trust-card {
        padding: 1.3rem;
    }
    .seller-cta-banner {
        padding: 1.3rem;
    }
    .btn-seller-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Core Modal System
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-title, .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: 700;
}

.modal-close, .btn-close-modal {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover, .btn-close-modal:hover {
    color: var(--color-error);
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

/* ============================================================
   Auth UI Components
   ============================================================ */

/* Header Auth Button */
.btn-auth-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.25);
    color: var(--color-gold-light);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}
.btn-auth-header:hover {
    background: rgba(197, 160, 40, 0.2);
    box-shadow: 0 0 12px rgba(197, 160, 40, 0.15);
}
.btn-auth-header.logged-in {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.2);
    color: var(--color-text-primary);
}

/* User Avatar (Small, in header) */
.user-avatar-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover));
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #1a1a1a;
    border: var(--border-glass);
    border-radius: 12px;
    min-width: 240px;
    box-shadow: var(--shadow-premium);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: var(--transition-smooth);
}
[dir="rtl"] .user-menu-dropdown {
    left: auto;
    right: 0;
}
.user-menu-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.user-menu-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.user-menu-header strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.user-menu-header small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}
.user-menu-links {
    padding: 0.5rem;
}
.user-menu-links a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}
.user-menu-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-primary);
}

/* Auth Modal */
.auth-modal-content {
    max-width: 440px;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 1.5rem;
}
.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.auth-tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}
.auth-tab-btn:hover {
    color: var(--color-text-primary);
}
.auth-tab-content {
    display: none;
}
.auth-tab-content.active {
    display: block;
}

/* Auth Form Buttons */
.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover));
    color: #0a0a0a;
    border: none;
    padding: 0.85rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}
.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197, 160, 40, 0.3);
}
.btn-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google Sign-In Button */
.btn-google-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #ffffff;
    color: #333;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-google-signin:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Auth Divider (Or line) */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.auth-divider span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a1a1a;
    color: var(--color-text-primary);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(46, 204, 113, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}
[dir="rtl"] .toast-notification {
    right: auto;
    left: 2rem;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-error {
    border-color: rgba(231, 76, 60, 0.3);
}


/* ============================================================
   NEW: Premium Upgrades — Cart, Testimonials, FAQ, Detail Modal,
   Scroll Reveal, Skeletons, Best-Seller Badge
   ============================================================ */

/* ---- Floating Cart Button ---- */
.cart-float {
    position: fixed;
    bottom: 6.5rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #9a7d1f 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.4);
    z-index: 900;
    transition: var(--transition-smooth);
}

[dir="rtl"] .cart-float {
    left: auto;
    right: 2rem;
}

.cart-float:hover { transform: scale(1.08); }

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.cart-float.is-empty .cart-count-badge { display: none; }

/* Match the WhatsApp float sizing on small screens; stacked neatly above it */
@media (max-width: 640px) {
    .cart-float {
        width: 50px;
        height: 50px;
        bottom: 5rem;
    }
    [dir="rtl"] .cart-float { right: 1.25rem; }
    .cart-float svg { width: 24px; height: 24px; }
}

/* ---- Cart Modal ---- */
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-input);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info small { color: var(--color-gold); font-weight: 700; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-input);
    color: var(--color-text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.cart-qty-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem;
    opacity: 0.7;
}

.cart-item-remove:hover { opacity: 1; }

.cart-summary {
    padding: 1rem 0 0.5rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.cart-total-row strong { color: var(--color-gold); font-size: 1.3rem; }

.cart-total-lbp {
    text-align: left;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.cart-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-secondary);
}

.cart-empty-state svg { opacity: 0.35; margin-bottom: 0.8rem; }

/* ---- Add-to-cart button on product cards ---- */
.order-controls { display: flex; gap: 0.5rem; }

.btn-add-cart {
    flex-shrink: 0;
    width: 44px;
    border: 1px solid rgba(197, 160, 40, 0.4);
    background: rgba(197, 160, 40, 0.08);
    color: var(--color-gold);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background: var(--color-gold);
    color: #0a0a0a;
}

/* ---- Best-seller badge ---- */
.badge-bestseller {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--color-gold), #9a7d1f);
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    font-family: var(--font-body);
}

/* ---- Testimonials ---- */
.testimonials-section {
    padding: 5rem 5% 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.testimonial-card {
    padding: 1.8rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
}

.testimonial-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(197, 160, 40, 0.15);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.testimonial-author strong { display: block; color: var(--color-text-primary); font-size: 0.9rem; }
.testimonial-author small { color: var(--color-text-muted); font-size: 0.78rem; }

/* ---- FAQ ---- */
.faq-section {
    padding: 4rem 5%;
}

.faq-list {
    max-width: 760px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--color-gold); }

.faq-arrow {
    color: var(--color-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-arrow { transform: rotate(180deg); }

.faq-item p {
    padding: 0 1.4rem 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-size: 0.92rem;
}

/* ---- Product Detail Modal ---- */
.product-detail-content {
    max-width: 720px;
    position: relative;
}

.detail-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-height: 90vh;
    overflow: hidden;
}

.product-detail-img-wrap {
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.product-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    max-height: 90vh;
}

.product-detail-info .product-category { color: var(--color-gold); font-size: 0.8rem; }

.product-detail-info h3 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-size: 1.25rem;
    line-height: 1.5;
}

.product-detail-desc {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-inline-end: 0.5rem;
}
/* Subtle, non-gold scrollbar for the description only */
.product-detail-desc::-webkit-scrollbar { width: 5px; }
.product-detail-desc::-webkit-scrollbar-track { background: transparent; }
.product-detail-desc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}
.product-detail-desc { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.product-detail-price .usd {
    color: var(--color-gold);
    font-size: 1.7rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.product-detail-price .lbp { color: var(--color-text-muted); font-size: 0.85rem; }

.product-detail-actions {
    display: flex;
    gap: 0.6rem;
}

/* --- Product Share --- */
.product-share {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.product-share-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}
.product-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.share-btn.share-whatsapp:hover  { background: #25D366; border-color: #25D366; }
.share-btn.share-facebook:hover  { background: #1877F2; border-color: #1877F2; }
.share-btn.share-telegram:hover  { background: #229ED9; border-color: #229ED9; }
.share-btn.share-twitter:hover   { background: #000;    border-color: #000; }
.share-btn.share-copy:hover      { background: var(--color-gold); border-color: var(--color-gold); color: #1a1a1a; }
.share-btn.share-native:hover    { background: var(--color-gold); border-color: var(--color-gold); color: #1a1a1a; }

@media (max-width: 640px) {
    .product-detail-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-height: 92vh;
    }
    .product-detail-img-wrap { min-height: 150px; max-height: 28vh; }
    .product-detail-info { max-height: none; min-height: 0; padding: 1.1rem; }
}

/* ---- Scroll Reveal (JS adds .reveal, then .visible) ---- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Skeleton Loading Cards ---- */
.skeleton-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.skeleton-block {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-img { height: 200px; }

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    margin: 0.9rem 1.2rem 0;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w85 { width: 85%; }
.skeleton-line.w40 { width: 40%; margin-bottom: 1.4rem; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
