/* =====================================================
   Baby Egypt — themed stylesheet (dark + light)
   ===================================================== */
:root {
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --gold-deep: #8B6914;
  --sand: #E8D5A3;
  --turquoise: #2DBDB6;
  --danger: #C0392B;
  --success: #27AE60;
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --glow: 0 0 20px rgba(201,168,76,0.4);
}

/* Dark theme (default) */
html[data-theme="dark"] {
  --bg: #0A0804;
  --bg-elevated: #110E08;
  --bg-card: #1C1810;
  --text: #FDF8EE;
  --text-muted: #9E8C6A;
  --border: rgba(201,168,76,0.2);
  --nav-bg: linear-gradient(180deg, rgba(10,8,4,0.98), rgba(10,8,4,0.85));
}

/* Light theme */
html[data-theme="light"] {
  --bg: #FBF5E6;
  --bg-elevated: #F4EAD0;
  --bg-card: #FFFDF6;
  --text: #1C1810;
  --text-muted: #6B5A38;
  --border: rgba(139,105,20,0.25);
  --shadow: 0 4px 24px rgba(139,105,20,0.15);
  --glow: 0 0 20px rgba(201,168,76,0.35);
  --nav-bg: linear-gradient(180deg, rgba(251,245,230,0.98), rgba(251,245,230,0.85));
}

* , *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; }

::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius:4px; }

.bg-pattern {
  position: fixed; inset:0; opacity:0.04; pointer-events:none; z-index:0;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 40px);
}

/* NAV */
nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 0 40px; height:72px;
  display:flex; align-items:center; justify-content:space-between;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display); font-size:1.4rem;
  color: var(--gold); text-decoration:none; letter-spacing:0.05em;
  display:flex; align-items:center; gap:10px;
}
.nav-logo .logo-icon {
  width:30px; height:30px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%); display:inline-block;
}
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  font-family: var(--font-heading); font-size:0.75rem;
  letter-spacing:0.15em; text-transform:uppercase;
  color: var(--text-muted); text-decoration:none;
}
.nav-links a:hover { color: var(--gold); }
.nav-actions { display:flex; gap:16px; align-items:center; }
.nav-icon-btn {
  background:none; border:none; color: var(--text-muted);
  text-decoration:none; cursor:pointer; font-size:1.2rem;
  position:relative; padding:4px;
}
.nav-icon-btn:hover { color: var(--gold); }
.cart-badge {
  position:absolute; top:-4px; right:-8px; min-width:18px; height:18px;
  background: var(--gold); color: #0A0804; border-radius:50%;
  font-size:0.65rem; font-weight:700; display:flex; align-items:center; justify-content:center;
  padding:0 4px;
}

main { padding-top: 72px; position: relative; z-index: 1; }

/* HERO */
.hero {
  min-height: calc(100vh - 72px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 80px 20px; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(45,189,182,0.10), transparent 60%);
}
.hero-eyebrow {
  font-family: var(--font-heading); font-size:0.7rem; letter-spacing:0.4em;
  color: var(--gold); text-transform:uppercase; margin-bottom:20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(201,168,76,0.3), 0 2px 0 var(--gold-deep);
  margin-bottom: 24px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title span { color: var(--text); }
.hero-subtitle {
  font-weight:300; font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted); letter-spacing:0.08em;
  max-width:600px; margin-bottom:48px; line-height:1.8;
}
.hero-ctas { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }

/* BUTTONS */
.btn {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--obsidian);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  box-shadow: var(--glow);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 40px rgba(201,168,76,0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  box-shadow: var(--glow);
}
.btn-dark {
  background: var(--dark-mid);
  color: var(--sand);
  border: 1px solid rgba(201,168,76,0.2);
}
.btn-dark:hover { background: var(--dark); border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.65rem; }
.btn-full { width: 100%; justify-content: center; }

/* Hieroglyph floaters */
.float-glyph {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  color: var(--gold);
}
.float-glyph:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.float-glyph:nth-child(2) { top: 25%; right: 10%; animation-delay: 1.5s; }
.float-glyph:nth-child(3) { top: 60%; left: 5%; animation-delay: 3s; }
.float-glyph:nth-child(4) { top: 70%; right: 8%; animation-delay: 1s; }
.float-glyph:nth-child(5) { top: 40%; left: 3%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-pyramid {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 300px solid transparent;
  border-right: 300px solid transparent;
  border-bottom: 250px solid rgba(201,168,76,0.05);
  pointer-events: none;
}
.hero-pyramid::after {
  content: '';
  position: absolute;
  bottom: -250px;
  left: -200px;
  width: 0; height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 160px solid rgba(201,168,76,0.04);
}

/* SECTIONS */
.section { padding: 80px 40px; position:relative; z-index:1; max-width:1280px; margin:0 auto; }
.section-label {
  font-family: var(--font-heading); font-size:0.65rem; letter-spacing:0.4em;
  color: var(--gold); text-transform:uppercase; display:block; margin-bottom:8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--text); line-height:1.1; margin-bottom:16px;
}
.section-title .accent { color: var(--gold); }
.section-desc {
  color: var(--text-muted); font-weight:300; line-height:1.8;
  max-width:560px; margin-bottom:48px; font-size:0.95rem;
}
.divider {
  width:80px; height:2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 48px;
}

/* CATEGORIES */
.categories-row {
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:20px; margin-bottom:60px;
}
.cat-card {
  background: var(--bg-card); border:1px solid var(--border);
  padding: 32px 24px; text-align:center;
  text-decoration:none; transition: all 0.3s;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--glow); transform: translateY(-4px); }
.cat-icon { font-size:3rem; margin-bottom:12px; display:block; }
.cat-name {
  font-family: var(--font-heading); font-size:0.85rem;
  letter-spacing:0.15em; text-transform:uppercase; color: var(--gold);
  margin-bottom:6px;
}
.cat-count { font-size:0.75rem; color: var(--text-muted); }

/* PRODUCT GRID */
.products-grid {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:24px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  overflow:hidden; transition: all 0.4s;
  text-decoration:none; color: inherit;
  display:flex; flex-direction:column;
}
.product-card:hover {
  border-color: var(--gold); box-shadow: var(--shadow), var(--glow);
  transform: translateY(-6px);
}
.product-thumb {
  width:100%; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  font-size:6rem; position:relative;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
}
.product-thumb::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.10), transparent 70%);
  pointer-events:none;
}
.product-thumb img, .product-gallery img, .cart-item-thumb img, .cart-thumb img, .ct-thumb img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.product-gallery img { position:absolute; inset:0; }
.product-badge {
  position:absolute; top:12px; left:12px;
  font-family: var(--font-heading); font-size:0.55rem;
  letter-spacing:0.15em; text-transform:uppercase;
  padding: 4px 10px; background: var(--gold); color:#0A0804;
  font-weight:700; z-index:2;
}
.product-info { padding:20px; flex:1; display:flex; flex-direction:column; }
.product-design {
  font-family: var(--font-heading); font-size:0.6rem;
  letter-spacing:0.25em; color: var(--gold);
  text-transform:uppercase; margin-bottom:6px;
}
.product-name {
  font-family: var(--font-heading); font-size:1rem; color: var(--text);
  margin-bottom:8px; line-height:1.3;
}
.product-desc {
  font-size:0.8rem; color: var(--text-muted); line-height:1.6;
  margin-bottom:16px; flex:1;
}
.product-footer {
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--border); padding-top:16px;
}
.product-price {
  font-family: var(--font-heading); font-size:1.2rem; color: var(--gold);
}
.product-price .currency { font-size:0.75rem; color: var(--text-muted); margin-right:2px; }

/* FILTERS */
.filter-bar {
  display:flex; gap:8px; margin-bottom:32px; flex-wrap:wrap; align-items:center;
}
.filter-chip {
  font-family: var(--font-heading); font-size:0.65rem;
  letter-spacing:0.12em; text-transform:uppercase;
  padding: 8px 20px; border:1px solid var(--border);
  color: var(--text-muted); background: var(--bg-card);
  text-decoration:none; transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.07);
}

/* PRODUCT DETAIL */
.product-detail {
  display:grid; grid-template-columns: 1fr 1fr; gap:60px;
  padding: 60px 40px; max-width:1200px; margin:0 auto;
}
.product-gallery {
  background: var(--bg-card); border:1px solid var(--border);
  aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center; font-size:12rem;
  position:relative; overflow:hidden;
}
.product-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text);
  margin: 12px 0 16px;
}
.detail-price {
  font-family: var(--font-heading);
  font-size: 2rem; color: var(--gold); margin: 16px 0 24px;
}
.detail-meta { color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.detail-meta strong { color: var(--text); }
.size-chips { display:flex; gap:8px; margin: 16px 0 28px; flex-wrap:wrap; }
.size-chip {
  font-family: var(--font-heading); font-size:0.7rem; letter-spacing:0.1em;
  padding: 8px 14px; border:1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); cursor:pointer;
}
.size-chip.selected, .size-chip:hover {
  border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.07);
}
.qty-inline { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.qty-inline input {
  width:80px; padding:10px; background: var(--bg-card);
  border:1px solid var(--border); color: var(--text);
  font-family: var(--font-heading); text-align:center;
}
.flash {
  padding: 12px 20px; margin: 0 auto 24px; max-width: 1200px;
  background: rgba(39,174,96,0.15); color: var(--success);
  border:1px solid var(--success); border-radius:4px;
}

/* CART PAGE */
.cart-wrap { max-width: 1000px; margin: 0 auto; padding: 60px 40px; }
.cart-table { width:100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 16px; border-bottom: 1px solid var(--border); text-align:left;
}
.cart-table th {
  font-family: var(--font-heading); font-size:0.7rem;
  letter-spacing:0.15em; text-transform:uppercase; color: var(--gold);
}
.cart-thumb {
  width:60px; height:60px; background: var(--bg-card);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:1.6rem;
}
.qty-form { display:inline-flex; gap:6px; align-items:center; }
.qty-form input {
  width:60px; padding:6px; background: var(--bg-card);
  border:1px solid var(--border); color: var(--text); text-align:center;
}
.cart-totals {
  margin-top:32px; text-align:right;
  font-family: var(--font-heading); font-size:1.4rem; color: var(--gold);
}
.empty-state {
  text-align:center; padding: 80px 20px; color: var(--text-muted);
}

/* ABOUT */
.about-hero {
  text-align:center; padding: 100px 20px 40px;
}
.about-grid {
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:24px; margin-top:60px;
}
.about-card {
  background: var(--bg-card); border:1px solid var(--border);
  padding: 32px; text-align:center;
}
.about-card .icon { font-size:3rem; margin-bottom:16px; }
.about-card h3 {
  font-family: var(--font-heading); color: var(--gold);
  letter-spacing:0.1em; margin-bottom:12px;
}
.about-card p { color: var(--text-muted); line-height:1.7; font-size:0.9rem; }

/* CONTACT */
.contact-form {
  max-width: 600px; 
  /* margin: 0 auto; */
  background: var(--bg-card); border:1px solid var(--border);
  padding: 40px;
}
.contact-form label {
  display:block; font-family: var(--font-heading);
  font-size:0.7rem; letter-spacing:0.15em;
  text-transform:uppercase; color: var(--gold); margin-bottom:8px; margin-top:16px;
}
.contact-form input, .contact-form textarea {
  width:100%; padding:12px; background: var(--bg);
  border:1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size:0.95rem;
}
.contact-form textarea { min-height:140px; resize:vertical; }

/* FOOTER */
.site-footer {
  background: var(--bg-elevated);
  border-top:1px solid var(--border); padding: 60px 40px 20px; margin-top:80px;
}
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns: 2fr 1fr 1fr; gap:40px;
}
.footer-inner h4 {
  font-family: var(--font-heading); font-size:0.8rem;
  letter-spacing:0.15em; color: var(--gold); margin-bottom:16px;
}
.footer-inner a {
  display:block; color: var(--text-muted); text-decoration:none;
  font-size:0.85rem; margin-bottom:8px;
}
.footer-inner a:hover { color: var(--gold); }
.footer-text { color: var(--text-muted); font-size:0.85rem; line-height:1.7; margin-top:12px; max-width:380px; }
.footer-bottom {
  text-align:center; color: var(--text-muted); font-size:0.75rem;
  padding-top:30px; margin-top:30px; border-top:1px solid var(--border);
}

@media (max-width: 880px) {
  nav { padding: 0 16px; }
  .nav-links { display:none; }
  .product-detail, .footer-inner, .categories-row, .about-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 20px; }
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: -440px;
  width: 440px;
  height: 100vh;
  background: var(--dark);
  border-left: 1px solid rgba(201,168,76,0.2);
  z-index: 2001;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--gold); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  align-items: flex-start;
}
.cart-item-thumb {
  width: 72px; height: 72px;
  background: var(--dark-mid);
  border: 1px solid rgba(201,168,76,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow:hidden;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-heading); font-size: 0.8rem; color: var(--white); margin-bottom: 4px; }
.cart-item-variant { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-family: var(--font-heading); color: var(--gold); font-size: 0.9rem; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 24px; height: 24px;
  background: var(--dark-mid);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--gold); color: var(--obsidian); }
.qty-val { font-family: var(--font-heading); font-size: 0.85rem; width: 24px; text-align: center; }
.cart-remove {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 1rem;
  transition: color 0.2s; padding: 4px;
}
.cart-remove:hover { color: var(--danger); }

.cart-footer { padding: 20px 24px; border-top: 1px solid rgba(201,168,76,0.15); }
.cart-total-row {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
}
.cart-total-label {
  font-family: var(--font-heading);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.cart-total-val {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--gold);
}
.coupon-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.coupon-input {
  flex: 1; padding: 10px 14px;
  background: var(--dark-mid);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}
.coupon-input:focus { border-color: var(--gold); }
.coupon-input::placeholder { color: var(--text-muted); }

.cart-empty {
  text-align: center;
  padding: 60px 24px;
}
.cart-empty .empty-icon { font-size: 4rem; opacity: 0.3; margin-bottom: 16px; }
.cart-empty p { color: var(--text-muted); font-size: 0.85rem; }

/* Eye of Ra divider */
.eye-divider {
  text-align: center;
  margin: 48px 0;
  position: relative;
}
.eye-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.eye-divider span {
  position: relative;
  background: var(--obsidian);
  padding: 0 20px;
  font-size: 1.5rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 88px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px;
  background: var(--dark-mid);
  border: 1px solid;
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  min-width: 280px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow);
}
.toast-success { border-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info { border-color: var(--gold); }
.toast-info .toast-icon { color: var(--gold); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, var(--dark-mid) 0%, var(--dark) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 48px;
  position: relative;
  z-index: 1;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-icon { text-align: center; font-size: 3rem; margin-bottom: 8px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 36px; }

.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(201,168,76,0.15);
}
.auth-divider span { font-family: var(--font-heading); font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }

.auth-switch { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.auth-switch a { color: var(--gold); text-decoration: none; cursor: pointer; }
.auth-switch a:hover { color: var(--gold-light); }

/* ============================================
   FORMS / INPUTS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-mid);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  border-radius: var(--radius);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { -webkit-appearance: none; cursor: pointer; }
.form-select option { background: var(--dark); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 0.75rem; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 0.75rem; margin-top: 4px; }

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, var(--dark-mid) 0%, var(--dark) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 48px;
  position: relative;
  z-index: 1;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-icon { text-align: center; font-size: 3rem; margin-bottom: 8px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 36px; }

.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(201,168,76,0.15);
}
.auth-divider span { font-family: var(--font-heading); font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }

.auth-switch { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.auth-switch a { color: var(--gold); text-decoration: none; cursor: pointer; }
.auth-switch a:hover { color: var(--gold-light); }

#loader{
  position:fixed;inset:0;background:#0A0804;z-index:9999;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;
  transition:opacity .7s ease,visibility .7s ease;
}

#loader.gone{opacity:0;visibility:hidden;pointer-events:none}

.horus-eye{width:160px;height:160px;animation:eyePulse 2.2s ease-in-out infinite}
@keyframes eyePulse{
  0%,100%{filter:drop-shadow(0 0 10px rgba(201,168,76,.5));transform:scale(1)}
  50%{filter:drop-shadow(0 0 32px rgba(201,168,76,.95));transform:scale(1.06)}
}
.horus-blink{animation:blink 4s ease-in-out infinite;transform-origin:center center}
@keyframes blink{0%,88%,100%{transform:scaleY(1)}93%{transform:scaleY(.04)}}

.loader-brand{
  font-family:var(--font-display);color:var(--gold);font-size:1.5rem;
  letter-spacing:.3em;text-transform:uppercase;
  animation:pulse 1.6s ease-in-out infinite alternate;
}
@keyframes pulse{from{opacity:.35}to{opacity:1}}

.loader-track{width:210px;height:2px;background:rgba(201,168,76,.15);border-radius:2px;overflow:hidden}
.loader-fill{height:100%;background:linear-gradient(90deg,var(--gold-deep),var(--gold),var(--gold-light));animation:fill 2s ease forwards}
@keyframes fill{0%{width:0}65%{width:75%}100%{width:100%}}


/* ============================================================
   BABY EGYPT — Patch additions (non-destructive appends)
   ============================================================ */

/* ── Toast — ensure it works in both themes ── */
.toast-container {
  position: fixed;
  top: 88px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 13px 18px;
  background: var(--bg-card, #1C1810);
  border: 1px solid;
  color: var(--text, #FDF8EE);
  font-family: var(--font-body, 'Raleway', sans-serif);
  font-size: 0.85rem;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  pointer-events: all;
  animation: toastSlide 0.3s ease;
  transition: opacity 0.4s;
}
.toast-success { border-color: var(--success, #27AE60); }
.toast-success .toast-icon { color: var(--success, #27AE60); }
.toast-error   { border-color: var(--danger, #C0392B); }
.toast-error   .toast-icon { color: var(--danger, #C0392B); }
.toast-info    { border-color: var(--gold, #C9A84C); }
.toast-info    .toast-icon { color: var(--gold, #C9A84C); }
@keyframes toastSlide {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Cart drawer background fix (uses CSS var correctly) ── */
.cart-drawer {
  background: var(--bg-elevated, #110E08);
}

/* ── Cart page table body row hover ── */
.cart-tbl tbody tr:hover { background: rgba(201,168,76,0.03); }

/* ── Btn dark (used on cart page) ── */
.btn-dark {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%);
}
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ── Checkout pay option hover ── */
.pay-option:hover { border-color: var(--gold); }

/* ── Co-step done colour ── */
.co-step.done { border-bottom-color: var(--success, #27AE60); color: var(--success, #27AE60); }

/* ── Cart overlay uses .open (align with JS) ── */
.cart-overlay.show { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════════
   v2 ADDITIONS — Pharaoh Modal, Wishlist Heart, Account Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ── Pharaoh Modal ─────────────────────────────────────────── */
.pharaoh-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 6, 3, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: 20px;
}
.pharaoh-modal-overlay.open { opacity: 1; pointer-events: auto; }
.pharaoh-modal {
  background: linear-gradient(180deg, #15110a 0%, #0c0906 100%);
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,168,76,.08) inset;
  width: 100%; max-width: 440px; padding: 38px 30px 30px;
  text-align: center;
  position: relative;
  transform: translateY(12px) scale(.97);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.pharaoh-modal-overlay.open .pharaoh-modal { transform: none; opacity: 1; }
.pharaoh-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 6px 10px;
  transition: color .2s;
}
.pharaoh-modal-close:hover { color: var(--gold); }
.pharaoh-modal-icon {
  font-size: 3rem; color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(201,168,76,.45);
}
.pharaoh-modal-title {
  font-family: var(--font-display, 'Cinzel Decorative', serif);
  font-size: 1.35rem; color: var(--text);
  letter-spacing: .04em; margin: 0 0 10px;
}
.pharaoh-modal-message {
  color: var(--text-muted);
  font-size: .92rem; line-height: 1.55;
  margin: 0 auto 24px; max-width: 340px;
}
.pharaoh-modal-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.pharaoh-modal-actions .btn { min-width: 140px; }

/* ── Wishlist Heart (on product cards + product page) ────── */
.wishlist-heart {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(13,9,6,.78);
  border: 1px solid rgba(201,168,76,.3);
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 4;
  transition: all .25s ease;
}
.wishlist-heart:hover {
  color: #e74c3c; border-color: #e74c3c;
  transform: scale(1.08);
}
.wishlist-heart.active {
  color: #e74c3c; border-color: #e74c3c;
  background: rgba(231,76,60,.12);
  text-shadow: 0 0 14px rgba(231,76,60,.55);
}

/* ── Account Dashboard (tabs + sidebar) ──────────────────── */
.account-wrap { background: var(--bg); color: var(--text); min-height: 100vh; }

.account-dashboard {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
.account-sidebar {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 260px;
  max-width: 260px;
  align-self: start;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}
.account-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
  order: 0;
}
.account-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--gold);
}
.account-name {
  font-family: var(--font-heading, 'Cinzel', serif);
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.account-email {
  font-size: .78rem;
  color: var(--text-muted);
  word-break: break-all;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
  order: 1;
}
.account-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none; cursor: pointer; width: 100%;
  text-align: left;
  box-sizing: border-box;
  transition: all .2s;
}
.account-tab:hover {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.account-tab.active {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-left-color: var(--gold);
}
.account-tab span { flex: 1; }
.account-signout-form { margin: 0; padding: 0; display: block; width: 100%; }
.account-signout {
  color: var(--danger);
  background: transparent;
}
.account-signout:hover {
  color: #fff;
  background: color-mix(in srgb, var(--danger) 75%, transparent);
  border-left-color: var(--danger);
}

.account-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  min-height: 420px;
  box-shadow: var(--shadow);
  color: var(--text);
  min-width: 0;
}
.panel-title {
  font-family: var(--font-display, 'Cinzel Decorative', serif);
  color: var(--text); font-size: 1.5rem;
  margin: 0 0 22px; letter-spacing: .04em;
}
.panel-subtitle {
  font-family: var(--font-heading, 'Cinzel', serif);
  color: var(--gold); font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 16px;
}
.empty-panel { text-align:center; padding: 50px 20px; color: var(--text-muted); }
.empty-panel .empty-icon { font-size: 3rem; opacity: .35; margin-bottom: 12px; color: var(--gold); }

.profile-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-form .form-group { margin-bottom: 14px; }
.profile-form label {
  display:block; font-size:.7rem; letter-spacing:.15em;
  text-transform:uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.profile-form .form-input,
.account-panel .form-input {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.profile-form .form-input:focus,
.account-panel .form-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 25%, transparent);
}

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.address-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 18px;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.address-card.is-default {
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent) inset;
}
.addr-label {
  font-family: var(--font-heading, 'Cinzel', serif);
  color: var(--gold); letter-spacing:.15em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.addr-default-badge {
  background: var(--gold); color: var(--bg);
  font-size: .55rem; padding: 2px 8px; letter-spacing: .12em;
  border-radius: 2px;
}
.addr-line { color: var(--text); font-size: .85rem; line-height: 1.5; }
.addr-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.orders-table { width: 100%; border-collapse: collapse; color: var(--text); }
.orders-table th, .orders-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.orders-table th {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}

.status-pill {
  display: inline-block; padding: 3px 10px;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  font-family: var(--font-heading, 'Cinzel', serif);
  border: 1px solid currentColor;
  border-radius: 2px;
}
.status-pending    { color: #e8b84a; }
.status-paid,
.status-processing { color: #5cbdb9; }
.status-shipped    { color: #a78bfa; }
.status-delivered  { color: var(--success); }
.status-cancelled,
.status-canceled   { color: var(--danger); }

@media (max-width: 820px) {
  .account-dashboard { grid-template-columns: 1fr !important; }
  .account-sidebar { position: static; width: 100%; max-width: 100%; }
  .profile-form .form-row { grid-template-columns: 1fr; }
}
