/* =====================================================
   PERFUMIS — Luxury Arabic Perfume Store
   Dark Gold Theme | RTL | Professional Edition
   ===================================================== */

/* ---------- CSS VARIABLES / DESIGN TOKENS ---------- */
:root {
    /* Brand colors */
    --gold:        #c9a84c;
    --gold-light:  #e8c96e;
    --gold-dark:   #a07830;
    --gold-gradient:       linear-gradient(135deg, var(--gold), var(--gold-dark));
    --gold-gradient-hover: linear-gradient(135deg, var(--gold-light), var(--gold));

    /* Surfaces */
    --bg-dark:  #0a0a0a;
    --bg-dark-lighter: #141414;
    --bg-card:  #111111;
    --bg-card2: #161616;
    --bg-card3: #1a1a1a;
    --bg-nav:   rgba(8,8,8,0.92);

    /* Text */
    --text-main:  #e8e0d0;
    --text-muted: #8a7f6e;
    --text-white: #ffffff;

    /* Borders */
    --border:        rgba(201,168,76,0.18);
    --border-strong: rgba(201,168,76,0.35);

    /* Semantic */
    --danger:       #dc3545;
    --danger-soft:  rgba(220,53,69,0.1);
    --success:      #2ea44f;
    --success-soft: rgba(46,164,79,0.1);
    --info:         #6ea8fe;

    /* Shadows */
    --shadow-gold:        0 0 30px rgba(201,168,76,0.12);
    --shadow-gold-strong: 0 8px 32px rgba(201,168,76,0.25);
    --shadow-card:        0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg:          0 24px 60px rgba(0,0,0,0.5);

    /* Radii */
    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Motion */
    --transition:      0.35s cubic-bezier(.4,0,.2,1);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.6s cubic-bezier(.4,0,.2,1);

    /* Typography */
    --font-display: 'Cairo', 'Alexandria', 'Tajawal', sans-serif;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  48px;
    --space-2xl: 80px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY SCALE ---------- */
h1, .h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3rem);    line-height: 1.2; }
h2, .h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.25; }
h3, .h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.3; }
h4, .h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;                    line-height: 1.4; }
p       { line-height: 1.8; }

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-lg { font-size: 1.125rem !important; }

/* ---------- UTILITIES ---------- */
.text-gold  { color: var(--gold) !important; }
.bg-gold    { background-color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold-dark), #7a5d26);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- FOCUS VISIBLE ---------- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* =====================================================
   PAGE LOADER
   ===================================================== */
.page-loader {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 99999;
    transition: width 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 0 12px rgba(201,168,76,0.6);
}
.page-loader.loading { width: 70%; }
.page-loader.done    { width: 100%; opacity: 0; }

/* =====================================================
   NAVBAR
   ===================================================== */
.luxury-navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 0;
    transition: var(--transition);
}
.luxury-navbar.scrolled {
    padding: 8px 0;
    background: rgba(5,5,5,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 0 var(--border);
}

.luxury-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--gold) !important;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.luxury-brand:hover { color: var(--gold-light) !important; text-shadow: 0 0 20px rgba(201,168,76,0.4); }

.brand-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    animation: pulse-brand 3s ease-in-out infinite;
}
@keyframes pulse-brand { 0%,100%{opacity:.4} 50%{opacity:1} }

.navbar-toggler {
    border: 1px solid var(--border) !important;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201,168,76,0.2) !important; }

.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    position: relative;
    transition: var(--transition);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 14px;
    width: calc(100% - 28px);
    height: 2px;
    background: linear-gradient(to left, var(--gold-light), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.cart-icon { position: relative; }
.cart-badge {
    position: absolute;
    top: -4px; left: -4px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(201,168,76,0.5);
    border: 2px solid var(--bg-dark);
}
@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.4); }
    60%      { transform: scale(0.9); }
}
.cart-badge.bounce { animation: badge-bounce 0.5s ease; }

.luxury-dropdown {
    background: var(--bg-card2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 8px !important;
}
.luxury-dropdown .dropdown-item {
    color: var(--text-main) !important;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding: 8px 14px !important;
}
.luxury-dropdown .dropdown-item:hover {
    background: rgba(201,168,76,0.1) !important;
    color: var(--gold) !important;
}

/* Mobile navbar collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px;
        margin-top: 12px;
        box-shadow: var(--shadow-lg);
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-gold {
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 26px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 50%; height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}
.btn-gold:hover {
    background: var(--gold-gradient-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,168,76,0.38);
}
.btn-gold:hover::after {
    transition: left 0.7s ease;
    left: 120%;
}
.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201,168,76,0.25);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 11px 26px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-gold-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-gradient);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: -1;
}
.btn-gold-outline:hover {
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-gold-outline:hover::before { transform: translateY(0); }
.btn-gold-outline:active { transform: translateY(0); }

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.4);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-danger-outline:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    transform: translateY(-1px);
}

.btn-gold i, .btn-gold-outline i {
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn-gold:hover i, .btn-gold-outline:hover i { transform: translateX(-3px); }

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}
.btn-loading::before {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   HERO
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding: 60px 0 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(201,168,76,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.hero-lines {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(201,168,76,0.035) 59px,
            rgba(201,168,76,0.035) 60px
        );
    opacity: 0.7;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s ease forwards;
    letter-spacing: -1px;
}
.hero-title .highlight {
    color: var(--gold);
    position: relative;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s ease forwards;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s ease forwards;
}

.hero-image-area {
    position: relative;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.2s 0.6s ease forwards;
}

.hero-img-wrap {
    position: relative;
    display: inline-block;
}
.hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.18) 0%, transparent 70%);
    border-radius: inherit;
    filter: blur(40px);
    z-index: -1;
}
.hero-img-wrap img {
    width: 100%;
    max-width: 460px;
    border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%;
    object-fit: cover;
    aspect-ratio: 4/5;
    filter: brightness(0.92) contrast(1.05) saturate(1.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 80px rgba(201,168,76,0.15);
}
.hero-img-ring, .hero-img-ring-inner {
    position: absolute;
    border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%;
    pointer-events: none;
}
.hero-img-ring {
    inset: -16px;
    border: 1px solid rgba(201,168,76,0.25);
    animation: rotate-slow 20s linear infinite;
}
.hero-img-ring-inner {
    inset: -36px;
    border: 1px dashed rgba(201,168,76,0.14);
    animation: rotate-slow 32s linear infinite reverse;
}
@keyframes rotate-slow { to { transform: rotate(360deg); } }

.hero-badge {
    position: absolute;
    bottom: 40px;
    right: -10px;
    background: rgba(22,22,22,0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
    text-align: center;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeUp 0.8s 1.2s ease forwards;
}
.hero-badge .badge-num {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.hero-badge .badge-txt {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 2px;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s 1.6s ease forwards, float 2.4s 1.6s ease-in-out infinite;
}
.hero-scroll-hint i { font-size: 1.1rem; color: var(--gold); }
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-8px); }
}

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

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}
.section-divider span {
    width: 60px; height: 1px;
    background: linear-gradient(to left, var(--gold), transparent);
}
.section-divider span:first-child { background: linear-gradient(to right, var(--gold), transparent); }
.section-divider i { color: var(--gold); font-size: 0.7rem; }

/* =====================================================
   CATEGORY FILTER
   ===================================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 8px 22px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--gold-gradient);
    border-color: var(--gold);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), var(--shadow-gold);
}
.product-card:hover::before { opacity: 1; }

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: linear-gradient(110deg, var(--bg-card2) 30%, var(--bg-card) 50%, var(--bg-card2) 70%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(.4,0,.2,1);
    position: relative;
    z-index: 1;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--gold);
}
.product-price span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 2px;
}

.btn-add-cart {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-add-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-gradient);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.35s ease;
    z-index: 0;
}
.btn-add-cart i { position: relative; z-index: 1; }
.btn-add-cart:hover { color: #000; transform: scale(1.1); box-shadow: 0 6px 18px rgba(201,168,76,0.4); }
.btn-add-cart:hover::before { transform: scale(1); }

/* Filter animations */
.product-col { transition: opacity 0.35s ease, transform 0.35s ease; }
.product-col.card-hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* =====================================================
   PRODUCT BADGES
   ===================================================== */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background: rgba(201,168,76,0.9);
    color: #000;
    border: 1px solid var(--gold);
    box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.product-badge.sale {
    background: rgba(220,53,69,0.9);
    color: #fff;
    border: 1px solid rgba(220,53,69,0.5);
    box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}

.product-badge.bestseller {
    background: rgba(255,193,7,0.9);
    color: #000;
    border: 1px solid rgba(255,193,7,0.5);
    box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

/* =====================================================
   SPECIAL PRODUCT CARDS
   ===================================================== */
.featured-card::before {
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.sale-card::before {
    background: linear-gradient(to right, transparent, var(--danger), transparent);
}

.bestseller-card::before {
    background: linear-gradient(to right, transparent, #ffc107, transparent);
}

.featured-card:hover {
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(201,168,76,0.25);
}

.sale-card:hover {
    border-color: rgba(220,53,69,0.45);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(220,53,69,0.25);
}

.bestseller-card:hover {
    border-color: rgba(255,193,7,0.45);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(255,193,7,0.25);
}

/* =====================================================
   PRICE STYLES
   ===================================================== */
.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 8px;
}

.discount-badge {
    background: linear-gradient(135deg, #c9a84c, #a07830);
    color: #000 !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(0,0,0,0.8);
    margin-bottom: 32px;
}

/* =====================================================
   FEATURES / MARQUEE
   ===================================================== */
.features-strip {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    overflow: hidden;
    position: relative;
}
.features-strip::before, .features-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.features-strip::before { right: 0; background: linear-gradient(to left,  var(--bg-card), transparent); }
.features-strip::after  { left: 0;  background: linear-gradient(to right, var(--bg-card), transparent); }

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}
.marquee-item i { color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================
   FORMS
   ===================================================== */
.luxury-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-gold), var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.luxury-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.form-icon-top {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}

.form-control, .form-select {
    background: var(--bg-card2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    font-family: var(--font-display) !important;
    font-size: 0.95rem !important;
    transition: var(--transition) !important;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(201,168,76,0.6) !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12) !important;
    background: var(--bg-card3) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; opacity: 0.7; }
.form-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.form-select option {
    background: var(--bg-card2);
    color: var(--text-main);
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .form-control {
    padding-right: 44px !important;
}
.input-icon-wrap .input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    font-size: 1rem;
    z-index: 2;
}
.input-icon-wrap .form-control:focus ~ .input-icon {
    color: var(--gold);
}

/* Password toggle */
.toggle-password {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    transition: var(--transition);
    z-index: 3;
}
.toggle-password:hover { color: var(--gold); }

/* Validation */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: rgba(46,164,79,0.55) !important;
    background-image: none !important;
    padding-left: 16px !important;
}
.was-validated .form-control:valid:focus {
    box-shadow: 0 0 0 3px rgba(46,164,79,0.15) !important;
}
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: rgba(220,53,69,0.55) !important;
    background-image: none !important;
    padding-left: 16px !important;
}
.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220,53,69,0.15) !important;
}
.invalid-feedback {
    color: #ff6b7a;
    font-size: 0.82rem;
    margin-top: 6px;
}

/* Alerts */
.alert-luxury {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 0.92rem;
}
.alert-luxury-error   { background: var(--danger-soft);  border-color: rgba(220,53,69,0.3);  color: #ff6b7a; }
.alert-luxury-success { background: var(--success-soft); border-color: rgba(46,164,79,0.3);  color: #56d364; }

/* =====================================================
   CART
   ===================================================== */
.cart-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-table table { margin: 0; }
.cart-table thead {
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
}
.cart-table thead th {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 16px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none !important;
}
.cart-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-color: var(--border) !important;
    color: var(--text-main);
    background: transparent !important;
}
.cart-table tbody tr { transition: var(--transition); }
.cart-table tbody tr:hover { background: rgba(201,168,76,0.03); }
.cart-table tbody tr:last-child td { border: none; }
.cart-table tbody tr.removing {
    opacity: 0;
    transform: translateX(-20px);
}
.cart-table .product-thumb {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.cart-item-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: var(--transition);
}
.cart-item-link:hover { color: var(--gold); }

.qty-btn-sm {
    width: 34px; height: 34px;
    font-size: 0.9rem;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--gold);
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn-sm:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.cart-summary h5 {
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 24px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.cart-summary .summary-row:last-of-type { border: none; }
.cart-summary .summary-total {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold);
}

/* Cart mobile card layout */
@media (max-width: 768px) {
    .cart-table { border: none; background: transparent; }
    .cart-table table, .cart-table thead, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        margin-bottom: 14px;
        padding: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .cart-table tbody td {
        padding: 6px 0;
        text-align: right !important;
        border: none !important;
    }
    .cart-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-left: 10px;
        font-weight: 600;
    }
    .cart-table tbody td[data-label="المنتج"]::before { display: none; }
}

/* =====================================================
   PRODUCT DETAIL
   ===================================================== */
.product-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: zoom-in;
    box-shadow: var(--shadow-card);
}
.product-detail-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.product-detail-img:hover img { transform: scale(1.06); }

.product-detail-info { padding: 0 10px; }
.detail-category {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.detail-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}
.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
}
.detail-price-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 6px;
}
.detail-desc {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 28px;
    font-size: 0.98rem;
}
.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: 24px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--success-soft);
    border: 1px solid rgba(46,164,79,0.25);
}
.detail-stock.out-of-stock {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(220,53,69,0.25);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 28px;
}
.qty-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    width: 44px; height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(201,168,76,0.15); }
.qty-input {
    width: 60px; height: 44px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.qty-input:focus { outline: none; }

.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}
.product-meta-item {
    text-align: center;
    padding: 16px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.product-meta-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    background: var(--bg-card3);
}
.product-meta-item i {
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}
.product-meta-item small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

/* =====================================================
   CHECKOUT
   ===================================================== */
.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.checkout-step-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-step-title .step-num {
    background: var(--gold-gradient);
    color: #000;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.checkout-item-row:last-of-type { border-bottom: none; margin-bottom: 0; }
.checkout-item-img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--border);
}
.checkout-total-row .total-amount { color: var(--gold); }

/* Checkout stepper */
.checkout-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.checkout-stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.checkout-stepper-item .step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    transition: var(--transition);
}
.checkout-stepper-item.done .step-circle {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--gold);
}
.checkout-stepper-item.done { color: var(--gold); }
.checkout-stepper-item.active .step-circle {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
.checkout-stepper-item.active { color: var(--gold); }
.checkout-stepper-line {
    width: 50px;
    height: 1px;
    background: var(--border);
    margin: 0 14px;
}
.checkout-stepper-line.done { background: var(--gold); }

/* Success screen */
.order-success {
    text-align: center;
    padding: 60px 20px;
}
.order-success-icon {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: inline-block;
    animation: successPop 0.7s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes successPop {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0);       opacity: 1; }
}

/* =====================================================
   ADMIN
   ===================================================== */
.admin-layout { display: flex; position: relative; }

.admin-sidebar {
    background: linear-gradient(180deg, var(--bg-card) 0%, #0d0d0d 100%);
    border-left: 1px solid var(--border);
    min-height: calc(100vh - 76px);
    width: 260px;
    position: fixed;
    top: 76px;
    right: 0;
    padding: 24px 0;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.admin-main {
    margin-right: 260px;
    padding: 32px;
    min-height: calc(100vh - 76px);
    width: 100%;
}
.sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    border-right: 3px solid transparent;
}
.sidebar-link:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.04);
    border-right-color: rgba(201,168,76,0.5);
}
.sidebar-link.active {
    color: var(--gold);
    background: rgba(201,168,76,0.09);
    border-right: 3px solid var(--gold);
    font-weight: 700;
}
.sidebar-link i { font-size: 1.05rem; }

.admin-mobile-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.admin-mobile-toggle:hover { background: var(--gold); color: #000; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* Stat cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gold), transparent);
}
.stat-card:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.stat-icon {
    width: 54px; height: 54px;
    background: rgba(201,168,76,0.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-display);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stat card color variants */
.stat-card.stat-blue::after   { background: linear-gradient(to right, #6ea8fe, transparent); }
.stat-card.stat-blue .stat-icon   { background: rgba(110,168,254,0.1); color: #6ea8fe; }
.stat-card.stat-green::after  { background: linear-gradient(to right, #56d364, transparent); }
.stat-card.stat-green .stat-icon  { background: rgba(86,211,100,0.1);  color: #56d364; }
.stat-card.stat-purple::after { background: linear-gradient(to right, #b490ff, transparent); }
.stat-card.stat-purple .stat-icon { background: rgba(180,144,255,0.1); color: #b490ff; }

.admin-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table .table-header-bar {
    padding: 18px 20px;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
}
.admin-table .table-header-bar h5 {
    color: var(--gold);
    font-weight: 800;
    margin: 0;
}
.admin-table table { margin: 0; }
.admin-table thead { background: var(--bg-card2); }
.admin-table thead th {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 14px 20px;
    border-color: var(--border) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent !important;
}
.admin-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    border-color: var(--border) !important;
    color: var(--text-main);
    font-size: 0.9rem;
    background: transparent !important;
}
.admin-table tbody tr {
    transition: var(--transition);
}
.admin-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015) !important; }
.admin-table tbody tr:hover td { background: rgba(201,168,76,0.05) !important; }

.admin-table .product-thumb-sm {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.category-badge {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(201,168,76,0.2);
}
.stock-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid;
}
.stock-high { color: var(--success); background: var(--success-soft); border-color: rgba(46,164,79,0.25); }
.stock-mid  { color: #f0a500;        background: rgba(240,165,0,0.1);   border-color: rgba(240,165,0,0.25); }
.stock-low  { color: var(--danger);  background: var(--danger-soft);   border-color: rgba(220,53,69,0.25); }

.order-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}
.order-type-online {
    background: rgba(13,110,253,0.15);
    color: var(--info);
    border-color: rgba(13,110,253,0.25);
}
.order-type-instore {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border-color: rgba(201,168,76,0.25);
}

/* Admin table mobile card */
@media (max-width: 768px) {
    .admin-table { border: none; background: transparent; }
    .admin-table table, .admin-table thead, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
    .admin-table thead { display: none; }
    .admin-table tbody tr {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 14px;
        padding: 14px 16px;
    }
    .admin-table tbody tr:nth-child(even) td,
    .admin-table tbody tr:hover td { background: transparent !important; }
    .admin-table tbody td {
        padding: 6px 0 !important;
        text-align: right !important;
        border: none !important;
    }
    .admin-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-left: 10px;
        font-weight: 600;
        display: inline-block;
        min-width: 70px;
    }
}

/* =====================================================
   TOAST
   ===================================================== */
.luxury-toast {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    min-width: 320px;
    overflow: hidden;
    animation: toastSlideIn 0.4s cubic-bezier(.2,.9,.3,1.1);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.luxury-toast .toast-header {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--gold);
    font-weight: 700;
    font-family: var(--font-display);
}
.luxury-toast .toast-body {
    padding: 14px 16px;
    font-size: 0.93rem;
}
.luxury-toast.toast-success { border-color: rgba(46,164,79,0.4); }
.luxury-toast.toast-error   { border-color: rgba(220,53,69,0.4); }
.luxury-toast.removing { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes toastSlideOut {
    to { opacity: 0; transform: translateY(-20px); }
}

.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--gold-gradient);
    animation: toastProgress 3.5s linear forwards;
}
.luxury-toast.toast-error .toast-progress { background: linear-gradient(to right, var(--danger), #ff6b7a); }
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.luxury-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
    position: relative;
}
.luxury-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-newsletter {
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-card3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}
.footer-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(201,168,76,0.08), transparent 60%);
    pointer-events: none;
}
.footer-newsletter-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.footer-newsletter-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.footer-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-newsletter-form .form-control { flex: 1; min-width: 220px; }

.footer-top { padding: 60px 0 40px; }
.footer-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-heading {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-4px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.social-icons { display: flex; gap: 12px; }
.social-icon {
    width: 42px; height: 42px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}
.social-icon:hover {
    background: var(--gold-gradient);
    border-color: var(--gold);
    color: #000;
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(201,168,76,0.4);
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    color: #fff;
    position: relative;
    letter-spacing: -0.5px;
}
.page-hero .breadcrumb {
    position: relative;
    margin: 0;
    padding: 0;
    background: transparent;
    justify-content: center;
}
.breadcrumb-item a { color: var(--gold); text-decoration: none; transition: var(--transition); }
.breadcrumb-item a:hover { color: var(--gold-light); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
    padding: 56px 48px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.09) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }

/* =====================================================
   MISC
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}
.empty-state h4 {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.badge-role {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    border: 1px solid;
}
.badge-role-admin    { background: rgba(201,168,76,0.15); color: var(--gold);   border-color: rgba(201,168,76,0.3); }
.badge-role-customer { background: rgba(108,117,125,0.15); color: #adb5bd;       border-color: rgba(108,117,125,0.3); }

.spacer-navbar { height: 76px; }

/* =====================================================
   PRODUCTS PAGE FILTERS
   ===================================================== */
.filters-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.filters-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.filters-toggle .btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #000;
    font-weight: 500;
    transition: var(--transition);
}

.filters-toggle .btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #000;
}

.filters-toggle .btn.collapsed .bi-chevron-up::before {
    content: "\f145"; /* chevron-down */
}

.filters-content {
    padding: 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.search-form .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-input {
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: var(--bg-dark);
    color: var(--text-main);
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
    background: var(--bg-dark);
}

.search-btn {
    border: 1px solid var(--gold);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    background: var(--gold);
    color: #000;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #000;
}

.clear-search {
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0;
    padding: 12px 12px;
    background: var(--bg-card);
    color: var(--text-muted);
}

.clear-search:hover {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
}

.category-select,
.sort-select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-select:focus,
.sort-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
    background: var(--bg-dark);
}

.category-select:hover,
.sort-select:hover {
    border-color: rgba(201,168,76,0.5);
}

.active-filters {
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 20px;
}

.active-filters-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.active-filters-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: #000;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(201,168,76,0.2);
    transition: var(--transition);
}

.filter-tag:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(201,168,76,0.3);
}

.filter-remove {
    margin-left: 8px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.filter-remove:hover {
    color: #333;
    transform: scale(1.2);
}

.clear-all-filters {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-left: auto;
}

.clear-all-filters:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.results-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.results-info i {
    color: var(--gold);
    margin-left: 8px;
}

.product-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-stock-badge.low-stock {
    background: rgba(255,193,7,0.9);
    color: #000;
}
.product-stock-badge.out-of-stock {
    background: rgba(220,53,69,0.9);
    color: #fff;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

@media (max-width: 1199.98px) {
    .admin-main { padding: 24px; }
}

@media (max-width: 991.98px) {
    .hero-section { min-height: 70vh; padding: 48px 0 80px; }
    .hero-image-area { margin-top: 48px; }
    .luxury-form-card { padding: 36px 24px; }
    .admin-sidebar {
        transform: translateX(100%);
        width: 280px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-right: 0; padding: 20px; }
    .admin-mobile-toggle { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 40px 0 80px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-gold,
    .hero-actions .btn-gold-outline { width: 100%; text-align: center; }
    .cart-summary { margin-top: 24px; position: static; }
    .page-hero { padding: 40px 0; }
    .section-header { margin-bottom: 36px; }
    .checkout-section { padding: 22px; }
    .cta-banner { padding: 40px 24px; }
    .footer-newsletter { padding: 26px 22px; }
    .checkout-stepper-line { width: 30px; margin: 0 8px; }
    .checkout-stepper-item { font-size: 0.78rem; }

    .filters-section { padding: 16px; }
    .filters-section .row > div { margin-bottom: 12px; }
    .price-filter { flex-direction: column; align-items: stretch; }
    .price-filter input { width: 100%; margin-bottom: 8px; }
    .active-filters { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 576px) {
    .hero-section { padding: 32px 0 70px; }
    .hero-badge, .hero-img-ring, .hero-img-ring-inner { display: none; }
    .hero-img-wrap::before { inset: -20px; }
    .luxury-form-card { padding: 28px 18px; }
    .product-body { padding: 14px; }
    .product-name { font-size: 0.95rem; }
    .product-price { font-size: 1.05rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .footer-top { padding: 40px 0 24px; }
    .luxury-toast { min-width: 260px; }
    .detail-title { font-size: 1.4rem; }
    .detail-price { font-size: 1.5rem; }
    .stat-card { padding: 20px; }
    .stat-value { font-size: 1.5rem; }

    .filters-section { padding: 12px; margin-bottom: 20px; }
    .filters-section .col-lg-4,
    .filters-section .col-lg-3,
    .filters-section .col-lg-2 { margin-bottom: 12px; }
    .price-filter { gap: 4px; }
    .price-filter input { font-size: 14px; padding: 6px 8px; }
    .active-filters .badge { font-size: 0.75rem; padding: 3px 6px; }
    .results-info { font-size: 0.85rem; text-align: center; }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.bg-gold-gradient {
    background: var(--gold-gradient);
}

.bg-dark-lighter {
    background: var(--bg-dark-lighter);
}
