/* =========================================================
   FIDGET FACTORY – Market Day Storefront
   Mobile-first responsive stylesheet
   ========================================================= */

/* ----- CSS Custom Properties ----- */
:root {
  --ff-purple:    #7c3aed;
  --ff-purple-lt: #a855f7;
  --ff-pink:      #ec4899;
  --ff-yellow:    #facc15;
  --ff-teal:      #14b8a6;
  --ff-coral:     #f97316;
  --ff-bg:        #0f0a1e;
  --ff-bg-alt:    #16102e;
  --ff-surface:   #1e1537;
  --ff-surface2:  #261b44;
  --ff-text:      #f5f0ff;
  --ff-muted:     #a89cc8;
  --ff-border:    rgba(168, 156, 200, 0.2);

  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);

  --transition: 0.25s ease;
  --font: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--ff-bg);
  color: var(--ff-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ----- Focus visible ----- */
:focus-visible {
  outline: 3px solid var(--ff-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--ff-purple), var(--ff-pink));
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,58,237,0.45);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--ff-purple-lt), var(--ff-pink));
  box-shadow: 0 6px 28px rgba(124,58,237,0.65);
}

.btn--outline {
  background: transparent;
  color: var(--ff-yellow);
  border-color: var(--ff-yellow);
}
.btn--outline:hover {
  background: var(--ff-yellow);
  color: var(--ff-bg);
}

.btn--card {
  background: linear-gradient(135deg, var(--ff-teal), var(--ff-purple));
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  width: 100%;
}
.btn--card:hover {
  background: linear-gradient(135deg, var(--ff-purple-lt), var(--ff-teal));
  box-shadow: 0 4px 18px rgba(20,184,166,0.5);
}

.btn--wide { width: 100%; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ff-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.navbar__logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ff-yellow);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.navbar__logo:hover { color: var(--ff-pink); }

.navbar__links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.navbar__links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ff-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xl);
  transition: background var(--transition), color var(--transition);
}
.navbar__links a:hover {
  color: var(--ff-text);
  background: rgba(255,255,255,0.08);
}

/* =========================================================
   SECTION HELPERS
   ========================================================= */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--ff-purple-lt), var(--ff-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title--light {
  background: linear-gradient(135deg, var(--ff-yellow), var(--ff-coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--ff-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.section-sub--light { color: rgba(255,255,255,0.7); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.35) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(236,72,153,0.3) 0%, transparent 55%),
              radial-gradient(ellipse at 50% 80%, rgba(20,184,166,0.2) 0%, transparent 55%),
              var(--ff-bg);
}

/* Moving gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(124,58,237,0.12),
    rgba(236,72,153,0.1),
    rgba(20,184,166,0.08),
    rgba(250,204,21,0.06),
    rgba(124,58,237,0.12)
  );
  animation: heroRotate 18s linear infinite;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

@keyframes heroRotate {
  to { transform: rotate(360deg); }
}

/* Floating shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  animation: floatShape 6s ease-in-out infinite;
  user-select: none;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.3));
}

.shape--1 { top: 12%; left: 8%;  animation-delay: 0s;    animation-duration: 5.5s; }
.shape--2 { top: 18%; right: 10%; animation-delay: 1.2s; animation-duration: 6.5s; }
.shape--3 { top: 65%; left: 5%;  animation-delay: 0.6s;  animation-duration: 7s;   }
.shape--4 { top: 70%; right: 8%; animation-delay: 2s;    animation-duration: 5s;   }
.shape--5 { top: 40%; left: 2%;  animation-delay: 1.8s;  animation-duration: 6s;   }
.shape--6 { top: 30%; right: 4%; animation-delay: 0.9s;  animation-duration: 5.8s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg);      opacity: 0.8; }
  33%       { transform: translateY(-18px) rotate(15deg); opacity: 1;   }
  66%       { transform: translateY(10px) rotate(-10deg); opacity: 0.9; }
}

/* Blob background accents */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blobPulse 8s ease-in-out infinite;
}
.blob--1 {
  width: 320px; height: 320px;
  background: var(--ff-purple);
  top: -60px; left: -80px;
  animation-delay: 0s;
}
.blob--2 {
  width: 260px; height: 260px;
  background: var(--ff-pink);
  bottom: -40px; right: -60px;
  animation-delay: 3s;
}
.blob--3 {
  width: 200px; height: 200px;
  background: var(--ff-teal);
  bottom: 20%; left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.5s;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1);    opacity: 0.35; }
  50%       { transform: scale(1.2); opacity: 0.5;  }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero__pre-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-yellow);
  background: rgba(250,204,21,0.12);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(250,204,21,0.35);
  animation: fadeInDown 0.7s ease both;
}

.hero__title {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ff-text);
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero__brand {
  display: block;
  background: linear-gradient(135deg, var(--ff-yellow) 0%, var(--ff-coral) 40%, var(--ff-pink) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradientShift 4s ease-in-out infinite alternate, fadeInUp 0.8s ease 0.15s both;
}

@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--ff-muted);
  font-weight: 600;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero__sub strong { color: var(--ff-text); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.45s both;
}

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

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

/* =========================================================
   PRODUCTS
   ========================================================= */
.products {
  background: var(--ff-bg-alt);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.35);
  border-color: rgba(168,85,247,0.5);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}
.badge--bestseller {
  background: linear-gradient(135deg, var(--ff-yellow), var(--ff-coral));
  color: #1a0a00;
}
.badge--new {
  background: linear-gradient(135deg, var(--ff-teal), var(--ff-purple));
  color: #fff;
}
.badge--popular {
  background: linear-gradient(135deg, var(--ff-coral), var(--ff-pink));
  color: #fff;
}
.badge--limited {
  background: linear-gradient(135deg, var(--ff-pink), var(--ff-purple));
  color: #fff;
}

.product-card__icon {
  font-size: 3.5rem;
  text-align: center;
  padding: 1.75rem 1.25rem 0.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.product-card:hover .product-card__icon {
  transform: scale(1.15) rotate(-5deg);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.6rem;
}

.product-card__name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ff-text);
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--ff-muted);
  line-height: 1.5;
  flex: 1;
}

.product-card__price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ff-yellow);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.25rem 0;
}
.price-currency {
  font-size: 1rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--ff-coral);
}
.price-cents {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ff-muted);
}

/* =========================================================
   SPECIALS
   ========================================================= */
.specials {
  background: linear-gradient(135deg, var(--ff-bg) 0%, #1a0d30 50%, var(--ff-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.specials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(250,204,21,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.specials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.special-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--ff-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.special-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.special-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.special-card--bundle {
  background: var(--ff-surface);
  border-color: rgba(20,184,166,0.4);
}
.special-card--bundle::before { background: var(--ff-teal); }

.special-card--mega {
  background: linear-gradient(145deg, var(--ff-surface), var(--ff-surface2));
  border-color: rgba(250,204,21,0.5);
  box-shadow: 0 0 0 1px rgba(250,204,21,0.15), var(--shadow-sm);
}
.special-card--mega::before { background: var(--ff-yellow); }

.special-card--spin {
  background: var(--ff-surface);
  border-color: rgba(236,72,153,0.4);
}
.special-card--spin::before { background: var(--ff-pink); }

.special-card__emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  animation: floatShape 5s ease-in-out infinite;
}

.special-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ff-text);
}

.special-card p {
  color: var(--ff-muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.special-card p strong { color: var(--ff-text); }

.special-card__price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ff-yellow);
  letter-spacing: -0.04em;
  line-height: 1;
}
.special-card__price span { font-size: 3rem; }

.special-card__save {
  font-size: 0.85rem;
  color: var(--ff-teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   FIND US
   ========================================================= */
.find-us {
  background: var(--ff-bg);
}

.find-us__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.find-us__info .section-title {
  text-align: left;
  background: linear-gradient(135deg, var(--ff-teal), var(--ff-purple-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.find-us__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.find-us__list li {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ff-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.find-us__list li strong { color: var(--ff-text); }

.find-us__payment {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.find-us__payment h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ff-text);
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.payment-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--ff-surface2);
  border: 1px solid var(--ff-border);
  color: var(--ff-text);
  letter-spacing: 0.03em;
}

.find-us__payment p {
  font-size: 0.95rem;
  color: var(--ff-muted);
  font-weight: 600;
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ff-bg-alt);
  border-top: 1px solid var(--ff-border);
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ff-yellow);
  letter-spacing: -0.02em;
}

.footer__tagline {
  color: var(--ff-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(168,156,200,0.5);
}

/* =========================================================
   RESPONSIVE – Tablet  (>= 600px)
   ========================================================= */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   RESPONSIVE – Desktop  (>= 900px)
   ========================================================= */
@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .specials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .find-us__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .hero {
    min-height: 100vh;
  }

  .shape--1, .shape--2, .shape--3,
  .shape--4, .shape--5, .shape--6 {
    font-size: 2.5rem;
  }
}

/* =========================================================
   REDUCED MOTION – Accessibility
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   COLOUR SWATCHES
   ========================================================= */
.product-card__colours {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.1rem 0;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  display: inline-block;
}

.swatch--red    { background: #ef4444; }
.swatch--orange { background: #f97316; }
.swatch--yellow { background: #facc15; }
.swatch--green  { background: #22c55e; }
.swatch--blue   { background: #3b82f6; }
.swatch--purple { background: #a855f7; }
.swatch--pink   { background: #ec4899; }

.colours-label {
  font-size: 0.78rem;
  color: var(--ff-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 0.15rem;
}

/* Rainbow-edition label */
.colours-label--rainbow {
  background: linear-gradient(90deg, #ef4444, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* =========================================================
   LIMITED EDITION CARD
   ========================================================= */
.product-card--limited-edition {
  background: linear-gradient(160deg, #1e1537 0%, #1a0d30 60%, #0f1a2e 100%);
  border-color: transparent;
  /* animated rainbow border via outline trick */
  box-shadow:
    0 0 0 2px transparent,
    0 0 20px rgba(168, 85, 247, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.product-card--limited-edition::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #ef4444, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: rainbowRotate 4s linear infinite;
}

@keyframes rainbowRotate {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.product-card--limited-edition:hover {
  box-shadow:
    0 0 0 2px transparent,
    0 16px 48px rgba(168, 85, 247, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-6px);
}

.badge--limited-edition {
  background: linear-gradient(135deg, #facc15, #f97316, #ec4899, #a855f7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.limited-tag {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--ff-yellow), var(--ff-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.product-card__colours--rainbow .swatch {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--card-rainbow {
  background: linear-gradient(135deg, #ef4444, #f97316, #facc15, #22c55e, #3b82f6, #a855f7);
  background-size: 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

/* =========================================================
   SPECIAL LIMITED EDITION PASSTHROUGH CARD
   ========================================================= */
.product-card--passthrough {
  background: linear-gradient(160deg, #0f1a2e 0%, #1a1030 50%, #1e0a20 100%);
  border-color: transparent;
  box-shadow:
    0 0 20px rgba(250, 204, 21, 0.25),
    0 0 40px rgba(236, 72, 153, 0.15),
    inset 0 0 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.product-card--passthrough::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #facc15, #f97316, #ec4899, #a855f7, #3b82f6, #22c55e, #facc15);
  background-size: 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: passthroughBorder 3s linear infinite;
}

@keyframes passthroughBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.product-card--passthrough:hover {
  box-shadow:
    0 0 0 2px transparent,
    0 16px 48px rgba(250, 204, 21, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-6px);
}

.badge--passthrough {
  background: linear-gradient(135deg, #facc15, #f97316, #ec4899);
  color: #1a1030;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.passthrough-tag {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #facc15, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.colours-label--passthrough {
  background: linear-gradient(90deg, #ef4444, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.product-card__colours--passthrough .swatch {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.btn--card-passthrough {
  background: linear-gradient(135deg, #facc15, #f97316, #ec4899, #a855f7, #3b82f6);
  background-size: 250%;
  animation: passthroughBtn 4s ease-in-out infinite alternate;
  color: #fff;
  font-weight: 900;
}

@keyframes passthroughBtn {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* =========================================================
   PRE-ORDER SECTION
   ========================================================= */
.preorder {
  background: linear-gradient(160deg, #0f1a2e 0%, #1a1030 50%, #1e0a20 100%);
  position: relative;
}
.preorder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(250,204,21,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(168,85,247,0.1) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Notice banner ── */
.preorder__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ff-text);
}
.preorder__notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Form wrapper ── */
.preorder-form {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Form primitives ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ff-text);
  display: block;
}

.form-required {
  color: var(--ff-coral);
  margin-left: 0.15rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--ff-muted);
  margin-bottom: 0.75rem;
}

.form-input {
  background: var(--ff-surface2);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--radius-md);
  color: var(--ff-text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--ff-muted); font-weight: 400; }
.form-input:focus {
  outline: none;
  border-color: var(--ff-purple-lt);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.25);
}

.form-fieldset {
  border: none;
  padding: 0;
}

/* ── Error message ── */
.form-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

/* ── Product rows ── */
.preorder-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.preorder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ff-surface2);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  transition: border-color var(--transition), background var(--transition);
}
.preorder-item:has(.preorder-item__check:checked) {
  border-color: var(--ff-purple-lt);
  background: rgba(168,85,247,0.08);
}
.preorder-item--limited:has(.preorder-item__check:checked) {
  border-color: #ec4899;
  background: rgba(236,72,153,0.08);
}
.preorder-item--special:has(.preorder-item__check:checked) {
  border-color: #facc15;
  background: rgba(250,204,21,0.07);
}

.preorder-item__check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.preorder-item__check {
  width: 18px;
  height: 18px;
  accent-color: var(--ff-purple-lt);
  flex-shrink: 0;
  cursor: pointer;
}

.preorder-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.preorder-item__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ff-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preorder-item__price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ff-yellow);
  margin-left: 0.35rem;
}

.preorder-item__qty-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ff-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.preorder-item__qty {
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--radius-sm);
  color: var(--ff-text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.preorder-item__qty:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.preorder-item__qty:not(:disabled):focus {
  outline: none;
  border-color: var(--ff-purple-lt);
  box-shadow: 0 0 0 2px rgba(168,85,247,0.25);
}

.preorder-item__color-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ff-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.preorder-item__color {
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--radius-sm);
  color: var(--ff-text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.preorder-item__color:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.preorder-item__color:not(:disabled):focus {
  outline: none;
  border-color: var(--ff-purple-lt);
  box-shadow: 0 0 0 2px rgba(168,85,247,0.25);
}

/* ── No-payment footer line ── */
.preorder-form__no-payment {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ff-muted);
  margin-top: -0.5rem;
}

/* ── Success state ── */
.preorder-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--ff-surface);
  border: 1.5px solid rgba(168,85,247,0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preorder-success__icon {
  font-size: 3rem;
  line-height: 1;
  animation: successBounce 0.6s ease-out;
}
@keyframes successBounce {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.preorder-success h3 {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ff-purple-lt), var(--ff-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.preorder-success p {
  color: var(--ff-muted);
  font-size: 0.95rem;
}

/* ── Find Us pre-order link ── */
.find-us__preorder-link {
  color: var(--ff-yellow);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.find-us__preorder-link:hover { color: var(--ff-pink); }

/* ── Responsive tweaks for small screens ── */
@media (max-width: 480px) {
  .preorder-form { padding: 1.25rem; }
  .preorder-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .preorder-item__name {
    white-space: normal;
  }
}
