:root {
    --primary: #0c1222;
    --primary-soft: #1a2332;
    --accent: #c8956c;
    --accent-hover: #b07d54;
    --accent-light: #f5ebe3;
    --blue: #2563eb;
    --secondary: #64748b;
    --bg-body: #f4f6f9;
    --card-bg: #ffffff;
    --wa-green: #25D366;
    --wa-hover: #1ebd5b;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 12px rgba(12, 18, 34, 0.06);
    --shadow-hover: 0 24px 48px -12px rgba(12, 18, 34, 0.18);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-body);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(200, 149, 108, 0.35);
}

.brand-text h1 { font-size: 17px; font-weight: 900; line-height: 1.2; }
.brand-text span { font-size: 11px; color: var(--secondary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-btn, .wa-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
}

.lang-btn {
    color: var(--secondary);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.lang-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.wa-header-btn {
    background: var(--wa-green);
    color: white;
}
.wa-header-btn:hover { background: var(--wa-hover); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 50%, #2d3748 100%);
    color: white;
    padding: 56px 24px 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(200, 149, 108, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 28px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(200, 149, 108, 0.4);
}
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

.trust-bar {
    max-width: 1240px;
    margin: -28px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-hover);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item i {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.trust-item strong { display: block; font-size: 14px; font-weight: 800; }
.trust-item span { font-size: 12px; color: var(--secondary); }

/* ── Controls ── */
.controls {
    max-width: 1240px;
    margin: 40px auto 28px;
    padding: 0 24px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head h3 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.section-head p { color: var(--secondary); font-size: 14px; }

.search-wrap {
    max-width: 520px;
    margin: 0 auto 22px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    padding: 15px 48px 15px 20px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(200, 149, 108, 0.15);
}

.search-wrap i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

html[dir="rtl"] .search-wrap i { right: 18px; }
html[dir="ltr"] .search-wrap i { left: 18px; }

.category-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-pill {
    background: white;
    color: var(--secondary);
    border: 1.5px solid #e2e8f0;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    font-family: inherit;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Products Grid ── */
.products-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-media {
    position: relative;
    width: 100%;
    padding-top: 82%;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}

.card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-badge {
    position: absolute;
    top: 12px;
    background: rgba(12, 18, 34, 0.78);
    backdrop-filter: blur(6px);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

html[dir="rtl"] .gallery-badge { right: 12px; }
html[dir="ltr"] .gallery-badge { left: 12px; }

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 14px;
}

.product-title { font-size: 16px; font-weight: 800; line-height: 1.4; }

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-row.has-discount {
    align-items: flex-start;
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.price-current-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-row.has-discount .current-price { color: #dc2626; font-size: 26px; }

.old-price {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.2;
}

.old-price s {
    text-decoration: line-through !important;
    text-decoration-thickness: 2px;
    text-decoration-color: #64748b;
    color: #94a3b8;
}

.currency-old {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

.current-price { font-size: 24px; font-weight: 900; color: var(--accent-hover); }
.discount-badge {
    font-size: 12px;
    font-weight: 800;
    background: #dc2626;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    align-self: center;
    white-space: nowrap;
}
.currency { font-size: 13px; font-weight: 700; color: var(--secondary); }

.variant-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(12, 18, 34, 0.82);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
html[dir="rtl"] .variant-badge { right: auto; left: 10px; }

.variant-pills-wrap { margin: 10px 0 6px; }
.variant-label {
    font-size: 12px; font-weight: 800; color: var(--secondary);
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 8px 12px; border: 2px solid #e2e8f0; border-radius: 10px;
    background: #fff; cursor: pointer; font-family: inherit; text-align: start;
    min-width: 0; flex: 1 1 calc(50% - 4px); max-width: 100%;
    transition: border-color 0.15s, background 0.15s;
}
.vp-color-dot {
    width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.variant-pill .vp-label { font-size: 12px; font-weight: 800; color: var(--primary); line-height: 1.3; }
.variant-pill .vp-meta { font-size: 11px; font-weight: 700; color: var(--accent-hover); }
.variant-pill.active {
    border-color: #16a34a; background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.variant-pill.out-of-stock { opacity: 0.45; cursor: not-allowed; }
.price-from { font-size: 13px; font-weight: 700; color: #94a3b8; margin-left: 4px; }
html[dir="rtl"] .price-from { margin-left: 0; margin-right: 4px; }
.stock-tag.variant-pick { background: #eff6ff; color: #2563eb; }

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.stock-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
}
.stock-tag.in-stock { background: #ecfdf5; color: #047857; }
.stock-tag.low-stock { background: #fffbeb; color: #b45309; }
.stock-tag.out-stock { background: #fef2f2; color: #b91c1c; }

.btn-order-wa {
    background: var(--wa-green);
    color: white;
    border: none;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: auto;
}
.btn-order-wa:hover { background: var(--wa-hover); transform: scale(1.02); }
.btn-disabled { background: #cbd5e1 !important; color: #64748b !important; cursor: not-allowed !important; transform: none !important; }

/* ── Skeleton ── */
.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.skeleton-img {
    padding-top: 82%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-body { padding: 20px; }
.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.price { width: 40%; height: 22px; }

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}
.empty-state i { font-size: 52px; opacity: 0.35; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 17px; font-weight: 700; }

/* ── Lightbox ── */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 18, 34, 0.96);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    touch-action: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    user-select: none;
    cursor: grab;
    will-change: transform;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    border: none;
    transition: background 0.2s;
}
.close-lightbox:hover { background: rgba(255, 255, 255, 0.22); }

html[dir="rtl"] .close-lightbox { left: 20px; }
html[dir="ltr"] .close-lightbox { right: 20px; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.12);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    border: none;
    transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }

html[dir="rtl"] .lightbox-nav.prev { right: 20px; }
html[dir="rtl"] .lightbox-nav.next { left: 20px; }
html[dir="ltr"] .lightbox-nav.prev { left: 20px; }
html[dir="ltr"] .lightbox-nav.next { right: 20px; }

.lightbox-counter {
    color: white;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 50px;
}

/* ── Footer ── */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 24px 28px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-brand h4 { font-size: 18px; font-weight: 900; color: white; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }

.footer-links h5, .footer-contact h5 {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.footer-links a, .footer-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-num {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1240px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .wa-header-btn span { display: none; }
    .hero { padding: 40px 20px 52px; }
    .trust-bar { margin-top: -20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}
