/* ===== Design tokens ===== */
:root {
  --orange: #ff6a1a;
  --orange-soft: #ff8c42;
  --orange-deep: #e2540a;
  --ink: #0e0f13;
  --ink-2: #16181f;
  --panel: #1b1e27;
  --panel-2: #20242f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: #a2a7b4;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --glow: 0 0 40px rgba(255, 106, 26, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: 'Sora', sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.accent { color: var(--orange); }

/* ===== Cursor glow ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  z-index: 200;
  box-shadow: var(--glow);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Horizontal padding = the pill's side margin (the inset below) + inner padding
     so the logo/nav sit comfortably inside the floating capsule. */
  padding: 20px calc(clamp(14px, 4vw, 44px) + 28px);
  transition: padding 0.4s var(--ease);
}
/* Put the scrolled background/blur on a pseudo-element. If backdrop-filter sat on
   the header itself it would become a containing block for the fixed mobile menu,
   clipping it to the header height when scrolled. */
/* Liquid-glass material as a FLOATING ROUNDED PILL: the glass is inset from the
   header edges (the floating margin) and fully rounded, refracting what scrolls
   beneath it (blur + saturate + brightness), with specular edge highlights, inner
   depth and a soft cast shadow so the capsule reads as a pane of glass hovering
   over the page rather than an edge-to-edge frosted bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 12px clamp(14px, 4vw, 44px);
  z-index: -2;
  border-radius: 999px;
  background:
    /* faint warm pickup near the top, tying the glass to the brand */
    radial-gradient(140% 160% at 82% -70%, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0) 55%),
    /* light catching the top edge, falling off downward */
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0) 70%),
    /* the translucent glass body, a touch darker toward the bottom */
    linear-gradient(180deg, rgba(24, 26, 33, 0.5), rgba(11, 12, 16, 0.72));
  backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),     /* crisp top inner highlight (the glass edge) */
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),  /* refractive rim around the whole pill */
    inset 0 -10px 22px -14px rgba(0, 0, 0, 0.55), /* inner shadow giving the capsule thickness */
    0 18px 44px -18px rgba(0, 0, 0, 0.6),       /* soft cast shadow — the pill floats */
    0 4px 14px -8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
/* A glossy specular sweep across the top — the sheen of liquid glass. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 12px clamp(14px, 4vw, 44px);
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(55% 140% at 16% -50%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%),
    radial-gradient(45% 120% at 72% -40%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.site-header.scrolled::before,
.site-header.scrolled::after { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { color: var(--orange); display: grid; place-items: center; }
.brand-text { font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-logo { height: 38px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.25s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--orange); transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(255, 106, 26, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(255, 106, 26, 0.9); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ===== Cart button ===== */
.cart-btn {
  position: relative; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; transition: 0.25s var(--ease);
}
.cart-btn:hover { border-color: rgba(255, 106, 26, 0.5); color: var(--orange); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--ink);
  transition: transform 0.25s var(--ease);
}
.cart-count[data-empty="true"] { display: none; }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } 60% { transform: scale(0.85); } }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(255, 106, 26, 0.85);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(255, 106, 26, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255, 106, 26, 0.5); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px clamp(20px, 5vw, 64px) 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.blob-1 { width: 540px; height: 540px; background: radial-gradient(circle, var(--orange), transparent 70%); top: -120px; right: -80px; animation: drift1 16s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #ff9d5c, transparent 70%); bottom: -160px; left: -100px; opacity: 0.35; animation: drift2 20s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}
@keyframes drift1 { 50% { transform: translate(-40px, 50px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(50px, -30px) scale(1.15); } }

.hero-inner {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--orange);
  background: rgba(255, 106, 26, 0.1); border: 1px solid rgba(255, 106, 26, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5.5vw, 4.3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.gradient-text {
  background: linear-gradient(120deg, var(--orange), var(--orange-soft) 60%, #ffd0a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { color: var(--muted); font-size: 1.12rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats div[hidden] { display: none; }
.hero-stats strong { font-family: 'Sora', sans-serif; font-size: 1.9rem; color: var(--text); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); }

/* Hero visual / 3D printer */
.hero-visual { display: grid; place-items: center; perspective: 1000px; }
.float-card {
  position: relative; width: min(380px, 80vw); aspect-ratio: 1;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 106, 26, 0.12), transparent 60%);
  border-radius: var(--radius-lg);
}

/* 3D printer (front-view, animated) */
.printer { position: relative; width: 210px; height: 210px; }

/* Frame: two posts + a top crossbar (gantry portal) */
.printer-frame { position: absolute; inset: 0; }
.frame-post {
  position: absolute; bottom: 24px; width: 9px; height: 168px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.5), rgba(255, 106, 26, 0.18));
  border: 1px solid rgba(255, 140, 66, 0.55);
  box-shadow: inset 0 0 10px rgba(255, 106, 26, 0.2);
}
.frame-post.left  { left: 14px; }
.frame-post.right { right: 14px; }
.frame-top {
  position: absolute; top: 6px; left: 14px; right: 14px; height: 9px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.25), rgba(255, 140, 66, 0.5), rgba(255, 106, 26, 0.25));
  border: 1px solid rgba(255, 140, 66, 0.55);
}

/* Heated bed */
.printer-bed {
  position: absolute; left: 50%; bottom: 18px; width: 168px; height: 12px;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.3), rgba(255, 106, 26, 0.12));
  border: 1px solid rgba(255, 140, 66, 0.55);
  box-shadow: 0 6px 18px rgba(255, 106, 26, 0.22);
}

/* The object being printed — grows layer by layer */
.print-object {
  width: 66px; height: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 140, 66, 0.85) 0 3px,
    rgba(255, 106, 26, 0.6) 3px 6px
  );
  border-radius: 3px 3px 0 0;
  margin-bottom: 11px;
  animation: print-grow 6s ease-in-out infinite;
}
@keyframes print-grow {
  0%   { height: 0; }
  55%  { height: 96px; }
  70%  { height: 96px; }
  100% { height: 0; }
}


/* X-gantry beam carrying the print head — travels up the Z axis */
.printer-gantry {
  position: absolute; left: 14px; right: 14px; height: 14px;
  animation: gantry-rise 6s ease-in-out infinite;
}
@keyframes gantry-rise {
  0%   { bottom: 30px; }
  55%  { bottom: 126px; }
  70%  { bottom: 126px; }
  100% { bottom: 30px; }
}
.gantry-beam {
  position: absolute; left: 0; right: 0; top: 50%; height: 7px; transform: translateY(-50%);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 140, 66, 0.55), rgba(255, 106, 26, 0.3));
  border: 1px solid rgba(255, 140, 66, 0.5);
}

/* Print head sliding along the X axis */
.print-head {
  position: absolute; top: -3px; width: 26px; height: 26px;
  animation: head-travel 1.6s ease-in-out infinite;
}
@keyframes head-travel {
  0%, 100% { left: 4px; }
  50%      { left: calc(100% - 30px); }
}
.head-body {
  position: absolute; top: 0; left: 0; width: 26px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.7), rgba(255, 106, 26, 0.4));
  border: 1px solid rgba(255, 140, 66, 0.6);
  box-shadow: inset 0 0 8px rgba(255, 106, 26, 0.25);
}
.head-nozzle {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid var(--orange);
  filter: drop-shadow(0 0 4px rgba(255, 106, 26, 0.6));
}
.filament {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 66, 0.7));
}

.float-chip {
  position: absolute; background: var(--panel); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.chip-1 { top: 14%; left: -6%; animation: bob 5s ease-in-out infinite; }
.chip-2 { bottom: 16%; right: -4%; color: var(--orange); animation: bob 5s ease-in-out infinite 1.2s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; z-index: 2;
}
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--orange); border-radius: 2px; animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee-track span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; color: var(--muted); }
.marquee-track .dot { color: var(--orange); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Filter bar ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--muted);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: 0.25s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255, 106, 26, 0.4); }
.filter.active { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 8px 22px -10px rgba(255, 106, 26, 0.9); }

/* ===== Product grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d; will-change: transform;
}
.product-card:hover { border-color: rgba(255, 106, 26, 0.5); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media .obj {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.4rem;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .card-media .obj { transform: scale(1.12) rotate(-4deg); }
.card-media .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .card-media .card-img { transform: scale(1.07); }
.card-media .shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.product-card:hover .card-media .shine { transform: translateX(120%); }
.card-badge { position: absolute; top: 12px; left: 12px; background: rgba(14, 15, 19, 0.75); backdrop-filter: blur(6px); color: var(--orange); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-family: 'Sora', sans-serif; font-size: 1.12rem; margin-bottom: 4px; }
.card-body .cat { font-size: 0.8rem; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; }
.price small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.add-btn {
  background: rgba(255, 106, 26, 0.12); color: var(--orange); border: 1px solid rgba(255, 106, 26, 0.35);
  width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
  transition: 0.25s var(--ease);
}
.add-btn:hover { background: var(--orange); color: #fff; transform: rotate(90deg); }
.product-card.hide { display: none; }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; transition: 0.4s var(--ease); }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: rgba(255, 106, 26, 0.4); }
.step:hover::before { transform: scaleY(1); }
.step-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.4rem; color: rgba(255, 106, 26, 0.25); }
.step h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== Gallery ===== */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item { position: relative; break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-item .ph { width: 100%; aspect-ratio: calc(1 / var(--h, 1)); transition: transform 0.6s var(--ease), filter 0.6s; filter: saturate(0.9); }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease), filter 0.6s; filter: saturate(0.9); }
.gallery-item:hover .ph,
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.2); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px; font-size: 0.85rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-empty { color: var(--muted); padding: 8px 0; }
.ph-a { background: linear-gradient(135deg, #ff6a1a, #2a1a10); }
.ph-b { background: linear-gradient(135deg, #ff9d5c, #221a13); }
.ph-c { background: linear-gradient(135deg, #e2540a, #14161d); }
.ph-d { background: linear-gradient(135deg, #ffb27a, #1c130c); }
.ph-e { background: linear-gradient(135deg, #ff7a2f, #101218); }
.ph-f { background: linear-gradient(135deg, #ffcaa0, #20140c); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
/* When the stat card is hidden, drop to a single centered column. */
.about-grid.about-centered { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.about-grid.about-centered .about-visual { display: none; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.about-copy > p { color: var(--muted); margin-bottom: 22px; }
.about-list { list-style: none; margin-bottom: 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 30px; color: var(--text); }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 700; background: rgba(255, 106, 26, 0.12); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; }
.about-visual { display: grid; place-items: center; }
.stat-card { display: grid; place-items: center; gap: 18px; padding: 50px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(255, 106, 26, 0.14), var(--ink-2)); text-align: center; }
.stat-card[hidden] { display: none; }
.stat-ring {
  width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800;
  background: conic-gradient(var(--orange) 0 var(--p, 0deg), rgba(255, 255, 255, 0.07) 0);
  position: relative;
}
.stat-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--ink-2); }
.stat-ring span, .stat-ring small { position: relative; z-index: 1; }
.stat-ring small { font-size: 1.4rem; color: var(--orange); }
.stat-card p { color: var(--muted); }

/* ===== Contact ===== */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 60px);
  position: relative; overflow: hidden;
}
.contact-card::before { content: ""; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255, 106, 26, 0.3), transparent 70%); filter: blur(40px); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.contact-copy p { color: var(--muted); }
.contact-form { position: relative; z-index: 1; display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px 8px; color: var(--text); font-family: inherit; font-size: 1rem; resize: vertical; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15); }
.field label { position: absolute; left: 16px; top: 14px; color: var(--muted); font-size: 1rem; pointer-events: none; transition: 0.2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: 0.72rem; color: var(--orange);
}
.form-note { font-size: 0.9rem; color: var(--orange); min-height: 1.2em; }

/* Leading icons inside checkout fields */
.field-ic-wrap .field-ic {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
  display: flex; align-items: center; justify-content: center; transition: color 0.2s var(--ease);
}
.field-ic-wrap input,
.field-ic-wrap select { padding-left: 44px; }
.field-ic-wrap > label { left: 44px; }
.field-ic-wrap input:focus ~ .field-ic,
.field-ic-wrap select:focus ~ .field-ic { color: var(--orange); }

/* ===== Payment methods ===== */
.pay-methods { border: 0; padding: 0; margin: 4px 0 2px; min-width: 0; }
.pay-methods > legend {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 0; margin-bottom: 10px;
}
.pay-opt { display: block; cursor: pointer; margin-bottom: 10px; }
.pay-opt:last-of-type { margin-bottom: 0; }
.pay-opt > input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pay-opt:hover .pay-card { border-color: var(--muted); }
.pay-opt > input:checked ~ .pay-card { border-color: var(--orange); background: rgba(255, 106, 26, 0.06); }
.pay-opt > input:focus-visible ~ .pay-card { box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.25); }
.pay-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface, rgba(0, 0, 0, 0.04)); color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.pay-opt > input:checked ~ .pay-card .pay-ic { color: var(--orange); background: rgba(255, 106, 26, 0.12); }
.pay-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-text strong { font-size: 0.92rem; }
.pay-text small { font-size: 0.78rem; color: var(--muted); }
.pay-hint { margin: 10px 2px 0; font-size: 0.78rem; color: var(--muted); min-height: 1em; }
.dash-pay { flex-basis: 100%; font-size: 0.82rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 56px clamp(20px, 5vw, 64px) 26px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-text { font-size: 1.3rem; }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-brand p { color: var(--muted); margin-top: 8px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin: 0 0 2px; font-weight: 700; }
.footer-col a { color: var(--muted); transition: color 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--orange); }
.footer-contact .fc-ic { font-size: 0.95rem; }
.footer-bottom { max-width: 1240px; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.85rem; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(6, 7, 10, 0.6);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s var(--ease);
}
.cart-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--ink-2); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-header h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; }
.cart-close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color 0.2s, transform 0.2s; }
.cart-close:hover { color: var(--orange); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  animation: itemIn 0.35s var(--ease);
}
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }
.cart-item.removing { opacity: 0; transform: translateX(40px); transition: 0.3s var(--ease); }
.ci-thumb { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(145deg, rgba(255, 106, 26, 0.16), rgba(255, 106, 26, 0.04)); border: 1px solid var(--line); overflow: hidden; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { min-width: 0; }
.ci-info h4 { font-family: 'Sora', sans-serif; font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info .ci-meta { font-size: 0.78rem; color: var(--muted); }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-qty button {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; font-size: 1rem;
  line-height: 1; display: grid; place-items: center; transition: 0.2s;
}
.ci-qty button:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.ci-qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; }
.ci-remove { background: none; border: 0; color: var(--muted); font-size: 0.78rem; cursor: pointer; transition: color 0.2s; }
.ci-remove:hover { color: #ff5d5d; }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; color: var(--muted); }
.cart-empty-icon { font-size: 3rem; opacity: 0.7; }
.cart-empty[hidden] { display: none; }

.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cart-total span { color: var(--muted); }
.cart-total strong { font-family: 'Sora', sans-serif; font-size: 1.6rem; }
.cart-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; }

.add-btn.added { background: var(--orange); color: #fff; }

/* ===== Material picker (cart line) ===== */
.ci-mat { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 3px; max-width: 100%; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 9px; }
.ci-mat-opt {
  border: 0; background: none; color: var(--muted); font-size: 0.74rem; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; cursor: pointer; transition: 0.2s var(--ease); white-space: nowrap;
}
.ci-mat-opt:hover { color: var(--text); }
.ci-mat-opt.active { background: var(--orange); color: #fff; box-shadow: 0 4px 12px -4px rgba(255, 106, 26, 0.8); }
.cart-item { grid-template-columns: 56px 1fr auto; align-items: start; }
.ci-thumb { align-self: center; }
.ci-right { align-self: center; }

/* ===== Checkout modal ===== */
.checkout-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px; }
.checkout-modal[hidden] { display: none; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease); }
.checkout-modal.show .checkout-backdrop { opacity: 1; }
.checkout-card {
  position: relative; z-index: 1; width: min(880px, 100%); max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transform: translateY(24px) scale(0.98); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.checkout-modal.show .checkout-card { transform: none; opacity: 1; }
.checkout-x {
  position: absolute; top: 16px; right: 18px; z-index: 3; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 10px;
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: 0.2s;
}
.checkout-x:hover { color: var(--orange); transform: rotate(90deg); border-color: rgba(255, 106, 26, 0.5); }

.checkout-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; flex: 1; min-height: 0; }
.checkout-form { padding: clamp(26px, 4vw, 44px); overflow-y: auto; min-height: 0; }
.checkout-head { margin-bottom: 22px; }
.checkout-head h2 { font-size: 1.7rem; margin-top: 8px; }
.co-row { margin-bottom: 14px; }
.co-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.opt { color: var(--muted); font-weight: 400; }

.checkout-form .field select {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 16px 8px; color: var(--text); font-family: inherit; font-size: 1rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a2a7b4' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.checkout-form .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15); }
.checkout-form .field select option { background: #1b1e27; color: #f4f5f7; }
.checkout-form .field .select-label { top: 7px; font-size: 0.72rem; color: var(--muted); }
.checkout-form .field select:focus + .select-label { color: var(--orange); }

.checkout-back { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--muted); font-size: 0.9rem; cursor: pointer; transition: color 0.2s; }
.checkout-back:hover { color: var(--orange); }
#placeOrderBtn { margin-top: 8px; }

.checkout-summary {
  padding: clamp(26px, 4vw, 40px); background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; display: flex; flex-direction: column;
}
.checkout-summary h3 { font-family: 'Sora', sans-serif; font-size: 1.05rem; margin-bottom: 18px; }
.co-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.co-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; }
.co-item-thumb { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(145deg, rgba(255, 106, 26, 0.16), rgba(255, 106, 26, 0.04)); border: 1px solid var(--line); overflow: hidden; }
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item-info { display: flex; flex-direction: column; min-width: 0; }
.co-item-info strong { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-info small { color: var(--muted); font-size: 0.76rem; }
.co-item-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem; }
.co-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); border-top: 1px solid var(--line); }
.co-grand { color: var(--text); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; margin-top: 2px; }
.co-grand span:last-child { color: var(--orange); }
.co-fineprint { margin-top: 16px; font-size: 0.76rem; color: var(--muted); }

/* ===== Order confirmation popup (its own modal) ===== */
.confirm-modal { position: fixed; inset: 0; z-index: 185; display: grid; place-items: center; padding: 20px; }
.confirm-modal[hidden] { display: none; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease); }
.confirm-modal.show .confirm-backdrop { opacity: 1; }
.confirm-card {
  position: relative; z-index: 1; width: min(440px, 100%); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 52px); box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.97); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.confirm-modal.show .confirm-card { transform: none; opacity: 1; }
.done-check {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); box-shadow: var(--glow); margin-bottom: 8px;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.confirm-card h2 { font-size: 1.7rem; }
.done-num { color: var(--muted); }
.done-num strong { color: var(--orange); }
.done-msg { color: var(--muted); max-width: 420px; }
.confirm-card .btn { margin-top: 10px; }

@media (max-width: 720px) {
  /* On phones, scroll the whole card as one piece instead of nested scroll areas
     (nested scrolling hid the city/state/zip fields and the Place order button). */
  .checkout-card { max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: block; }
  .checkout-grid { grid-template-columns: 1fr; max-height: none; flex: none; min-height: 0; }
  .checkout-form, .checkout-summary { overflow: visible; max-height: none; }
  .checkout-summary { border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .co-3 { grid-template-columns: 1fr 1fr; }
  .co-3 .field:first-child { grid-column: 1 / -1; }
  /* Keep the close button reachable while the card scrolls. */
  .checkout-x { position: fixed; top: 24px; right: 24px; }
}

/* ===== Admin: footer trigger ===== */
.footer-admin {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0;
  color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer; transition: color 0.25s;
}
.footer-admin:hover { color: var(--orange); }

/* ===== Admin: sign-in modal ===== */
.admin-modal { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 20px; }
.admin-modal[hidden] { display: none; }
.admin-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.74); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease); }
.admin-modal.show .admin-backdrop { opacity: 1; }
.admin-login-card {
  position: relative; z-index: 1; width: min(400px, 100%); text-align: center;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 44px); box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.admin-modal.show .admin-login-card { transform: none; opacity: 1; }
.admin-lock {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; margin-bottom: 14px;
  color: var(--orange); background: rgba(255, 106, 26, 0.12); border: 1px solid rgba(255, 106, 26, 0.3);
}
.admin-login-card h2 { font-size: 1.5rem; }
.admin-sub { color: var(--muted); margin-bottom: 22px; }
.admin-login-card form { display: grid; gap: 14px; text-align: left; }
.admin-login-card .field label { font-size: 1rem; }
.admin-hint { margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.admin-hint code { color: var(--orange); background: rgba(255, 106, 26, 0.1); padding: 2px 7px; border-radius: 6px; font-size: 0.82rem; }

/* ===== Admin: dashboard ===== */
.admin-dash { position: fixed; inset: 0; z-index: 195; background: var(--ink); overflow-y: auto; opacity: 0; transition: opacity 0.35s var(--ease); }
.admin-dash[hidden] { display: none; }
.admin-dash.show { opacity: 1; }
.dash-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px); background: rgba(14, 15, 19, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.dash-brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; }
.dash-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); background: rgba(255, 106, 26, 0.12); padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.dash-actions { display: flex; align-items: center; gap: 16px; }
.dash-user { color: var(--muted); font-size: 0.9rem; }
.dash-logout { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: 0.25s var(--ease); }
.dash-logout:hover { border-color: rgba(255, 106, 26, 0.5); color: var(--orange); }

.dash-body { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 48px) 80px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-tile { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 800; }
.stat-lbl { color: var(--muted); font-size: 0.85rem; }

.dash-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.dash-tab {
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 1rem;
  padding: 12px 6px; margin-right: 14px; cursor: pointer; position: relative; transition: color 0.25s;
}
.dash-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.dash-tab:hover { color: var(--text); }
.dash-tab.active { color: var(--text); }
.dash-tab.active::after { transform: scaleX(1); }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; background: rgba(255, 106, 26, 0.15); color: var(--orange); font-size: 0.75rem; font-weight: 700; border-radius: 999px; }

.dash-panel { display: grid; gap: 16px; }
.dash-panel[hidden] { display: none; }
.dash-empty { padding: 50px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.dash-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; animation: itemIn 0.35s var(--ease); }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-card-head strong { font-family: 'Sora', sans-serif; font-size: 1.05rem; }
.dash-date { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.status-badge { font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.st-new { background: rgba(255, 106, 26, 0.15); color: var(--orange); }
.st-in-production { background: rgba(86, 156, 255, 0.16); color: #7fb2ff; }
.st-shipped { background: rgba(168, 130, 255, 0.16); color: #c0a6ff; }
.st-completed { background: rgba(80, 200, 130, 0.16); color: #67d699; }

.dash-cust { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.dash-cust a { color: var(--orange); }
.dash-cust > span:first-child { color: var(--text); font-weight: 600; }
.dash-addr { flex-basis: 100%; }
.dash-items { list-style: none; display: grid; gap: 6px; margin: 0 0 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dash-items li { display: flex; justify-content: space-between; font-size: 0.9rem; }
.dash-items li span:last-child { font-family: 'Sora', sans-serif; font-weight: 600; }
.dash-msg { color: var(--text); margin-bottom: 14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; }

.dash-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-total { color: var(--muted); font-size: 0.9rem; }
.dash-total strong { color: var(--text); }
.dash-controls { display: flex; align-items: center; gap: 10px; }
.dash-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.dash-status select { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.dash-status select option { background: #1b1e27; color: #f4f5f7; }
.dash-mark, .dash-del { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); padding: 7px 13px; border-radius: 9px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.dash-mark:hover { color: var(--orange); border-color: rgba(255, 106, 26, 0.5); }
.dash-del:hover { color: #ff5d5d; border-color: rgba(255, 93, 93, 0.5); }

@media (max-width: 560px) {
  .dash-actions { gap: 10px; }
  .dash-user { display: none; }
  .dash-card-foot { flex-direction: column; align-items: stretch; }
  .dash-controls { justify-content: space-between; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.05s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    background: rgba(14, 15, 19, 0.96); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.4s var(--ease); border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; }
  .menu-toggle { display: flex; z-index: 101; }
}
@media (max-width: 540px) {
  .gallery-grid { columns: 1; }
  .hero-stats { flex-wrap: wrap; gap: 18px 30px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* clickable product cards + empty state */
.product-card { cursor: pointer; }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 0; }

/* ===================== PRODUCT DETAIL PAGE ===================== */
.product-page { position: fixed; inset: 0; z-index: 140; background: var(--ink); overflow-y: auto; }
.product-page[hidden] { display: none; }
.pp-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(14, 15, 19, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.pp-back {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text);
  padding: 9px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  transition: 0.25s var(--ease);
}
.pp-back:hover { border-color: rgba(255, 106, 26, 0.5); color: var(--orange); transform: translateY(-2px); }
.pp-brand { text-decoration: none; }
.pp-body { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px) 80px; }
.pp-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.pp-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0.02));
}
.pp-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-media .obj { position: absolute; inset: 0; display: grid; place-items: center; font-size: 7rem; }
.pp-gallery { position: sticky; top: 88px; }
.pp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pp-thumb {
  width: 72px; height: 72px; flex: none; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: none; transition: border-color 0.2s var(--ease);
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { border-color: rgba(255, 106, 26, 0.5); }
.pp-thumb.active { border-color: var(--orange); }
.pp-cat { color: var(--orange); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-info h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 14px; line-height: 1.1; }
.pp-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.7rem; }
.pp-price small { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.pp-desc { color: var(--muted); line-height: 1.75; margin: 20px 0 24px; white-space: pre-wrap; }
.pp-mat-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.pp-mats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pp-mat-opt {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: 0.2s var(--ease);
}
.pp-mat-opt:hover { border-color: rgba(255, 106, 26, 0.45); }
.pp-mat-opt.active { background: rgba(255, 106, 26, 0.14); border-color: var(--orange); color: var(--orange); }
.pp-buy { display: flex; gap: 12px; flex-wrap: wrap; }
.pp-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.pp-meta span::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 8px; }
@media (max-width: 760px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-gallery { position: static; }
  .pp-brand { display: none; }
}

/* ===================== LEGAL PAGES (Terms / Refund) ===================== */
.legal-page { position: fixed; inset: 0; z-index: 145; background: var(--ink); overflow-y: auto; }
.legal-page[hidden] { display: none; }
.legal-top-spacer { width: 90px; }
.legal-body { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 48px) 96px; }
.legal-article h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; margin: 0 0 24px; }
.legal-content { color: var(--muted); line-height: 1.85; font-size: 1.02rem; }
.legal-content p { margin: 0 0 18px; }
.legal-content p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .legal-top-spacer { display: none; } }

/* ===================== ADMIN: PAGES PANEL (legal editor) ===================== */
.pages-head h3 { font-family: 'Sora', sans-serif; font-size: 1.3rem; margin: 0 0 6px; }
.pages-head p { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; max-width: 640px; }
.legal-edit {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px clamp(16px, 3vw, 24px); display: grid; gap: 14px;
}
.legal-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legal-edit-head h4 { font-family: 'Sora', sans-serif; font-size: 1.05rem; margin: 0; }
.legal-edit-view { color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.legal-edit-view:hover { color: var(--orange); }
.legal-textarea {
  width: 100%; min-height: 220px; resize: vertical; background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; line-height: 1.6;
}
.legal-textarea:focus { outline: none; border-color: var(--orange); }
.legal-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-note.ok { color: #57d98a; }
.form-note.err { color: #ff7676; }

/* Order-confirmation email editor */
.email-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.email-form { display: grid; gap: 14px; }
.email-hint { color: var(--muted); font-size: 0.82rem; margin: -4px 0 4px; line-height: 1.5; }
.email-hint code { background: rgba(255, 255, 255, 0.06); border-radius: 5px; padding: 1px 6px; color: var(--orange-soft); font-size: 0.85em; }
.email-row { display: flex; gap: 12px; flex-wrap: wrap; }
.email-row .field { flex: 1 1 200px; }
.email-color { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9rem; }
.email-color input[type="color"] { width: 46px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.email-color-hint { color: var(--muted); font-size: 0.78rem; }
.email-colors { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.email-color-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.email-grad-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 0.85rem; cursor: pointer; }
.email-grad-fields { display: inline-flex; align-items: center; gap: 10px; }
.email-angle { background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.email-presets { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 10px; }
.email-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 0.85rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.email-preset-list { display: flex; flex-wrap: wrap; gap: 10px; }
.email-preset-empty { color: var(--muted); font-size: 0.82rem; }
.email-preset { position: relative; display: inline-block; cursor: pointer; }
.email-preset-swatch {
  display: block; width: 46px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform 0.15s;
}
.email-preset:hover .email-preset-swatch { transform: translateY(-2px); border-color: rgba(255, 106, 26, 0.6); }
.email-preset-swatch i { position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.85); }
.email-preset-del {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); color: var(--text);
  font-size: 13px; cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.15s;
}
.email-preset:hover .email-preset-del { opacity: 1; }
.email-toggles { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.email-toggles legend { color: var(--muted); font-size: 0.8rem; padding: 0 6px; }
.email-toggles label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9rem; }
.email-advanced-toggle { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9rem; margin-top: 4px; cursor: pointer; }
.email-code { min-height: 260px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 0.82rem; line-height: 1.5; }
.email-ph { display: block; margin-top: 4px; color: var(--orange-soft); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.78rem; word-spacing: 4px; }
.email-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.email-test { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.email-test .field { flex: 1 1 220px; margin: 0; }
.email-preview { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f3efe9; }
.email-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px 14px; color: var(--text); font-size: 0.85rem;
}
.email-preview-subj { color: var(--muted); font-size: 0.78rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.email-preview iframe { display: block; width: 100%; height: 640px; border: 0; background: #f3efe9; }
@media (max-width: 860px) {
  .email-edit { grid-template-columns: 1fr; }
  .email-preview { position: static; }
  .email-preview iframe { height: 520px; }
}

/* Homepage statistics editor */
.stats-edit {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px clamp(16px, 3vw, 24px); display: grid; gap: 16px;
}
.stat-edit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stat-edit-row .field { flex: 1 1 260px; margin: 0; }
.stat-show {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  color: var(--muted); font-size: 0.9rem; font-weight: 600; white-space: nowrap; user-select: none;
}
.stat-show input { width: 17px; height: 17px; accent-color: var(--orange); cursor: pointer; }

/* ===================== ADMIN: PRODUCTS PANEL ===================== */
.dash-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-panel-bar p { color: var(--muted); font-size: 0.9rem; }
.dash-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bulkmat-intro { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 20px; }
.bulkmat-intro strong { color: var(--text); }
.prod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prod-admin-card {
  display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.prod-admin-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(145deg, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0.02)); overflow: hidden; }
.prod-admin-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-admin-media .obj { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.prod-admin-media .no-img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.prod-admin-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-admin-body h4 { font-family: 'Sora', sans-serif; font-size: 1.02rem; }
.prod-admin-body .pa-meta { color: var(--muted); font-size: 0.82rem; }
.prod-admin-body .pa-price { font-weight: 700; margin-top: 2px; }
.prod-admin-foot { display: flex; gap: 8px; padding: 0 16px 16px; }
.prod-admin-foot button {
  flex: 1; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); transition: 0.2s var(--ease);
}
.prod-admin-foot .pa-edit:hover { border-color: rgba(255, 106, 26, 0.5); color: var(--orange); }
.prod-admin-foot .pa-del:hover { border-color: rgba(255, 80, 80, 0.5); color: #ff7676; }

/* ===================== ADMIN: PRODUCT EDITOR MODAL ===================== */
.prod-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.prod-modal[hidden] { display: none; }
.prod-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease); }
.prod-modal.show .prod-backdrop { opacity: 1; }
.prod-card {
  position: relative; z-index: 1; width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.prod-modal.show .prod-card { transform: none; opacity: 1; }
.prod-card h2 { font-family: 'Sora', sans-serif; font-size: 1.35rem; margin-bottom: 20px; }
.prod-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prod-card .field { margin-bottom: 14px; }
.prod-card select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 14px 14px; border-radius: 12px; font: inherit;
}
.prod-card select option { background: #1b1e27; color: #f4f5f7; }
.prod-image { display: flex; gap: 16px; align-items: center; margin: 6px 0 16px; }
.prod-thumb {
  width: 92px; height: 92px; flex: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 106, 26, 0.14), rgba(255, 106, 26, 0.02));
  display: grid; place-items: center; color: var(--muted); font-size: 0.75rem; text-align: center;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-image-controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.prod-image-hint { color: var(--muted); font-size: 0.78rem; }

/* Multi-image uploader (product editor) */
.prod-images { margin: 6px 0 14px; }
.prod-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin-bottom: 12px; }
.prod-images-empty { color: var(--muted); font-size: 0.82rem; padding: 6px 0; }
.pi-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.pi-cell img { width: 100%; height: 100%; object-fit: cover; }
.pi-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1rem; line-height: 1;
  display: grid; place-items: center;
}
.pi-del:hover { background: #d23b3b; }
.pi-badge {
  position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 8px;
  background: var(--orange); color: #1a0d04; font-size: 0.68rem; font-weight: 700;
}
.pi-main {
  position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 8px; cursor: pointer;
  border: none; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.68rem; font-weight: 600;
}
.pi-main:hover { background: rgba(255, 106, 26, 0.9); color: #1a0d04; }
.prod-image-count { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-textlink { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0; }
.btn-textlink:hover { color: #ff7676; }
.prod-actions { display: flex; gap: 12px; margin-top: 6px; }
.prod-actions .btn { flex: 1; }

/* Variants editor (product editor) */
.prod-variants { margin: 4px 0 16px; }
.prod-variants-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pv-title { font-weight: 600; color: var(--text); }
.pv-opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.prod-variants-list { display: flex; flex-direction: column; gap: 8px; }
.pv-row { display: flex; gap: 8px; align-items: center; }
.pv-row .pv-label {
  flex: 1 1 auto; min-width: 0; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: 10px; font: inherit;
}
.pv-delta-wrap { position: relative; flex: 0 0 120px; }
.pv-delta-wrap .pv-delta {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 11px 44px 11px 12px; border-radius: 10px; font: inherit;
}
.pv-delta-cur { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.8rem; pointer-events: none; }
.pv-del {
  flex: none; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.pv-del:hover { border-color: #d23b3b; color: #ff7676; }

/* Variant picker in the cart sits above the material picker */
.ci-var { margin-bottom: 4px; flex-wrap: wrap; }

/* ===== Filament color swatch pickers ===== */
.sw {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
/* Cart color picker */
.ci-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ci-color-opt {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--muted);
  font-size: 0.72rem; font-weight: 600; padding: 3px 9px 3px 6px; border-radius: 999px; transition: 0.2s var(--ease);
}
.ci-color-opt:hover { color: var(--text); }
.ci-color-opt.active { border-color: var(--orange); color: var(--orange); background: rgba(255, 106, 26, 0.12); }
.ci-color-opt .sw-name { white-space: nowrap; }
/* Product page color picker */
.pp-colors { gap: 8px; }
.pp-color-opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text);
  font-size: 0.82rem; font-weight: 600; padding: 7px 14px 7px 10px; border-radius: 999px; transition: 0.2s var(--ease);
}
.pp-color-opt:hover { border-color: rgba(255, 106, 26, 0.45); }
.pp-color-opt.active { background: rgba(255, 106, 26, 0.14); border-color: var(--orange); color: var(--orange); }
.pp-color-opt .sw { width: 16px; height: 16px; }

/* ===== Material rows with a nested color editor (admin) ===== */
.pm-row {
  display: flex; flex-direction: column; gap: 10px; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02);
}
.pm-main { display: flex; gap: 8px; align-items: center; }
.pm-main .pv-label {
  flex: 1 1 auto; min-width: 0; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: 10px; font: inherit;
}
.pm-colors { display: flex; flex-direction: column; gap: 8px; padding-left: 2px; }
.pmc-list { display: flex; flex-direction: column; gap: 6px; }
.pmc-row { display: flex; gap: 8px; align-items: center; }
.pmc-hex {
  flex: none; width: 40px; height: 38px; padding: 2px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--ink);
}
.pmc-name {
  flex: 1 1 auto; min-width: 0; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 9px 12px; border-radius: 10px; font: inherit;
}
.pmc-add { align-self: flex-start; }
.pmc-save {
  flex: none; width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font-size: 0.95rem; line-height: 1; display: grid; place-items: center; transition: 0.2s var(--ease);
}
.pmc-save:hover { border-color: var(--orange); color: var(--orange); }

/* Saved-color palette chips inside a material */
.pmc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.pmc-presets-label { font-size: 0.72rem; color: var(--muted); margin-right: 2px; }
.pmc-chip {
  display: inline-flex; align-items: center; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 999px;
}
.pmc-chip-apply {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 0.74rem; font-weight: 600; padding: 4px 4px 4px 8px;
}
.pmc-chip-apply:hover { color: var(--orange); }
.pmc-chip-name { white-space: nowrap; }
.pmc-chip-x {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 0.95rem; line-height: 1; padding: 4px 8px 4px 4px;
}
.pmc-chip-x:hover { color: #ff7676; }

/* ===== Visual editor (admin inline editing) ===== */
.dash-edit-site, .dash-view-site {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); transition: all 0.2s var(--ease);
}
.dash-edit-site { background: var(--orange); color: #1a0d04; border-color: transparent; }
.dash-edit-site:hover { background: var(--orange-soft); transform: translateY(-1px); }
.dash-view-site { color: var(--muted); }
.dash-view-site:hover { color: var(--text); border-color: rgba(255, 106, 26, 0.5); }

/* Editor toolbar */
.se-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 52px; display: flex; align-items: center; gap: 18px;
  padding: 0 18px; background: #0b0c10; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.8);
  font-family: 'Inter', sans-serif; color: var(--text);
}
.se-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.se-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: sePulse 1.8s ease-in-out infinite; }
@keyframes sePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.se-nav { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.se-select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 0.85rem; cursor: pointer;
}
.se-status { font-size: 0.84rem; color: var(--muted); margin-left: auto; transition: color 0.2s var(--ease); }
.se-status.se-ok { color: #57d98a; }
.se-status.se-err { color: #ff7676; }
.se-view {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--orange); color: #1a0d04; font-weight: 700; font-size: 0.85rem; text-decoration: none;
  white-space: nowrap; transition: all 0.2s var(--ease);
}
.se-view:hover { background: var(--orange-soft); transform: translateY(-1px); }
.se-tool {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.se-tool:hover { border-color: rgba(255, 106, 26, 0.6); }
.se-tool.is-active { background: rgba(255, 106, 26, 0.14); border-color: var(--orange); color: var(--orange); }

/* Sections panel (reorder + show/hide) */
.se-sections {
  position: fixed; top: 60px; left: 18px; z-index: 1001; width: 300px; max-width: calc(100vw - 36px);
  background: #0b0c10; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.85);
  font-family: 'Inter', sans-serif; color: var(--text);
}
.se-sec-head { font-weight: 700; font-size: 0.95rem; }
.se-sec-sub { font-size: 0.76rem; color: var(--muted); margin: 3px 0 10px; line-height: 1.4; }
.se-sec-foot { font-size: 0.72rem; color: var(--muted); margin-top: 10px; }
.se-sec-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); margin-bottom: 6px;
}
.se-sec-row.is-hidden { opacity: 0.6; }
.se-sec-name { font-size: 0.86rem; font-weight: 600; flex: 1; }
.se-sec-acts { display: inline-flex; align-items: center; gap: 4px; }
.se-sec-btn {
  background: #0b0c10; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 7px; font-size: 0.76rem; font-weight: 600; cursor: pointer; line-height: 1;
  transition: all 0.15s var(--ease);
}
.se-sec-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.se-sec-btn:disabled { opacity: 0.3; cursor: default; }
.se-sec-vis { min-width: 78px; }

/* Section visibility states driven by the layout */
.se-section-hidden { display: none !important; }
.se-marked-hidden { outline: 2px dashed rgba(255, 106, 26, 0.55); outline-offset: -6px; opacity: 0.5; }

/* Push the page down so the toolbar doesn't cover the fixed header */
body.se-editing { padding-top: 52px; }
body.se-editing .site-header { top: 52px; }

/* Editable element affordances */
.se-editable {
  outline: 1.5px dashed rgba(255, 106, 26, 0.45); outline-offset: 4px;
  border-radius: 4px; cursor: text; transition: outline-color 0.15s var(--ease), background 0.15s var(--ease);
}
.se-editable:hover { outline-color: var(--orange); background: rgba(255, 106, 26, 0.06); }
.se-editable:focus { outline: 2px solid var(--orange); background: rgba(255, 106, 26, 0.08); }

/* Floating per-element control bar (align / size / move / reset) */
.se-ctrls {
  position: absolute; z-index: 1002; display: inline-flex; align-items: center; gap: 2px;
  background: #0b0c10; border: 1px solid var(--line); border-radius: 9px; padding: 4px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.85);
}
.se-c {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px;
  padding: 0 6px; background: transparent; color: var(--text); border: none; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; line-height: 1; transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.se-c:hover:not(:disabled) { background: rgba(255, 106, 26, 0.16); color: var(--orange); }
.se-c.is-on { background: var(--orange); color: #1a0d04; }
.se-c:disabled { opacity: 0.3; cursor: default; }
.se-c-reset { color: var(--muted); }
.se-c-div { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }

@media (max-width: 720px) {
  .se-nav span, .se-brand { display: none; }
  .se-bar { gap: 10px; padding: 0 10px; }
  .se-tool { padding: 7px 9px; }
  .se-sections { left: 10px; right: 10px; width: auto; }
  .dash-view-site { display: none; }
}

/* =============================================================================
 * Bilingual: language toggle + Arabic / RTL theme
 * ========================================================================== */
.lang-toggle {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text);
  font-family: 'Cairo', 'Sora', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-toggle:hover { color: var(--orange); border-color: rgba(255, 106, 26, 0.5); background: rgba(255, 106, 26, 0.08); }
.lang-toggle-mobile { display: none; }
@media (max-width: 720px) {
  .nav .lang-toggle { display: none; }       /* it would sit inside the drawer; use the header one */
  .lang-toggle-mobile { display: inline-flex; align-items: center; }
}

/* Professional Arabic typeface across the whole UI when in Arabic. */
html[dir="rtl"] * { font-family: 'Cairo', 'Inter', sans-serif !important; }

/* Mirror directional details for right-to-left reading. */
[dir="rtl"] .dir-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .nav a:not(.nav-cta)::after { left: auto; right: 0; }
[dir="rtl"] .about-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .about-list li::before { left: auto; right: 0; }

/* Checkout / form fields */
[dir="rtl"] .field label { left: auto; right: 16px; }
[dir="rtl"] .field-ic-wrap .field-ic { left: auto; right: 15px; }
[dir="rtl"] .field-ic-wrap input,
[dir="rtl"] .field-ic-wrap select { padding-left: 16px; padding-right: 44px; }
[dir="rtl"] .field-ic-wrap > label { left: auto; right: 44px; }
[dir="rtl"] .checkout-form .field select { background-position: left 16px center; }
[dir="rtl"] .checkout-summary { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 720px) {
  [dir="rtl"] .checkout-summary { border-right: 0; border-top: 1px solid var(--line); }
}

/* Cart line material/colour pickers and price rows keep tidy in RTL. */
[dir="rtl"] .cart-item { grid-template-columns: 56px 1fr auto; }
/* Admin product editor: Arabic (bilingual) section */
.prod-i18n { margin: 8px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.prod-i18n .field { margin-top: 12px; }
.prod-i18n input, .prod-i18n textarea { font-family: 'Cairo', 'Inter', sans-serif; }
.prod-image-hint.ok { color: #57d98a; }
.prod-image-hint.err { color: #ff7676; }
