/* ============================================================
   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;
}

/* Stock status badges — top-right corner of product card image */
.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}
.stock-badge.in-stock  { background: #1b5e20cc; color: #a5d6a7; border: 1px solid #43a047; }
.stock-badge.low-stock { background: #e65100cc; color: #ffe0b2; border: 1px solid #fb8c00; }
.stock-badge.out-stock { background: #b71c1ccc; color: #ffcdd2; border: 1px solid #e53935; }

.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);
}

/* ── Skeleton Loading Cards ─────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    rgba(124, 77, 255, 0.07) 50%,
    var(--bg-card) 75%
  );
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-img {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.skeleton-line {
  border-radius: 4px;
  height: 13px;
}
.skeleton-line.sk-title  { width: 68%; height: 16px; }
.skeleton-line.sk-desc1  { width: 100%; }
.skeleton-line.sk-desc2  { width: 82%; }
.skeleton-line.sk-badge  { width: 38%; height: 20px; border-radius: 20px; margin-top: 0.25rem; }
.skeleton-line.sk-price  { width: 28%; height: 18px; margin-top: 0.5rem; }
.skeleton-line.sk-btn    { width: 48%; height: 34px; border-radius: 8px; }

/* ── 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; }
  .skeleton-img { height: 180px; }

  /* Card footer: stack price above button, button full-width */
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .product-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* 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; }
}

/* ── Footer Newsletter Signup (shared component — index/shop/about) ── */
/* Newsletter */
.footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-newsletter p:first-child {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary, #a0a0c0);
  white-space: nowrap;
  margin: 0;
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  background: var(--bg-elevated, #1a1a2e);
  border: 1px solid var(--border-color, #2a2a45);
  color: var(--text-primary, #e8e8f4);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.footer-newsletter input[type="email"]:focus {
  border-color: var(--purple-bright, #7c4dff);
}

.footer-newsletter button[type="submit"] {
  background: var(--purple-bright, #7c4dff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.footer-newsletter button[type="submit"]:hover {
  opacity: 0.85;
}

#nl-msg {
  font-size: 0.8rem;
  margin: 0;
}

/* ── FAB: Get a Quote (mobile only) — shared component, used on
   index/shop/gallery/order-status/checkout-success ── */
.fab-quote {
  display: none;
}

@media (max-width: 767px) {
  .fab-quote {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1200;
    background: var(--primary, #7c5cbf);
    color: #fff;
    padding: 0.7rem 1.15rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .fab-quote:hover {
    transform: scale(1.06);
    color: #fff;
  }

  .cart-open .fab-quote,
  .fab-quote.hidden {
    opacity: 0;
    pointer-events: none;
  }
}
