/* =========================================================================
   1. MODULE: BASE & HEADER STYLES (css/base.css)
   Luxury Studio Off-White Palette, Welcome Curtain & Navigation
   ========================================================================= */

:root {
    --bg-studio: #f7f6f2;
    --bg-card: #ffffff;
    --text-primary: #141413;
    --text-secondary: #6e6a63;
    --accent-gold: #b88644;
    --accent-gold-light: #fdf8ef;
    --accent-emerald: #0d9488;
    --border-light: rgba(20, 20, 19, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.09);
    --font-ar: 'Tajawal', sans-serif;
    --font-brand: 'Cinzel', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-ar);
    background-color: var(--bg-studio);
    color: var(--text-primary);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* =========================================================================
   SMOOTH 2-SECOND LUXURY WELCOME CURTAIN
   ========================================================================= */
.welcome-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at center, #1c1b18 0%, #0d0c0b 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    cursor: pointer;
}

.welcome-curtain.curtain-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.curtain-monogram {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1.5px solid #d4af37;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 800;
    color: #f3d47c;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.curtain-brand-title {
    font-family: var(--font-brand);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: 6px;
    font-weight: 800;
    color: #ffffff;
}

.curtain-brand-sub {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #e2c16b;
    margin-top: 6px;
}

.curtain-enter-hint {
    margin-top: 24px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
}

/* =========================================================================
   TOP STORE HEADER & SEARCH
   ========================================================================= */
.store-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: rgba(247, 246, 242, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
}

.header-main-row {
    max-width: 1340px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--text-primary);
    color: #f3d47c;
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name-en {
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand-name-sub {
    font-size: 0.64rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Search Box */
.header-search-wrap {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: #ffffff;
    font-family: var(--font-ar);
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 68, 0.12);
}

/* Header Left Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover,
.icon-btn.music-active {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
}

.admin-pill-btn {
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid #f59e0b;
    background: #fef3c7;
    color: #92400e;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 99px;
    border: none;
    background: var(--text-primary);
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.header-cart-btn:hover {
    background: var(--accent-gold);
}

.cart-count-pill {
    background: #10b981;
    color: #ffffff;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 900;
}

/* =========================================================================
   TOUCH-SCROLLABLE CATEGORY NAVIGATION BAR
   ========================================================================= */
.category-nav-wrapper {
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.65);
}

.category-nav-bar {
    max-width: 1340px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav-bar::-webkit-scrollbar {
    display: none;
}

.cat-tab-btn {
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: var(--text-secondary);
    font-family: var(--font-ar);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.cat-tab-btn.active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}
