:root{
  --lux-gold: #d4af37;
  --lux-gold-bright: #f0d878;
  --lux-text: #2f291a;
  --lux-text-dim: #6f6653;
  --lux-surface: #ffffff;
  --lux-border: rgba(182,138,26,0.28);
  --lux-border-soft: rgba(182,138,26,0.18);
  --lux-shadow-soft: 0 12px 30px rgba(130,102,33,0.08);
  --lux-shadow-lift: 0 18px 34px rgba(146,113,29,0.16);
  --lux-shadow-deep: 0 30px 70px rgba(80,62,18,0.22);
  --lux-ease: cubic-bezier(0.4,0,0.2,1);
  --lux-ease-cinematic: cubic-bezier(0.77,0,0.18,1);
  --lux-stagger: 0.08s;
}

/* ===============================
   💰 GLOBAL PRICE DISPLAY
================================ */

.price-current{
  color:var(--lux-gold);
  font-weight:700;
}

.price-original{
  text-decoration:line-through;
  color:#666;
  font-size:11px;
  font-weight:400;
  margin-left:4px;
}

.price-badge{
  background:rgba(76,175,80,0.18);
  color:#4caf50;
  font-size:10px;
  padding:2px 6px;
  border-radius:4px;
  font-weight:600;
  margin-left:4px;
}

/* Form inline error/success messages */
.auth-error-msg{
  background:rgba(229,115,115,0.10);
  border:1px solid rgba(229,115,115,0.30);
  color:#e57373;
  padding:10px 14px;
  border-radius:8px;
  font-size:13px;
  margin:4px 0 8px;
  display:none;
}

.auth-success-msg{
  background:rgba(76,175,80,0.10);
  border:1px solid rgba(76,175,80,0.30);
  color:#4caf50;
  padding:10px 14px;
  border-radius:8px;
  font-size:13px;
  margin:4px 0 8px;
  display:none;
}

.horizontal-scroll{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
}

.horizontal-scroll::-webkit-scrollbar{
  display:none;
}

.horizontal-scroll .card{
  flex:0 0 240px;   /* 🔥 controlled width */
}

@media(max-width:768px){

  .horizontal-scroll .card{
    flex:0 0 48%;   /* 🔥 perfect 2 items */
  }

}

.show-more-card{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed rgba(212,175,55,0.4);
  cursor:pointer;
  font-size:14px;
  transition:0.2s;
}

.show-more-card:hover{
  background:rgba(212,175,55,0.1);
}

/* ===============================
   📦 ORDER CARDS PREMIUM
=============================== */

.orders-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.order-card{
  border-radius:12px;
  padding:16px;
}

.order-head{
  display:flex;
  justify-content:space-between;
  margin-bottom:12px;
  color:var(--lux-gold);
  font-weight:600;
}

.order-status{
  font-size:12px;
}

.order-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.order-item{
  display:flex;
  gap:10px;
  align-items:center;
}

.order-item img{
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:6px;
}

.order-total{
  margin-top:12px;
  font-weight:600;
  color:var(--lux-gold);
}

/* ===============================
   🚚 ORDER STATUS COLORS
=============================== */

.status-placed{ color:#e6c65a; }
.status-confirmed{ color:#4caf50; }
.status-packed{ color:#4caf50; }
.status-shipped{ color:#2196f3; }
.status-out{ color:#ff9800; }
.status-delivered{ color:#00c853; }
.status-cancelled{ color:#f44336; }

/* ===============================
   🚚 ORDER TIMELINE PREMIUM
=============================== */

.order-timeline{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.t-step{
  font-size:11px;
  padding:4px 8px;
  border:1px solid #444;
  border-radius:20px;
  color:#666;
}

.t-step.active{
  background:rgba(212,175,55,0.15);
  border-color:var(--lux-gold);
  color:var(--lux-gold);
}

.qty-box{
  display:flex;
  align-items:center;
  gap:14px;
  margin:12px 0;
}

.qty-box button{
  width:42px;
  height:36px;
  border:1px solid var(--lux-gold);
  background:transparent;
  color:var(--lux-gold);
  cursor:pointer;
  font-size:18px;
  transition:0.2s;
}

.qty-box button:hover{
  background:var(--lux-gold);
  color:#000;
}

html{
  scroll-behavior: smooth;
}

/* ===============================
   🛒 PRIMARY BUTTON (GOLD)
   =============================== */

.add-btn {
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.add-btn:hover {
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.header{
  height:125px;
  display: flex;
  align-items:center;
  padding:0 40px;
  position:sticky;
  top:0;
  z-index: 9999;
  overflow: visible;

  transform: translateZ(0);
  backface-visibility: hidden;

  /* PREMIUM GLASS LIGHT */
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border-bottom:1px solid var(--lux-border-soft);
  box-shadow: 0 8px 28px rgba(146,113,29,0.10);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent 0%,
    rgba(182,138,26,0.35) 30%,
    rgba(182,138,26,0.5) 50%,
    rgba(182,138,26,0.35) 70%,
    transparent 100%
  );
  pointer-events:none;
}

/* scrolled state - handled by JS */
.header.scrolled{
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 32px rgba(146,113,29,0.14);
}

.brand-main{
  font-family:'Cinzel', serif;
  font-size:20px;
  letter-spacing:2px;
  color:var(--lux-gold);
  display:block;
}

.brand-sub{
  font-family:'Montserrat', sans-serif;
  font-size:10px;
  letter-spacing:6px;
  color:#aaa;
  display:block;
  margin-top:2px;
}

.brand-logo{
  height:130px;
  width:auto;
  display:block;
  transition:transform .3s ease;
}

.brand-logo:hover{
  transform: scale(1.03);
}

@media (max-width:768px){

  .brand-logo{
    height:55px;
  }

  .nav-center{
    flex:0 0 auto;
  }

}

.cart-float-btn{
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%) translateY(100px);
  
  background:linear-gradient(135deg,#d4af37,#e6c65a);
  color:#000;
  padding:14px 28px;
  border-radius:40px;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.5px;

  box-shadow:
    0 10px 30px rgba(212,175,55,0.4),
    0 0 0 1px rgba(212,175,55,0.2);

  cursor:pointer;
  z-index:9999;
  opacity:0;

  transition:all 0.4s ease;
}

/* 🔥 visible state */
.cart-float-btn.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* hover premium */
.cart-float-btn:hover{
  transform:translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(212,175,55,0.5);
}

.footer-logo{
  width:auto;
  height:auto;
}

header,
.navbar{
  min-height: 130px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(212,175,55,0.25);
}

.brand-name{
  font-family:'Cormorant Garamond', serif;
  font-size:34px;
  font-weight:700;
  line-height:1;
  letter-spacing:1px;
}

.brand-subtitle{
  font-size:11px;
  letter-spacing:6px;
  margin-top:2px;
}

.brand-text{
  margin-top:2px;
  text-align:center;
}

.nav-center{
  text-align:center;
  font-family:'Montserrat',sans-serif;
  color:var(--lux-gold);
  flex:0 0 250px;

  display:flex;
  flex-direction:column;

  align-items:center;
  justify-content:center;

  gap:0;
  line-height:1;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  min-width:0;
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  min-width:0;
  gap: 16px;
}

.nav-left a{
  white-space:nowrap;
}

.nav-icon-btn{
  width:38px;
  height:38px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(212,175,55,.25);
  border-radius:10px;

  cursor:pointer;

  transition:.25s ease;
}

.nav-icon-btn:hover{
  background:rgba(212,175,55,.08);
  border-color:#d4af37;
  transform:translateY(-2px);
}

@media (max-width:768px){
  .nav-icon-btn{
    display:none;
  }
}

.user-area {
  color: var(--lux-gold);
  font-weight: 600;
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(212,175,55,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-area:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 12px rgba(212,175,55,0.15);
}

.user-area:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
}

.user-area svg{
  transition: transform 0.2s ease;
}

.user-area:hover svg{
  transform:scale(1.12);
}

.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.04);
  transition: background 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hamburger:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.45);
}

.hamburger:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
}

.hamburger .bar {
  width: 18px;
  height: 2px;
  background: var(--lux-gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  display: block;
}

.hamburger .bar:nth-child(2) {
  width: 13px;
  align-self: flex-end;
  margin-right: 11px;
}

/* open state - X shape */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 18px;
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 18px;
}

.cart-icon{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  position:relative;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(212,175,55,0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-icon:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 12px rgba(212,175,55,0.15);
}

.cart-icon:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
}

.cart-icon svg{
  transition: transform 0.2s ease;
}

.cart-icon:hover svg{
  transform:scale(1.1);
}

/* count badge */
#cartCount{
  position:absolute;
  top:-8px;
  right:-8px;

  background: linear-gradient(135deg, #d4af37, #f0d878);
  color:#000;
  font-size:9px;
  font-weight:700;

  padding:2px 5px;
  border-radius:10px;
  min-width:16px;
  text-align:center;
  line-height:1.4;
  box-shadow: 0 2px 6px rgba(212,175,55,0.4);
}

/* ===== SIDE MENU ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  padding: 0;
  transition: left 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.38s ease;
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  left: 0;
  box-shadow:
    6px 0 40px rgba(146,113,29,0.18),
    0 0 0 1px rgba(182,138,26,0.06);
}

/* Side menu header bar */
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--lux-border-soft);
  flex-shrink: 0;
}

.side-menu-logo {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.side-menu-body {
  padding: 12px 0 24px;
  flex: 1;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.side-menu a:hover {
  color: var(--lux-gold);
  background: rgba(212,175,55,0.06);
  border-left-color: var(--lux-gold);
  padding-left: 24px;
}

.submenu {
  display: none;
  padding: 4px 0 4px 20px;
  background: rgba(182,138,26,0.04);
  border-left: 2px solid var(--lux-border-soft);
  margin: 0 0 4px 20px;
  border-radius: 0 0 6px 6px;
}

.submenu div {
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--lux-text-dim);
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
  border-left: 2px solid transparent;
}

.submenu div:hover {
  color: var(--lux-gold);
  padding-left: 18px;
  border-left-color: rgba(182,138,26,0.5);
}

.menu-item {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
  color: var(--lux-gold);
  background: rgba(212,175,55,0.06);
  border-left-color: var(--lux-gold);
}

.menu-item .menu-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.menu-item.open .menu-arrow {
  transform: rotate(180deg);
}

.menu-title {
  padding: 18px 20px 6px;
  color: var(--lux-text-dim);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.menu-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--lux-gold);
  font-size: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-close:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4);
}

.menu-close:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(50,40,20,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
  z-index: 9998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

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

/* ===== BUTTON ===== */
button:hover {
  opacity: 0.9;
}

/* ===============================
   🚪 PAGE TRANSITION — single, centralized system
   Minimal and logo-only: a solid, static dark veil; the ONLY thing
   that animates is the logo's own opacity (slow breathing fade).
   Driven entirely by js/common.js (navigateWithTransition /
   initPageTransitionArrival) - every navigation (link click, browser
   Back/Forward, bfcache restore) plays the exact same sequence.

   The full fade-in + breathe show plays only ONCE per navigation:
   - .leaving       = departure (normal click): logo fades in, then
     breathes. It never fades itself back out - the page unloading is
     what removes it, so whatever instant the browser actually
     navigates at, the logo is reliably fully visible.
   - .arriving (no .fresh) = the page a normal click landed on: an
     instant continuation of the departure's held logo (no re-fade-in,
     no second breathing show), just a brief bridge before releasing.
   - .arriving.fresh = Back/Forward, which has no cooperating
     departure - plays the SAME fade-in-then-breathe as .leaving
     instead, since this is the only place the show happens for it.
   - .releasing = logo fades out first, then (shortly after) the
     overlay itself fades away to reveal the page underneath.
   - .no-anim is a short-lived guard so the continuation's instant
     snap never itself animates.
================================ */
.page-transition{
  position:fixed;
  inset:0;
  background:#0b0b0b;
  display:flex;
  justify-content:center;
  align-items:center;
  /* Must outrank every other stacking context on the site (header,
     side-menu, search overlay, dropdowns are all 9999-10001) - a full
     navigational veil has to cover them unconditionally, not win by
     accidental DOM-order tie-breaking against an equal z-index. */
  z-index:100000;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.25s ease;
}

.page-transition.active{
  opacity:1;
  pointer-events:auto;
}

.page-transition.no-anim{
  transition:none !important;
}

.page-transition.no-anim .transition-logo{
  animation:none !important;
}

/* Flex-centered (never margin/absolute hacks) so the logo is exactly
   centered on desktop, tablet and mobile alike. Pure opacity only -
   no position/scale/rotation, so it never jumps, stretches or bounces. */
.transition-logo{
  width:clamp(180px, 14vw, 220px);
  max-width:80vw;
  opacity:0;
  filter:drop-shadow(0 0 10px rgba(212,175,55,0.22));
  transition:opacity 0.28s ease;
}

@media (max-width:1024px){
  .transition-logo{
    width:clamp(150px, 18vw, 180px);
  }
}

@media (max-width:600px){
  .transition-logo{
    width:clamp(120px, 28vw, 150px);
  }
}

.page-transition.leaving .transition-logo{
  animation:
    ptLogoFadeIn 0.35s ease forwards,
    ptLogoBreathe 0.9s ease-in-out 0.35s infinite;
}

/* Continuation arrival (normal click) - already fully visible, no
   re-fade-in, no second breathing show. */
.page-transition.arriving:not(.fresh) .transition-logo{
  opacity:1;
  animation:ptLogoBreathe 0.9s ease-in-out infinite;
}

/* Fresh arrival (Back/Forward, no cooperating departure) - plays the
   one full show here instead, since it has nowhere else to happen. */
.page-transition.arriving.fresh .transition-logo{
  animation:
    ptLogoFadeIn 0.35s ease forwards,
    ptLogoBreathe 0.9s ease-in-out 0.35s infinite;
}

/* Release: animation stops, opacity eases to 0 via the transition
   declared on .transition-logo above (not another animation). */
.page-transition.releasing .transition-logo{
  animation:none;
  opacity:0;
}

@keyframes ptLogoFadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}

/* The only motion in the whole transition: a slow, clearly-visible
   opacity breathe/blink (never position/scale/rotation) - deep enough
   and slow enough to actually read as intentional animation instead
   of a static screen. */
@keyframes ptLogoBreathe{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.4; }
}

@media (prefers-reduced-motion: reduce){
  .page-transition.leaving .transition-logo,
  .page-transition.arriving .transition-logo,
  .page-transition.arriving.fresh .transition-logo{
    animation:none;
    opacity:1;
  }
}

.out-stock-btn{
  background:#333;
  color:#aaa;
  border:none;
  padding:14px 26px;
  font-weight:600;
  cursor:not-allowed;
  width:100%;
  letter-spacing:1px;
}

/* ⭐ PREMIUM WISHLIST BUTTON */

/* ===============================
   🎯 PRODUCT ACTION BUTTONS SYNC
================================ */

.add-btn,
.wishlist-btn{
  width:100%;
  height:48px;            /* ⭐ fixed equal height */
  padding:0 24px;         /* ⭐ remove vertical padding difference */
  font-weight:600;
  font-family:'Montserrat',sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-sizing:border-box;
}

.back-home-btn{
  background: transparent;
  border: 1px solid var(--lux-gold);
  color: var(--lux-gold);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.25s ease;
}

.back-home-btn:hover{
  background:var(--lux-gold);
  color:#000;
}


/* secondary button */
/* ===============================
   ❤️ WISHLIST BUTTON
   =============================== */

.wishlist-btn {
  width: 100%;
  padding: 14px 24px;
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover */
.wishlist-btn:hover {
  background: rgba(212,175,55,0.08);
}

/* ⭐ ACTIVE STATE (VERY IMPORTANT) */
.wishlist-btn.active {
  background: #d4af37;
  color: #000;
  border-color: #d4af37;
}

.w-remove{
  position:absolute;
  top:6px;
  right:6px;
  background:#000;
  color:var(--lux-gold);
  border:1px solid var(--lux-gold);
  width:20px;
  height:20px;
  font-size:14px;
  cursor:pointer;
}

.wish-name{
  font-size:13px;
  margin-top:6px;
}

.wish-price{
  color:var(--lux-gold);
  font-size:13px;
}

.wishlist-card{
  position:relative;
  cursor:pointer;
  transition:0.25s ease;
}

.wishlist-card:hover{
  transform:translateY(-4px);
}

html, body{
  margin:0;
  font-family:'Montserrat',sans-serif;
  padding:0;
  width:100%;
  overflow-x:hidden;
  background:radial-gradient(circle at top, #fffdf5 0%, #f8f6f1 46%, #f3efe4 100%);
  color:var(--lux-text);
  line-height:1.6;
}

.nav-center,
.hero h1{
  font-family:'Cinzel',serif;
}

.hero{
  height:70vh;
  min-height:420px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1594035910387-fea47794261f?q=80&w=1600&auto=format&fit=crop")
    center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
}

.hero h1{
  font-size:48px;
  color:var(--lux-gold);
  letter-spacing:2px;
  margin-bottom:10px;
}

.hero p{
  margin-bottom:22px;
}

.hero-btn{
background:rgba(0,0,0,0.25);
color:#d4af37;
border:1px solid rgba(212,175,55,0.7);
padding:14px 32px;
font-weight:600;
cursor:pointer;
letter-spacing:1px;
transition:all 0.3s ease;
backdrop-filter:blur(4px);
position:relative;
overflow:hidden;
}

.hero-btn:active{
  transform:scale(0.98);
  background:#d4af37;
  color:#000; 
}

/* 🔥 FIX STUCK COLOR */
.hero-btn:focus{
  outline:none;
  background:rgba(0,0,0,0.25);
  color:#d4af37;
}

.hero-btn:focus-visible{
  outline:none;
}

button:focus,
button:active{
  outline:none;
  box-shadow:none;
}

button{
  -webkit-tap-highlight-color: transparent;
}

.hero-btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(212,175,55,0.4),
    transparent
  );
  transition:0.5s;
}

.hero-btn:hover::before{
  left:100%;
}

.hero-btn:hover{
  background:#d4af37;
  color:#000;
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(212,175,55,0.35);
}

.arabic-decor{
  position:absolute;
  font-family:'Amiri',serif;
  font-size:120px;
  color:rgba(212,175,55,0.06);
  pointer-events:none;
  user-select:none;
  z-index:0;
}

.a1{ top:10%; left:5%; }
.a2{ bottom:10%; right:5%; }

@media (max-width:768px){
  .hero h1{
    font-size:32px;
  }

  .hero{
    opacity: 100%;
    height:55vh;
  }

  .header{
    height: 85px;
    padding:0 14px;
    background: rgba(8,8,8,0.82);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom:1px solid rgba(212,175,55,.25);
  }

    .brand-subtitle{
    font-size:8px;
    letter-spacing:3px;
  }

    .brand-name{
    font-size:18px;
  }

  .brand-logo{
    height: 120px;
  }
}

.profile-icon{
  width:22px;
  height:22px;
  opacity:0.9;
  transition:0.2s;
}

.profile-icon:hover{
  opacity:1;
  transform:scale(1.1);
}

.search-icon{
  width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border: 1px solid rgba(212,175,55,0.18);
  cursor:pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: rgba(212,175,55,0.04);
}

.search-icon img{
  width:18px;
  height:18px;
  opacity:0.8;
}

.search-icon:hover{
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4);
}

.search-icon:hover img{
  opacity:1;
  transform:scale(1.1);
}

.search-icon:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
}

@media (max-width:768px){
  .nav-right{
    gap:8px;
  }

  .search-icon{
    width:34px;
    height:34px;
  }
}

.search-overlay{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  display:none; /* 🔥 default hidden */

  align-items:center;
  justify-content:center;

  backdrop-filter: blur(10px);

  z-index:9999;
}

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

.search-box{
  width:90%;
  max-width:600px;
}

.search-box input{
  width:100%;
  padding:14px;
  font-size:16px;
  outline:none;
}

#searchResults{
  margin-top:10px;
  max-height:300px;
  overflow-y:auto;
}

.search-item{
  display:flex;
  gap:10px;
  padding:10px;
  cursor:pointer;
}

.search-item img{
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:6px;
}

.products-section{
  background:
    radial-gradient(
      circle at top,
      rgba(212,175,55,0.1),
      transparent 40%
    ),
    linear-gradient(#161616,#101010);
}

.lux-divider{
  height:1px;
  width:100%;
  background:linear-gradient(
    to right,
    transparent,
    rgba(212,175,55,0.35),
    transparent
  );
}

.nav-menu{
  display:flex;
  gap:14px;
  align-items:center;
  font-size:13px;
  font-weight:500;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:var(--lux-gold);
  z-index: 10001;
}
.nav-menu > div,
.nav-item{
  white-space:nowrap;
}

.nav-menu > div{
  cursor:pointer;
  position:relative;
  display:flex;
  align-items:center;
  padding: 8px 14px;
  min-height:36px;
  line-height:1.2;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu > div::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px);
  height: 1px;
  background: var(--lux-gold);
  transition: transform 0.25s ease;
  transform-origin: center;
}

.nav-menu > div:hover {
  background: rgba(212,175,55,0.07);
  color: var(--lux-gold);
}

.nav-menu > div:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu > div.nav-active {
  color: var(--lux-gold);
}

.nav-menu > div.nav-active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--lux-gold);
  opacity: 0.7;
}

.nav-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
  padding: 8px 14px !important;
  line-height:1.2;
}

.nav-item .nav-caret{
  font-size:11px;
  line-height:1;
  transform:translateY(-1px);
}

/* bridge gap between nav-item and dropdown */
.nav-item::before{
  content:"";
  position:absolute;
  bottom:-8px;
  left:0;
  width:100%;
  height:12px;
  background:transparent;
}

.nav-item::after{
  content:"";
  position:absolute;
  bottom:2px;
  left:50%;
  transform:translateX(-50%) scaleX(0);
  width:calc(100% - 28px);
  height:1px;
  background:var(--lux-gold);
  transition:transform 0.25s ease;
  transform-origin:center;
}

.nav-item:hover::after{
  transform:translateX(-50%) scaleX(1);
}

/* DROPDOWN */
.nav-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0;

  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:1px solid var(--lux-border-soft);
  border-radius: 10px;

  min-width:190px;
  padding:8px 0;

  display:none;
  z-index:10000;
  box-shadow:
    0 16px 40px rgba(146,113,29,0.16),
    0 0 0 1px rgba(182,138,26,0.06);

  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* hover stable - bridge gap */
.nav-item:hover .nav-dropdown{
  display:block;
}

.nav-dropdown div{
  padding:10px 18px;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  font-size:13px;
  color: var(--lux-text);
  letter-spacing:0.5px;
  position:relative;
}

.nav-dropdown div::before {
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%) scaleY(0);
  width:2px;
  height:60%;
  background:var(--lux-gold);
  border-radius:2px;
  transition:transform 0.18s ease;
}

.nav-dropdown div:hover{
  background:rgba(212,175,55,0.07);
  color:var(--lux-gold);
  padding-left:22px;
}

.nav-dropdown div:hover::before {
  transform:translateY(-50%) scaleY(1);
}

@media(min-width:1200px){

  .nav-menu{
    font-size:15px;
    letter-spacing:1px;
  }

  .nav-menu > div,
  .nav-item{
    padding:10px 18px !important;
  }

}

@media (max-width:768px){

  .nav-menu{
    display:none;
  }

  .hamburger{
    display:flex;
  }

}

@media (min-width:769px){

  .hamburger{
    display:none;
  }

}

/* ===== NAV ITEM FOCUS VISIBLE for keyboard users ===== */
.nav-menu > div:focus-visible,
.nav-menu > .nav-item:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===============================
   👤 PROFILE BUTTON VISIBILITY FIX
================================ */

.edit-profile-btn{
  background: transparent;
  border:1px solid var(--lux-gold);
  color:var(--lux-gold);
  padding:10px 18px;
  border-radius:6px;
  cursor:pointer;
  transition:0.25s ease;
}

.edit-profile-btn:hover{
  background:var(--lux-gold);
  color:#000;
}

/* logout premium */
.logout-btn{
  background:#8b0000;
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:6px;
  cursor:pointer;
}

/* =========================
   🌙 GLOBAL FOOTER
========================= */

.site-footer{
  background:#0b0b0b;
  border-top:1px solid rgba(212,175,55,0.2);
  padding:40px 20px;
  margin-top:60px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:30px;
}

.footer-container > div{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-title{
  color:var(--lux-gold);
  font-weight:600;
  margin-bottom:14px;
}

.footer-links div{
  color:#aaa;
  margin-bottom:8px;
  cursor:pointer;
  font-size:14px;
}

.footer-links div:hover{
  color:var(--lux-gold);
}

.footer-bottom{
  text-align:center;
  margin-top:30px;
  font-size:13px;
  color:#666;
}

@media (max-width:768px){
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }
}

.category-bar{
  width:100%;
  max-width:1200px;
  margin:30px auto;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center; /* ⭐ center properly */
  padding:0 20px;
  box-sizing:border-box;
  scroll-snap-type:x mandatory;  
}

.category-bar button{
  background:transparent;
  border:1px solid var(--lux-gold);
  color:var(--lux-gold);
  padding:8px 18px;
  cursor:pointer;
  border-radius:20px;
  transition:0.25s ease;
  white-space:nowrap;
  scroll-snap-align:start;
}

img{
  display:block;
  max-width:100%;
}

.category-bar button:hover{
  background:rgba(212,175,55,0.1);
}

.category-bar button.active{
  background:var(--lux-gold);
  color:#000;
}

@media(max-width:768px){
  .category-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
    justify-content:flex-start;
  }

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

.loading-text{
  animation:luxPulse 1.2s ease-in-out infinite;
  grid-column:1 / -1;
  text-align:center;  
}

@keyframes luxPulse{
  0%{ opacity:0.4; }
  50%{ opacity:1; }
  100%{ opacity:0.4; }
}

/* ===============================
   🎩 CATEGORY INTRO SECTION
================================ */

.category-intro{
  height:55vh;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.category-overlay{
  width:100%;
  height:100%;
  background:linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.85)
  );
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
}

.category-overlay h1{
  font-family:'Cinzel',serif;
  font-size:42px;
  color:var(--lux-gold);
  letter-spacing:2px;
  margin-bottom:12px;
}

.category-overlay p{
  color:#ddd;
  max-width:700px;
  font-size:15px;
  line-height:1.6;
}

@media (max-width:768px){
  .category-intro{
    height:40vh;
  }

  .category-overlay h1{
    font-size:26px;
  }
}

/* ===============================
   🎩 CATEGORY CARD VARIATIONS
================================ */

.card img{
  width:100%;
  object-fit:cover;
  border-radius:6px;
  transition:0.4s ease;
  overflow:hidden;
}

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

/* 🔥 BAKHOOR - WIDE */
.card-wide img{
  aspect-ratio: 16 / 9;
}

/* 🔥 OUDH - TALL */
.card-tall img{
  aspect-ratio: 3 / 4;
}

/* 🔥 ATTAR - MEDIUM */
.card-medium img{
  aspect-ratio: 4 / 5;
}

/* 🔥 BODY MIST - SQUARE */
.card-square img{
  aspect-ratio: 1 / 1;
}

/* DEFAULT */
.card-default img{
  aspect-ratio: 1 / 1;
}

/* 🔥 MOBILE: 2 PRODUCTS PER ROW */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:22px;
}

@media (max-width:768px){
  .grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }

.card{
  opacity: 100%;
  padding:10px;
  border-radius:10px;
  will-change: transform;
  position:relative;
  z-index:1;
}

}

/* ===============================
   🔥 HERO PRODUCT CARD
================================ */

.card-hero{
  grid-column: 1 / -1;
}

.card-hero img{
  aspect-ratio: 21 / 9;
}

.card-hero .name{
  font-size:20px;
}

.card-hero .price{
  font-size:18px;
}

@media (max-width:768px){

  .card-hero img{
    aspect-ratio: 16 / 9;
  }

}

.hero-video{
position:relative;
width:100vw;
height:100vh;
overflow:hidden;
}

.hero-video video{
min-width:100%;
min-height:100%;
}

.bg-video{
position:absolute;
top:0;
left:0;
width:100vw;
height:100vh;
object-fit:cover;
}

*{
box-sizing:border-box;
}

.video-overlay{
  animation:fadeInHero 1.5s ease;
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
}

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

.video-overlay h1{
  font-family:'Cinzel',serif;
  font-size:48px;
  color:var(--lux-gold);
  letter-spacing:2px;
  margin-bottom:10px;
}

@media(max-width:768px){
  .video-overlay h1{
    font-size:30px;
  }
}

/* ===============================
   ⭐ FEATURED COLLECTION SECTION
================================ */

.featured-section{
  padding:80px 20px;
  max-width:1200px;
  margin:auto;
}

.featured-title{
  text-align:center;
  font-family:'Cinzel',serif;
  font-size:32px;
  color:var(--lux-gold);
  margin-bottom:50px;
  letter-spacing:2px;
}

.featured-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

.featured-card{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  border-radius:12px;
  transition:0.3s ease;
}

.featured-card img{
  width:100%;
  height:300px;
  object-fit:cover;
  transition:0.4s ease;
}

.featured-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.85)
  );
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:30px;
}

.featured-overlay h3{
  color:var(--lux-gold);
  font-size:20px;
  letter-spacing:1px;
}

.featured-card:hover{
  transform:translateY(-4px) scale(1.01);
}

.featured-card:hover img{
  transform:scale(1.08);
}

@media (max-width:768px){
  .featured-card img{
    opacity: 100%;
    height:220px;
  }

  .featured-title{
    font-size:24px;
  }
}

/* ===============================
   🔥 BEST SELLER SECTION
================================ */

.best-section{
  padding:80px 20px;
  max-width:1200px;
  margin:auto;
}

.best-title{
  text-align:center;
  font-family:'Cinzel',serif;
  font-size:30px;
  color:var(--lux-gold);
  margin-bottom:40px;
  letter-spacing:2px;
}

.best-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:24px;
}

.best-card{
  padding:14px;
  border-radius:10px;
  transition:0.3s ease;
  cursor:pointer;
}

.best-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:6px;
  transition:0.4s ease;
}

.best-card:hover{
  transform:translateY(-4px) scale(1.01);
}

.best-card:hover img{
  transform:scale(1.06);
}

.best-name{
  margin-top:10px;
  font-size:15px;
}

.best-price{
  color:var(--lux-gold);
  margin-top:4px;
  font-weight:600;
}

/* ===============================
   📱 MOBILE EDGE FIX
================================ */

@media (max-width:768px){

  html,body{
    overflow-x:hidden;
  }

  .featured-section,
  .best-section,
  .products-section{
    opacity: 1;
    padding-left:12px;
    padding-right:12px;
  }

  .hero-video{
    opacity: 1;
    margin-left:0;
    margin-right:0;
    height:70vh;
  }

}

/* ===============================
   📱 MOBILE CARD FOCUS EFFECT
================================ */

@media(max-width:768px){

  .card{
    opacity: 1;
    transition:0.35s ease;
  }

  .card.active{
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 12px 30px rgba(212,175,55,0.25);
    border:1px solid rgba(212,175,55,0.7);
  }

  .best-card.active,
  .featured-card.active{
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 12px 30px rgba(212,175,55,0.22);
    border:1px solid rgba(212,175,55,0.55);
  }

}

@media (hover:hover){

.best-card:hover,
.featured-card:hover,
.card:hover{
  transform: translate3d(0, -4px, 0) scale(1.008); /* 🔥 GPU SAFE */
  box-shadow:none;
}
}


.category-section{
  display:block;
  width:100%;
}

.category-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  padding:0 6px;
  border-bottom:1px solid rgba(212,175,55,0.2);
  padding-bottom:6px;
}

.category-title{
  font-family:'Cinzel', serif;
  color:var(--lux-gold);
  font-size:18px;
}

.show-more{
  font-size:12px;
  color:var(--lux-gold);
  cursor:pointer;
  transition:0.2s;
}

.show-more:hover{
  transform:translateX(4px);
  color:#e6c65a;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

/* mobile center fix */
@media(max-width:768px){
  .footer-brand{
    justify-content:center;
  }
}

/* ===============================
   🎨 SPACING UTILITIES
================================ */

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-60 { margin-top: 60px !important; }
.mt-80 { margin-top: 80px !important; }

.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-40 { margin-bottom: 40px !important; }

.pt-40 { padding-top: 40px !important; }
.pt-60 { padding-top: 60px !important; }
.pb-40 { padding-bottom: 40px !important; }
.pb-60 { padding-bottom: 60px !important; }

/* ===============================
   ✏️ TYPOGRAPHY UTILITIES
================================ */

.text-gold { color: var(--lux-gold) !important; }
.text-dim { color: var(--lux-text-dim) !important; }
.text-center { text-align: center !important; }
.text-sm { font-size: 13px !important; }
.text-base { font-size: 15px !important; }
.text-lg { font-size: 18px !important; }
.text-xl { font-size: 22px !important; }
.text-2xl { font-size: 28px !important; }

.font-cinzel { font-family: 'Cinzel', serif !important; }
.font-600 { font-weight: 600 !important; }
.letter-space { letter-spacing: 1px !important; }
.letter-space-lg { letter-spacing: 2px !important; }

/* ===============================
   🃏 CARD UTILITY
================================ */

.lux-card {
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lux-card:hover {
  border-color: var(--lux-border);
  box-shadow: 0 18px 34px rgba(146,113,29,0.16);
}

/* ===============================
   📐 SECTION HEADING
================================ */

.section-heading {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 30px;
  color: var(--lux-gold);
  letter-spacing: 2px;
  margin-bottom: 40px;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--lux-gold);
  margin: 12px auto 0;
  opacity: 0.6;
}

/* ===============================
   🌀 FADE-IN ANIMATION
================================ */

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

.fade-in {
  animation: fadeInUp 0.5s ease both;
}

.fade-in-slow {
  animation: fadeInUp 0.8s ease both;
}

/* Shared with login.html / forgot.html for auth-box & input entrance
   (identical @keyframes previously duplicated in both files). */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   🗂️ ADMIN EMPTY STATE / TOAST
   (shared by admin-orders.html & admin-products.html — was
   byte-for-byte duplicated in both pages' <style> blocks)
================================ */

.admin-empty-state{
  grid-column:1/-1;
  text-align:center;
  color:#555;
  padding:70px 20px;
  font-size:15px;
  border:1px dashed rgba(212,175,55,0.25);
  border-radius:12px;
}

.admin-empty-state .admin-empty-icon{
  font-size:32px;
  color:var(--lux-gold);
  opacity:0.6;
  margin-bottom:14px;
}

.admin-empty-state .admin-empty-title{
  color:#ccc;
  font-size:16px;
  font-weight:600;
  margin-bottom:6px;
}

.admin-empty-state .admin-empty-sub{
  color:#666;
  font-size:13px;
}

.admin-empty-state.is-error .admin-empty-icon,
.admin-empty-state.is-error .admin-empty-title{
  color:#f44336;
}

#toastContainer{
  position:fixed;
  top:137px; /* clears the 125px desktop header + a small gap */
  right:20px;
  z-index:99999;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  pointer-events:none;
}

.toast{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#1a1a1a;
  border:1px solid rgba(212,175,55,0.4);
  border-left-width:4px;
  color:white;
  padding:12px 14px;
  border-radius:8px;
  font-size:13px;
  font-family:'Montserrat',sans-serif;
  line-height:1.45;
  animation:toastIn 0.3s var(--lux-ease, ease);
  pointer-events:all;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,0.28);
  max-width:300px;
  width:max-content;
}

.toast.toast-leaving{
  animation:toastOut 0.22s var(--lux-ease, ease) forwards;
}

.toast-icon{
  flex-shrink:0;
  width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  background:rgba(255,255,255,0.08);
}

.toast-text{
  flex:1;
  min-width:0;
  color:#eee;
  word-break:break-word;
}

.toast-close{
  flex-shrink:0;
  background:none;
  border:none;
  color:rgba(255,255,255,0.5);
  font-size:16px;
  line-height:1;
  padding:0 0 0 4px;
  cursor:pointer;
  font-family:inherit;
}

.toast-close:hover{ color:#fff; }

.toast.success{ border-color:rgba(0,200,83,0.5); }
.toast.success .toast-icon{ color:#00c853; background:rgba(0,200,83,0.14); }

.toast.error{ border-color:rgba(244,67,54,0.5); }
.toast.error .toast-icon{ color:#f44336; background:rgba(244,67,54,0.14); }

.toast.warning{ border-color:rgba(255,152,0,0.5); }
.toast.warning .toast-icon{ color:#ff9800; background:rgba(255,152,0,0.14); }

.toast.info{ border-color:rgba(212,175,55,0.5); }
.toast.info .toast-icon{ color:var(--lux-gold); background:rgba(212,175,55,0.14); }

@keyframes toastIn{
  from{ opacity:0; transform:translateX(30px); }
  to  { opacity:1; transform:translateX(0);    }
}

@keyframes toastOut{
  from{ opacity:1; transform:translateX(0);    }
  to  { opacity:0; transform:translateX(30px); }
}

@media (max-width:768px){
  #toastContainer{
    top:97px; /* clears the 85px mobile header + a small gap */
    left:12px;
    right:12px;
  }

  .toast{
    width:100%;
    max-width:none;
  }
}

@media (prefers-reduced-motion: reduce){
  .toast{ animation:none; }
  .toast.toast-leaving{ animation:none; }
}

/* ===============================
   ❓ CONFIRM DIALOG
   Promise-based replacement for window.confirm() - see showConfirm() in
   js/common.js. Matches the OTP modal's overlay/box treatment.
================================ */

.confirm-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  background:rgba(24,18,6,0.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  animation:confirmOverlayIn 0.2s ease;
}

.confirm-box{
  background:rgba(255,254,251,0.98);
  border:1px solid var(--lux-border);
  border-radius:16px;
  box-shadow:var(--lux-shadow-deep);
  width:min(360px, 100%);
  box-sizing:border-box;
  padding:26px 24px 22px;
  text-align:center;
  animation:confirmBoxIn 0.25s var(--lux-ease-cinematic, ease);
}

.confirm-title{
  font-family:'Cinzel', serif;
  color:var(--lux-gold);
  font-size:19px;
  letter-spacing:0.4px;
  margin:0 0 10px;
}

.confirm-message{
  color:var(--lux-text-dim);
  font-size:13.5px;
  line-height:1.6;
  margin:0 0 20px;
}

.confirm-actions{
  display:flex;
  gap:10px;
  justify-content:center;
}

.confirm-btn{
  flex:1;
  padding:11px 16px;
  border-radius:8px;
  font-family:'Montserrat',sans-serif;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:opacity 0.2s var(--lux-ease), transform 0.2s var(--lux-ease);
}

.confirm-btn:hover{ transform:translateY(-1px); }

.confirm-cancel{
  background:transparent;
  border:1px solid var(--lux-border-soft);
  color:var(--lux-text);
}

.confirm-accept{
  background:linear-gradient(135deg,#d4af37,#e6c65a);
  border:1px solid transparent;
  color:#000;
}

.confirm-accept.danger{
  background:linear-gradient(135deg,#e57373,#f44336);
  color:#fff;
}

@keyframes confirmOverlayIn{
  from{ opacity:0; }
  to  { opacity:1; }
}

@keyframes confirmBoxIn{
  from{ opacity:0; transform:translateY(14px) scale(0.97); }
  to  { opacity:1; transform:translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .confirm-overlay{ animation:none; }
  .confirm-box{ animation:none; }
}

/* ===============================
   ✨ WHITE + GOLD LUXURY THEME
================================ */

.brand-name,
.brand-subtitle,
.nav-menu > div,
.nav-item,
.side-menu a,
.side-menu .menu-item{
  color:var(--lux-text) !important;
}

.nav-menu > div:hover,
.nav-item:hover,
.side-menu a:hover,
.side-menu .menu-item:hover{
  color:var(--lux-gold) !important;
}

.card,
.best-card,
.featured-card,
.order-card,
.lux-card,
.auth-box,
.wishlist-card{
  background:var(--lux-surface) !important;
  border:1px solid var(--lux-border-soft) !important;
  box-shadow:var(--lux-shadow-soft) !important;
}

.card:hover,
.best-card:hover,
.featured-card:hover,
.wishlist-card:hover{
  border-color:var(--lux-border) !important;
  box-shadow:0 18px 34px rgba(146,113,29,0.16) !important;
}

.name,
.subtitle,
.switch,
.text-dim,
.order-status,
.hero p{
  color:var(--lux-text-dim) !important;
}

.side-menu{
  background:linear-gradient(180deg, #fffef9 0%, #f9f5ea 100%) !important;
  border-right:1px solid var(--lux-border-soft) !important;
}

.side-menu-header{
  background:rgba(182,138,26,0.05) !important;
}

.submenu{
  background:rgba(182,138,26,0.04) !important;
  border-left:2px solid rgba(182,138,26,0.18) !important;
}

.overlay{
  background:rgba(50,40,20,0.24) !important;
}

.search-overlay{
  background:rgba(252,249,240,0.96) !important;
  backdrop-filter:blur(8px);
}

.search-box input,
input,
select,
textarea{
  background:#fffefb !important;
  border:1px solid var(--lux-border-soft) !important;
  color:var(--lux-text) !important;
}

.search-item{
  border-bottom:1px solid rgba(182,138,26,0.12) !important;
}

.search-item:hover{
  background:rgba(182,138,26,0.08) !important;
}

button,
.add-btn,
.primary-btn{
  border-radius:10px;
  transition:all 0.25s ease;
}

.add-btn,
.primary-btn{
  background:linear-gradient(135deg,#d4af37,#ecd47a) !important;
  color:#2c2209 !important;
  border:none !important;
  box-shadow:0 8px 18px rgba(182,138,26,0.25);
}

.add-btn:hover,
.primary-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(182,138,26,0.30);
}

.wishlist-btn,
.back-home-btn{
  background:transparent !important;
  color:var(--lux-gold) !important;
  border:1px solid var(--lux-border) !important;
}

.wishlist-btn:hover,
.back-home-btn:hover{
  background:rgba(182,138,26,0.08) !important;
}

/* .page-transition intentionally stays a dark veil (see the PAGE
   TRANSITION block above) even though the rest of the site is
   white+gold - a deliberate, calm dark curtain for the logo moment. */

/* ===============================
   🎬 CINEMATIC MOTION FOUNDATION
   Shared primitives every page composes from (see js/common.js:
   initScrollReveals / initMagneticButtons / initMouseFollowLight /
   navigateWithTransition). Do not fork a second reveal/glass/magnetic
   system per page - extend these.
================================ */

/* Scroll reveal - JS (IntersectionObserver, GSAP ScrollTrigger when
   available) toggles .is-visible; CSS carries the actual transition so
   it still animates smoothly even on the no-GSAP fallback path. */
[data-reveal]{
  opacity:0;
  transform:translateY(28px);
  transition:
    opacity 0.9s var(--lux-ease-cinematic),
    transform 0.9s var(--lux-ease-cinematic);
  will-change:opacity, transform;
}

[data-reveal].is-visible{
  opacity:1;
  transform:none;
}

[data-reveal="scale"]{
  transform:translateY(28px) scale(0.96);
}

[data-reveal="scale"].is-visible{
  transform:none;
}

/* Stagger children of a [data-reveal-group] - JS assigns
   --reveal-index per child so the delay comes from CSS, not inline
   per-element timeouts. */
[data-reveal-group] > [data-reveal]{
  transition-delay: calc(var(--reveal-index, 0) * var(--lux-stagger));
}

/* Glass panel utility - use sparingly (hero overlays, modals, the
   intro), not on every card. */
.glass-panel{
  background:rgba(255,255,255,0.62);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid rgba(255,255,255,0.55);
  box-shadow:var(--lux-shadow-deep);
}

/* Magnetic buttons - initMagneticButtons() drives the pull via
   gsap.quickTo (or a lightweight CSS-transition fallback); this just
   guarantees a smooth release and no layout jump either way. */
[data-magnetic]{
  will-change:transform;
  transition:transform 0.4s var(--lux-ease-cinematic);
}

/* Mouse-follow ambient light - JS only ever updates the --mx/--my
   custom properties (cheap, GPU-composited); no layout thrash. */
[data-mouse-light]{
  position:relative;
  overflow:hidden;
}

[data-mouse-light]::before{
  content:"";
  position:absolute;
  top:var(--my, 50%);
  left:var(--mx, 50%);
  width:560px;
  height:560px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(212,175,55,0.16), transparent 70%);
  pointer-events:none;
  opacity:0;
  transition:opacity 0.5s ease;
  z-index:0;
}

[data-mouse-light]:hover::before{
  opacity:1;
}

/* Ensure content sits above the ambient glow layer by default */
[data-mouse-light] > *{
  position:relative;
  z-index:1;
}

/* ===============================
   ♿ REDUCED MOTION
   Every animated primitive above (and every page built on top of it)
   must degrade to an instant, static state here - this is the single
   site-wide switch, not a per-page concern.
================================ */
@media (prefers-reduced-motion: reduce){
  [data-reveal],
  [data-reveal="scale"]{
    opacity:1 !important;
    transform:none !important;
  }

  [data-magnetic]{
    transition:none !important;
  }

  [data-mouse-light]::before{
    display:none;
  }

  *,
  *::before,
  *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
}