@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #2a3c90;
  --navy-mid: #223180;
  --navy-light: #3448a8;
  --orange: #be1e2d;
  --orange-light: #d4293a;
  --orange-pale: #fbeced;
  --cream: #F8F8FC;
  --warm-white: #ffffff;
  --text-primary: #1a2560;
  --text-secondary: #4a5068;
  --text-muted: #8a90b5;
  --border: #e4e6f0;
  --border-dark: #c4c8dc;
  --success: #2d7a4f;
  --success-bg: #eaf5ee;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(42,60,144,0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 8px 18px; border-radius: 6px;
  font-weight: 500 !important; font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--orange-light) !important; color: #fff; }

/* HERO */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 48px 80px;
  border-bottom: 1px solid var(--border);
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(42,60,144,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(190,30,45,0.03) 0%, transparent 40%);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(rgba(42,60,144,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,60,144,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(190,30,45,0.08); border: 1px solid rgba(190,30,45,0.25);
  color: var(--orange); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 28px; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900; line-height: 1.08;
  color: var(--navy); letter-spacing: -0.02em;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--orange); }

.hero-sub {
  font-size: 17px; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 36px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--navy);
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 400;
  border: 1.5px solid var(--border-dark); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--navy); background: var(--cream); transform: translateY(-1px); }

.hero-note {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.03em;
}
.hero-note strong { color: var(--text-secondary); }

/* FLOATING STEP CARDS */
.pin-cards {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 48px; flex-wrap: wrap;
}
.pin-float-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 18px;
  width: 168px; text-align: center;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(42,60,144,0.06);
}
.pin-float-card:nth-child(2) { animation-delay: 1.3s; }
.pin-float-card:nth-child(3) { animation-delay: 2.6s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.step-card-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.step-card-num { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 4px; }
.step-card-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.step-card-sub { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* HOW IT WORKS */
.steps-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
}
.steps-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 20px 0;
}
.step-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text { font-size: 13px; color: var(--text-secondary); font-weight: 400; white-space: nowrap; }
.step-arrow { color: var(--border-dark); font-size: 16px; margin: 0 4px; }

/* DESIGN ONLY NOTICE */
.design-only-bar {
  background: var(--navy);
  padding: 14px 48px;
  text-align: center;
}
.design-only-bar p {
  font-size: 13px; color: rgba(255,255,255,0.5);
  max-width: 700px; margin: 0 auto;
}
.design-only-bar strong { color: var(--orange); }

/* SECTION COMMON */
section { padding: 72px 48px; }
.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px; color: var(--text-secondary);
  font-weight: 300; line-height: 1.6;
}

/* GALLERY */
#gallery { background: var(--cream); }
.gallery-inner { max-width: 1100px; margin: 0 auto; }
.gallery-header { margin-bottom: 32px; text-align: center; }
.gallery-header .section-sub { max-width: 480px; margin: 0 auto 28px; }

/* Main toggle */
.main-toggle-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.main-toggle {
  display: inline-flex;
  background: var(--warm-white);
  border: 1px solid var(--border-dark);
  border-radius: 10px; padding: 4px; gap: 4px;
}
.main-toggle-btn {
  padding: 10px 28px; border-radius: 7px; border: none;
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
  background: transparent; color: var(--text-secondary);
}
.main-toggle-btn.active {
  background: var(--navy); color: #fff;
}
.main-toggle-btn:hover:not(.active) { color: var(--navy); }

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0;
  justify-content: center;
}

/* Upload own artwork panel */
.upload-own-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; margin-top: 8px;
}
.upload-own-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
.upload-own-icon { font-size: 48px; color: var(--text-muted); margin-bottom: 14px; }
.upload-own-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.upload-own-sub { font-size: 13px; color: var(--text-secondary); max-width: 280px; line-height: 1.6; margin-bottom: 20px; }
.upload-own-btn {
  display: inline-block; padding: 11px 28px;
  background: var(--navy); color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.upload-own-btn:hover { background: var(--navy-light); }
.upload-own-preview {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; background: var(--success-bg);
  border: 1px solid #a8d5bc; border-radius: 8px;
  padding: 9px 14px; font-size: 13px; color: var(--success); width: 100%;
}
.upload-own-right {
  border-left: 1px solid var(--border); padding-left: 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.upload-own-steps-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.upload-own-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.4;
}
.upload-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange-pale); color: var(--orange);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.filter-pill {
  padding: 7px 16px; border-radius: 99px;
  border: 1px solid var(--border-dark);
  font-size: 13px; font-weight: 400;
  background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.filter-pill.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.filter-pill:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
/* PIN CARD */
.pin-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative; z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.2s;
}
.pin-card:hover {
  border-color: var(--orange);
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(190,30,45,0.18);
  z-index: 10;
}

/* IMAGE AREA — fills entire card */
.pin-card-img {
  height: 240px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* SVG / IMAGE scaling on hover */
.pin-svg-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s ease;
  padding-bottom: 44px;
}
.pin-card:hover .pin-svg-wrap {
  transform: scale(1.5);
  padding-bottom: 0;
}

/* HOVER OVERLAY — invisible by default */
.pin-card-hover { display: none; }

/* CARD BODY — sits below image normally */
.pin-card-body {
  padding: 10px 14px 12px;
  background: #fff;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ON HOVER — card body slides over image as overlay */
.pin-card:hover .pin-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(11,22,40,0.78);
  backdrop-filter: blur(4px);
  padding: 7px 14px 8px;
}

.pin-card:hover .pin-card-tag {
  display: none;
}

/* PIN NAME */
.pin-card-name {
  font-size: 13px; font-weight: 500;
  color: var(--navy); margin-bottom: 2px;
  transition: color 0.3s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-card:hover .pin-card-name { color: #fff; }

/* PIN PRICE */
.pin-card-price {
  float: right; font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.pin-card:hover .pin-card-price { color: rgba(255,255,255,0.85); }

/* TAG PILL */
.pin-card-tag {
  display: inline-block; font-size: 10px;
  padding: 1px 7px; border-radius: 99px;
  background: var(--orange-pale); color: var(--orange);
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}
.pin-card:hover .pin-card-tag {
  background: rgba(190,30,45,0.35);
  color: #ffb3b3;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 36px;
}
.pg-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: #fff; color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; font-family: 'DM Sans', sans-serif;
}
.pg-btn:hover:not(.active):not(.pg-arrow) { border-color: var(--navy); color: var(--navy); }
.pg-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pg-btn.pg-arrow { font-size: 16px; color: var(--text-muted); }
.pg-btn.pg-arrow:hover { color: var(--navy); border-color: var(--navy); }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pg-info { font-size: 12px; color: var(--text-muted); margin: 0 8px; }
.pin-svg-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* SIDE PANEL */
.panel-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(42,60,144,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.panel-overlay.open { opacity: 1; pointer-events: all; }

.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 520px; max-width: 95vw;
  background: var(--warm-white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow: visible;
}
.side-panel.open { transform: translateX(0); }

.panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-shrink: 0;
  background: var(--warm-white);
  position: relative;
  z-index: 2;
}
.panel-design-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--navy);
  line-height: 1.2;
}
.panel-design-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.panel-close {
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; font-size: 18px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.panel-close:hover { background: var(--cream); color: var(--navy); }

/* Panel layout */
.panel-content-wrap {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: visible;
  position: relative;
}

/* Desktop — image sticks out to the left */
.panel-preview-col {
  position: absolute;
  left: -262px;
  top: 0;
  width: 262px;
  padding: 0;
  pointer-events: none;
  display: none;
}
.panel-preview-col.visible {
  display: block;
}

.panel-pin-preview {
  width: 262px;
  height: 260px;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: -6px 0 20px rgba(42,60,144,0.08);
}

.panel-pin-preview img {
  width: 230px;
  height: 230px;
  object-fit: contain;
}

.panel-pin-preview svg {
  width: 230px;
  height: 230px;
}

.panel-preview-pin-name {
  display: none;
}

.panel-body {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 0;
}

.panel-preview-col {
  position: absolute;
  left: -260px;
  top: 0;
  width: 202px;
  padding: 0;
  pointer-events: none;
  display: none;
}

.panel-preview-col.visible {
  display: block;
}

/* CONFIG SECTIONS */
.config-section { margin-bottom: 24px; }
.config-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 10px;
}
.config-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark); border-radius: 8px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--navy); background: #fff;
  transition: border-color 0.2s; outline: none;
  margin-bottom: 8px;
}
.config-input:focus { border-color: var(--orange); }

/* Type toggle cards */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-card {
  border: 1.5px solid var(--border-dark); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; transition: all 0.2s;
  background: #fff;
}
.type-card:hover { border-color: var(--orange-light); }
.type-card.selected { border-color: var(--orange); background: var(--orange-pale); }
.type-card-name { font-size: 13px; font-weight: 500; color: var(--navy); }
.type-card-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Size dropdown */
.config-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark); border-radius: 8px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--navy); background: #fff;
  outline: none; cursor: pointer; 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 d='M1 1l5 5 5-5' stroke='%238a9ab5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.2s;
}
.config-select:focus { border-color: var(--orange); }

/* Metal plating */
.plating-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.plating-opt {
  border: 1.5px solid var(--border-dark); border-radius: 8px;
  padding: 8px 4px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: #fff;
}
.plating-opt:hover { border-color: var(--orange-light); }
.plating-opt.selected { border-color: var(--orange); background: var(--orange-pale); }
.plating-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  margin: 0 auto 5px; border: 1px solid rgba(0,0,0,0.08);
}
.plating-name { font-size: 11px; color: var(--text-secondary); }

/* Instructions box */
.instructions-wrap {
  border: 1.5px solid var(--border-dark); border-radius: 9px;
  overflow: hidden; background: #fff;
  transition: border-color 0.2s;
}
.instructions-wrap:focus-within { border-color: var(--orange); }
.instructions-textarea {
  border: none !important; border-radius: 0 !important;
  resize: none; margin: 0 !important;
  font-size: 13px; line-height: 1.6;
  min-height: 96px;
}
.instructions-textarea:focus { outline: none; }
.instructions-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.instructions-hint { font-size: 11px; color: var(--text-muted); }
.instructions-count { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Upload area */
.upload-area {
  border: 1.5px dashed var(--border-dark); border-radius: 8px;
  padding: 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: #fff; position: relative;
}
.upload-area:hover { border-color: var(--orange); background: var(--orange-pale); }
.upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 24px; margin-bottom: 6px; }
.upload-text { font-size: 13px; color: var(--text-secondary); }
.upload-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.upload-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--success-bg); border: 1px solid #a8d5bc;
  border-radius: 8px; padding: 10px 14px; margin-top: 8px;
  font-size: 13px; color: var(--success);
}

/* Add-on toggles */
.addon-list { display: flex; flex-direction: column; gap: 8px; }
.addon-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; background: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.addon-row.on { border-color: var(--orange); background: var(--orange-pale); }
.addon-name { font-size: 13px; color: var(--navy); font-weight: 400; }
.addon-price {
  font-size: 12px; color: var(--text-muted); margin-left: 6px;
  transition: color 0.2s;
}
.addon-row.on .addon-price { color: var(--orange); font-weight: 500; }
.addon-right { display: flex; align-items: center; gap: 10px; }

/* Toggle switch */
.tog {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
}
.tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-track {
  position: absolute; inset: 0; border-radius: 99px;
  background: var(--border-dark); cursor: pointer;
  transition: background 0.2s;
}
.tog input:checked + .tog-track { background: var(--orange); }
.tog-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s; pointer-events: none;
}
.tog input:checked ~ .tog-thumb { transform: translateX(18px); }

/* PRICE FOOTER */
.panel-footer {
  flex-shrink: 0; padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
}
.price-breakdown {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.price-base { font-size: 13px; color: var(--text-muted); }
.price-total { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--navy); }
.price-total span { font-size: 16px; font-family: 'DM Sans', sans-serif; font-weight: 400; }
.price-addons { font-size: 12px; color: var(--text-muted); }
.btn-order {
  width: 100%; padding: 15px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-order:hover { background: var(--orange-light); transform: translateY(-1px); }
.order-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* TRUST STRIP */
.trust { background: var(--cream); padding: 40px 48px; border-top: 1px solid var(--border); }
.trust-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 99px;
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* FOOTER */
footer {
  background: var(--navy);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: #fff;
}
.footer-logo span { color: var(--orange); }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.3); }

/* PAYPAL MODAL */
.pp-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(42,60,144,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.pp-overlay.open { opacity: 1; pointer-events: all; }
.pp-modal {
  background: #fff; border-radius: 14px;
  width: 420px; max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(20px); transition: transform 0.25s;
  overflow: hidden;
}
.pp-overlay.open .pp-modal { transform: translateY(0); }
.pp-header {
  background: var(--navy); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.pp-title { font-family: 'Playfair Display', serif; font-size: 18px; color: #fff; font-weight: 700; }
.pp-close {
  background: transparent; border: none; color: rgba(255,255,255,0.5);
  font-size: 20px; cursor: pointer; padding: 0;
}
.pp-body { padding: 24px; }
.pp-summary {
  background: var(--cream); border-radius: 8px; padding: 14px 16px; margin-bottom: 20px;
}
.pp-summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text-secondary); }
.pp-summary-row:last-child { margin-bottom: 0; font-weight: 500; color: var(--navy); font-size: 15px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
.pp-email-row { margin-bottom: 16px; }
.pp-email-label { font-size: 12px; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-email-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark); border-radius: 8px;
  font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.pp-email-input:focus { border-color: var(--orange); }
.pp-btn {
  width: 100%; padding: 14px;
  background: #0070ba; color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s;
}
.pp-btn:hover { background: #003f7f; }
.pp-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.5; }

/* PAYPAL WORDMARK */
.pp-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.pp-wordmark .blue { color: #009cde; }
.pp-wordmark .dark { color: #012169; background: #fff; padding: 0 2px; border-radius: 2px; }

/* ============================================
   MOBILE STYLES — max-width: 768px
   ============================================ */
@media (max-width: 768px) {

  /* NAV */
  nav { padding: 0 16px; }
  .nav-links { display: none; }

  /* HERO */
  .hero { padding: 90px 20px 48px; }
  h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
  .pin-cards { gap: 10px; }
  .pin-float-card { width: 120px; padding: 14px 10px; }

  /* STEPS BAR */
  .steps-bar { padding: 0 16px; }
  .steps-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    justify-content: flex-start;
  }
  .step-arrow { display: none; }
  .step-item { padding: 0 8px 0 0; }
  .step-text { font-size: 12px; }
  .step-num { width: 22px; height: 22px; font-size: 11px; }

  /* DESIGN ONLY BAR */
  .design-only-bar { padding: 12px 16px; }
  .design-only-bar p { font-size: 12px; }

  /* GALLERY SECTION */
  section { padding: 40px 16px; }
  .gallery-inner { max-width: 100%; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; }

  /* MAIN TOGGLE */
  .main-toggle { width: 100%; }
  .main-toggle-btn { flex: 1; padding: 10px 8px; font-size: 13px; }

  /* FILTER PILLS — horizontal scroll */
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; flex-shrink: 0; }

  /* PIN GRID */
  .pin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pin-card-img { height: 160px; }
  .pin-card:hover .pin-card-img { height: 160px; }
  .pin-card:hover { transform: none; }
  .pin-card:hover .pin-svg-wrap { transform: scale(1.1); }

  /* PAGINATION */
  .pagination { gap: 4px; margin-top: 20px; }
  .pg-btn { width: 32px; height: 32px; font-size: 12px; }

  /* UPLOAD OWN PANEL */
  .upload-own-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .upload-own-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 20px;
  }

  /* SIDE PANEL — full width on mobile */
  .side-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Panel layout on mobile — column direction */
  .panel-content-wrap {
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    flex: 1;
  }

  .panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: block;
    padding: 16px 20px;
  }

  /* Image preview — hide outside position, show as top strip */
  .panel-preview-col {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    display: none !important;
    flex-shrink: 0;
  }
  .panel-preview-col.visible {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .panel-pin-preview {
    width: 72px;
    height: 72px;
    border: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .panel-pin-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  .panel-pin-preview svg {
    width: 64px;
    height: 64px;
  }
  .panel-preview-pin-name {
    display: block;
    text-align: left;
    margin-top: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
  }

  .panel-header { padding: 16px 20px 14px; }
  .panel-design-name { font-size: 17px; }

  /* CONFIG SECTIONS */
  .type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .type-card { padding: 8px 10px; }
  .type-card-name { font-size: 12px; }
  .type-card-desc { font-size: 10px; }
  .plating-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }

  /* PANEL FOOTER */
  .panel-footer { padding: 14px 20px; }
  .price-total { font-size: 24px; }

  /* TRUST STRIP */
  .trust { padding: 28px 16px; }
  .trust-inner { gap: 10px; }
  .trust-item { font-size: 12px; padding: 7px 12px; }

  /* FOOTER */
  footer { padding: 20px 16px; flex-direction: column; gap: 6px; text-align: center; }
  .footer-note { font-size: 11px; }

  /* PAYPAL MODAL */
  .pp-modal { width: 95vw; }
  .pp-body { padding: 18px; }
}

/* ============================================
   SMALL MOBILE — max-width: 400px
   ============================================ */
@media (max-width: 400px) {
  h1 { font-size: 30px; }
  .pin-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .main-toggle-btn { font-size: 11px; padding: 9px 6px; }
  .step-text { font-size: 11px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .plating-grid { grid-template-columns: repeat(2, 1fr); }
}