/* ============================================
   KL Print Lab — Design System
   To change the color palette, edit the
   variables in :root below.
   ============================================ */

:root {
  --orange:       #E8583A;
  --orange-dark:  #C03820;
  --lime:         #CCFF00;
  --lime-dark:    #AADD00;
  --purple:       #9B4DBE;
  --teal:         #2EC4B6;
  --green:        #3DDC84;
  --white:        #FFFFFF;
  --black:        #0A0A0A;

  --bg-hero:      #E8583A;
  --bg-section:   #130600;
  --bg-alt:       #1E0A02;
  --bg-card:      #2A1008;
  --bg-form:      #130600;

  --font-display: 'Black Han Sans', sans-serif;
  --font-body:    'Boogaloo', cursive;
  --font-mono:    'Space Mono', monospace;

  --gap:    1.5rem;
  --radius: 10px;
  --trans:  0.18s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-section);
  color: var(--white);
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.5;
}

img, svg { display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 9rem);
  color: var(--lime);
  line-height: 0.9;
  letter-spacing: -2px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--lime);
  margin-bottom: 0.4rem;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--white);
}

.section-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
}

/* ============================================
   LAYOUT
   ============================================ */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  text-decoration: none;
}

.btn--primary {
  background: var(--lime);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--lime-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(204,255,0,0.35);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--lime);
  color: var(--lime);
}
.btn--secondary:hover {
  background: rgba(204,255,0,0.1);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(204,255,0,0.06);
}

.btn--large { padding: 1rem 2.2rem; font-size: 1.15rem; }
.btn--danger { border-color: #FF4444; color: #FF8888; }
.btn--danger:hover { background: rgba(255,68,68,0.1); border-color: #FF4444; color: #FF4444; }
.btn--sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; border-radius: 6px; }

/* ============================================
   HERO
   ============================================ */

#hero {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 30%, #F06840 0%, #C03820 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

/* Diagonal stripe texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.06) 0px,
    rgba(0,0,0,0.06) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

/* Cone trio above title */
.hero-cones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: -1rem;
  margin-bottom: -1rem;
}

.hero-cone { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.hero-cone--left  { width: clamp(70px, 14vw, 110px); transform: rotate(-12deg) translateY(8px); }
.hero-cone--center { width: clamp(90px, 18vw, 140px); }
.hero-cone--right { width: clamp(70px, 14vw, 110px); transform: rotate(12deg) translateY(8px); }

/* Glitch animation on the title */
.hero-title {
  text-shadow:
    3px 3px 0 var(--orange-dark),
    -1px -1px 0 var(--orange-dark);
  animation: glitch 4s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    text-shadow: 3px 3px 0 var(--orange-dark), -1px -1px 0 var(--orange-dark);
    transform: none;
  }
  92% {
    text-shadow: -3px 0 #FF0080, 3px 0 #00FFFF, 3px 3px 0 var(--orange-dark);
    transform: skewX(-2deg);
  }
  94% {
    text-shadow: 3px 0 #FF0080, -3px 0 #00FFFF, 3px 3px 0 var(--orange-dark);
    transform: skewX(2deg);
  }
  96% {
    text-shadow: 3px 3px 0 var(--orange-dark), -1px -1px 0 var(--orange-dark);
    transform: none;
  }
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}

/* Decorative bolt SVGs */
.bolt {
  position: absolute;
  top: 8%;
  pointer-events: none;
  z-index: 1;
}
.bolt svg { width: clamp(60px, 10vw, 130px); height: auto; }
.bolt--left  { left: 3%; transform: rotate(-15deg); }
.bolt--right { right: 3%; transform: rotate(15deg) scaleX(-1); }

/* ============================================
   STICKY NAV
   ============================================ */

#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.97);
  border-bottom: 3px solid var(--lime);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
}

#main-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  transition: color var(--trans);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
#main-nav a:hover,
#main-nav a.nav--active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

#products {
  background: var(--bg-section);
  border-top: 4px solid var(--lime);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: var(--gap);
}

/* ---- Product Card ---- */
.product-card {
  background: var(--bg-card);
  border: 2px solid rgba(232,88,58,0.4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), border-color var(--trans);
}
.product-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(204,255,0,0.5);
}
.product-card--selected {
  border-color: var(--lime) !important;
  box-shadow: 0 0 0 2px var(--lime), 0 0 24px rgba(204,255,0,0.25);
}

.product-image {
  background: linear-gradient(160deg, #C03820 0%, #8B2510 100%);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 160px;
}
.product-image svg { width: 90px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }

.product-info { padding: 1.4rem; }
.product-info h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.product-info p  { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }

.product-price {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 1rem !important;
}

/* ============================================
   PRODUCT CARD — Inline Color Picker
   ============================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lime);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(232,88,58,0.5);
  border-radius: 6px;
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CCFF00' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgba(204,255,0,0.15);
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #FF4444;
}

.field-error {
  color: #FF8888;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

/* ---- Color Picker ---- */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem 0;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent; /* set per-swatch by JS based on color luminance */
  cursor: pointer;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  position: relative;
  padding: 0;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.selected {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lime), 0 0 10px rgba(204,255,0,0.45);
}
.color-swatch.swatch--light.selected {
  box-shadow: 0 0 0 2px #555, 0 0 0 4px var(--lime), 0 0 10px rgba(204,255,0,0.45);
}

.card-color-section {
  margin: 0.9rem 0 0.75rem;
}

.card-color-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
  transition: color var(--trans);
}
.product-card[data-selected-color] .card-color-label {
  color: var(--lime);
}

.card-swatches {
  padding: 0;
}

.add-to-cart-btn {
  width: 100%;
  margin-top: 0.5rem;
  opacity: 0.4;
  transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
}
.add-to-cart-btn:not([disabled]) {
  opacity: 1;
}
.add-to-cart-btn.btn--added {
  background: var(--teal) !important;
  color: var(--black);
}

/* Nav cart button */
.nav-cart-btn {
  background: none;
  border: 1px solid rgba(204,255,0,0.3);
  border-radius: 8px;
  color: var(--lime);
  font-size: 1rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  transition: background var(--trans), border-color var(--trans);
  margin-left: auto;
}
.nav-cart-btn:hover {
  background: rgba(204,255,0,0.1);
  border-color: var(--lime);
}

.nav-cart-badge {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.nav-cart-badge.hidden { display: none; }

/* Form elements (used in cart drawer) */
.form-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.75rem;
  text-align: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
  background: var(--bg-section);
  border-top: 4px solid var(--teal);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  max-width: 600px;
}

.contact-card {
  background: var(--bg-card);
  border: 2px solid rgba(46,196,182,0.3);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--trans);
}
.contact-card:hover { border-color: var(--teal); }

.contact-bolt {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.contact-card h3 { margin-bottom: 0.7rem; }

.contact-card a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
  transition: color var(--trans);
  word-break: break-all;
}
.contact-card a:hover { color: var(--lime); text-decoration: none; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--black);
  border-top: 3px solid var(--orange-dark);
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.admin-link {
  color: rgba(255,255,255,0.15);
  font-size: 0.7rem;
  transition: color var(--trans);
}
.admin-link:hover { color: var(--lime); text-decoration: none; }

/* ============================================
   CART FAB
   ============================================ */

.cart-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(204,255,0,0.4), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--trans), box-shadow var(--trans);
}
.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(204,255,0,0.55);
}
.cart-fab.hidden { display: none; }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.cart-fab--bump { animation: bump 0.35s ease; }

.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--black);
  line-height: 1;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: all; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.cart-drawer.open .cart-backdrop { opacity: 1; }

.cart-panel {
  position: relative;
  z-index: 1;
  background: #180600;
  border: 2px solid var(--lime);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(204,255,0,0.05);
}
/* Rainbow top stripe on the panel */
.cart-panel::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lime) 50%, var(--teal) 100%);
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}
.cart-drawer.open .cart-panel { transform: translateY(0); }

/* Step container */
.cart-step { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-step.hidden { display: none; }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  gap: 0.75rem;
}

.cart-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lime);
  margin: 0;
  flex: 1;
}

.cart-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--trans);
  flex-shrink: 0;
}
.cart-close-btn:hover { color: var(--white); }

.cart-back-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--trans);
  white-space: nowrap;
}
.cart-back-btn:hover { color: var(--lime); }

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.cart-panel-body--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-panel-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: #180600;
}

/* ---- Cart Items ---- */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
}

.cart-item-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--trans);
}
.qty-btn:hover { background: rgba(204,255,0,0.15); border-color: var(--lime); color: var(--lime); }
.qty-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
}

.cart-item-subtotal {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--lime);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--trans);
}
.cart-remove-btn:hover { color: #FF4444; }

/* ---- Cart Empty ---- */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.cart-empty.hidden { display: none; }
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ---- Cart Footer ---- */
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.cart-total-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--lime);
  line-height: 1;
}

.cart-checkout-btn { width: 100%; }
.cart-checkout-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.cart-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 0.6rem;
}

/* ---- Checkout Summary ---- */
.checkout-summary-inner {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.checkout-summary-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.checkout-summary-row:last-child { border-bottom: none; }
.checkout-summary-qty {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}
.checkout-summary-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--lime);
  font-weight: 700;
  min-width: 30px;
  text-align: right;
}

/* ---- Order Confirmation ---- */
.order-confirm {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.order-confirm-check {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bump 0.5s ease 0.1s;
}
.order-confirm-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.order-confirm-num strong { color: var(--lime); }
.order-confirm-msg {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.order-confirm-msg strong { color: var(--white); }
.order-confirm-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.confirm-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   ADMIN PAGES — Shared Styles
   ============================================ */

.admin-body {
  background: var(--bg-section);
  min-height: 100vh;
}

/* Rainbow top stripe across the very top of the page */
.admin-body::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lime) 45%, var(--teal) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.admin-header {
  background: linear-gradient(135deg, #1C0700 0%, #0A0A0A 60%);
  border-bottom: 2px solid rgba(204,255,0,0.25);
  padding: 1rem 1.5rem;
  padding-top: 1.25rem; /* clear the top stripe */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 4px; /* sit below the rainbow stripe */
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.admin-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lime);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 20px rgba(204,255,0,0.3);
}
.admin-logo .logo-cone {
  display: inline-block;
  line-height: 1;
}
.admin-logo .logo-cone svg {
  width: 20px;
  height: auto;
}
.admin-logo .logo-badge {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: normal;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-nav {
  display: flex;
  gap: 0.4rem;
}

.admin-nav a {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.admin-nav a:hover {
  background: rgba(204,255,0,0.07);
  color: var(--lime);
  border-color: rgba(204,255,0,0.2);
}
.admin-nav a.active {
  background: rgba(204,255,0,0.12);
  color: var(--lime);
  border-color: rgba(204,255,0,0.35);
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Branded page title with left orange accent */
.admin-page-header {
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--lime);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.admin-page-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ---- Admin Stats Bar ---- */
.stats-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.85rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 80px;
  position: relative;
  overflow: hidden;
}
/* Colored top bar on each chip */
.stat-chip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-chip.stat--new::before    { background: var(--lime); }
.stat-chip.stat--print::before  { background: #FFB700; }
.stat-chip.stat--ready::before  { background: var(--teal); }
.stat-chip.stat--done::before   { background: rgba(255,255,255,0.2); }

.stat-chip strong {
  font-size: 1.8rem;
  font-family: var(--font-display);
  line-height: 1;
}
.stat-chip.stat--new    strong { color: var(--lime); }
.stat-chip.stat--print  strong { color: #FFB700; }
.stat-chip.stat--ready  strong { color: var(--teal); }
.stat-chip.stat--done   strong { color: rgba(255,255,255,0.25); }

/* ---- Admin Controls Bar ---- */
.admin-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-controls input[type="text"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--white);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
  transition: border-color var(--trans);
}
.admin-controls input:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(204,255,0,0.03);
}

.admin-controls select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--white);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--trans);
}
.admin-controls select:focus { outline: none; border-color: var(--lime); }

/* ---- Orders List ---- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid var(--orange-dark);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.order-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.order-card[data-status="new"]       { border-left-color: var(--lime); }
.order-card[data-status="printing"]  { border-left-color: #FFB700; }
.order-card[data-status="ready"]     { border-left-color: var(--teal); }
.order-card[data-status="delivered"] { border-left-color: rgba(255,255,255,0.12); opacity: 0.55; }

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.order-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
}

.order-card-contact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

.order-card-total {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--lime);
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255,255,255,0.025);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.65rem;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.order-item-color {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.order-item-qty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
}

.order-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--new       { background: rgba(204,255,0,0.12);  color: var(--lime);  border-color: rgba(204,255,0,0.25); }
.badge--printing  { background: rgba(255,183,0,0.12);  color: #FFB700;      border-color: rgba(255,183,0,0.25); }
.badge--ready     { background: rgba(46,196,182,0.12); color: var(--teal);  border-color: rgba(46,196,182,0.25); }
.badge--delivered { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.35); }
.badge--cancelled { background: rgba(230,57,70,0.15); color: #FF8A8A; border-color: rgba(230,57,70,0.35); text-decoration: line-through; }
.stat-chip--cancelled::before { background: #E63946 !important; }
.order-card[data-status="cancelled"] { opacity: 0.55; }
.order-card[data-status="cancelled"] .order-items-list { text-decoration: line-through; }

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.order-meta span { display: flex; align-items: center; gap: 0.3rem; }
.order-meta strong { color: rgba(255,255,255,0.75); }

.order-notes {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255,255,255,0.025);
  border-radius: 4px;
  border-left: 2px solid var(--orange-dark);
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.order-actions select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--white);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255,255,255,0.25);
}
.empty-state .empty-icon {
  margin: 0 auto 1rem;
  opacity: 0.3;
}
.empty-state .empty-icon svg { width: 60px; height: auto; }
.empty-state p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Admin Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.modal-backdrop.hidden { display: none; }

.modal {
  background: #180600;
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(204,255,0,0.1), 0 20px 60px rgba(0,0,0,0.6);
}

/* Branded orange top strip on modal */
.modal-inner {
  padding: 1.75rem 2rem 2rem;
}

.modal::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lime) 50%, var(--teal) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--lime);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(204,255,0,0.2);
}

.modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(232,88,58,0.4);
  border-radius: 6px;
  color: var(--white);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
}
.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgba(204,255,0,0.1);
}
.modal .form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lime);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--trans);
  z-index: 1;
}
.modal-close:hover { color: var(--white); }

/* ---- Products Admin Grid ---- */
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--orange-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.admin-product-card:hover {
  border-top-color: var(--lime);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.admin-product-card .product-image {
  min-height: 120px;
  padding: 1.5rem;
}
.admin-product-card .product-image svg { width: 70px; }

.admin-product-info {
  padding: 1rem 1.2rem;
}
.admin-product-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.admin-product-info p  { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.admin-product-info .product-price { font-size: 1.3rem; margin-bottom: 0.75rem !important; }

.admin-product-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.2rem 1rem;
}

/* ---- Color swatch preview ---- */
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   MOBILE GLOBAL FIXES
   ============================================ */

/* Remove iOS tap highlight flash */
* { -webkit-tap-highlight-color: transparent; }

/* Remove 300ms tap delay on all interactive elements */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* Prevent iOS from zooming on input focus (needs 16px font-size) */
input, select, textarea {
  font-size: max(16px, 1rem) !important;
}

/* iOS momentum scrolling for overflow containers */
.cart-panel-body {
  -webkit-overflow-scrolling: touch;
}

/* Safe-area insets — iPhone notch / home indicator */
.cart-panel-footer {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.cart-fab {
  bottom: max(1.75rem, calc(env(safe-area-inset-bottom) + 1rem));
  right: max(1.75rem, calc(env(safe-area-inset-right) + 1rem));
}

footer {
  padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
}

/* ============================================
   RESPONSIVE — Tablet & below
   ============================================ */

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================ */

@media (max-width: 600px) {

  /* ---- Hero ---- */
  .hero-cone--left,
  .hero-cone--right { width: 72px; }
  .hero-cone--center { width: 95px; }

  /* ---- Nav ---- */
  #main-nav {
    gap: 0.75rem;
    padding: 0.65rem 1rem;
  }
  #main-nav a {
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding-bottom: 3px;
  }
  .nav-cart-btn { padding: 0.4rem 0.75rem; }

  /* ---- Sections ---- */
  .section-inner { padding: 3rem 1rem 3.5rem; }

  /* ---- Product grid: single column ---- */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Product card: side-by-side image+info on mobile ---- */
  .product-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-rows: auto;
  }
  .product-image {
    grid-row: 1 / 2;
    min-height: 140px;
    padding: 1.25rem 1rem;
    align-items: center;
  }
  .product-image svg { width: 70px; }
  .product-info {
    grid-column: 2;
    padding: 1rem 1rem 1rem 0.75rem;
  }
  .product-info h3 { font-size: 1.1rem; }
  .product-info p  { font-size: 0.88rem; }

  /* ---- Color swatches: larger touch targets ---- */
  .color-swatch {
    width: 38px;
    height: 38px;
  }

  /* ---- Cart FAB: larger ---- */
  .cart-fab {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  /* ---- Cart drawer: fuller height on small screens ---- */
  .cart-panel { max-height: 94vh; }

  /* ---- Cart items: qty buttons big enough to tap ---- */
  .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .qty-num { font-size: 0.9rem; min-width: 22px; }

  /* ---- Cart item layout ---- */
  .cart-item {
    gap: 0.5rem;
    padding: 0.75rem;
    flex-wrap: wrap;
  }
  .cart-item-info { flex-basis: calc(100% - 120px); }
  .cart-item-subtotal { font-size: 1rem; }

  /* ---- Checkout form inputs ---- */
  .cart-panel-body .form-group {
    margin-bottom: 1rem;
  }
  .cart-panel-body .form-group input,
  .cart-panel-body .form-group textarea {
    padding: 0.85rem 1rem;
  }

  /* ---- Place order button ---- */
  .cart-panel-footer .btn--large {
    padding: 1rem;
    font-size: 1.1rem;
  }

  /* ---- Contact ---- */
  .contact-grid { grid-template-columns: 1fr; }

  /* ---- Footer ---- */
  footer { flex-direction: column; gap: 0.6rem; }

  /* ---- Admin ---- */
  .admin-header {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, calc(env(safe-area-inset-top) + 0.5rem));
    gap: 0.5rem;
  }
  .admin-header-left { gap: 0.6rem; }
  .admin-logo { font-size: 1.1rem; }
  .admin-logo .logo-cone svg { width: 16px; }
  .admin-nav a { font-size: 0.68rem; padding: 0.35rem 0.6rem; }

  .admin-main { padding: 1.5rem 1rem 4rem; }

  .stats-bar { gap: 0.5rem; }
  .stat-chip { padding: 0.7rem 1rem; min-width: 70px; }
  .stat-chip strong { font-size: 1.5rem; }

  .admin-controls { flex-direction: column; align-items: stretch; }
  .admin-controls input[type="text"] { max-width: none; }

  .order-card-top { flex-wrap: wrap; }
  .order-card { padding: 1rem; }

  .admin-product-grid {
    grid-template-columns: 1fr;
  }

  .modal { max-height: 95vh; }
  .modal-inner { padding: 1.25rem; }
}

/* ================================================================
   POLISH PASS — make it pop
   ================================================================ */

/* --- Product photo rendering (uploaded images) --- */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
.product-image { overflow: hidden; border-radius: 14px; position: relative; isolation: isolate; }

/* --- STL-rendered images: color-tint overlay driven by selected swatch --- */
.product-image--stl {
  background: linear-gradient(160deg, #FAF7F2 0%, #E8E0D4 100%);
}
.product-image--stl .product-photo--stl { filter: none; }
.product-image--stl::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-accent, transparent);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card[data-selected-color] .product-image--stl::after { opacity: 1; }

/* --- Admin STL modal: rotate controls --- */
.stl-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.stl-controls-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.stl-slider-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
.stl-slider-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.stl-slider-row input[type=range] { width: 100%; accent-color: var(--lime); }

/* --- Admin color picker grid --- */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.color-pick-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.color-pick-item:hover { border-color: rgba(204,255,0,0.5); }
.color-pick-item input[type=checkbox] { accent-color: var(--lime); }
.color-pick-item input[type=checkbox]:checked ~ .color-pick-swatch { box-shadow: 0 0 0 2px var(--lime); }
.color-pick-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.stl-controls-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.2rem;
}
.image-preview canvas {
  display: block;
  border-radius: 8px;
}
/* Canvas doesn't auto-scale like <img>; force square aspect ratio so it fits correctly */
.image-preview--has-model canvas {
  aspect-ratio: 1 !important;
  height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  display: block !important;
}

/* --- Admin image upload --- */
.image-upload { display: flex; flex-direction: column; gap: 0.6rem; }
.image-preview {
  width: 100%;
  height: 160px;
  border: 2px dashed rgba(204,255,0,0.3);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
}
.image-preview--has-model {
  height: 300px;
  padding: 0;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-placeholder { max-width: 80%; }
.image-upload-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.image-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* --- Hero: animated orange gradient background --- */
@keyframes heroBgShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
#hero {
  background: linear-gradient(135deg, #E8583A 0%, #FF7A4E 25%, #E8583A 50%, #D94327 75%, #E8583A 100%) !important;
  background-size: 300% 300% !important;
  animation: heroBgShift 18s ease-in-out infinite alternate;
}

/* --- Hero: floating + spinning cones --- */
@keyframes coneFloat {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) + 3deg)); }
}
@keyframes coneFloatCenter {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-18px) rotate(2deg); }
}
.hero-cone--left {
  --tilt: -12deg;
  animation: coneFloat 5.5s ease-in-out infinite;
}
.hero-cone--center {
  animation: coneFloatCenter 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(204,255,0,0.4)) drop-shadow(0 6px 16px rgba(0,0,0,0.5)) !important;
}
.hero-cone--right {
  --tilt: 12deg;
  animation: coneFloat 6.3s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* --- Hero: pulsing lightning bolts --- */
@keyframes boltPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(204,255,0,0.3));
    opacity: 0.85;
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(204,255,0,0.9)) drop-shadow(0 0 28px rgba(204,255,0,0.4));
    opacity: 1;
  }
}
.bolt { animation: boltPulse 2.6s ease-in-out infinite; }
.bolt--right { animation-delay: -1.3s; }

/* --- Scroll reveal for product cards & sections --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- Product cards: 3D tilt on hover --- */
.product-grid { perspective: 1200px; }
.product-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.2s, box-shadow 0.35s;
}
.product-card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.02) !important;
  box-shadow: 0 22px 40px rgba(0,0,0,0.5), 0 0 0 2px var(--lime);
}

/* --- Bigger, louder price --- */
.product-price {
  font-family: var(--font-display, 'Black Han Sans'), sans-serif !important;
  font-size: 2.4rem !important;
  color: var(--lime) !important;
  text-shadow: 2px 2px 0 var(--purple), 4px 4px 12px rgba(0,0,0,0.55);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0.35rem 0 0.75rem !important;
}

/* --- Swatch selection: dim unselected swatches, keep selected bright --- */
.color-swatch {
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.product-card[data-selected-color] .color-swatch:not(.selected) {
  opacity: 0.5;
}

/* --- Global focus rings --- */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  outline-offset: 4px;
}

/* --- Cart FAB: idle bob + stronger shadow --- */
@keyframes fabBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.cart-fab:not(.hidden) {
  animation: fabBob 2.8s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(204,255,0,0.35), 0 4px 12px rgba(0,0,0,0.4);
}
.cart-fab:hover { animation-play-state: paused; }

/* --- Fly-to-cart ghost --- */
.fly-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 0 2px var(--lime);
  background: var(--bg-card, #2A1008);
  transition: transform 0.7s cubic-bezier(0.5, -0.2, 0.7, 1), opacity 0.7s ease;
}
.fly-ghost img, .fly-ghost svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- How it works section --- */
#how-it-works {
  background: linear-gradient(135deg, #9B4DBE 0%, #2EC4B6 100%);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
#how-it-works::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0 14px,
    transparent 14px 28px
  );
  pointer-events: none;
}
.hiw-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hiw-title {
  font-family: var(--font-display, 'Black Han Sans'), sans-serif;
  color: var(--lime);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.hiw-step {
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--lime);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  color: #fff;
  position: relative;
}
.hiw-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: #1A0A00;
  font-family: var(--font-display, 'Black Han Sans'), sans-serif;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: -2.5rem auto 0.9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.hiw-step h3 {
  font-family: var(--font-body, 'Boogaloo'), cursive;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  color: #fff;
}
.hiw-step p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

/* --- Admin stat chips: revenue + today --- */
.stat-chip--revenue::before { background: #CCFF00 !important; }
.stat-chip--today::before { background: #FF6B9D !important; }

/* --- Custom lightning-bolt cursor (desktop) --- */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 40 80'><polygon points='28,0 12,38 22,38 6,80 40,30 26,30' fill='%23CCFF00' stroke='%231A0A00' stroke-width='3' stroke-linejoin='round'/></svg>") 6 4, auto;
  }
  a, button, .color-swatch, .product-card, [role="button"] {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 40 80'><polygon points='28,0 12,38 22,38 6,80 40,30 26,30' fill='%239B4DBE' stroke='%23CCFF00' stroke-width='4' stroke-linejoin='round'/></svg>") 6 4, pointer;
  }
}

/* --- Marquee ticker --- */
.marquee {
  position: relative;
  background: #1A0A00;
  border-top: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  overflow: hidden;
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  z-index: 90;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeSlide 22s linear infinite;
  will-change: transform;
}
.marquee-track span { padding-right: 2rem; }
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- Latest drop pill --- */
.latest-drop {
  background: linear-gradient(90deg, rgba(155,77,190,0.18), rgba(46,196,182,0.18));
  border-bottom: 1px solid rgba(204,255,0,0.2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.latest-drop-pill {
  background: var(--lime);
  color: #1A0A00;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.latest-drop-text { transition: opacity 0.4s; }

/* --- Sticker badges on product cards --- */
.product-card { position: relative; overflow: visible; }
.badge-sticker {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body, 'Boogaloo'), cursive;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid #1A0A00;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
  transform: rotate(6deg);
  animation: stickerWiggle 3.5s ease-in-out infinite;
}
@keyframes stickerWiggle {
  0%, 100% { transform: rotate(6deg) scale(1); }
  50%      { transform: rotate(-4deg) scale(1.05); }
}
.badge-sticker--popular { background: #FF6B9D; color: #fff; }
.badge-sticker--new     { background: var(--lime); color: #1A0A00; }
.badge-sticker--low     { background: #E63946; color: #fff; }
.badge-sticker--hot     { background: #FFB700; color: #1A0A00; }
.badge-sticker--sale    { background: #3DDC84; color: #1A0A00; }

/* --- Vibe emoji next to product name --- */
.vibe-emoji {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 1.1em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}
.product-card:hover .vibe-emoji {
  transform: rotate(-12deg) scale(1.3);
}

/* Card stays visually stable when a swatch is selected — only image tint changes */

/* --- Animated gradient title --- */
@keyframes titleCycle {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.hero-title {
  position: relative;
  background: linear-gradient(90deg, #CCFF00, #2EC4B6, #9B4DBE, #FF6B9D, #CCFF00);
  background-size: 300% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleCycle 6s linear infinite, glitch 3.2s infinite alternate;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.28)) drop-shadow(0 0 18px rgba(204,255,0,0.35));
  letter-spacing: -0.02em;
}

/* Shadow-layer behind the gradient text for depth */
.hero-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0; right: 0; top: 0;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(26,10,0,0.55);
  z-index: -1;
  transform: translate(4px, 6px);
  pointer-events: none;
}

/* Logo wrap + pulsing glow behind text */
.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 1rem;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 120%; height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(204,255,0,0.28) 0%, rgba(204,255,0,0) 65%);
  z-index: -2;
  animation: heroPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* "Est. 2025" pill under the logo */
.hero-est {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  letter-spacing: 0.22em;
  color: #1A0A00;
  background: var(--lime);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.3), 0 0 18px rgba(204,255,0,0.4);
  transform: rotate(-2deg);
}

/* Sparkles around the logo */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.1) rotate(180deg); }
}
.hero-sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(204,255,0,0.9);
  pointer-events: none;
  animation: sparkleTwinkle 2.4s ease-in-out infinite;
}
.hero-sparkle--1 { top: -8%;  left: -6%;  animation-delay: 0s;   }
.hero-sparkle--2 { top: 12%;  right: -4%; animation-delay: 0.8s; }
.hero-sparkle--3 { bottom: 18%; left: 4%;  animation-delay: 1.6s; font-size: 1.1rem; }

/* --- Confetti --- */
@keyframes confettiFly {
  0%   { transform: translate(0,0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
.confetti-piece {
  position: fixed;
  top: 50%;
  pointer-events: none;
  z-index: 10001;
  animation: confettiFly 1.3s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* --- Sound toggle + footer right --- */
footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-right { display: flex; align-items: center; gap: 1rem; }
.sound-toggle {
  background: transparent;
  border: 1.5px solid rgba(204,255,0,0.35);
  color: rgba(255,255,255,0.75);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.sound-toggle:hover { border-color: var(--lime); color: var(--lime); }

/* --- Nav theme toggle --- */
.nav-theme-btn {
  background: transparent;
  border: 1.5px solid rgba(204,255,0,0.35);
  color: var(--lime);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.2s;
}
.nav-theme-btn:hover { transform: rotate(20deg); border-color: var(--lime); }

/* --- Light mode --- */
body.light-mode {
  background: #FFF4E8;
  color: #1A0A00;
}
body.light-mode #hero {
  background: radial-gradient(ellipse at 50% 30%, #FFC99A 0%, #F28D60 70%, #E8583A 100%);
}
body.light-mode #hero::before { opacity: 0.5; }
body.light-mode .tagline { color: #3B1A0A; }
body.light-mode #products,
body.light-mode #contact,
body.light-mode #how-it-works {
  background: linear-gradient(180deg, #FFFBF2 0%, #FFF4E8 100%);
  color: #1A0A00;
}
body.light-mode .product-card {
  background: #fff;
  color: #1A0A00;
  border-color: rgba(26,10,0,0.12);
  box-shadow: 0 6px 18px rgba(26,10,0,0.08);
}
body.light-mode .product-card:hover {
  border-color: rgba(232,88,58,0.6);
  box-shadow: 0 10px 26px rgba(26,10,0,0.14);
}
body.light-mode .product-card h3 { color: #1A0A00; }
body.light-mode .product-card p { color: rgba(26,10,0,0.72); }
body.light-mode .product-price { color: #E8583A; text-shadow: 1px 1px 0 rgba(0,0,0,0.08); }
body.light-mode .section-sub { color: rgba(26,10,0,0.65); }
body.light-mode h2 {
  color: #1A0A00;
  text-shadow: 2px 2px 0 rgba(232,88,58,0.2);
}
body.light-mode .card-color-label { color: rgba(26,10,0,0.7); }
body.light-mode .add-to-cart-btn:disabled {
  background: #E8DFD1;
  color: rgba(26,10,0,0.35);
}
body.light-mode .hiw-step {
  background: #fff;
  color: #1A0A00;
  border-color: rgba(26,10,0,0.1);
  box-shadow: 0 4px 14px rgba(26,10,0,0.06);
}
body.light-mode .hiw-step h3, body.light-mode .hiw-step p { color: #1A0A00; }
body.light-mode .contact-card {
  background: #fff;
  color: #1A0A00;
  border-color: rgba(26,10,0,0.1);
}
body.light-mode .contact-card a { color: #E8583A; }
body.light-mode #main-nav {
  background: #fff;
  border-bottom-color: rgba(26,10,0,0.1);
  box-shadow: 0 2px 8px rgba(26,10,0,0.06);
}
body.light-mode #main-nav a { color: #1A0A00; }
body.light-mode #main-nav a:hover,
body.light-mode #main-nav a.active { color: #E8583A; }
body.light-mode .nav-cart-btn,
body.light-mode .nav-theme-btn {
  color: #1A0A00;
  border-color: rgba(26,10,0,0.2);
}
body.light-mode .marquee {
  background: #1A0A00;
}
body.light-mode footer {
  background: #1A0A00;
  color: rgba(255,255,255,0.85);
}
body.light-mode .cart-item,
body.light-mode .checkout-summary-row { color: #1A0A00; }
body.light-mode .cart-panel {
  background: #FFFBF2;
  color: #1A0A00;
}
body.light-mode .cart-panel input,
body.light-mode .cart-panel textarea {
  background: #fff;
  color: #1A0A00;
  border-color: rgba(26,10,0,0.2);
}
body.light-mode .cart-total-price { color: #E8583A; }
body.light-mode .latest-drop {
  background: #fff;
  color: #1A0A00;
  border-color: rgba(26,10,0,0.15);
}

/* --- Admin: clickable contact + toast --- */
.order-card-contact[data-copy] {
  cursor: pointer;
  transition: color 0.15s;
}
.order-card-contact[data-copy]:hover {
  color: var(--lime);
  text-decoration: underline;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);
  background: #1A0A00;
  color: var(--lime);
  border: 2px solid var(--lime);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  z-index: 10002;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  #hero, .hero-cone--left, .hero-cone--center, .hero-cone--right,
  .bolt, .cart-fab, .reveal {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   BRAND REFRESH — KL Print Lab logo blue + orange
   ================================================================ */

:root {
  --blue:         #1E90FF;
  --blue-dark:    #1464C8;
}

/* Primary buttons → brand blue */
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,144,255,0.38);
  text-decoration: none;
}

/* Nav → blue border + orange active */
#main-nav { border-bottom-color: var(--blue); }
#main-nav a:hover, #main-nav a.nav--active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.nav-cart-btn { border-color: rgba(30,144,255,0.4); color: var(--blue); }
.nav-cart-btn:hover { background: rgba(30,144,255,0.1); border-color: var(--blue); }
.nav-theme-btn { border-color: rgba(30,144,255,0.4); color: var(--blue); }

/* Cart + modal → blue border */
.cart-panel { border-color: var(--blue); }
.cart-panel::before { background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 50%, var(--teal) 100%); }
.cart-panel-title { color: var(--orange); }
.cart-total-price, #checkout-total-price { color: var(--orange); }
.cart-checkout-btn:not(:disabled), .btn--primary.cart-checkout-btn:not(:disabled) { background: var(--blue); }
.modal { border-color: var(--blue); box-shadow: 0 0 60px rgba(30,144,255,0.1), 0 20px 60px rgba(0,0,0,0.6); }
.modal::before { background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 50%, var(--teal) 100%); }

/* Products section border → blue */
#products { border-top-color: var(--blue); }

/* ---- Hero logo (PNG with white bg — multiply blends white away on orange) ---- */
.hero-logo {
  width: clamp(200px, 50vw, 340px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

/* Hide the decorative cone SVGs — the logo is the hero visual now */
.hero-cones { display: none; }

/* ---- Admin header logo pill (white bg so PNG is legible on dark header) ---- */
.admin-logo-pill {
  background: #fff;
  border-radius: 10px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.admin-logo-pill img {
  height: 32px;
  width: auto;
  display: block;
}

/* ================================================================
   ACTIVE FILAMENTS PANEL (admin-products.html)
   ================================================================ */

.filaments-panel {
  background: var(--bg-card);
  border: 2px solid rgba(30,144,255,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.filaments-panel-header { margin-bottom: 1.25rem; }
.filaments-panel-header h2 {
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.filaments-panel-header p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.filament-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filament-slot {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.filament-slot:hover { border-color: rgba(30,144,255,0.4); }

.filament-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  min-height: 52px;
}
.filament-swatch--glitter::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, var(--sparkle, #fff) 1px, transparent 1px) 0 0 / 6px 6px,
    radial-gradient(circle, var(--sparkle, #fff) 1px, transparent 1px) 3px 3px / 6px 6px;
  opacity: 0.55;
  pointer-events: none;
}

.filament-name {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}
.filament-name:focus { outline: none; border-color: var(--blue); }

.filament-type {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.filament-type:focus { outline: none; border-color: var(--blue); }

.filament-color-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.filament-color-row label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}
.filament-color-row input[type=color] {
  width: 28px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
}
.filament-c2-wrap.hidden,
.filament-sparkle-wrap.hidden { display: none; }

.filament-actions { display: flex; align-items: center; gap: 0.75rem; }
.filament-save-status { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); }

/* ================================================================
   PART FILAMENTS UI (modal)
   ================================================================ */

.part-filaments {
  background: rgba(30,144,255,0.06);
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}
.part-filaments.hidden { display: none; }

.part-filaments-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.5rem;
}

.part-filaments-list { display: flex; flex-direction: column; gap: 0.4rem; }

.part-filament-row { display: flex; align-items: center; gap: 0.5rem; }
.part-filament-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  min-width: 44px;
}
.part-filament-row select {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: #fff;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.single-filament {
  background: rgba(255,107,26,0.06);
  border: 1px solid rgba(255,107,26,0.25);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.single-filament.hidden { display: none; }
#single-filament-select {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: #fff;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ================================================================
   EMPTY MODEL PLACEHOLDER
   ================================================================ */

.empty-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 130px;
  font-size: 2rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  gap: 0.3rem;
}
.empty-model span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.product-image--empty {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  min-height: 180px;
  padding: 1.5rem;
  text-align: center;
}

/* ================================================================
   ADMIN MULTI-PART BADGE + TOAST
   ================================================================ */

.admin-multi-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.admin-live-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #3DDC84; color: #000;
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  z-index: 2;
}

.admin-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-card);
  color: #fff;
  border: 2px solid var(--blue);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  opacity: 0;
  z-index: 10002;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.admin-toast.hidden { display: none; }
.admin-toast--show { opacity: 1 !important; transform: translate(-50%, 0) !important; }

/* ================================================================
   FILAMENT SWATCHES — storefront product cards
   ================================================================ */

/* Inline styles drive the background; these add type-specific overlays */
.filament-swatch-btn {
  position: relative;
  overflow: hidden;
}
.filament-swatch-btn[data-type="glitter"]::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) 0 0 / 5px 5px,
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) 2.5px 2.5px / 5px 5px;
  opacity: 0.5;
  pointer-events: none;
}

/* ================================================================
   RESPONSIVE — filament panel mobile
   ================================================================ */

@media (max-width: 780px) {
  .filament-slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .filament-slots { grid-template-columns: 1fr 1fr; }
}

/* ===== Per-part stacked rendering ===== */
.product-image--stacked {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #FAF7F2 0%, #E8E0D4 100%);
  overflow: hidden;
  border-radius: 16px;
}
.stl-part { position: absolute; inset: 0; isolation: isolate; }
.stl-part .part-white {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.stl-part .part-tint {
  position: absolute; inset: 0;
  background: #FFFFFF;
  mix-blend-mode: multiply;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: none;
  transition: background 0.2s ease;
}
.part-color-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.part-color-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.part-color-num {
  font: 700 0.7rem var(--font-mono);
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.part-color-row .color-picker { gap: 0.55rem; padding: 0; }
.cart-item-dots { display: inline-flex; gap: 3px; align-items: center; }

/* ===== Pre-rendered product image container ===== */
.product-image--renders {
  background: linear-gradient(160deg, #FAF7F2 0%, #E8E0D4 100%);
  aspect-ratio: 1;
  padding: 0;
  display: block;
}

/* ===== Pre-rendered product hero image ===== */
.product-hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
  animation: hero-float 5s ease-in-out infinite;
  transition: opacity 0.15s ease;
}
.product-hero--placeholder {
  display: grid; place-items: center;
  font-size: 3rem; color: rgba(0,0,0,0.25);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ===== Admin per-part name input ===== */
.part-filament-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.default-slot-picker {
  display: flex;
  gap: 5px;
  align-items: center;
}
.default-slot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.default-slot-btn:hover { transform: scale(1.15); }
.default-slot-btn.selected {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4a6dff;
}
.part-filament-row .part-name-input {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: #fff;
  font: 600 0.8rem var(--font-body, system-ui);
  color: #1a1a1a;
  min-width: 0;
}
.part-filament-row .part-name-input:focus {
  outline: none;
  border-color: #4a6dff;
}

.part-color-label-text {
  font: 700 0.7rem var(--font-mono);
  color: rgba(255,255,255,0.85);
  min-width: 60px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
