/* ============================================================
   HYLTON 3D PRINT SHOP — Shared Stylesheet
   Dark / Tech / Purple Theme
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #09090f;
  --bg-surface:    #111120;
  --bg-elevated:   #1a1a2e;
  --bg-card:       #16162a;

  /* Purple Palette */
  --purple-deep:   #2a1060;
  --purple-main:   #5e35b1;
  --purple-bright: #7c4dff;
  --purple-glow:   #9c6fffaa;
  --purple-light:  #b39ddb;
  --purple-muted:  #3d2080;

  /* Text */
  --text-primary:  #e8e8f4;
  --text-secondary:#a0a0c0;
  --text-muted:    #60607a;

  /* Accents */
  --accent-teal:   #00e5ff;
  --accent-pink:   #e040fb;
  --border-color:  #2a2a45;
  --border-glow:   #5e35b166;

  /* Feedback */
  --success:       #00e676;
  --warning:       #ffab40;
  --danger:        #ff5252;

  /* Sizing */
  --nav-height:    70px;
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    all 0.25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--purple-bright);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-bright), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-height);
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-links a.active {
  color: var(--purple-light);
}

.nav-cart-btn {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-cart-btn:hover {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--purple-bright);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
}

/* ── Cart Sidebar ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--purple-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

.qty-value {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
  transition: var(--transition);
}

.cart-remove:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.cart-total span:last-child {
  color: var(--purple-bright);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
  color: white;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--purple-bright);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple-muted);
}

.btn-outline:hover {
  background: var(--purple-muted);
  color: white;
  border-color: var(--purple-bright);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card-body {
  padding: 1.25rem;
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(94,53,177,0.2);
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(94,53,177,0.25);
}

.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple-bright);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select option {
  background: var(--bg-elevated);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 8%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(94,53,177,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(340px, 44vw, 640px);
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 16px 48px rgba(94, 53, 177, 0.3);
  display: block;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 24px 80px rgba(94,53,177,0.35);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── Section Wrappers ──────────────────────────────────────── */
.section {
  padding: 5rem 8%;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

/* ── Grid Layouts ──────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 8%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-bright), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ── Feature / Icon Blocks ─────────────────────────────────── */
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-muted));
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ── Divider / Glow Line ───────────────────────────────────── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ── Badges & Tags ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-purple {
  background: rgba(124,77,255,0.2);
  color: var(--purple-light);
  border: 1px solid rgba(124,77,255,0.3);
}

.badge-teal {
  background: rgba(0,229,255,0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(0,229,255,0.2);
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-muted) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,77,255,0.15), transparent);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 8% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--purple-bright);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease forwards;
  pointer-events: all;
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--purple-light);
}

.breadcrumb .sep {
  opacity: 0.4;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-hero {
  padding: 4rem 8% 3rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(94,53,177,0.15), transparent);
  pointer-events: none;
}

.page-hero > * { position: relative; z-index: 1; }

/* ── Cart Delivery Selector ────────────────────────────────── */
.cart-delivery-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.delivery-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.delivery-choice:hover { border-color: var(--purple-muted); }

.delivery-choice.active {
  border-color: var(--purple-bright);
  background: rgba(124, 77, 255, 0.08);
}

.delivery-choice > i {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 14px;
  flex-shrink: 0;
}

.delivery-choice.active > i { color: var(--purple-light); }

.delivery-choice b {
  display: block;
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.delivery-choice small {
  display: block;
  font-size: 0.67rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-main); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 5% 2.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
  }

  .hero-video {
    max-height: 40vh;
  }
}

@media (max-width: 960px) {
  .section { padding: 3rem 5%; }
  .page-hero { padding: 2.5rem 5% 2rem; }
  .stats-bar { padding: 2rem 5%; }
  .site-nav { padding: 0 5%; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 5%;
    gap: 0.25rem;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  /* ── Touch / iOS improvements ─────────────────────────── */
  /* Prevent iOS Safari from zooming on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Comfortable touch targets */
  .btn { min-height: 44px; }
  .nav-cart-btn, .nav-mobile-toggle { min-width: 44px; min-height: 44px; }

  /* Product cards — tighter on mobile */
  .product-card-img { height: 180px; }

  /* Gallery tab filters wrap nicely */
  .filter-tabs { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 5%; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  /* Stats bar single column on very small screens */
  .stats-bar { flex-direction: column; gap: 1.25rem; }

  /* Steps indicator — tighter on small screens */
  .steps-indicator { gap: 0; }
}


/* ════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES (extracted from inline <style>)
════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   index.html — page-specific styles
══════════════════════════════════════════ */
/* ── Home-specific styles ── */
    .featured-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
    }

    .process-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      counter-reset: steps;
    }

    .process-step {
      position: relative;
      padding: 1.5rem;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      counter-increment: steps;
    }

    .process-step::before {
      content: counter(steps, decimal-leading-zero);
      position: absolute;
      top: 1rem;
      right: 1rem;
      font-size: 2rem;
      font-weight: 900;
      color: var(--purple-muted);
      opacity: 0.5;
      line-height: 1;
    }

    .materials-row {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
    }

    .material-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .material-chip i {
      color: var(--purple-light);
    }

    .testimonial-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      transition: var(--transition);
    }

    .testimonial-card:hover {
      border-color: var(--border-glow);
    }

    .stars { color: #ffd740; font-size: 0.85rem; margin-bottom: 0.75rem; }
    .testimonial-text { color: var(--text-secondary); font-size: 0.9rem; font-style: italic; margin-bottom: 1rem; }
    .testimonial-author { font-weight: 700; font-size: 0.85rem; }
    .testimonial-role { color: var(--text-muted); font-size: 0.78rem; }

    /* ── Gear section responsive ── */
    .gear-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    .printer-imgs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .img-offset { margin-top: 24px; }
    @media (max-width: 768px) {
      .gear-layout { grid-template-columns: 1fr; gap: 2rem; }
      .printer-imgs { grid-template-columns: 1fr 1fr; } /* keep 2-col for images */
      .img-offset { margin-top: 0; }
    }

    /* ── Promo Slideshow ── */
    .promo-stage {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #09090f;
      overflow: hidden;
      cursor: pointer;
      border-radius: var(--radius-lg);
      border: 1px solid rgba(124,77,255,0.2);
      box-shadow: 0 0 40px rgba(124,77,255,0.1);
      font-family: 'Exo 2', sans-serif;
    }

    /* hex grid bg */
    .promo-stage::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16Z' fill='none' stroke='rgba(124,77,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
      background-size: 56px 64px;
      z-index: 0;
    }

    .promo-scanline {
      position: absolute;
      top: -2px; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, #7c4dff, transparent);
      z-index: 20;
      animation: promo-scan 3s linear infinite;
      opacity: 0.6;
    }
    @keyframes promo-scan {
      0%   { top: -2px; }
      100% { top: 100%; }
    }

    .promo-glow {
      position: absolute;
      width: 60%; height: 50%;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      background: radial-gradient(ellipse, rgba(124,77,255,0.12) 0%, transparent 70%);
      z-index: 1;
      animation: promo-pulse 3s ease-in-out infinite;
    }
    @keyframes promo-pulse {
      0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
      50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
    }

    .promo-corner { position: absolute; width: 20px; height: 20px; z-index: 15; }
    .promo-corner.tl { top: 10px; left: 10px; border-top: 2px solid #7c4dff; border-left: 2px solid #7c4dff; }
    .promo-corner.tr { top: 10px; right: 10px; border-top: 2px solid #7c4dff; border-right: 2px solid #7c4dff; }
    .promo-corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid #7c4dff; border-left: 2px solid #7c4dff; }
    .promo-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid #7c4dff; border-right: 2px solid #7c4dff; }

    .promo-slide {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }
    .promo-slide.active { opacity: 1; pointer-events: auto; }

    /* Slide 1 */
    .ps1 .ps-tagline {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(8px, 1.2vw, 11px);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: #7c4dff;
      margin-bottom: clamp(10px, 1.8vw, 18px);
      opacity: 0; transform: translateY(10px);
      transition: all 0.6s ease 0.2s;
    }
    .ps1.active .ps-tagline { opacity: 1; transform: translateY(0); }

    .ps1 .ps-headline {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(28px, 6.5vw, 64px);
      font-weight: 700;
      line-height: 1;
      text-align: center;
      color: #e2e8f0;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      opacity: 0; transform: translateY(20px);
      transition: all 0.7s ease 0.4s;
    }
    .ps1.active .ps-headline { opacity: 1; transform: translateY(0); }
    .ps1 .ps-headline span { color: #7c4dff; }

    .ps1 .ps-sub {
      margin-top: clamp(8px, 1.2vw, 16px);
      font-size: clamp(9px, 1.4vw, 15px);
      color: #94a3b8;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 300;
      opacity: 0;
      transition: all 0.6s ease 0.8s;
    }
    .ps1.active .ps-sub { opacity: 1; }

    .ps1 .ps-divider {
      width: 0; height: 2px;
      background: linear-gradient(90deg, transparent, #7c4dff, transparent);
      margin: clamp(10px, 1.8vw, 20px) auto;
      transition: width 0.8s ease 0.6s;
    }
    .ps1.active .ps-divider { width: clamp(100px, 22vw, 200px); }

    .ps1 .ps-hex-logo {
      width: clamp(36px, 6vw, 64px); height: clamp(36px, 6vw, 64px);
      color: #7c4dff;
      margin-bottom: clamp(10px, 1.8vw, 20px);
      opacity: 0; transform: scale(0.6) rotate(-30deg);
      transition: all 0.6s cubic-bezier(.34,1.56,.64,1) 0s;
    }
    .ps1.active .ps-hex-logo { opacity: 1; transform: scale(1) rotate(0deg); }

    /* Slide 2 */
    .ps2 .ps-slide-label {
      font-size: clamp(8px, 1vw, 10px);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: #7c4dff;
      margin-bottom: clamp(6px, 1vw, 12px);
      opacity: 0; transition: opacity 0.5s ease 0.2s;
    }
    .ps2.active .ps-slide-label { opacity: 1; }

    .ps2 .ps-printer-row {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 0;
      width: 100%;
      height: clamp(160px, 28vw, 300px);
    }

    .ps-p-item {
      display: flex; flex-direction: column; align-items: center;
      flex: 1; max-width: 280px;
      opacity: 0; transform: translateY(40px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .ps2.active .ps-p-item:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
    .ps2.active .ps-p-item:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.4s; }
    .ps2.active .ps-p-item:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.6s; }

    .ps-p-item img {
      width: clamp(60px, 10vw, 150px); height: clamp(60px, 10vw, 150px);
      max-width: 90%;
      object-fit: contain;
      filter: drop-shadow(0 8px 20px rgba(124,77,255,0.3)) drop-shadow(0 4px 12px rgba(0,0,0,0.8));
      transition: transform 0.3s ease;
    }
    .ps-p-item:hover img { transform: translateY(-8px) scale(1.05); }

    .ps-p-name {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(10px, 1.6vw, 16px);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #e2e8f0;
      margin-top: clamp(4px, 0.8vw, 8px);
    }
    .ps-p-tag {
      font-size: clamp(8px, 1vw, 10px);
      letter-spacing: 0.12em;
      color: #9e6bff;
      text-transform: uppercase;
      margin-top: 2px;
    }

    .ps-p-divider {
      width: 1px; height: 40%;
      background: linear-gradient(180deg, transparent, rgba(124,77,255,0.3), transparent);
      align-self: center; flex-shrink: 0;
    }

    /* Slide 3 */
    .ps3 .ps-stats-headline {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(11px, 1.8vw, 18px);
      font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
      color: #94a3b8;
      margin-bottom: clamp(16px, 3vw, 40px);
      opacity: 0; transition: opacity 0.5s ease 0.2s;
    }
    .ps3.active .ps-stats-headline { opacity: 1; }

    .ps3 .ps-stats-grid {
      display: grid; grid-template-columns: repeat(4,1fr);
      gap: 2px; width: 85%;
    }

    .ps-stat-box {
      background: rgba(124,77,255,0.06);
      border: 1px solid rgba(124,77,255,0.2);
      padding: clamp(10px, 2vw, 24px) clamp(6px, 1.2vw, 16px);
      text-align: center;
      opacity: 0; transform: scale(0.85);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .ps3.active .ps-stat-box:nth-child(1) { opacity:1; transform:scale(1); transition-delay:0.2s; }
    .ps3.active .ps-stat-box:nth-child(2) { opacity:1; transform:scale(1); transition-delay:0.35s; }
    .ps3.active .ps-stat-box:nth-child(3) { opacity:1; transform:scale(1); transition-delay:0.5s; }
    .ps3.active .ps-stat-box:nth-child(4) { opacity:1; transform:scale(1); transition-delay:0.65s; }

    .ps-stat-num {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(24px, 4.5vw, 48px); font-weight: 700;
      color: #7c4dff; line-height: 1;
    }
    .ps-stat-unit {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(14px, 2.5vw, 28px); color: #9e6bff;
    }
    .ps-stat-label {
      font-size: clamp(7px, 1vw, 10px);
      letter-spacing: 0.15em; text-transform: uppercase;
      color: #94a3b8; margin-top: clamp(4px, 0.8vw, 8px);
    }

    /* Slide 4 */
    .ps4 .ps-cta-pre {
      font-size: clamp(8px, 1.1vw, 11px);
      letter-spacing: 0.3em; text-transform: uppercase;
      color: #7c4dff;
      margin-bottom: clamp(8px, 1.4vw, 16px);
      opacity: 0; transition: opacity 0.5s ease 0.2s;
    }
    .ps4.active .ps-cta-pre { opacity: 1; }

    .ps4 .ps-cta-headline {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(22px, 4.8vw, 52px); font-weight: 700;
      text-transform: uppercase; text-align: center;
      color: #e2e8f0; line-height: 1.05;
      opacity: 0; transform: translateY(16px);
      transition: all 0.7s ease 0.3s;
    }
    .ps4.active .ps-cta-headline { opacity: 1; transform: translateY(0); }
    .ps4 .ps-cta-headline em { color: #7c4dff; font-style: normal; }

    .ps4 .ps-cta-btn {
      margin-top: clamp(14px, 2.5vw, 32px);
      padding: clamp(8px, 1.3vw, 14px) clamp(18px, 3.5vw, 40px);
      background: #7c4dff; color: #fff;
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(11px, 1.5vw, 16px); font-weight: 700;
      letter-spacing: 0.15em; text-transform: uppercase;
      border: none; cursor: pointer;
      opacity: 0; transform: translateY(10px);
      transition: all 0.5s ease 0.7s, background 0.2s;
      text-decoration: none; display: inline-block;
    }
    .ps4.active .ps-cta-btn { opacity: 1; transform: translateY(0); }
    .ps4 .ps-cta-btn:hover { background: #9e6bff; color: #fff; }

    .ps4 .ps-url {
      margin-top: clamp(6px, 1vw, 14px);
      font-size: clamp(8px, 1.1vw, 11px);
      letter-spacing: 0.15em; color: #94a3b8;
      text-transform: uppercase;
      opacity: 0; transition: opacity 0.5s ease 1s;
    }
    .ps4.active .ps-url { opacity: 1; }

    /* Top bar */
    .promo-top-bar {
      position: absolute; top: 0; left: 0; right: 0;
      height: clamp(24px, 4vw, 36px);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 clamp(10px, 1.5vw, 20px);
      z-index: 15;
      border-bottom: 1px solid rgba(124,77,255,0.1);
      background: rgba(9,9,15,0.6);
    }
    .promo-top-bar .ptb-logo {
      font-family: 'Rajdhani', sans-serif;
      font-size: clamp(9px, 1.3vw, 13px); font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase; color: #e2e8f0;
    }
    .promo-top-bar .ptb-logo span { color: #7c4dff; }
    .promo-top-bar .ptb-badge {
      font-size: clamp(7px, 0.9vw, 9px); letter-spacing: 0.15em;
      text-transform: uppercase; color: #7c4dff;
      border: 1px solid rgba(124,77,255,0.4); padding: 2px clamp(4px,0.8vw,8px);
    }

    /* Progress bar */
    .promo-progress {
      position: absolute; bottom: 0; left: 0;
      height: 3px; background: #7c4dff; z-index: 20;
      width: 0%; transition: width linear;
    }

    /* Dots */
    .promo-dots {
      position: absolute; bottom: clamp(8px,1.5vw,18px);
      left: 50%; transform: translateX(-50%);
      display: flex; gap: 6px; z-index: 20;
    }
    .promo-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: rgba(124,77,255,0.3);
      border: 1px solid rgba(124,77,255,0.5);
      transition: background 0.3s, transform 0.3s; cursor: pointer;
    }
    .promo-dot.active { background: #7c4dff; transform: scale(1.3); }

/* ══════════════════════════════════════════
   shop.html — page-specific styles
══════════════════════════════════════════ */
.shop-layout {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 2rem;
      align-items: start;
    }

    .shop-sidebar {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      position: sticky;
      top: calc(var(--nav-height) + 1.5rem);
    }

    .filter-heading {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
      margin-top: 1.25rem;
    }

    .filter-heading:first-child { margin-top: 0; }

    .filter-btn {
      display: block;
      width: 100%;
      text-align: left;
      background: none;
      border: 1px solid transparent;
      color: var(--text-secondary);
      padding: 7px 10px;
      border-radius: 7px;
      cursor: pointer;
      font-size: 0.88rem;
      transition: var(--transition);
      margin-bottom: 3px;
    }

    .filter-btn:hover {
      background: var(--bg-elevated);
      color: var(--text-primary);
    }

    .filter-btn.active {
      background: var(--bg-elevated);
      border-color: var(--border-glow);
      color: var(--purple-light);
      font-weight: 600;
    }

    .filter-count {
      float: right;
      background: var(--bg-base);
      border-radius: 10px;
      padding: 1px 7px;
      font-size: 0.72rem;
      color: var(--text-muted);
    }

    .price-filter {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-top: 0.5rem;
    }

    .price-filter input {
      padding: 7px 10px;
      font-size: 0.82rem;
    }

    .shop-main-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .results-count {
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .sort-select {
      width: auto;
      padding: 8px 12px;
      font-size: 0.85rem;
      cursor: pointer;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1.25rem;
    }

    .product-card.hidden { display: none; }

    .no-results {
      grid-column: 1/-1;
      text-align: center;
      padding: 4rem 1rem;
      color: var(--text-muted);
    }

    .no-results i { font-size: 2rem; margin-bottom: 1rem; display: block; }

    /* ── Mobile filter drawer ─────────────────────────────── */
    .mobile-filter-toggle {
      display: none;
      align-items: center;
      gap: 8px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      padding: 9px 14px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
    }
    .mobile-filter-toggle:hover,
    .mobile-filter-toggle.active {
      border-color: var(--border-glow);
      color: var(--purple-light);
    }
    .mobile-filter-header {
      display: none;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem 0.75rem;
      border-bottom: 1px solid var(--border-color);
      margin: -1.5rem -1.5rem 1rem;
      background: var(--bg-surface);
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .mobile-filter-header span {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-primary);
    }
    .mobile-filter-header button {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.3rem;
      line-height: 1;
      cursor: pointer;
      padding: 4px 6px;
      border-radius: 6px;
    }
    .mobile-filter-header button:hover { color: var(--text-primary); }
    .filter-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 1050;
    }
    .filter-overlay.visible { display: block; }

    @media (max-width: 900px) {
      .shop-layout { grid-template-columns: 1fr; }
      .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 310px);
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1100;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        border: none;
        border-right: 1px solid var(--border-glow);
        padding: 1.5rem;
        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        -webkit-overflow-scrolling: touch;
      }
      .shop-sidebar.mobile-open {
        transform: translateX(0);
      }
      .mobile-filter-toggle { display: flex; }
      .mobile-filter-header { display: flex; }
      .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
      }
      .product-card-img { height: 150px; }
    }

    @media (max-width: 480px) {
      .shop-main-header { gap: 0.5rem; }
      .sort-select { font-size: 0.8rem; padding: 7px 8px; }
    }

    /* ── Product Card Image Wrap ─────────────────────────── */
    .product-card { cursor: pointer; }
    .product-card-img-wrap {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: var(--bg-elevated);
      flex-shrink: 0;
    }
    .product-card-img {
      display: block;
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.35s ease;
    }
    .product-card:hover .product-card-img { transform: scale(1.04); }
    .product-img-count {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(0,0,0,0.65);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      gap: 4px;
      backdrop-filter: blur(4px);
      border: 1px solid rgba(124,77,255,0.4);
    }

    /* ── Product Detail Modal ────────────────────────────── */
    .pm-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(6px);
      padding: 1rem;
    }
    .pm-overlay.open { display: flex; }

    .pm-dialog {
      position: relative;
      width: min(90vw, 820px);
      max-height: 92vh;
      background: var(--bg-surface);
      border: 1px solid rgba(124,77,255,0.4);
      border-radius: var(--radius-lg);
      box-shadow: 0 0 70px rgba(124,77,255,0.25);
      display: flex;
      flex-direction: row;
      overflow: hidden;
    }

    /* Gallery side */
    .pm-gallery {
      position: relative;
      flex: 0 0 55%;
      overflow: hidden;
      /* aspect-ratio keeps a clean frame with no black bars */
      aspect-ratio: 4 / 3;
      max-height: 480px;
    }
    .pm-img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    /* Prev/Next arrows */
    .pm-nav {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0.5rem;
      pointer-events: none;
    }
    .pm-arrow {
      pointer-events: all;
      background: rgba(0,0,0,0.55);
      border: 1px solid rgba(124,77,255,0.45);
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      transition: background 0.2s, border-color 0.2s;
    }
    .pm-arrow:hover {
      background: rgba(124,77,255,0.5);
      border-color: var(--purple-bright);
    }

    /* Dot indicators */
    .pm-dots {
      position: absolute;
      bottom: 10px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 6px;
    }
    .pm-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.35);
      border: 1px solid rgba(124,77,255,0.4);
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    .pm-dot.active {
      background: var(--purple-bright);
      transform: scale(1.25);
    }

    /* Info side */
    .pm-body {
      flex: 1;
      padding: 2rem 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      overflow-y: auto;
    }
    .pm-name {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.3;
      margin: 0;
    }
    .pm-price {
      font-size: 1.6rem;
      font-weight: 900;
      color: var(--purple-bright);
    }
    .pm-desc {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0;
    }
    .pm-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .pm-add {
      margin-top: auto;
      width: 100%;
    }

    /* Close button */
    #pm-close {
      position: absolute;
      top: 10px;
      right: 12px;
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(124,77,255,0.4);
      color: #fff;
      font-size: 1rem;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: background 0.2s;
    }
    #pm-close:hover { background: rgba(124,77,255,0.5); }

    /* Mobile: stack vertically */
    @media (max-width: 620px) {
      .pm-dialog { flex-direction: column; width: 96vw; max-height: 95vh; }
      .pm-gallery { flex: 0 0 auto; aspect-ratio: 4/3; max-height: 55vw; }
      .pm-img { width: 100%; height: 100%; }
      .pm-body { padding: 1.25rem 1rem; }
      .pm-name { font-size: 1.1rem; }
    }

/* ══════════════════════════════════════════
   gallery.html — page-specific styles
══════════════════════════════════════════ */
/* ── Filter Tabs ── */
    .filter-tabs {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 2.5rem;
    }

    .tab-btn {
      padding: 8px 18px;
      border-radius: 30px;
      border: 1px solid var(--border-color);
      background: var(--bg-elevated);
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }

    .tab-btn:hover {
      border-color: var(--purple-bright);
      color: var(--purple-light);
    }

    .tab-btn.active {
      background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
      border-color: transparent;
      color: white;
    }

    /* ── Masonry-style Grid ── */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .gallery-item {
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border-color);
      cursor: pointer;
      transition: var(--transition);
      background: var(--bg-card);
      display: flex;
      flex-direction: column;
    }

    .gallery-item:hover {
      border-color: var(--border-glow);
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(94,53,177,0.3);
    }

    .gallery-item.hidden { display: none; }

    .gallery-img-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/3;
      flex-shrink: 0;
    }

    .gallery-img-wrap img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 0.4s ease;
    }

    .gallery-item:hover .gallery-img-wrap img {
      transform: scale(1.04);
    }

    .gallery-zoom-icon {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.65);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 7px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      color: white;
      opacity: 0;
      transition: var(--transition);
    }

    .gallery-item:hover .gallery-zoom-icon { opacity: 1; }

    .gallery-card-footer {
      padding: 0.85rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      border-top: 1px solid var(--border-color);
    }

    .gallery-card-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gallery-category {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--purple-light);
      background: rgba(124,77,255,0.12);
      border: 1px solid rgba(124,77,255,0.25);
      border-radius: 4px;
      padding: 2px 7px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* ── 3D Model Viewer section ── */
    #section-3d { display: none; }
    #section-3d.visible { display: block; }
    #section-gallery { display: block; }
    #section-gallery.hidden { display: none; }

    .model-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .model-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: var(--transition);
    }

    .model-card:hover {
      border-color: var(--border-glow);
      box-shadow: 0 12px 40px rgba(94,53,177,0.25);
      transform: translateY(-3px);
    }

    model-viewer {
      width: 100%;
      height: 300px;
      background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
      --poster-color: transparent;
    }

    .model-card-body {
      padding: 1.1rem 1.25rem 1.25rem;
    }

    .model-card-title {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.3rem;
    }

    .model-card-meta {
      font-size: 0.78rem;
      color: var(--text-muted);
      display: flex;
      gap: 0.85rem;
      flex-wrap: wrap;
      margin-top: 0.5rem;
    }

    .model-card-meta span {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .model-controls-hint {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-align: center;
      padding: 0.6rem;
      background: var(--bg-elevated);
      border-top: 1px solid var(--border-color);
      display: flex;
      justify-content: center;
      gap: 1.25rem;
    }

    .model-controls-hint span {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .ar-btn {
      display: none; /* shown only on AR-capable devices */
    }

    /* model-viewer built-in controls — restyle */
    model-viewer::part(default-ar-button) {
      display: none;
    }

    /* ── Lightbox ── */
    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .lightbox.open {
      opacity: 1;
      pointer-events: all;
    }

    .lightbox-inner {
      max-width: 900px;
      width: 100%;
      max-height: calc(100vh - 4rem);
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 0;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .lightbox-img {
      width: 100%;
      overflow: hidden;
      min-height: 200px;
    }

    .lightbox-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .lightbox-info {
      padding: 2rem;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      max-height: calc(100vh - 4rem);
    }

    .lightbox-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
    .lightbox-cat {
      color: var(--purple-light);
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 1rem;
    }
    .lightbox-desc { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

    .lightbox-meta {
      margin-top: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .lightbox-meta-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.82rem;
      padding: 0.4rem 0;
      border-bottom: 1px solid var(--border-color);
    }

    .lightbox-meta-row span:first-child { color: var(--text-muted); }
    .lightbox-meta-row span:last-child { font-weight: 600; }

    .lightbox-actions { margin-top: auto; padding-top: 1.5rem; padding-bottom: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

    .lightbox-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: var(--purple-main);
      border: 2px solid var(--purple-bright);
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .lightbox-close:hover { border-color: var(--danger); color: var(--danger); }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .lightbox-nav:hover { border-color: var(--purple-bright); color: var(--purple-bright); }
    .lightbox-nav.prev { left: 1rem; }
    .lightbox-nav.next { right: 1rem; }

    @media (max-width: 900px) {
      .gallery-grid { grid-template-columns: repeat(2, 1fr); }
      .lightbox {
        align-items: flex-start;
        padding: 1rem;
        overflow-y: auto;
      }
      .lightbox-inner {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
        margin: auto;
      }
      .lightbox-img { aspect-ratio: 4/3; max-height: 45vh; }
      .lightbox-img img { max-height: 45vh; }
      .lightbox-info { max-height: none; overflow-y: visible; }
    }

    @media (max-width: 600px) {
      .gallery-grid { grid-template-columns: 1fr; }
    }

/* ══════════════════════════════════════════
   about.html — page-specific styles
══════════════════════════════════════════ */
/* ── Story Section ── */
    .story-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }

    .story-img-stack {
      position: relative;
      height: 420px;
    }

    .story-img-main {
      position: absolute;
      width: 75%;
      height: 320px;
      object-fit: cover;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-glow);
      top: 0;
      left: 0;
    }

    .story-img-accent {
      position: absolute;
      width: 60%;
      height: 220px;
      object-fit: cover;
      border-radius: var(--radius-lg);
      border: 2px solid var(--purple-muted);
      bottom: 0;
      right: 0;
      box-shadow: -8px -8px 0 var(--bg-elevated);
    }

    .experience-badge {
      position: absolute;
      bottom: 80px;
      left: -16px;
      background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
      border-radius: var(--radius);
      padding: 12px 18px;
      text-align: center;
      box-shadow: 0 8px 24px var(--purple-glow);
    }

    .experience-badge .num {
      font-size: 1.8rem;
      font-weight: 900;
      line-height: 1;
    }

    .experience-badge .label {
      font-size: 0.72rem;
      opacity: 0.85;
      margin-top: 2px;
    }

    /* ── Materials Section ── */
    .material-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      transition: var(--transition);
    }

    .material-card:hover {
      border-color: var(--border-glow);
      transform: translateY(-3px);
    }

    .material-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 0.85rem;
      margin-bottom: 1rem;
    }

    .material-badge-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 0.75rem;
    }

    /* ── FAQ ── */
    .faq-item {
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 0.75rem;
      transition: var(--transition);
    }

    .faq-item:hover { border-color: var(--border-glow); }
    .faq-item.open { border-color: var(--border-glow); }

    .faq-question {
      padding: 1rem 1.25rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      font-size: 0.92rem;
      background: var(--bg-card);
      user-select: none;
      transition: var(--transition);
    }

    .faq-question:hover { background: var(--bg-elevated); }

    .faq-icon {
      color: var(--purple-light);
      transition: transform 0.3s ease;
      font-size: 0.8rem;
      flex-shrink: 0;
    }

    .faq-item.open .faq-icon { transform: rotate(45deg); }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease;
    }

    .faq-item.open .faq-answer { max-height: 300px; }

    .faq-answer-inner {
      padding: 1rem 1.25rem 1.25rem;
      color: var(--text-secondary);
      font-size: 0.88rem;
      line-height: 1.7;
      background: var(--bg-elevated);
    }

    /* ── Contact Form ── */
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 3rem;
      align-items: start;
    }

    .contact-form-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 2rem;
    }

    .contact-info-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 1.5rem;
    }

    .contact-icon {
      width: 42px;
      height: 42px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      color: var(--purple-light);
      flex-shrink: 0;
    }

    .contact-info-title {
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      margin-bottom: 3px;
    }

    .contact-info-value {
      font-size: 0.9rem;
      color: var(--text-primary);
    }

    @media (max-width: 900px) {
      .story-layout { grid-template-columns: 1fr; }
      .story-img-stack { display: none; }
      .contact-layout { grid-template-columns: 1fr; }
    }

/* ══════════════════════════════════════════
   estimate.html — page-specific styles
══════════════════════════════════════════ */
/* ── Estimator page styles ── */
    .estimator-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 2rem;
      align-items: start;
    }

    .est-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 2rem;
    }

    .est-section-title {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--purple-light);
      margin-bottom: 1.25rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border-color);
    }

    /* Material pills */
    .material-pills {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .mat-pill {
      border: 2px solid var(--border-color);
      border-radius: var(--radius);
      padding: 0.85rem 0.75rem;
      cursor: pointer;
      transition: var(--transition);
      background: var(--bg-elevated);
      text-align: center;
    }

    .mat-pill:hover {
      border-color: var(--purple-main);
    }

    .mat-pill.active {
      border-color: var(--purple-bright);
      background: rgba(124, 77, 255, 0.1);
    }

    .mat-pill-name {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-primary);
      margin-bottom: 0.2rem;
    }

    .mat-pill-tag {
      font-size: 0.72rem;
      color: var(--text-muted);
    }

    .mat-pill-tier {
      display: inline-block;
      margin-top: 0.4rem;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
    }

    .tier-budget { background: rgba(0, 230, 118, 0.12); color: #00e676; }
    .tier-standard { background: rgba(0, 229, 255, 0.1); color: #00e5ff; }
    .tier-premium { background: rgba(224, 64, 251, 0.12); color: #e040fb; }

    /* Size selector */
    .size-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }

    .size-tab {
      padding: 0.45rem 1rem;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
      background: var(--bg-elevated);
      transition: var(--transition);
    }

    .size-tab:hover { border-color: var(--purple-main); color: var(--text-primary); }
    .size-tab.active { border-color: var(--purple-bright); color: var(--purple-light); background: rgba(124,77,255,0.1); }

    .size-custom-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0.75rem;
      margin-top: 0.75rem;
    }

    .size-custom-grid.hidden { display: none; }

    .form-group label {
      display: block;
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
    }

    .form-group input, .form-group select {
      width: 100%;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      padding: 0.6rem 0.85rem;
      border-radius: 8px;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s;
      font-family: inherit;
    }

    .form-group input:focus, .form-group select:focus {
      border-color: var(--purple-bright);
    }

    /* Infill slider */
    .infill-presets {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 0.5rem;
    }

    .infill-btn {
      padding: 0.3rem 0.7rem;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--bg-elevated);
      color: var(--text-secondary);
      transition: var(--transition);
    }

    .infill-btn:hover { border-color: var(--purple-main); color: var(--text-primary); }
    .infill-btn.active { border-color: var(--purple-bright); color: var(--purple-light); background: rgba(124,77,255,0.1); }

    input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
      height: 4px;
      border-radius: 4px;
      background: linear-gradient(to right, var(--purple-bright) var(--val, 25%), var(--border-color) var(--val, 25%));
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      background: var(--purple-bright);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 0 8px rgba(124,77,255,0.5);
    }

    /* Result panel */
    .result-panel {
      position: sticky;
      top: calc(var(--nav-height) + 1.5rem);
    }

    .price-display {
      text-align: center;
      padding: 1.5rem 1rem;
      background: linear-gradient(135deg, rgba(94, 53, 177, 0.2), rgba(124, 77, 255, 0.08));
      border-radius: var(--radius);
      border: 1px solid var(--border-glow);
      margin-bottom: 1.5rem;
    }

    .price-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }

    .price-range {
      font-size: 2.2rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--purple-bright), var(--accent-teal));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.1;
    }

    .price-note {
      font-size: 0.72rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
    }

    .breakdown-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      padding: 0.4rem 0;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-secondary);
    }

    .breakdown-row:last-child { border-bottom: none; }
    .breakdown-row strong { color: var(--text-primary); }

    .est-cta-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.85rem;
      background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
      color: white;
      border: none;
      border-radius: var(--radius);
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      margin-top: 1.25rem;
      transition: var(--transition);
    }

    .est-cta-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
      color: white;
    }

    .est-disclaimer {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-align: center;
      margin-top: 0.75rem;
      line-height: 1.5;
    }

    /* ── Material comparison table ── */
    .compare-section {
      margin-top: 0;
      padding-top: 0;
    }

    /* Material comparison cards */
    .mat-cards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }

    .mat-compare-card {
      background: var(--bg-card);
      border: 2px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.25rem;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    }

    .mat-compare-card:hover {
      border-color: rgba(124,77,255,0.45);
      transform: translateY(-2px);
    }

    .mat-compare-card.card-active {
      border-color: var(--purple-bright);
      background: rgba(124,77,255,0.06);
      position: relative;
    }

    .mat-compare-card.card-active::after {
      content: '✓ Selected';
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--purple-bright);
      background: rgba(124,77,255,0.15);
      border: 1px solid var(--purple-bright);
      border-radius: 20px;
      padding: 2px 8px;
      letter-spacing: 0.5px;
    }

    .mat-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.1rem;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid var(--border-color);
    }

    .mat-card-name {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: 0.5px;
    }

    .mat-compare-card.card-active .mat-card-name {
      color: var(--purple-light);
    }

    .mat-card-prop {
      margin-bottom: 0.85rem;
    }

    .mat-card-prop .prop-label {
      display: block;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 0.2rem;
    }

    .mat-card-prop .prop-value {
      display: block;
      font-size: 0.88rem;
      color: var(--text-secondary);
      margin-bottom: 0.2rem;
    }

    .mat-card-prop .prop-bar {
      margin-top: 0.25rem;
    }

    .mat-card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 1rem;
      padding-top: 0.85rem;
      border-top: 1px solid var(--border-color);
    }

    @media (max-width: 900px) {
      .mat-cards-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 480px) {
      .mat-cards-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
      .mat-compare-card { padding: 0.9rem; }
      .mat-card-name { font-size: 1.1rem; }
    }

    .prop-bar {
      height: 6px;
      border-radius: 4px;
      background: var(--border-color);
      margin-top: 0.35rem;
      overflow: hidden;
    }

    .prop-fill {
      height: 100%;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--purple-bright), var(--accent-teal));
    }

    .tag-row {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      margin-top: 0.25rem;
    }

    .use-tag {
      font-size: 0.68rem;
      padding: 2px 8px;
      border-radius: 20px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
    }

    .check { color: var(--success); }
    .cross { color: var(--danger); }
    .partial { color: var(--warning); }

    /* ── Interactive comparison ── */
    .pick-filters {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-bottom: 1.25rem;
      align-items: center;
    }
    .pick-label {
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
    }
    .pick-btn {
      padding: 0.38rem 0.95rem;
      border: 1px solid var(--border-color);
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--bg-elevated);
      color: var(--text-secondary);
      transition: var(--transition);
    }
    .pick-btn:hover { border-color: var(--purple-main); color: var(--text-primary); }
    .pick-btn.active { border-color: var(--purple-bright); color: var(--purple-light); background: rgba(124,77,255,0.15); }

    .mat-rec-box {
      display: none;
      align-items: center;
      gap: 0.85rem;
      background: rgba(124,77,255,0.08);
      border: 1px solid var(--border-glow);
      border-radius: var(--radius);
      padding: 0.75rem 1.25rem;
      font-size: 0.88rem;
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
    }
    .mat-rec-box.visible { display: flex; }
    .mat-rec-badge { font-weight: 800; color: var(--purple-light); white-space: nowrap; }

    /* (table-based compare styles removed — replaced by mat-cards-grid) */

    @media (max-width: 900px) {
      .estimator-layout {
        grid-template-columns: 1fr;
      }
      .result-panel {
        position: static;
      }
    }

    @media (max-width: 600px) {
      .size-custom-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

/* ══════════════════════════════════════════
   custom-order.html — page-specific styles
══════════════════════════════════════════ */
.order-layout {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 2.5rem;
      align-items: start;
    }

    /* ── Step Indicator ── */
    .steps-indicator {
      display: flex;
      align-items: center;
      margin-bottom: 2.5rem;
      gap: 0;
    }

    .step-dot {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .step-dot-circle {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      flex-shrink: 0;
      transition: var(--transition);
    }

    .step-dot.active .step-dot-circle {
      background: var(--purple-bright);
      border-color: var(--purple-bright);
      color: white;
    }

    .step-dot.done .step-dot-circle {
      background: var(--success);
      border-color: var(--success);
      color: white;
    }

    .step-dot.active {
      color: var(--purple-light);
    }

    .step-line {
      flex: 1;
      height: 2px;
      background: var(--border-color);
      margin: 0 8px;
    }

    /* ── Form Card ── */
    .form-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 2rem;
    }

    .form-step { display: none; }
    .form-step.active { display: block; }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    /* ── File Drop Zone ── */
    .file-dropzone {
      border: 2px dashed var(--border-color);
      border-radius: var(--radius);
      padding: 2.5rem;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      position: relative;
    }

    .file-dropzone:hover,
    .file-dropzone.drag-over {
      border-color: var(--purple-bright);
      background: rgba(124,77,255,0.05);
    }

    .file-dropzone input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
      padding: 0;
      border: none;
      background: transparent;
    }

    .file-dropzone i {
      font-size: 2rem;
      color: var(--purple-muted);
      margin-bottom: 0.75rem;
      display: block;
    }

    .file-dropzone p { color: var(--text-secondary); font-size: 0.88rem; }
    .file-dropzone small { color: var(--text-muted); font-size: 0.78rem; }

    .file-selected {
      display: none;
      align-items: center;
      gap: 10px;
      background: rgba(0,230,118,0.08);
      border: 1px solid rgba(0,230,118,0.2);
      border-radius: var(--radius);
      padding: 10px 14px;
      margin-top: 0.75rem;
      font-size: 0.85rem;
    }

    .file-selected.visible { display: flex; }
    .file-selected i { color: var(--success); }

    /* ── Color Picker ── */
    .color-picker-wrap {
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1rem;
      margin-top: 0.5rem;
    }

    .color-group-label {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      margin-top: 0.85rem;
    }

    .color-group-label:first-child { margin-top: 0; }

    .color-options {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .color-opt {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 3px solid transparent;
      cursor: pointer;
      transition: var(--transition);
      position: relative;
      flex-shrink: 0;
    }

    .color-opt:hover {
      transform: scale(1.15);
    }

    .color-opt.selected {
      border-color: var(--purple-bright);
      box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--purple-bright);
      transform: scale(1.1);
    }

    .color-opt::after {
      content: attr(title);
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.68rem;
      color: var(--text-primary);
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: 4px;
      padding: 2px 7px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s;
    }

    .color-opt:hover::after { opacity: 1; }

    .color-opt.unavailable {
      opacity: 0.25;
      cursor: not-allowed;
      pointer-events: none;
    }

    .selected-color-name {
      font-size: 0.82rem;
      color: var(--purple-light);
      font-weight: 600;
      margin-top: 0.6rem;
    }

    /* ── Price Estimate Sidebar ── */
    .estimate-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      position: sticky;
      top: calc(var(--nav-height) + 1.5rem);
    }

    .estimate-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--border-color);
      font-size: 0.85rem;
    }

    .estimate-row:last-of-type { border-bottom: none; }
    .estimate-label { color: var(--text-secondary); }
    .estimate-value { font-weight: 600; color: var(--text-primary); }

    .estimate-total {
      display: flex;
      justify-content: space-between;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-glow);
      font-weight: 800;
      font-size: 1.1rem;
    }

    .estimate-total span:last-child { color: var(--purple-bright); }

    .estimate-note {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.75rem;
      text-align: center;
    }

    .trust-items {
      margin-top: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }

    .trust-item i { color: var(--success); width: 16px; }

    /* ── Success State ── */
    .order-success {
      display: none;
      text-align: center;
      padding: 3rem 2rem;
    }

    .order-success.visible { display: block; }

    .success-icon {
      width: 72px;
      height: 72px;
      background: rgba(0,230,118,0.12);
      border: 2px solid rgba(0,230,118,0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      color: var(--success);
      margin: 0 auto 1.5rem;
    }

    @media (max-width: 900px) {
      .order-layout { grid-template-columns: 1fr; }
      .estimate-card { position: static; }
      .form-row { grid-template-columns: 1fr; }
    }

    @media (max-width: 600px) {
      /* Hide step labels, keep circles + lines so indicator stays compact */
      .step-dot span { display: none; }
      .step-dot { gap: 0; }
      .steps-indicator { margin-bottom: 1.75rem; }
      .form-card { padding: 1.25rem; }
    }

/* ══════════════════════════════════════════
   order-status.html — page-specific styles
══════════════════════════════════════════ */
.tracker-wrap { max-width:620px; margin:4rem auto; padding:0 5%; }
    .search-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:2rem 2rem 1.75rem; margin-bottom:1.5rem; }
    .search-row { display:flex; gap:0.75rem; }
    .order-input { flex:1; background:var(--bg-surface); border:2px solid var(--border-color); color:var(--text-primary); padding:0.75rem 1rem; border-radius:var(--radius); font-size:1rem; font-family:'Courier New',monospace; letter-spacing:1px; outline:none; transition:border-color 0.2s; text-transform:uppercase; }
    .order-input::placeholder { text-transform:none; letter-spacing:0; font-family:'Segoe UI',system-ui,sans-serif; }
    .order-input:focus { border-color:var(--purple-bright); }
    .search-btn { padding:0.75rem 1.5rem; background:linear-gradient(135deg,var(--purple-main),var(--purple-bright)); color:white; border:none; border-radius:var(--radius); font-size:0.95rem; font-weight:700; cursor:pointer; transition:var(--transition); white-space:nowrap; display:flex; align-items:center; gap:0.5rem; }
    .search-btn:hover { opacity:0.88; }
    .search-btn:disabled { opacity:0.5; cursor:not-allowed; }

    .result-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-lg); overflow:hidden; display:none; }
    .result-card.visible { display:block; }
    .result-header { padding:1.5rem 2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--border-color); }
    .order-num { font-family:'Courier New',monospace; font-size:1rem; font-weight:700; color:var(--purple-light); letter-spacing:1px; }
    .status-badge { display:inline-flex; align-items:center; gap:0.5rem; padding:0.45rem 1.1rem; border-radius:30px; font-size:0.85rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; }

    .badge-new         { background:rgba(124,77,255,.15);  color:#b39ddb; border:1px solid rgba(124,77,255,.3); }
    .badge-in_progress { background:rgba(255,171,64,.12);  color:#ffab40; border:1px solid rgba(255,171,64,.3); }
    .badge-ready       { background:rgba(0,229,255,.1);    color:#00e5ff; border:1px solid rgba(0,229,255,.25); }
    .badge-completed   { background:rgba(0,230,118,.1);    color:#00e676; border:1px solid rgba(0,230,118,.25); }
    .badge-cancelled   { background:rgba(255,82,82,.1);    color:#ff5252; border:1px solid rgba(255,82,82,.3); }

    /* ── Progress timeline ─────────────────────────────────── */
    .progress-track { padding:1.75rem 2rem 1.5rem; border-bottom:1px solid var(--border-color); }
    .track-steps { display:flex; align-items:flex-start; position:relative; }

    /* Base unfilled connector */
    .track-steps::before {
      content:''; position:absolute; top:21px; left:21px; right:21px;
      height:3px; background:var(--border-color); border-radius:2px;
    }

    /* Animated fill line — width driven by JS */
    .track-fill {
      position:absolute; top:21px; left:21px; height:3px; width:0;
      background:linear-gradient(90deg,var(--purple-main),var(--purple-bright));
      border-radius:2px; box-shadow:0 0 10px rgba(124,77,255,0.45);
      transition:width 0.85s cubic-bezier(0.4,0,0.2,1);
    }

    .track-step { flex:1; text-align:center; position:relative; z-index:1; }
    .step-icon-wrap { position:relative; display:inline-block; margin-bottom:0.6rem; }

    .step-circle {
      width:42px; height:42px; border-radius:50%;
      border:2px solid var(--border-color); background:var(--bg-elevated);
      display:flex; align-items:center; justify-content:center;
      font-size:0.9rem; color:var(--text-muted); transition:all 0.4s ease;
    }
    .step-circle.done    { background:var(--purple-main); border-color:var(--purple-bright); color:white; }
    .step-circle.current {
      background:linear-gradient(135deg,var(--purple-main),var(--purple-bright));
      border-color:var(--purple-bright); color:white;
      box-shadow:0 0 20px rgba(124,77,255,0.6);
      animation:pulse-step 2s ease-in-out infinite;
    }
    /* Spinning activity ring around active step */
    .step-circle.current::after {
      content:''; position:absolute; inset:-5px; border-radius:50%;
      border:2px solid transparent; border-top-color:var(--purple-bright);
      animation:spin-ring 1.4s linear infinite;
    }

    @keyframes pulse-step {
      0%,100% { box-shadow:0 0 16px rgba(124,77,255,0.5); }
      50%      { box-shadow:0 0 32px rgba(124,77,255,0.9); }
    }
    @keyframes spin-ring { to { transform:rotate(360deg); } }

    .step-label { font-size:0.7rem; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:0.5px; line-height:1.3; }
    .step-label.done, .step-label.current { color:var(--text-secondary); }
    .step-label.current { color:var(--purple-light); }

    /* Stage description callout */
    .stage-callout {
      margin-top:1.2rem; padding:0.7rem 0.95rem;
      background:rgba(124,77,255,0.07); border:1px solid rgba(124,77,255,0.2);
      border-radius:var(--radius); font-size:0.83rem; color:var(--text-secondary);
      display:none; align-items:flex-start; gap:0.6rem; line-height:1.45;
    }
    .stage-callout.visible { display:flex; }
    .stage-callout i { color:var(--purple-bright); margin-top:2px; flex-shrink:0; }

    /* Detail rows */
    .result-detail { padding:1.25rem 2rem; }
    .detail-row { display:flex; justify-content:space-between; align-items:center; padding:0.55rem 0; border-bottom:1px solid var(--border-color); font-size:0.88rem; }
    .detail-row:last-child { border-bottom:none; }
    .detail-label { color:var(--text-muted); font-weight:600; }
    .detail-value { color:var(--text-primary); font-weight:600; }

    .error-msg { background:rgba(255,82,82,0.08); border:1px solid rgba(255,82,82,0.25); color:var(--danger); border-radius:var(--radius); padding:0.85rem 1.1rem; font-size:0.9rem; margin-top:0.75rem; display:none; align-items:center; gap:0.5rem; }
    .error-msg.visible { display:flex; }

    .spinner { display:none; width:20px; height:20px; border:2px solid rgba(255,255,255,0.3); border-top-color:white; border-radius:50%; animation:spin 0.7s linear infinite; }
    @keyframes spin { to { transform:rotate(360deg); } }
    .search-btn.loading .spinner { display:block; }
    .search-btn.loading .btn-icon { display:none; }

/* ══════════════════════════════════════════
   checkout-success.html — page-specific styles
══════════════════════════════════════════ */
.success-wrap {
      min-height: calc(100vh - var(--nav-height));
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4rem 5%;
    }

    .success-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 3rem 2.5rem;
      text-align: center;
      max-width: 480px;
      width: 100%;
    }

    .success-icon {
      width: 80px;
      height: 80px;
      background: rgba(0, 230, 118, 0.1);
      border: 2px solid rgba(0, 230, 118, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: var(--success);
      margin: 0 auto 1.75rem;
      animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }

    @keyframes popIn {
      from { transform: scale(0.5); opacity: 0; }
      to   { transform: scale(1);   opacity: 1; }
    }

    .success-card h2 { margin-bottom: 0.75rem; }

    .success-card p {
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 0.5rem;
    }

    .success-details {
      background: var(--bg-elevated);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      margin: 1.5rem 0;
      text-align: left;
      font-size: 0.85rem;
    }

    .success-details li {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0.35rem 0;
      color: var(--text-secondary);
    }

    .success-details li i {
      color: var(--success);
      width: 14px;
      flex-shrink: 0;
    }

    .success-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 1.75rem;
    }
