/* ========================================================
   CUSTOM BOXES — Premium Light Design System
   ======================================================== */

/* Google Fonts loaded via <link> in HTML for non-blocking delivery */

/* --- CSS Custom Properties --- */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f6f3;
  --bg-tertiary: #f0ede8;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9f7;
  --bg-input: #f8f6f3;
  --bg-input-focus: #ffffff;

  --gold-primary: #b8860b;
  --gold-light: #d4a843;
  --gold-dark: #8b6508;
  --gold-gradient: linear-gradient(135deg, #b8860b, #d4a843);
  --gold-glow: 0 4px 20px rgba(184, 134, 11, 0.15);

  --accent-dark: #1a1a2e;
  --navy: #0f1629;

  --text-primary: #1a1a2e;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-gold: #b8860b;

  --border-light: #e8e4de;
  --border-gold: rgba(184, 134, 11, 0.3);
  --border-input: #ddd8d0;

  --success: #22c55e;
  --error: #ef4444;

  --font-heading: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  --font-body: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding: 100px 0;
  --container-width: 1240px;
  --container-padding: 0 24px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
}

/* --- Font Fallback Metrics (reduce CLS from font swap) --- */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.64%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 112.4%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; color: inherit; }
input, select, textarea { font-family: var(--font-body); color: var(--text-primary); }

/* --- Utility --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title .gold {
  color: var(--gold-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========================================================
   ANNOUNCEMENT BAR
   ======================================================== */
.announcement-bar {
  background: var(--gold-gradient);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-logo .logo-accent {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-base);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: var(--gold-gradient) !important;
  border-radius: var(--radius-pill);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.2);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-phone svg {
  color: var(--gold-primary);
}

/* ========================================================
   HERO / PRODUCT CONFIGURATOR — SIDE BY SIDE
   ======================================================== */
.hero-configurator {
  background: var(--bg-secondary);
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border-light);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── LEFT: Product Image Gallery ── */
.product-gallery {
  position: sticky;
  top: 110px;
}

.product-main-image {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  aspect-ratio: 1 / 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-main-image:hover img {
  transform: scale(1.03);
}

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  background: #fff;
}

.thumb:hover,
.thumb.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-feature .check {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

/* ── RIGHT: Configurator Form ── */
.configurator-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.config-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.config-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.config-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Progress Steps — Horizontal Tabs */
.config-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
  overflow-x: auto;
}

.config-tab {
  flex: 1;
  padding: 14px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #595959; /* WCAG AA compliant — ~7:1 ratio on white (was #999, ~3:1) */
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.config-tab .tab-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.config-tab.active {
  color: var(--gold-dark); /* WCAG AA: #8b6508 on white = 5.3:1 (was #b8860b = 3.2:1) */
  border-bottom-color: var(--gold-primary);
}

.config-tab.active .tab-num {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #fff;
}

.config-tab.completed {
  color: #15803d; /* WCAG AA: darker green on white = 5.7:1 (was #22c55e = 2.8:1) */
}

.config-tab.completed .tab-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* Form Body */
.config-body {
  padding: 28px 32px;
  min-height: 380px;
}

.form-step {
  display: none;
  animation: stepSlideIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

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

.step-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Box Type Selection — Compact Tabs */
.box-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.box-type-tab {
  padding: 14px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.box-type-tab:hover {
  border-color: var(--gold-primary);
  background: #fef9ef;
}

.box-type-tab.selected {
  border-color: var(--gold-primary);
  background: #fef9ef;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.12);
}

.box-type-tab.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #fff;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.box-type-tab .btt-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-type-tab .btt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(26, 26, 46, 0.12));
}

.box-type-tab .btt-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Form Inputs */
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.form-row.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required { color: var(--error); }

.form-input,
.form-select {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition-base);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold-primary);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option { background: #fff; }

.form-textarea {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition-base);
  outline: none;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}

/* Toggle */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-input);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
}

.toggle-switch.active { background: var(--gold-primary); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after { transform: translateX(20px); }

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Unit Toggle */
.unit-toggle {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.unit-btn {
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.unit-btn.active {
  background: var(--gold-primary);
  color: #fff;
}

/* Radio Cards */
.radio-group {
  display: flex;
  gap: 10px;
}

.radio-card {
  flex: 1;
  padding: 14px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.radio-card:hover { border-color: var(--gold-primary); }

.radio-card.selected {
  border-color: var(--gold-primary);
  background: #fef9ef;
}

.radio-card .radio-icon { font-size: 1.2rem; margin-bottom: 4px; display: block; }
.radio-card .radio-label { font-size: 0.78rem; font-weight: 600; }

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox-card {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-card:hover { border-color: var(--gold-primary); }

.checkbox-card.selected {
  border-color: var(--gold-primary);
  background: #fef9ef;
}

.checkbox-card .check-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  flex-shrink: 0;
  font-size: 0.65rem;
}

.checkbox-card.selected .check-icon {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #fff;
}

.checkbox-card .check-label {
  font-size: 0.82rem;
  font-weight: 500;
}

/* Quantity Chips */
.qty-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.qty-chip {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-secondary);
}

.qty-chip:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.qty-chip.selected {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #fff;
}

/* Turnaround */
.turnaround-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.turnaround-card {
  padding: 16px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.turnaround-card:hover { border-color: var(--gold-primary); }

.turnaround-card.selected {
  border-color: var(--gold-primary);
  background: #fef9ef;
}

.turnaround-card .tc-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.turnaround-card .tc-days { font-size: 0.75rem; color: var(--text-muted); }
.turnaround-card .tc-icon { font-size: 1.3rem; margin-bottom: 6px; display: block; }

/* File Upload */
.file-upload-zone {
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--bg-input);
}

.file-upload-zone:hover {
  border-color: var(--gold-primary);
  background: #fef9ef;
}

.file-upload-zone .upload-icon { font-size: 1.5rem; margin-bottom: 6px; display: block; }
.file-upload-zone .upload-text { font-size: 0.85rem; color: var(--text-secondary); }
.file-upload-zone .upload-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.file-name-display {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Summary Card */
.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.summary-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--gold-primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; color: var(--text-primary); }

/* Form Footer */
.config-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}

.btn-back {
  padding: 11px 24px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

.btn-back:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.btn-next,
.btn-submit {
  padding: 12px 28px;
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.2);
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Validation */
.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 2px;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-select { border-color: var(--error); }
.form-group.error .form-error { display: block; }

/* ========================================================
   CUSTOM PRINTED BOXES — PRODUCT GRID
   ======================================================== */
.products-grid-section {
  padding: 80px 0 100px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.products-header {
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-img {
  height: 190px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-card-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.product-cta {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  transition: var(--transition-base);
}

.product-cta:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #fff;
}

.product-price {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-price strong {
  font-size: 0.98rem;
  color: var(--text-primary);
  display: block;
}

@media (max-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-img {
    height: 200px;
  }
}

/* ========================================================
   INTERACTIVE PROCESS DIAGRAM
   ======================================================== */
.process {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 70px;
}

.diagram-container {
  max-width: 1000px;
  margin: 0 auto;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 40px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-light);
}

.timeline-progress {
  position: absolute;
  top: 58px;
  left: 40px;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.8s ease;
  width: 0;
}

.process-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition-base);
  flex: 1;
}

.process-node:hover { transform: translateY(-4px); }

.node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  transition: var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-node.active .node-circle,
.process-node.completed .node-circle {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1), var(--shadow-md);
  background: #fef9ef;
}

.node-circle .node-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0;
}

.process-node.active .node-pulse {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 90px;
  transition: var(--transition-base);
}

.process-node.active .node-label,
.process-node.completed .node-label {
  color: var(--gold-primary);
}

.node-number {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.process-node.active .node-number,
.process-node.completed .node-number {
  color: var(--gold-primary);
}

/* Detail Card */
.process-detail {
  margin-top: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 160px;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.process-detail .detail-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: #fef9ef;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.process-detail .detail-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-detail .detail-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-features {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.detail-features .feature-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gold-primary);
  background: rgba(184, 134, 11, 0.06);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(184, 134, 11, 0.12);
  font-weight: 500;
}

.diagram-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.diagram-btn {
  padding: 10px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
  background: #fff;
}

.diagram-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.diagram-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #fff;
}

/* ========================================================
   BOX TYPES SHOWCASE
   ======================================================== */
.box-showcase {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.showcase-header {
  text-align: center;
  margin-bottom: 50px;
}

.showcase-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar { display: none; }

.showcase-card {
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.showcase-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.showcase-card-img {
  height: 190px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.showcase-card:hover .showcase-card-img img { transform: scale(1.06); }

.showcase-card-body { padding: 20px; }

.showcase-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.showcase-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.showcase-card-body .card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-primary);
  transition: var(--transition-base);
}

.showcase-card-body .card-link:hover { gap: 10px; }

.scroll-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
  background: #fff;
}

.scroll-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ========================================================
   FEATURES
   ======================================================== */
.features {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.features-header {
  text-align: center;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: #fef9ef;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================
   HOMEPAGE FAQ
   ======================================================== */
.home-faq {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.faq-header {
  text-align: center;
  margin-bottom: 42px;
}

.faq-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--gold-primary);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold-primary);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ========================================================
   USER REVIEWS
   ======================================================== */
.home-reviews {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.reviews-header {
  text-align: center;
  margin-bottom: 44px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  transition: var(--transition-base);
}

.review-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.review-stars {
  color: #d89f27;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.review-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.review-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}

.review-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  padding: 70px 0 28px;
  background: var(--navy);
  color: #ccc;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand .footer-logo .logo-accent {
  color: var(--gold-light);
}

.footer-brand p {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #999;
  transition: var(--transition-base);
}

.footer-socials a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #999;
  transition: var(--transition-base);
}

.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-links.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 8px 14px;
}

.footer-links.lang-grid li {
  min-width: 0;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.8rem; color: #999; } /* WCAG AA: #999 on #0f1629 = 6.3:1 (was #666 = 3.1:1) */

.trust-badges {
  display: flex;
  gap: 20px;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #999; /* WCAG AA: #999 on #0f1629 = 6.3:1 (was #777 = 4.0:1) */
}

/* ========================================================
   SUCCESS MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px;
  text-align: center;
  max-width: 440px;
  transform: scale(0.9);
  transition: var(--transition-spring);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .success-modal { transform: scale(1); }

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  color: var(--success);
}

.success-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.success-modal p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-close-modal {
  padding: 12px 32px;
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  border: none;
  transition: var(--transition-base);
}

.btn-close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

/* ========================================================
   SCROLL ANIMATIONS
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

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

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

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

  .process-timeline {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .process-timeline::before { display: none; }
  .timeline-progress { display: none; }
  .process-node { width: 80px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .announcement-bar { font-size: 0.78rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; color: var(--text-primary); }
  .nav-toggle { display: flex; z-index: 1001; }

  .nav-phone { display: none; }

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

  .form-row { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }

  .radio-group { flex-direction: column; }
  .turnaround-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .process-detail {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .detail-features { justify-content: center; }

  .config-body { padding: 20px; }
  .config-footer { padding: 16px 20px; }
  .config-header { padding: 20px; }

  .showcase-card { min-width: 260px; }

  .product-thumbnails { gap: 8px; }
  .thumb { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
  .box-type-tabs { gap: 8px; }
  .qty-grid { gap: 6px; }
  .qty-chip { padding: 6px 12px; font-size: 0.78rem; }
  .config-tabs { gap: 0; }
  .config-tab { padding: 10px 6px; font-size: 0.65rem; }
}

/* ========================================================
   SHAKE ANIMATION (injected by JS, but kept here as fallback)
   ======================================================== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
