/* =========================================================================
   Jubba3D — Global Stylesheet
   -------------------------------------------------------------------------
   A bold, flashy design system for a premium 3D printing brand.
   Organised into:
     1.  Design tokens (CSS custom properties)
     2.  Resets & base elements
     3.  Layout utilities
     4.  Typography
     5.  Buttons & badges
     6.  Header / navigation
     7.  Footer
     8.  Hero
     9.  Product cards & grids
     10. Forms & custom controls (colour picker, uploads)
     11. Builder / fidget preview surfaces
     12. Basket / checkout
     13. Page-specific helpers (FAQ, info pages)
     14. Animations
     15. Responsive breakpoints
   ========================================================================= */

/* 1. ---------------------------------------------------------------- TOKENS */
:root {
  /* Brand palette */
  --black:        #07070a;
  --charcoal:     #101015;
  --charcoal-2:   #16161d;
  --surface:      #1c1c26;
  --surface-2:    #24242f;
  --line:         #2c2c39;

  --red:          #ff1a5c;   /* hot pink       */
  --blue:         #2de2ff;   /* electric blue  */
  --yellow:       #ffe14d;   /* bright yellow  */
  --pink:         #ff1a5c;   /* brand pink     */
  --white:        #ffffff;
  --grey:         #9aa3b2;   /* metallic grey  */
  --grey-2:       #c9ced8;

  /* Functional colours */
  --bg:           var(--black);
  --text:         #eef0f5;
  --text-dim:     #a7adbb;
  --accent:       var(--red);

  /* Signature gradients */
  --grad-brand:   linear-gradient(120deg, #ff1a5c 0%, #ff4d7a 45%, #ff7a9e 100%);
  --grad-cool:    linear-gradient(120deg, var(--blue) 0%, #6a7bff 100%);
  --grad-punk:    linear-gradient(120deg, #ff1a5c, #ff4d7a);

  /* Typography */
  --font-display: "Space Grotesk", "Archivo", system-ui, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / radius / shadow */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    26px;
  --shadow:       0 18px 50px -20px rgba(0,0,0,.8);
  --shadow-glow:  0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -28px rgba(255,26,92,.55);
  --maxw:         1240px;
  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* 2. ----------------------------------------------------------- RESET/BASE */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle textured glow backdrop so the dark theme never looks flat */
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(255,26,92,.18), transparent 60%),
    radial-gradient(800px 520px at 98% 4%, rgba(255,26,92,.10), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(45,226,255,.07), transparent 60%);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Visually-hidden helper for accessible labels */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: #000; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 3. -------------------------------------------------------------- LAYOUT */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding-block: clamp(48px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}
.eyebrow--red { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.eyebrow--yellow { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 40%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* 4. ---------------------------------------------------------- TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }

.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 700; line-height: .98; letter-spacing: -.02em;
  text-transform: uppercase;
}
h2.title { font-size: clamp(1.9rem, 4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); }
.muted { color: var(--text-dim); }
.tiny { font-size: .82rem; }

/* Gradient / outline text treatments */
.grad-text  { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cool-text  { background: var(--grad-cool);  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stroke-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
  text-stroke: 2px var(--white);
}

/* 5. ----------------------------------------------------- BUTTONS / BADGES */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  letter-spacing: .02em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--text);
  border: 1px solid var(--line);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), filter .25s var(--ease);
  position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(255,26,92,.7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255,26,92,.85); filter: brightness(1.05); }

.btn--blue {
  background: var(--grad-cool); color: #00131a; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(45,226,255,.6);
}
.btn--blue:hover { box-shadow: 0 16px 40px -10px rgba(45,226,255,.8); }

.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--white); }

.btn--yellow { background: var(--yellow); color: #1a1500; border-color: transparent; }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

/* Badge chips used on product cards / detail */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14); color: var(--white);
}
.badge--order   { color: var(--blue);   border-color: color-mix(in srgb, var(--blue) 50%, transparent); }
.badge--multi   { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 50%, transparent); }
.badge--custom  { color: var(--red);    border-color: color-mix(in srgb, var(--red) 50%, transparent); }
.badge--fav     { background: var(--grad-brand); color: #190000; border-color: transparent; }
.badge--premium { background: var(--grad-cool); color: #001016; border-color: transparent; }
.badge--lead    { color: var(--grey-2); }

/* 6. ------------------------------------------------------ HEADER / NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--black) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { background: color-mix(in srgb, var(--black) 92%, transparent); }

.nav { display: flex; align-items: center; gap: 18px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 10px rgba(255,26,92,.5)); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand__name small { display: block; font-size: .56rem; letter-spacing: .42em; color: var(--pink); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: var(--surface); }

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

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--grad-brand); color: #190000; font-size: .72rem; font-weight: 800;
  box-shadow: 0 0 0 2px var(--black);
}
.cart-count[data-count="0"] { display: none; }

.nav__toggle { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: color-mix(in srgb, var(--black) 96%, transparent); backdrop-filter: blur(8px);
  padding: 90px 24px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px 8px; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; border-bottom: 1px solid var(--line); }

/* 7. ------------------------------------------------------------- FOOTER */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding-block: 60px 30px; }
.footer-grid h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.footer-grid a { display: block; padding: 6px 0; color: var(--text-dim); transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .85rem; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 14px; }
.footer-newsletter input { flex: 1; }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-bar .trust { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.trust strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: .92rem; }
.trust span { font-size: .82rem; color: var(--text-dim); }

/* 8. --------------------------------------------------------------- HERO */
.hero { position: relative; padding-block: clamp(50px, 9vw, 120px) clamp(40px,6vw,90px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero__title { margin: 18px 0 22px; }
.hero__title .line { display: block; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hero__stats .stat strong { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.hero__stats .stat span { color: var(--text-dim); font-size: .85rem; }

/* Animated printer / product visual */
.hero__visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.hero__orb {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff1a5c, #ff4d7a, #2de2ff, #ff1a5c);
  filter: blur(46px); opacity: .55; animation: spin 14s linear infinite;
}
.hero__card-float {
  position: relative; width: 78%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--charcoal));
  border: 1px solid var(--line); box-shadow: var(--shadow-glow);
  display: grid; place-items: center; overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.hero__card-float svg { width: 70%; }
.hero__chip {
  position: absolute; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--charcoal) 85%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.hero__chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero__chip--1 { top: 8%; right: -2%; animation: float 5s ease-in-out infinite; }
.hero__chip--2 { bottom: 12%; left: -4%; animation: float 7s ease-in-out infinite .4s; }
.hero__chip--3 { bottom: 38%; right: -6%; animation: float 6.4s ease-in-out infinite .8s; }

/* Marquee strip */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--charcoal); padding: 16px 0; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .04em; color: var(--grey); display: inline-flex; align-items: center; gap: 40px; }
.marquee__track .star { color: var(--red); }

/* 9. ------------------------------------------------- PRODUCT CARDS / GRID */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.card {
  position: relative; background: linear-gradient(165deg, var(--surface-2), var(--charcoal-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--blue) 60%, transparent); box-shadow: var(--shadow-glow); }

/* Glossy 3D-style product media */
.card__media {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(160deg, var(--surface), var(--charcoal));
}
.card__media::after { /* gloss sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.card:hover .card__media::after { transform: translateX(120%); }
.card__media svg, .card__media img { width: 64%; height: 64%; object-fit: contain; transition: transform .4s var(--ease); }
.card:hover .card__media svg, .card:hover .card__media img { transform: scale(1.08) rotate(-2deg); }

.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 80%; z-index: 2; }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; }

.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.card__title { font-size: 1.08rem; }
.card__title a:hover { color: var(--blue); }
.card__desc { font-size: .86rem; color: var(--text-dim); flex: 1; }

.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--text-dim); }
.card__meta .lead-time { color: var(--grey-2); display: inline-flex; align-items: center; gap: 5px; }

/* swatch row */
.swatches { display: flex; gap: 6px; align-items: center; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.swatch--more { font-size: .72rem; color: var(--text-dim); }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.price small { font-size: .75rem; color: var(--text-dim); font-weight: 500; }

/* Feature block cards (homepage) */
.feature {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2), var(--charcoal-2));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--red); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-punk); margin-bottom: 16px; }
.feature__icon svg { width: 26px; height: 26px; color: #fff; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: .92rem; }

/* Category pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: .9rem;
  transition: all .2s var(--ease);
}
.cat-pill:hover { color: var(--white); border-color: var(--blue); }
.cat-pill.is-active { background: var(--grad-brand); color: #190000; border-color: transparent; }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 70px); text-align: center;
  background: linear-gradient(135deg, rgba(255,45,77,.18), rgba(45,226,255,.16));
  border: 1px solid var(--line);
}
.cta-banner::before { content: ""; position: absolute; inset: -2px; background: var(--grad-punk); opacity: .12; z-index: -1; }

/* 10. ------------------------------------------------------ FORMS / FIELDS */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .field-label { font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-2); }
.field-label .req { color: var(--red); }
.hint { font-size: .78rem; color: var(--text-dim); }

input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--charcoal); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #6b7180; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,226,255,.18); outline: none; }
textarea { min-height: 120px; resize: vertical; }
select { 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='%239aa3b2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .field.full { grid-column: 1 / -1; }

/* Choice chips (radio/checkbox groups rendered as buttons) */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .18s var(--ease); user-select: none;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--blue); color: var(--white); }
.choice:has(input:checked) { background: var(--grad-cool); color: #00131a; border-color: transparent; font-weight: 700; }
.choice--red:has(input:checked) { background: var(--grad-brand); color: #190000; }

/* Colour picker */
.colour-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.colour-swatch {
  position: relative; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.18); transition: transform .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.35), inset 0 4px 8px rgba(255,255,255,.18);
}
.colour-swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.colour-swatch:hover { transform: scale(1.1); }
.colour-swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--white); transform: scale(1.08); }
.colour-swatch[data-name]::after {
  content: attr(data-name); position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; white-space: nowrap; color: var(--text-dim); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.colour-swatch:hover::after { opacity: 1; }

/* Upload dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 22px;
  text-align: center; background: var(--charcoal); transition: border-color .2s var(--ease), background .2s var(--ease); cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--charcoal)); }
.dropzone svg { width: 40px; height: 40px; color: var(--blue); margin: 0 auto 12px; }
.dropzone strong { font-family: var(--font-display); }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.upload-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; }
.upload-item .file-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-cool); display: grid; place-items: center; color: #00131a; font-weight: 800; font-size: .62rem; flex: none; }
.upload-item .rm { margin-left: auto; color: var(--red); background: none; border: none; font-size: 1.1rem; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; height: 42px; background: none; border: none; color: var(--text); font-size: 1.2rem; }
.stepper button:hover { background: var(--surface-2); color: var(--blue); }
.stepper input { width: 54px; text-align: center; border: none; background: none; padding: 0; }
.stepper--sm button { width: 32px; height: 34px; font-size: 1rem; }
.stepper--sm input { width: 40px; font-size: .88rem; }

/* Sub-items list (category products) */
.sub-items-list { display: flex; flex-direction: column; gap: 8px; }
.sub-item-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .2s var(--ease);
}
.sub-item-row:hover { border-color: var(--blue); }
.sub-item-row__name { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.sub-item-row__name strong { font-family: var(--font-display); font-size: .95rem; }
.sub-item-row__option { min-width: 130px; }
.sub-item-row__option select { width: 100%; padding: 6px 10px; font-size: .82rem; }
.sub-item-row__qty { margin-left: auto; }

/* Colour zone pickers (multi-zone products like Skull Clickers) */
.zone-picker { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.zone-picker .colour-picker { gap: 8px; }
.zone-picker .colour-swatch { width: 34px; height: 34px; border-radius: 10px; }
.zone-picker .colour-swatch.is-disabled { opacity: .25; pointer-events: none; }

/* Photo upload tiles for builder */
.photo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.photo-tile {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); border: 2px dashed var(--line);
  background: var(--charcoal); display: grid; place-items: center; text-align: center; padding: 14px; cursor: pointer;
  overflow: hidden; transition: border-color .2s var(--ease);
}
.photo-tile:hover { border-color: var(--blue); }
.photo-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-tile .ph { color: var(--text-dim); font-size: .82rem; }
.photo-tile .ph svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--blue); }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile.has-img .ph { display: none; }

/* Panels / cards for forms */
.panel { background: linear-gradient(165deg, var(--surface-2), var(--charcoal-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.panel + .panel { margin-top: 22px; }
.panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel__num { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #190000; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; flex: none; }

.notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--yellow) 10%, var(--charcoal)); border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent);
  font-size: .9rem;
}
.notice svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.notice--blue { background: color-mix(in srgb, var(--blue) 9%, var(--charcoal)); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.notice--blue svg { color: var(--blue); }

/* 11. -------------------------------------------------- BUILDER / PREVIEW */
.builder-layout { display: grid; grid-template-columns: 1fr 420px; gap: 26px; align-items: start; }
.builder-preview { position: sticky; top: 90px; }
.preview-stage {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 8%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--charcoal));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.preview-stage::before { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: radial-gradient(60% 100% at 50% 100%, rgba(45,226,255,.18), transparent 70%); }
.preview-glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(60px); opacity: .4; background: var(--grad-punk); animation: pulse 5s ease-in-out infinite; }
.figure-svg { position: relative; width: 80%; height: 88%; z-index: 1; }
.preview-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.preview-summary { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.summary-row span:first-child { color: var(--text-dim); }
.summary-row span:last-child { font-weight: 600; text-align: right; }
.price-pill { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }

/* Fidget preview */
.fidget-stage { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--charcoal)); border: 1px solid var(--line); display: grid; place-items: center; }
.fidget-shape { width: 60%; transition: transform .4s var(--ease), filter .3s var(--ease); animation: float 5s ease-in-out infinite; }
.engrave-label { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 2px 6px rgba(0,0,0,.6); z-index: 2; pointer-events: none; }

/* 12. ----------------------------------------------------- BASKET/CHECKOUT */
.basket-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.basket-list { display: flex; flex-direction: column; gap: 14px; }
.basket-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.basket-item__media { width: 92px; height: 92px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--surface), var(--charcoal)); display: grid; place-items: center; overflow: hidden; }
.basket-item__media svg, .basket-item__media img { width: 70%; height: 70%; object-fit: contain; }
.basket-item__title { font-family: var(--font-display); font-size: 1rem; }
.basket-item__opts { font-size: .8rem; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
.basket-item__opts .lead { color: var(--blue); font-size: .8rem; }
.basket-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.basket-item__rm { background: none; border: none; color: var(--text-dim); font-size: .82rem; }
.basket-item__rm:hover { color: var(--red); }

.summary-card { position: sticky; top: 90px; }
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-family: var(--font-display); font-size: 1.35rem; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 70px; height: 70px; color: var(--grey); margin: 0 auto 18px; opacity: .6; }

/* Checkout steps */
.checkout-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.checkout-steps .step { flex: 1; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: .82rem; color: var(--text-dim); }
.checkout-steps .step.active { border-color: var(--blue); color: var(--white); }
.checkout-steps .step b { display: block; font-family: var(--font-display); }

/* 13. -------------------------------------------------- PAGE-SPECIFIC */
/* Page hero (interior pages) */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px,3vw,40px); }
.breadcrumbs { font-size: .82rem; color: var(--text-dim); display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--blue); }

/* FAQ accordion */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.faq-q:hover { color: var(--blue); }
.faq-q .chev { transition: transform .25s var(--ease); flex: none; color: var(--blue); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a__inner { padding: 0 22px 22px; color: var(--text-dim); }
.faq-item.open .faq-a { max-height: 400px; }

/* Lead-time table */
.lead-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lead-table th, .lead-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lead-table th { font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--grey); }
.lead-table tr:hover td { background: var(--surface); }
.lead-table .time { font-family: var(--font-display); color: var(--blue); white-space: nowrap; }

/* Product detail */
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 90px; }
.pd-main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.08), transparent 55%), linear-gradient(160deg, var(--surface-2), var(--charcoal)); border: 1px solid var(--line);
}
.pd-main svg, .pd-main img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--blue); }
.pd-thumb svg { width: 60%; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list .spec { background: var(--surface-2); padding: 14px 16px; }
.spec-list .spec span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-bottom: 4px; }
.spec-list .spec strong { font-family: var(--font-display); font-size: .98rem; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 12px 18px; background: none; border: none; color: var(--text-dim); font-family: var(--font-display); text-transform: uppercase; font-size: .85rem; border-bottom: 2px solid transparent; }
.tab.active { color: var(--white); border-bottom-color: var(--red); }
.tab-panel { display: none; } .tab-panel.active { display: block; }

/* About timeline / values */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 160; display: none; background: color-mix(in srgb, var(--black) 80%, transparent); backdrop-filter: blur(10px); padding-top: 14vh; }
.search-overlay.open { display: block; }
.search-box { max-width: 640px; margin-inline: auto; }
.search-box input { font-size: 1.3rem; padding: 20px 22px; }
.search-results { max-width: 640px; margin: 14px auto 0; display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.search-result { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.search-result:hover { border-color: var(--blue); }
.search-result .sr-media { width: 46px; height: 46px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; flex: none; }
.search-result .sr-media svg { width: 70%; }

/* Toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--blue); box-shadow: var(--shadow);
  animation: toastIn .3s var(--ease); max-width: 340px;
}
.toast svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.toast strong { font-family: var(--font-display); display: block; font-size: .92rem; }
.toast span { font-size: .82rem; color: var(--text-dim); }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 170; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 180; background: var(--charcoal); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.mini-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; }
.mini-item__media { width: 60px; height: 60px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; overflow:hidden; }
.mini-item__media svg, .mini-item__media img { width: 72%; height: 72%; object-fit: contain; }

/* 13b. ------------------------------------------------ ACCOUNTS & ADMIN */
/* Signed-in indicator on the header account button */
.icon-btn.is-auth::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--toxic-green, #9dff3d); box-shadow: 0 0 0 2px var(--black);
}

/* Auth (login / register) card */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.auth-card { background: linear-gradient(165deg, var(--surface-2), var(--charcoal-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--charcoal); padding: 6px; border-radius: 999px; margin-bottom: 24px; }
.auth-tabs button { padding: 11px; border-radius: 999px; background: none; border: none; color: var(--text-dim); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.auth-tabs button.active { background: var(--grad-brand); color: #190000; }
.auth-pane { display: none; } .auth-pane.active { display: block; }
.form-error { color: var(--red); font-size: .85rem; margin-top: 4px; min-height: 1em; }

/* Dashboard layout */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.dash-side { position: sticky; top: 90px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dash-side .avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-cool); color: #001016; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 12px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.dash-nav button { text-align: left; padding: 11px 14px; border-radius: 10px; background: none; border: none; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dash-nav button svg { width: 18px; height: 18px; }
.dash-nav button:hover { color: var(--white); background: var(--surface); }
.dash-nav button.active { background: var(--grad-brand); color: #190000; }
.dash-pane { display: none; } .dash-pane.active { display: block; }

/* Order cards / status pills */
.order-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.order-card__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.order-id { font-family: var(--font-display); font-weight: 700; }
.order-lines { display: flex; flex-direction: column; gap: 8px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--text-dim); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; border: 1px solid; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending      { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.status--in-production{ color: var(--blue);   border-color: color-mix(in srgb, var(--blue) 45%, transparent);   background: color-mix(in srgb, var(--blue) 10%, transparent); }
.status--dispatched   { color: #9b5cff;        border-color: color-mix(in srgb, #9b5cff 45%, transparent);       background: color-mix(in srgb, #9b5cff 12%, transparent); }
.status--delivered    { color: #9dff3d;        border-color: color-mix(in srgb, #9dff3d 45%, transparent);       background: color-mix(in srgb, #9dff3d 10%, transparent); }
.status--cancelled    { color: var(--grey);    border-color: var(--line); background: var(--surface); }
.status--submitted    { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.status--mockup-sent  { color: var(--blue);   border-color: color-mix(in srgb, var(--blue) 45%, transparent);   background: color-mix(in srgb, var(--blue) 10%, transparent); }
.status--approved     { color: #9dff3d;       border-color: color-mix(in srgb, #9dff3d 45%, transparent);       background: color-mix(in srgb, #9dff3d 10%, transparent); }
.status--complete     { color: #9dff3d;       border-color: color-mix(in srgb, #9dff3d 45%, transparent);       background: color-mix(in srgb, #9dff3d 10%, transparent); }
.status--declined     { color: var(--red);    border-color: color-mix(in srgb, var(--red) 45%, transparent);    background: color-mix(in srgb, var(--red) 10%, transparent); }

/* Admin layout */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.admin-side { position: sticky; top: 90px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-side .dash-nav button.active { background: var(--grad-cool); color: #001016; }
.admin-pane { display: none; } .admin-pane.active { display: block; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-tile strong { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.stat-tile span { color: var(--text-dim); font-size: .82rem; }

/* Data tables (products / orders / customers) */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--surface-2); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.data-table th { font-family: var(--font-display); text-transform: uppercase; font-size: .74rem; letter-spacing: .07em; color: var(--grey); position: sticky; top: 0; background: var(--charcoal-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.table-thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg, var(--surface), var(--charcoal)); display: grid; place-items: center; overflow: hidden; }
.table-thumb svg, .table-thumb img { width: 76%; height: 76%; object-fit: contain; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.row-actions button svg { width: 16px; height: 16px; }
.row-actions button:hover { border-color: var(--blue); color: var(--blue); }
.row-actions button.danger:hover { border-color: var(--red); color: var(--red); }
.status-select { padding: 7px 10px; font-size: .82rem; width: auto; min-width: 150px; }
.pill-flag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.file-chip { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--cool); text-decoration: none; border: 1px solid color-mix(in srgb, var(--cool) 40%, var(--line)); background: color-mix(in srgb, var(--cool) 8%, transparent); border-radius: 8px; padding: 3px 8px; transition: background .15s, transform .15s; }
.file-chip:hover { background: color-mix(in srgb, var(--cool) 18%, transparent); transform: translateY(-1px); }

/* Admin product editor (slide-over) */
.editor-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.editor-backdrop.open { opacity: 1; pointer-events: auto; }
.editor { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 96vw); z-index: 195; background: var(--charcoal); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.editor.open { transform: translateX(0); }
.editor__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.editor__body { flex: 1; overflow: auto; padding: 22px; }
.editor__foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-preview { display: grid; place-items: center; padding: 16px; background: var(--charcoal-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.editor-preview .card { max-width: 260px; width: 100%; }

@media (max-width: 900px) {
  .dash-layout, .admin-layout { grid-template-columns: 1fr; }
  .dash-side, .admin-side { position: static; }
  .dash-nav, .admin-side .dash-nav { flex-direction: row; flex-wrap: wrap; }
}

/* 13c. ----------------------------------------- CUSTOM PRINT PAGE */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cp-card {
  background: linear-gradient(165deg, var(--surface-2), var(--charcoal-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.cp-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--blue) 60%, transparent); box-shadow: var(--shadow-glow); }
.cp-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.cp-card__visual {
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,.06), transparent 60%), linear-gradient(160deg, var(--surface), var(--charcoal));
}
.cp-card__visual svg { width: 64px; height: 64px; color: var(--blue); }
.cp-card__body { padding: 18px; }
.cp-card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cp-card__pricing { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.cp-card__specs { font-size: .82rem; color: var(--text-dim); line-height: 1.6; }
.cp-form { max-width: 680px; }
.cp-pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; }
.cp-pricing-table th, .cp-pricing-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
.cp-pricing-table th { font-family: var(--font-display); text-transform: uppercase; font-size: .74rem; letter-spacing: .07em; color: var(--grey); }
.cp-pricing-table tr:hover td { background: var(--surface); }
.cp-approval-banner {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--blue) 8%, var(--charcoal)); border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
}
.cp-approval-banner svg { width: 28px; height: 28px; color: var(--blue); flex: none; }

/* Custom print request cards in admin */
.cp-req-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.cp-req-card__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.cp-req-card__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; font-size: .88rem; margin-bottom: 12px; }
.cp-req-card__details dt { color: var(--grey); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.cp-req-card__details dd { margin: 0 0 8px; font-weight: 600; }
.cp-req-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Collection badge for orders */
.collection-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px;
  color: #9dff3d; border: 1px solid color-mix(in srgb, #9dff3d 45%, transparent);
  background: color-mix(in srgb, #9dff3d 10%, transparent);
}
.deposit-info { font-size: .85rem; color: var(--yellow); font-weight: 600; }

/* 14. ----------------------------------------------------------- ANIMATIONS */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { transform: scale(.92); opacity:.35; } 50% { transform: scale(1.06); opacity:.5; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* 15. ---------------------------------------------------------- RESPONSIVE */
@media (max-width: 1080px) {
  .builder-layout { grid-template-columns: 1fr; }
  .builder-preview { position: static; order: -1; }
  .basket-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; order: -1; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__stats { gap: 20px; }
  .checkout-steps { flex-direction: column; }
  .basket-item { grid-template-columns: 70px 1fr; }
  .basket-item__end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .sub-item-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .sub-item-row__qty { margin-left: 0; }
}
