/* ========================================
   CapCraft – Custom Hat Shop
   ======================================== */

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

/* Designer modal */
.designer-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px;
  z-index: 500; box-shadow: 0 24px 64px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.designer-modal--open { opacity: 1; pointer-events: auto; }
.designer-modal__content { padding: 32px; position: relative; }
.designer-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: none; background: var(--bg);
  border-radius: 50%; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.designer-modal__close:hover { background: #e2e8f0; }
.designer-modal h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }

:root {
  --primary:   #121212;
  --primary-light:#2a2a2a;
  --accent:    #ff6b35;
  --accent-hover:#e55a25;
  --bg:        #f8f9fa;
  --card-bg:   #ffffff;
  --text:      #1a1a2e;
  --text-dim:  #64748b;
  --border:    #e2e8f0;
  --success:   #10b981;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.10);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:     1200px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  font-size: 1rem;
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(255,107,53,.35); }

.btn--lg { padding: 16px 40px; font-size: 1.125rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--primary);
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #000000 100%);
  z-index: -2;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(255,107,53,.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 20% 70%, rgba(255,255,255,.04) 0%, transparent 60%);
  z-index: -1;
}
.hero__content {
  padding: 80px 0;
  max-width: 720px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}
.hero__accent {
  display: block;
  background: linear-gradient(135deg, var(--accent), #ff9a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ---------- SECTION ---------- */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--card-bg);
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
  text-align: center;
  margin-bottom: 12px;
}
.section__desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 56px;
}

/* ---------- SHOP ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255,107,53,.12);
  transform: translateY(-4px);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.product-card__body {
  padding: 16px;
}
.product-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.product-card__price {
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.product-card__btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.product-card__btn:hover {
  background: var(--primary-light);
}

/* ---------- CUSTOMIZER ---------- */
.customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Preview */
.customizer__preview {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.preview-frame {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
#hatCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Controls */
.customizer__controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctrl-label {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
}
.ctrl-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fff;
}
.ctrl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctrl-hint {
  font-size: .82rem;
  color: var(--text-dim);
}
.ctrl-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}

/* Color swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  position: relative;
}
.swatch:hover { transform: scale(1.1); }
.swatch--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

/* SKU buttons */
.sku-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.sku-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.sku-btn--active,
.sku-btn--active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Decoration method tabs */
.method-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.method-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  white-space: nowrap;
}
.method-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}
.method-tab--active,
.method-tab--active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Hat style tabs */
.style-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.style-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  white-space: nowrap;
}
.style-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}
.style-tab--active,
.style-tab--active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Preview loading overlay */
.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.7);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text-dim);
  z-index: 10;
  backdrop-filter: blur(2px);
}
.preview-frame {
  position: relative;
}

/* Upload */
.upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-area:hover {
  border-color: var(--accent);
  background: rgba(255,107,53,.03);
}
.upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--text-dim);
  font-size: .88rem;
}
.upload-preview {
  position: relative;
  width: 100%;
  padding: 12px;
}
.upload-preview img {
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}
.upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.upload-remove:hover { background: rgba(0,0,0,.8); }

.hidden { display: none !important; }

/* Quantity */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 160px;
}
.qty-btn {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.qty-btn:first-child {
  border-radius: 8px 0 0 8px;
}
.qty-btn:last-child {
  border-radius: 0 8px 8px 0;
}
.qty-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.qty-input {
  width: 72px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Price card */
.price-card {
  background: linear-gradient(135deg, var(--primary), #000000);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card__row {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  opacity: .8;
}
.price-card__row--total {
  font-size: 1.4rem;
  font-weight: 800;
  opacity: 1;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 12px;
}
.price-card__tier {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(255,255,255,.1);
  padding: 6px 12px;
  border-radius: 6px;
  align-self: flex-start;
}

/* ---------- PRICING METHOD TABS ---------- */
.pricing-methods {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.pricing-method {
  padding: 10px 28px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}
.pricing-method:hover {
  border-color: var(--accent);
  color: var(--text);
}
.pricing-method--active,
.pricing-method--active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- PRICING TIERS ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.tier {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.tier:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255,107,53,.12);
  transform: translateY(-4px);
}
.tier--active {
  border-color: var(--accent) !important;
  box-shadow: 0 8px 32px rgba(255,107,53,.15) !important;
  transform: translateY(-2px);
}
.tier--popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff8f5, #fff);
}
.tier__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 16px;
  border-radius: 20px;
}
.tier__qty {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.tier__price {
  font-size: 2.4rem;
  font-weight: 900;
  color: #121212;
  line-height: 1;
}
.tier__per {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-note {
  margin-top: 12px;
  font-size: .9rem;
  text-align: center;
}
.form-note--success { color: var(--success); }
.form-note--error { color: #dc2626; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color .2s;
}
.contact-card a:hover { color: var(--accent); }
.contact-card p {
  color: var(--text-dim);
  font-size: .95rem;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--card-bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__copy {
  font-size: .85rem;
  color: var(--text-dim);
}
.footer__admin {
  font-size: .7rem;
  color: var(--text-dim);
  opacity: .4;
  margin-left: 16px;
  transition: opacity .2s;
}
.footer__admin:hover { opacity: .8; }

.section__more {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
}

/* ========================================
   CART & CHECKOUT
   ======================================== */

/* Overlay */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Cart badge in nav */
.cart-link {
  position: relative;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  vertical-align: top;
  margin-left: 2px;
}

/* Cart sidebar */
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.cart--open {
  transform: translateX(0);
}
.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart__title {
  font-size: 1.15rem;
  font-weight: 700;
}
.cart__close {
  width: 32px; height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.cart__close:hover { background: #e2e8f0; }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart__empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}

/* Cart items */
.cart__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
  position: relative;
}
.cart-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cart-item__thumb canvas,
.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__info {
  flex: 1;
  min-width: 0;
}
.cart-item__method {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--accent);
  margin-bottom: 2px;
}
.cart-item__text {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__color {
  font-size: .78rem;
  color: var(--text-dim);
}
.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cart-item__price {
  font-weight: 700;
  font-size: .95rem;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.cart-item__qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.cart-item__qty button:first-child { border-radius: 6px 0 0 6px; }
.cart-item__qty button:last-child { border-radius: 0 6px 6px 0; }
.cart-item__qty button:hover { background: #f1f5f9; }
.cart-item__qty span {
  width: 32px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  line-height: 28px;
}
.cart-item__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px; height: 22px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.cart-item__remove:hover { background: rgba(0,0,0,.6); }

/* Cart footer */
.cart__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- CHECKOUT MODAL ---------- */
.checkout {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.checkout--open {
  opacity: 1;
  pointer-events: auto;
}
.checkout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.checkout__title {
  font-size: 1.15rem;
  font-weight: 700;
}
.checkout__close {
  width: 32px; height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.checkout__close:hover { background: #e2e8f0; }

.checkout__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.checkout__summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.checkout__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 4px 0;
}
.checkout__summary-total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
}

/* Checkout form */
.checkout__form {
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row .form-group {
  flex: 1;
}

/* PayPal */
.checkout__paypal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.checkout__paypal-note {
  font-size: .82rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 14px;
}
.checkout__loading {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: .9rem;
}

/* Success */
.checkout__success {
  text-align: center;
  padding: 40px 20px;
}
.checkout__success-icon {
  margin-bottom: 16px;
}
.checkout__success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.checkout__success p {
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .customizer {
    grid-template-columns: 1fr;
  }
  .customizer__preview {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: .82rem; }
  .hero__title { font-size: 2rem; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cart { width: 100vw; }
  .checkout { width: calc(100vw - 16px); }
  .form-row { flex-direction: column; gap: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .style-tabs { flex-direction: column; }
  .style-tab { flex: none; }
}
