/* ==========================================
   Rozh Smoke — app.css  (Black & Gold Edition)
   ========================================== */

/* ── Custom Font ── */
@font-face {
    font-family: 'ED';
    src: url('../fonts/ed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Custom Properties ── */
:root {
    --gold-50:  #fefce8;
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #eab308;
    --gold-600: #ca8a04;
    --gold-700: #a16207;
    --gold-800: #854d0e;
    --gold-900: #713f12;

    --black:    #000000;
    --bg-base:  #080808;
    --bg-card:  #0f0f0f;
    --bg-card2: #151515;
    --border:   rgba(234,179,8,.15);
    --border-h: rgba(234,179,8,.45);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: #e5e7eb;
}

*, *::before, *::after, input, button, select, textarea {
    font-family: 'ED', sans-serif !important;
}

/* ── RTL ── */
[dir="rtl"] { text-align: right; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--gold-700); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Page fade ── */
.page-fade {
    animation: pageFadeIn 200ms ease-out both;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Gold text ── */
.text-gold {
    color: var(--gold-400);
}
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 50%, var(--gold-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glass card — gold tint ── */
.glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 1rem;
}
.glass-dark {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

/* ── Product card — Side Accent (E) ── */
.card-product {
    background: #0c0c0c;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 200ms ease, border-color 200ms ease;
    text-decoration: none;
}
.card-product:hover {
    transform: translateY(-2px);
    border-color: #2a2a2a;
}
.card-product .img-wrap {
    aspect-ratio: 1 / 1;
    background: #060606;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}
.card-product .img-wrap::before {
    content: '';
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 3px;
    background: var(--gold-500);
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 200ms ease;
}
.card-product:hover .img-wrap::before { opacity: 1; }
.card-product .img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 250ms ease;
}
.card-product:hover .img-wrap img { transform: scale(1.07); }
.card-product .card-info {
    padding: 0.6rem 0.75rem;
}
.card-product .card-brand {
    font-size: 0.58rem;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-product .card-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4d4d4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 200ms ease;
}
.card-product:hover .card-name { color: var(--gold-400); }

/* ── Skeleton ── */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #111;
    border-radius: 0.5rem;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(234,179,8,.05) 50%, transparent 100%);
    animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ──────────────────────────────────────────
   NAVBAR  (Black & Gold)
   ────────────────────────────────────────── */
.navbar {
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    color: #9ca3af;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 150ms, background 150ms;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--gold-400);
    background: rgba(234,179,8,.08);
}
.nav-link.active {
    color: var(--gold-400);
    background: rgba(234,179,8,.12);
}

/* ──────────────────────────────────────────
   HERO SLIDER — KurdSubtitle Style
   ────────────────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    background: #000;
    display: flex;
}
@media (max-width: 768px) { .hero-slider { height: 420px; } }

/* ── Main slide area ── */
.hero-slide-main {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Each slide panel (cross-fade) */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide background image */
.hero-slide img.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlays like kurdsubtitle */
.hero-slide .overlay-flat {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1;
}
.hero-slide .overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.88) 100%);
    z-index: 2;
}
.hero-slide .overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 3;
}

/* Progress bar on active slide */
.slide-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: var(--gold-500);
    z-index: 10;
    width: 0%;
    transition: width 0ms linear;
}
.slide-progress.running {
    transition: width 5000ms linear;
    width: 100%;
}

/* ── Thumbnail strip ── */
.hero-thumb-strip {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #050505;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-700) #000;
}
@media (max-width: 768px) { .hero-thumb-strip { width: 72px; } }
@media (max-width: 480px) { .hero-thumb-strip { display: none; } }

.hero-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 200ms ease, outline 200ms ease;
    flex-shrink: 0;
    outline: 2px solid transparent;
    outline-offset: -2px;
}
.hero-thumb:hover {
    opacity: 0.75;
}
.hero-thumb.active {
    opacity: 1;
    outline-color: var(--gold-500);
}

/* ── Prev/Next buttons ── */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(234,179,8,.3);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms, border-color 150ms;
}
.slider-btn:hover { background: rgba(234,179,8,.15); }
.slider-btn-prev { right: 1rem; }
.slider-btn-next { left: 1rem; }

/* ── Dot indicators (bottom center of main slide area) ── */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.35rem;
}
.slider-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: rgba(234,179,8,.3);
    cursor: pointer;
    transition: width 300ms, background 300ms;
}
.slider-dot.active {
    width: 20px;
    background: var(--gold-400);
}

/* ──────────────────────────────────────────
   SECTION HEADINGS
   ────────────────────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    padding-right: 1rem;
}
.section-title::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 1.4rem;
    background: var(--gold-500);
    border-radius: 9999px;
}

/* ──────────────────────────────────────────
   CATEGORY TABS  (on hookah page etc.)
   ────────────────────────────────────────── */
.cat-tab {
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 150ms;
}
.cat-tab:hover { color: var(--gold-400); border-color: var(--border); }
.cat-tab.active {
    color: var(--gold-400);
    background: rgba(234,179,8,.1);
    border-color: var(--border-h);
}

/* ──────────────────────────────────────────
   GOLD BUTTON
   ────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-500);
    color: #000;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 0.75rem;
    transition: background 150ms, transform 150ms, box-shadow 150ms;
    box-shadow: 0 4px 20px rgba(234,179,8,.25);
}
.btn-gold:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234,179,8,.35);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-h);
    color: var(--gold-400);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 150ms;
}
.btn-outline-gold:hover {
    background: rgba(234,179,8,.08);
    color: var(--gold-300);
}

/* ──────────────────────────────────────────
   STATS BAR
   ────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 200ms;
}
.stat-card:hover { border-color: var(--border-h); }

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.footer-link {
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 150ms;
}
.footer-link:hover { color: var(--gold-400); }
