/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --bg:           #100e0b;
  --surface:      #1a1612;
  --card:         #211c17;
  --card-hover:   #2a231c;
  --border:       rgba(201, 169, 110, 0.12);
  --border-strong:rgba(201, 169, 110, 0.28);
  --text:         #f0e6d8;
  --text-muted:   #9a8b7a;
  --text-faint:   #5c5047;
  --gold:         #c9a96e;
  --gold-light:   #e0c48a;
  --gold-dark:    #9e7e44;
  --cream:        #f5ede4;
  --success:      #4caf82;
  --warning:      #d4a843;
  --error:        #c95b5b;
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    28px;
  --radius-xl:    36px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:  0 8px 32px rgba(201,169,110,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201,169,110,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,169,110,0.04) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
textarea { resize: vertical; }
p { margin: 0; }
ul { list-style: none; padding: 0; }
.hidden { display: none !important; }

/* ─── Layout helpers ────────────────────────────────────── */
.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.stack    { display: grid; gap: 1rem; }
.two-col  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3   { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.grid-4   { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; }
.flex-between { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.badge-row    { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.spaced-top   { margin-top: 1.2rem; }
.muted        { color: var(--text-muted); }
.small        { font-size: 0.875rem; }
.full-width   { width: 100%; }
main { min-height: 72vh; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--cream);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.eyebrow, .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.eyebrow::before { content: '✦'; font-size: 0.6rem; }
.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ─── Navigation ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 14, 11, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.nav-toggle-btn:hover { border-color: var(--border-strong); }
.nav-toggle-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 999px;
  transition: background var(--transition);
}
.nav-panel, .nav-links, .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-panel { flex: 1; justify-content: flex-end; }
.nav-links a:not(.btn), .nav-actions a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:not(.btn):hover, .nav-actions a:not(.btn):hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.account-pill {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.account-pill strong { font-size: 0.875rem; color: var(--text); }
.account-pill small  { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.04em; }
.text-link { color: var(--gold); font-weight: 500; }
.text-link:hover { color: var(--gold-light); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97) !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(201,169,110,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201,169,110,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--card);
}

/* ─── Flash messages ────────────────────────────────────── */
.flash {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid;
}
.flash-success { background: rgba(76,175,130,0.08); color: var(--success); border-color: rgba(76,175,130,0.2); }
.flash-warning { background: rgba(212,168,67,0.08); color: var(--warning); border-color: rgba(212,168,67,0.2); }
.flash-error   { background: rgba(201,91,91,0.08);  color: var(--error);   border-color: rgba(201,91,91,0.2); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-section h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  margin-bottom: 1.4rem;
  color: var(--cream);
}
.hero-section h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-section .lead { max-width: 480px; margin-bottom: 2rem; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-art-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-art-card::after {
  content: '';
  position: absolute;
  inset: 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px 15px var(--card);
  pointer-events: none;
}
.hero-art-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,169,110,0.08), transparent 60%);
  pointer-events: none;
}
.hero-art-card img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--card) 0%, rgba(201,169,110,0.15) 100%);
}
.hero-art-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1e1812 0%, #2a2219 50%, #1a160f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--border);
}
.hero-art-placeholder .art-symbol {
  font-size: 4rem;
  opacity: 0.35;
}
.hero-art-placeholder p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
}

/* ─── Sections ──────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0.75rem 0 1.2rem;
  opacity: 0.5;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head.stacked {
  flex-direction: column;
  align-items: flex-start;
}
.section-head h2 { margin: 0.5rem 0 0; }
.alt-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Curator's picks slideshow ──────────────────────────── */
.picks-section { padding-bottom: 0; }

.picks-carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  aspect-ratio: 4 / 3;
}

.picks-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.picks-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.picks-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.picks-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
}

/* arrow buttons */
.picks-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 14, 11, 0.72);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(6px);
}
.picks-nav:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}
.picks-prev { left: 1rem; }
.picks-next { right: 1rem; }

/* dot indicators */
.picks-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}
.picks-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.picks-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ─── Gallery grid ───────────────────────────────────────── */
.card-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ─── Gallery card ───────────────────────────────────────── */
.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  border-color: var(--border-strong);
}

/* image wrapper — uniform square, click to zoom */
.gallery-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(145deg, #1e1812, rgba(201,169,110,0.1));
}
.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card-img-wrap:hover .gallery-card-img {
  transform: scale(1.06);
}

/* Zoom hint overlay */
.gallery-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.gallery-card-img-wrap:hover .gallery-zoom-hint { opacity: 1; }

/* card info */
.gallery-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.gallery-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
}
.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.gallery-card-meta strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}
.card-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }

/* legacy compat */
.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.product-body { padding: 1.25rem; display: grid; gap: 0.7rem; }
.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.product-meta strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold); }

/* ─── Pills / Tags ──────────────────────────────────────── */
.pill, .chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill { background: rgba(201,169,110,0.1); color: var(--gold); border: 1px solid var(--border-strong); }
.chip { background: var(--card); color: var(--text-muted); border: 1px solid var(--border); cursor: pointer; transition: border-color var(--transition), color var(--transition); }
.chip:hover { border-color: var(--border-strong); color: var(--gold); }
.stock-tag { font-size: 0.8rem; color: var(--success); }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.status-pill.paid, .status-pill.delivered { background: rgba(76,175,130,0.08); color: var(--success); border-color: rgba(76,175,130,0.2); }
.status-pill.pending, .status-pill.new, .status-pill.preparing, .status-pill.submitted { background: rgba(212,168,67,0.08); color: var(--warning); border-color: rgba(212,168,67,0.2); }
.status-pill.failed, .status-pill.cancelled, .status-pill.refunded { background: rgba(201,91,91,0.08); color: var(--error); border-color: rgba(201,91,91,0.2); }
.status-pill.shipped { background: rgba(100,149,237,0.08); color: #8ab0f0; border-color: rgba(100,149,237,0.2); }

/* ─── Info cards ────────────────────────────────────────── */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.info-card:hover { border-color: var(--border-strong); }
.info-card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.6rem; }
.info-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ─── Shop page ─────────────────────────────────────────── */
.page-top { padding-top: 2.5rem; }
.page-shell { padding: 2.5rem 0 5rem; }
.filter-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.5fr 1fr auto;
  width: 100%;
  margin-top: 1.25rem;
}
.filter-form input,
.filter-form select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.filter-form input:focus,
.filter-form select:focus { border-color: var(--border-strong); }
.filter-form select option { background: var(--card); }

/* ─── Product Gallery ───────────────────────────────────── */
.gallery-container { display: grid; gap: 1rem; }
.main-image-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.detail-main-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.main-image-viewport:hover .detail-main-image {
  transform: scale(1.05);
}
.gallery-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.gallery-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none; /* Firefox */
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-thumb {
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.4rem;
  height: 80px;
  width: 80px;
  min-width: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb:hover { border-color: var(--gold); }
.gallery-nav {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}
.gallery-nav:hover { background: var(--card-hover); border-color: var(--border-strong); }

/* ─── Zoom Modal ───────────────────────────────────────── */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.zoom-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: zoom-in-anim 0.3s ease-out;
}
@keyframes zoom-in-anim {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-zoom {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.order-modal-wrap {
  cursor: default;
}
.detail-box {
  border-radius: var(--radius-md);
  background: rgba(201,169,110,0.05);
  border: 1px solid var(--border);
  padding: 1rem;
}
.detail-box h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.detail-box ul { display: grid; gap: 0.4rem; padding-left: 1rem; list-style: disc; color: var(--text-muted); font-size: 0.875rem; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-row strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 400; }

/* ─── Auth ──────────────────────────────────────────────── */
.auth-section {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem 5rem;
}
.auth-card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}
.auth-card.center-text { text-align: center; }
.auth-card h1 { margin: 0.75rem 0 0.6rem; }
.auth-card .lead { margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 0.9rem; }
.form-grid label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 0.3rem; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.9rem 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus { border-color: var(--border-strong); }
.form-grid select option { background: var(--surface); }
.form-grid textarea { min-height: 110px; }
.demo-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(201,169,110,0.06);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.demo-box strong { display: block; color: var(--gold); margin-bottom: 0.4rem; }

/* ─── Cart ──────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1.5rem;
}
.route-card, .checkout-panel, .admin-shell, .order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem;
}
.cart-item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--cream); margin-bottom: 0.25rem; }
.qty-box { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.qty-box input {
  width: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  color: var(--text);
  outline: none;
}
.checkout-panel { display: grid; gap: 1.2rem; align-content: start; }
.checkout-summary { display: grid; gap: 0.65rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--text-muted); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: 0; color: var(--cream); font-weight: 600; }
.checkout-box { display: grid; gap: 1rem; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; }
.payment-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--surface);
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.payment-option strong { font-size: 0.875rem; color: var(--text); }
.payment-option span.muted { font-size: 0.78rem; }
.payment-option.active { border-color: var(--gold); background: rgba(201,169,110,0.06); }
.inline-note {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: rgba(201,169,110,0.05);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
#paypalWrap.panel { background: transparent; border: 0; padding: 0; }

/* ─── Orders / Profile ──────────────────────────────────── */
.page-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; }
.order-card { display: grid; gap: 1rem; margin-bottom: 1rem; }
.items-list { display: grid; gap: 0.6rem; }
.order-line, .product-list-item {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.order-line strong { color: var(--text); }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ─── Admin ─────────────────────────────────────────────── */
.admin-shell { border-radius: var(--radius-xl); }
.product-list { display: grid; gap: 0.75rem; max-height: 420px; overflow-y: auto; }
.product-list::-webkit-scrollbar { width: 4px; }
.product-list::-webkit-scrollbar-track { background: transparent; }
.product-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* ─── Empty states ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card);
  border: 1px dashed rgba(201,169,110,0.18);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--cream); }

/* ─── Loader ────────────────────────────────────────────── */
.loader {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.loader-mark {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  animation: spin-slow 4s linear infinite;
  display: inline-block;
}
.loader p { color: var(--text-muted); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 1rem; }
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-faint); text-align: center; letter-spacing: 0.04em; }

/* ─── Misc utilities ────────────────────────────────────── */
.notice-bar {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  background: rgba(201,169,110,0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.two-col-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid,
  .detail-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .card-grid,
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-highlights { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle-btn { display: inline-flex; }
  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(16,14,11,0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links a { padding: 0.55rem 0.25rem; }
  .cart-layout, .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1.5rem, 1200px); }
  .card-grid,
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-highlights { grid-template-columns: 1fr; }
  .two-col, .payment-grid, .grid-3, .grid-4, .filter-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item > :last-child { grid-column: 2; }
  .hero-section { padding: 3rem 0 2.5rem; }
  .auth-card { padding: 1.5rem; }
}

/* ─── Premium Order Page ────────────────────────────────── */

/* Animated ambient background */
.order-page {
  position: relative;
  padding: 3rem 0 5rem;
  min-height: calc(100vh - 180px);
  overflow: hidden;
}
.order-page::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.07) 0%, transparent 70%);
  animation: order-ambient-1 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.order-page::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.05) 0%, transparent 70%);
  animation: order-ambient-2 15s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes order-ambient-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.15); }
}
@keyframes order-ambient-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -5%) scale(1.2); }
}

/* Floating particles */
.order-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.order-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s ease-in-out infinite;
}
.order-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 9s; }
.order-particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 11s; }
.order-particle:nth-child(3) { left: 45%; animation-delay: 3s; animation-duration: 8s; }
.order-particle:nth-child(4) { left: 65%; animation-delay: 0.5s; animation-duration: 10s; }
.order-particle:nth-child(5) { left: 80%; animation-delay: 2s; animation-duration: 12s; }
.order-particle:nth-child(6) { left: 92%; animation-delay: 4s; animation-duration: 9s; }
@keyframes particle-float {
  0% { bottom: -5%; opacity: 0; transform: translateX(0) scale(0.5); }
  10% { opacity: 0.4; }
  50% { opacity: 0.2; transform: translateX(20px) scale(1); }
  90% { opacity: 0.3; }
  100% { bottom: 105%; opacity: 0; transform: translateX(-15px) scale(0.5); }
}

/* Progress steps */
.order-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}
.order-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}
.order-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.order-step-num::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.order-step.active .order-step-num {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(201,169,110,0.35), 0 0 60px rgba(201,169,110,0.12);
  transform: scale(1.08);
}
.order-step.active .order-step-num::before { opacity: 1; }
.order-step.completed .order-step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.order-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 0.4s ease;
}
.order-step.active .order-step-label { color: var(--gold); }
.order-step.completed .order-step-label { color: var(--success); }
.order-step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.order-step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.order-step-line.filled::after { transform: scaleX(1); }

/* Main layout */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Glass card */
.order-glass-card {
  background: rgba(33, 28, 23, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201,169,110,0.04);
  position: relative;
  overflow: hidden;
  animation: order-card-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.order-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
}
@keyframes order-card-appear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product preview card in sidebar */
.order-product-preview {
  animation-delay: 0.15s;
}
.order-product-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 1/1;
}
.order-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.order-product-img-wrap:hover img {
  transform: scale(1.05);
}
.order-product-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(33, 28, 23, 0.9));
  pointer-events: none;
}
.order-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  backdrop-filter: blur(12px);
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.4);
}
.order-product-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.order-product-info .order-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.order-product-info .order-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0.8rem 0;
}
.order-features {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.order-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.order-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Form section */
.order-form-section {
  animation-delay: 0.08s;
}
.order-form-section .eyebrow { margin-bottom: 0.75rem; }
.order-form-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.order-form-section .lead {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Enhanced form inputs */
.order-form .form-field {
  position: relative;
  margin-bottom: 1.2rem;
}
.order-form .form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.order-form .form-field:focus-within label {
  color: var(--gold);
}
.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: rgba(26, 22, 18, 0.6);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-size: 0.95rem;
}
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.08), 0 4px 16px rgba(201,169,110,0.06);
  background: rgba(26, 22, 18, 0.85);
}
.order-form textarea { min-height: 100px; resize: vertical; }
.order-form select { cursor: pointer; }
.order-form select option { background: var(--surface); }

.order-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Custom item rows */
.order-item-rows {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.order-item-row {
  display: grid;
  grid-template-columns: 1fr 80px 90px 40px;
  gap: 0.6rem;
  align-items: end;
  padding: 0.85rem 1rem;
  background: rgba(26, 22, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: item-row-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes item-row-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.order-item-row label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.3rem;
}
.order-item-row input,
.order-item-row select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.order-item-row input:focus,
.order-item-row select:focus { border-color: var(--gold); }
.order-remove-row {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,91,91,0.3);
  background: transparent;
  color: var(--error);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  align-self: end;
  margin-bottom: 2px;
}
.order-remove-row:hover {
  background: rgba(201,91,91,0.1);
  border-color: var(--error);
  transform: scale(1.1);
}

.order-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(201,169,110,0.2);
  background: transparent;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.order-add-btn:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.04);
  transform: translateY(-1px);
}

/* Submit button pulse */
.order-submit-btn {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.1rem 2rem;
  font-size: 1rem;
}
.order-submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.08) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

/* Order summary in sidebar */
.order-summary-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.order-summary-row:last-child {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
  color: var(--cream);
  font-weight: 600;
  font-size: 1.05rem;
}
.order-summary-row strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.order-summary-row:last-child strong {
  font-size: 1.5rem;
}

/* Trust badges */
.order-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.order-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(201,169,110,0.04);
  border: 1px solid var(--border);
  text-align: center;
}
.order-trust-badge span:first-child { font-size: 1.3rem; }
.order-trust-badge span:last-child {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1.3;
}

/* Success state */
.order-success-wrap {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  text-align: center;
}
.order-success-card {
  max-width: 520px;
  animation: order-card-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.order-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76,175,130,0.15), rgba(76,175,130,0.05));
  border: 2px solid var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
  animation: success-pulse 2s ease-in-out infinite;
}
@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,130,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(76,175,130,0); }
}

/* Responsive */
@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-product-preview { order: -1; }
  .order-progress { flex-wrap: wrap; gap: 0.5rem; }
  .order-step-line { width: 40px; }
}
@media (max-width: 640px) {
  .order-item-row { grid-template-columns: 1fr 1fr; }
  .order-item-row > :first-child { grid-column: 1 / -1; }
  .order-form-row { grid-template-columns: 1fr; }
  .order-trust { grid-template-columns: 1fr; }
}


/* ── Premium Auth Pages ────────────────────────────────────────────── */
.premium-auth-page {
  position: relative;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background: var(--bg);
}

.auth-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.15;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

.auth-glow-1 {
  width: 40vw;
  height: 40vw;
  background: var(--gold);
  top: -10%;
  left: -10%;
}

.auth-glow-2 {
  width: 35vw;
  height: 35vw;
  background: var(--gold-dark);
  bottom: -10%;
  right: -5%;
  animation-delay: -4s;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
}

.auth-premium-card {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
}

.auth-logo {
  margin: 0 auto 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.auth-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-input {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.premium-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(15, 15, 15, 0.8);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.premium-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.auth-submit {
  margin-top: 1rem;
  padding: 1.15rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  font-weight: 600;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: pulse-glow 1.5s infinite;
}

.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.auth-link:hover {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.auth-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 600px) {
  .auth-premium-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* glowing top accent */
.footer-glow {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  opacity: 0.5;
}

/* grid layout */
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
}

/* About column */
.footer-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.footer-brand-group h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin: 0;
}
.footer-about-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.15);
}

/* Column headings */
.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Footer link lists */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

/* Contact list */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-contact li svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
}
.footer-contact a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--gold);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-bottom-tagline {
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* ─── Footer responsive ────────────────────────────────── */
@media (max-width: 968px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }
  .footer-about {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
