/* ==========================================================================
   Paws & Plaid — Editorial Quiet-Luxury Storefront (Mobile-First)
   ========================================================================== */

@property --fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --bg: #f6f2ea;
  --surface: #fdfcf9;
  --surface-soft: #f9f6ef;
  --border: #e4dccd;
  --border-strong: #c8bca6;
  --ink: #1b221e;
  --muted: #5d6761;
  --forest: #183629;
  --forest-dark: #10251c;
  --cranberry: #742230;
  --cranberry-dark: #581823;
  --gold: #b68d40;
  --gold-soft: #f5ecda;
  --ok-bg: #ebf4ee;
  --ok-ink: #194d32;
  --warn-bg: #fbf2e1;
  --warn-ink: #7d4e0d;
  --err-bg: #faeaea;
  --err-ink: #842020;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-subtle: 0 2px 12px rgba(24, 54, 41, 0.045);
  --shadow-lift: 0 12px 32px rgba(16, 37, 28, 0.09);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Announcement Ribbon */
.announce-bar {
  background: var(--forest-dark);
  color: #f3ede1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(182, 141, 64, 0.35);
}

.announce-sep {
  opacity: 0.45;
}

@media (max-width: 560px) {
  .hide-xs { display: none; }
  .announce-bar { font-size: 10.5px; padding: 7px 12px; gap: 6px; }
}

/* Minimal Editorial Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 8px 14px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(182, 141, 64, 0.55);
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--cranberry);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6b4e13;
  border: 1px solid #e2cfa6;
}

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f9f6ef;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.bag-btn:hover {
  background: var(--forest-dark);
}

.bag-btn:active {
  transform: scale(0.98);
}

.bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 700;
}

/* Main Product Showcase Shell */
.pdp-shell {
  max-width: 1280px;
  margin: 14px auto 48px;
  padding: 0 24px;
}

@media (max-width: 720px) {
  .pdp-shell {
    margin: 8px auto 28px;
    padding: 0 12px;
  }
}

/* Horizontal Swipeable Product Rail + Scrollability Fade Affordance */
.product-rail-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 24px;
}

.product-rail-wrap::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1080px) {
  .product-rail-wrap {
    justify-content: space-between;
    gap: 6px;
  }
}

.scroller-fade {
  --fade-size: 2.25rem;
  --fade-dir: right;
  --fade-start-pos: 0;
  --fade-end-pos: 100%;
  mask:
    linear-gradient(black, black) no-clip subtract,
    linear-gradient(to var(--fade-dir), black, transparent) var(--fade-start-pos) 0 / var(--fade-start) 100% no-repeat no-clip,
    linear-gradient(to var(--fade-dir), transparent, black) var(--fade-end-pos) 0 / var(--fade-end) 100% no-repeat no-clip;
  animation: reveal-fade-start linear both, hide-fade-end linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  transition: --fade-start 0.2s, --fade-end 0.2s;
}

.scroller-fade.more-start { --fade-start: var(--fade-size); }
.scroller-fade.more-end { --fade-end: var(--fade-size); }

@keyframes reveal-fade-start {
  to { --fade-start: var(--fade-size); }
}

@keyframes hide-fade-end {
  from { --fade-end: var(--fade-size); }
}

.rail-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.rail-pill:hover {
  border-color: var(--border-strong);
}

.rail-pill.active {
  background: var(--forest);
  color: #f9f6ef;
  border-color: var(--forest);
  font-weight: 600;
}

.rail-pill .rail-price {
  font-size: 11.5px;
  opacity: 0.7;
  font-weight: 400;
}

/* 2-Column Editorial Split */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .pdp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.stage-col {
  position: sticky;
  top: 74px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  .stage-col { position: static; }
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-subtle);
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .stage-card {
    padding: 8px;
    border-radius: 14px;
  }
}

.stage-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ede6d9;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 620px;
  margin: 0 auto;
}

.stage-canvas-wrap canvas {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
}

.stage-badge-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.stage-controls-left {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.floating-badge {
  background: rgba(253, 252, 249, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--forest-dark);
  border: 1px solid rgba(24, 54, 41, 0.12);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
}

.floating-badge.badge-subtle {
  color: var(--muted);
}

.floating-badge.ai-live {
  background: rgba(24, 54, 41, 0.92);
  color: #f6f2ea;
  border-color: rgba(182, 141, 64, 0.5);
}

.stage-toggle {
  display: inline-flex;
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(24, 54, 41, 0.16);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stage-toggle-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.stage-toggle-btn.active {
  background: var(--forest);
  color: #f9f6ef;
}

.spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 37, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f9f6ef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 2px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Right Column: Quiet-Luxury Customizer */
.customizer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .customizer-card {
    padding: 18px 16px;
    border-radius: 14px;
    gap: 14px;
  }
}

.pdp-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pdp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 3px;
}

.pdp-title-row h1 {
  margin: 0;
  font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.05rem);
  line-height: 1.1;
  color: var(--forest-dark);
}

.pdp-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

.pdp-price s {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}

.pdp-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.pdp-meta-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.05em;
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
}

.block-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.block-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-dark);
}

.block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-dot {
  color: var(--border-strong);
  font-size: 12px;
}

.sub-block {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Swatches & Editorial Option Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@media (max-width: 640px) {
  .scroller-mobile {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .scroller-mobile::-webkit-scrollbar {
    display: none;
  }
}

.chip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}

.chip-btn:hover {
  border-color: var(--border-strong);
}

.chip-btn.active {
  border-color: var(--forest);
  background: #edf3ef;
  color: var(--forest-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--forest);
}

.size-chip {
  min-width: 46px;
  justify-content: center;
  padding: 0 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Segmented Toggle */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.segmented.two {
  grid-template-columns: 1fr 1fr;
}

.seg-btn {
  border: none;
  background: transparent;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--forest-dark);
  box-shadow: 0 1px 4px rgba(16, 37, 28, 0.08);
}

/* Upload Slots */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.upload-grid.two { grid-template-columns: 1fr 1fr; }
.upload-grid.three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 560px) {
  .upload-grid.two,
  .upload-grid.three { grid-template-columns: 1fr; }
}

.upload-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  min-height: 86px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--forest);
  background: #eff4f0;
}

.drop-placeholder {
  text-align: center;
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.drop-placeholder strong {
  color: var(--forest-dark);
  font-weight: 600;
}

.drop-icon-svg {
  color: var(--forest);
  opacity: 0.75;
}

.thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.pet-meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* Inputs: 16px floor prevents iOS Safari auto-zoom! */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: max(1rem, 16px);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

@media (min-width: 820px) {
  input[type="text"],
  input[type="email"],
  select {
    font-size: 13.5px;
    min-height: 40px;
  }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* Primary Action Stack */
.cta-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
}

.cta-stack .alert,
.cta-stack .micro-note {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .cta-stack { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--forest);
  color: #f9f6ef;
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-dark);
}

.btn-accent {
  background: var(--cranberry);
  color: #fff;
}

.btn-accent:hover:not(:disabled) {
  background: var(--cranberry-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--forest-dark);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--surface-soft);
}

.btn-lg { width: 100%; min-height: 48px; font-size: 14.5px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }

.link-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  min-height: 32px;
}

.link-btn:hover { color: var(--cranberry); }
.link-forest { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

.alert {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.alert.info { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid rgba(25, 77, 50, 0.15); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid rgba(125, 78, 13, 0.18); }
.alert.error { background: var(--err-bg); color: var(--err-ink); border: 1px solid rgba(132, 32, 32, 0.18); }

.micro-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Below-the-Fold Editorial Bands */
.band-section {
  max-width: 1280px;
  margin: 0 auto 28px;
  padding: 0 24px;
}

@media (max-width: 720px) {
  .band-section {
    padding: 0 12px;
    margin-bottom: 20px;
  }
}

.band-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

@media (max-width: 720px) {
  .band-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
}

.band-head {
  margin-bottom: 22px;
}

.band-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  color: var(--forest-dark);
}

.band-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.bundle-card,
.pillar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pillar-card {
  justify-content: flex-start;
  gap: 8px;
}

.pillar-num {
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}

.bundle-card h3,
.pillar-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--forest-dark);
}

.bundle-card p,
.pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.badge-gold {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6b4e13;
  white-space: nowrap;
}

.bundle-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.bundle-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
}

.bundle-price s {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 980px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: rgba(253, 252, 249, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(16, 37, 28, 0.08);
  }

  .mobile-sticky-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
  }

  .mobile-sticky-btn {
    min-height: 46px;
    font-size: 13.5px;
    padding: 0 12px;
  }
}

/* Slide-Out Shopping Bag Drawer (100dvh + Safe Area) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 23, 0.48);
  backdrop-filter: blur(2px);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(16, 37, 28, 0.2);
}

.drawer-head {
  padding: 16px 20px;
  background: var(--forest-dark);
  color: #f9f6ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.icon-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f9f6ef;
  cursor: pointer;
}

.icon-close-dark {
  border-color: var(--border-strong);
  color: var(--ink);
}

.drawer-progress {
  padding: 10px 20px;
  background: var(--gold-soft);
  color: #5b410e;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}

.cart-item-title { font-weight: 600; font-size: 13.5px; color: var(--forest-dark); }
.cart-item-meta { font-size: 11.5px; color: var(--muted); margin: 2px 0 6px; }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

.size-stepper-ctrls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qty-mini {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-upsell {
  padding: 10px 20px 12px;
  background: #f5efe3;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upsell-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.upsell-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid rgba(182, 141, 64, 0.35);
  border-radius: 10px;
}

.upsell-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.upsell-info {
  min-width: 0;
}

.upsell-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.25;
}

.upsell-perk {
  font-size: 11px;
  font-weight: 600;
  color: var(--ok-ink);
  margin-top: 2px;
}

.btn-xs {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.drawer-foot {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.promo-row input[type="text"] {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-feedback {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.promo-feedback.ok { color: var(--ok-ink); }
.promo-feedback.error { color: var(--err-ink); }

.checkout-fields {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}

.total-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.total-row.grand { font-size: 16.5px; font-weight: 700; color: var(--forest-dark); padding-top: 8px; border-top: 1px solid var(--border); }

/* Policy Modal */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.policy-card {
  max-width: 520px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lift);
  pointer-events: auto;
}

.policy-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Subtle 3-Step Micro-Strip & Verified-Quality Callouts */
.how-strip {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.how-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.how-strip-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.quality-callouts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.quality-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.how-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.how-step-num {
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  font-weight: 600;
  padding-top: 2px;
}

.how-step strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 3px;
}

.how-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .how-strip {
    margin-top: 16px;
    padding: 14px 16px;
  }

  .how-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Editorial Footer */
.footer {
  background: var(--forest-dark);
  color: #d7e0da;
  padding: 36px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 26px;
  color: #f6f2ea;
  margin-bottom: 4px;
}

.footer-tag {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.65);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-links a {
  color: #e6cf99;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (pointer: coarse) {
  .rail-pill,
  .chip-btn,
  .seg-btn {
    min-height: 44px;
  }
}

/* Free-Shipping Progress Bar & 1-Tap Welcome Code Nudge */
.drawer-progress-wrap {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--border);
}

.drawer-progress-wrap .drawer-progress {
  border-bottom: none;
  padding-bottom: 6px;
}

.drawer-progress-track {
  height: 4px;
  margin: 0 18px 10px;
  background: rgba(24, 54, 41, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.drawer-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.drawer-progress-fill.unlocked {
  background: var(--forest);
}

.promo-nudge-btn {
  margin-top: 6px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(182, 141, 64, 0.65);
  background: var(--gold-soft);
  color: var(--forest-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  min-height: 36px;
}

.promo-nudge-btn:hover {
  background: #efe2c4;
}

/* ==========================================================================
   Guided 2-Step AI "Wow Factor" Studio UX & Frosted Stage Overlay
   ========================================================================== */

/* Lightweight Skippable First-Visit Quick-Start Banner */
.quickstart-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(135deg, #fdfcf9 0%, #f5ecda 100%);
  border: 1px solid rgba(182, 141, 64, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.quickstart-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.quickstart-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}

.quickstart-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.3;
}

.quickstart-steps li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qs-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--forest);
  color: #f9f6ef;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.qs-arrow {
  color: var(--gold);
  font-weight: 700;
}

.quickstart-dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(24, 54, 41, 0.16);
  background: rgba(253, 252, 249, 0.85);
  color: var(--forest-dark);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.quickstart-dismiss:hover {
  background: #fff;
  border-color: var(--forest);
}

@media (max-width: 560px) {
  .quickstart-banner {
    padding: 9px 10px 9px 12px;
    align-items: flex-start;
  }

  .quickstart-steps {
    font-size: 11.5px;
    gap: 5px;
  }
}

/* Layering inside stage canvas wrap so badges stay clickable above frosted overlay */
.stage-badge-bar {
  z-index: 15;
}

.spinner-overlay {
  z-index: 25;
}

/* Quiet-Luxury Frosted Stage Overlay */
.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 18px 18px;
  background: rgba(24, 54, 41, 0.24);
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

@media (prefers-reduced-motion: no-preference) {
  .stage-overlay {
    animation: stageOverlayFade 0.22s ease-out;
  }
}

@keyframes stageOverlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stage-overlay-card {
  width: 100%;
  max-width: 390px;
  background: rgba(253, 252, 249, 0.94);
  border: 1px solid rgba(182, 141, 64, 0.48);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: 0 18px 42px rgba(16, 37, 28, 0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stage-overlay-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.overlay-pet-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(16, 37, 28, 0.14);
  background: var(--surface-soft);
}

.overlay-master-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.overlay-master-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 16px rgba(16, 37, 28, 0.18);
  background: var(--surface-soft);
}

.overlay-master-pill {
  margin-top: -10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--forest);
  color: #f9f6ef;
  border: 1px solid rgba(182, 141, 64, 0.65);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-overlay-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.stage-overlay-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem);
  line-height: 1.18;
  color: var(--forest-dark);
}

.stage-overlay-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.stage-overlay-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.stage-overlay-cta {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(24, 54, 41, 0.24);
}

.stage-overlay-art-btn {
  width: 100%;
}

.stage-overlay-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .stage-overlay {
    padding: 46px 12px 12px;
  }

  .stage-overlay-card {
    padding: 14px 14px 12px;
    gap: 6px;
  }

  .overlay-pet-thumb {
    width: 46px;
    height: 46px;
  }

  .overlay-master-thumb {
    width: 68px;
    height: 68px;
  }

  .stage-overlay-title {
    font-size: 1.2rem;
  }

  .stage-overlay-meta {
    font-size: 11.5px;
  }

  .stage-overlay-cta {
    min-height: 44px;
    font-size: 13.5px;
  }
}

/* Stage Hint Bar (AI Ready cross-piece nudge & Quota Fallback note) */
.stage-hint-bar {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-hint-bar.hint-ready {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid rgba(25, 77, 50, 0.16);
}

.stage-hint-bar.hint-fallback {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid rgba(125, 78, 13, 0.2);
}

/* Guided 2-Step Progress Strip in Customizer */
.studio-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.step-pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-pill.active {
  background: var(--surface);
  color: var(--forest-dark);
  box-shadow: 0 1px 4px rgba(16, 37, 28, 0.08);
}

.step-pill.active .step-pill-num {
  background: var(--forest);
  color: #f9f6ef;
}

.step-pill.done {
  color: var(--ok-ink);
}

.step-pill.done .step-pill-num {
  background: var(--ok-ink);
  color: #fff;
}

.step-pill-sep {
  color: var(--border-strong);
  font-size: 12px;
  flex-shrink: 0;
}

/* Guided Step 2 CTA Stack & Soft-Gated Add to Bag */
.cta-stack-guided {
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 2px;
}

.btn-soft-gated {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--border-strong);
}

.btn-soft-gated:hover {
  background: var(--gold-soft);
  color: var(--forest-dark);
  border-color: var(--gold);
}

.btn-ready-secondary {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid rgba(25, 77, 50, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-pulse {
    animation: ctaPulse 0.65s ease-in-out 2;
  }
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(182, 141, 64, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(182, 141, 64, 0.42);
  }
}
