/* Site chrome: header, footer, homepage */

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 244, 238, 0.95);
  border-bottom: 1px solid var(--border);
}

/* backdrop-filter on ::before — avoids trapping fixed nav inside header box */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.logo {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.15;
  color: inherit;
}

.logo-mark {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.06em;
  font-family: var(--font-body);
  font-size: var(--logo-size);
  font-weight: var(--logo-weight);
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}

.logo-bridge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: baseline;
}

.logo-ftoc {
  display: block;
  height: 0.78em;
  width: auto;
  vertical-align: middle;
}

.logo-tag {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: var(--logo-sub-size);
  font-weight: var(--logo-sub-weight);
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--muted);
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.site-nav {
  flex: none;
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 28px 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.35);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

body.nav-open { overflow: hidden; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 16px;
  list-style: none;
  flex-wrap: wrap;
  max-width: 100%;
}

.nav-links a {
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--nav-link-color);
  font-size: var(--nav-link-size);
  font-weight: var(--nav-link-weight);
  letter-spacing: var(--nav-link-spacing);
  text-transform: uppercase;
  padding: 4px 0;
  white-space: nowrap;
  position: relative;
  transition: color var(--duration) var(--ease);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-link-active);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Sample Pack CTA — same on homepage + all product pages */
.site-header .nav-links a.nav-cta {
  display: inline-block;
  color: var(--cream) !important;
  background: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: var(--nav-link-size) !important;
  font-weight: var(--nav-link-weight) !important;
  letter-spacing: var(--nav-link-spacing) !important;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px !important;
  border: none;
  border-radius: 0;
  line-height: 1.2;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.site-header .nav-links a.nav-cta::after { display: none !important; }

.site-header .nav-links a.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--cream) !important;
}

.nav-disabled {
  color: var(--muted-light) !important;
  cursor: default;
  pointer-events: none;
}

/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-strong);
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--lang-btn-size);
  font-weight: var(--lang-btn-weight);
  letter-spacing: 0.06em;
  padding: 7px 11px;
  color: var(--ink-soft);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.active {
  background: var(--ink);
  color: var(--cream);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Desktop: two-row header — logo row + nav row */
@media (min-width: 901px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav {
    padding-top: 12px;
    padding-bottom: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links {
    gap: 10px 12px;
  }

  .nav-links a,
  .site-header .nav-links a.nav-cta {
    font-size: 11px !important;
  }
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.65);
  padding: 64px 28px 40px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  color: var(--cream);
}

.footer-brand .logo-bridge {
  line-height: 0;
}

.footer-brand .logo-ftoc {
  height: 0.78em;
  width: auto;
}

.footer-brand .logo-tag {
  color: rgba(247, 244, 238, 0.5);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(247, 244, 238, 0.5);
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(247, 244, 238, 0.55);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover { color: var(--cream); }

.footer-col--products {
  min-width: 0;
}

.footer-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.footer-products-grid ul {
  list-style: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(247, 244, 238, 0.35);
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

/* ── Homepage Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  padding: 100px 28px 88px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content .eyebrow { color: var(--gold-light); margin-bottom: 24px; }

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247, 244, 238, 0.72);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 560px;
  min-height: 400px;
}

.hero-card-stack {
  position: absolute;
  inset: 0;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-card--1 {
  width: 68%;
  height: 44%;
  top: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(145deg, #2a2420 0%, #1a1614 100%);
  border: 1px solid rgba(184, 149, 106, 0.25);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.hero-card--1.hero-card--natural {
  width: 78%;
  height: auto;
  aspect-ratio: 892 / 1024;
  padding: 0;
  background: transparent;
  display: block;
}

.hero-card--natural .hero-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.hero-card-stack.has-natural-top .hero-card--2 {
  width: 54%;
  height: 34%;
  bottom: 24%;
}

.hero-card-stack.has-natural-top .hero-card--3 {
  width: 42%;
  height: 22%;
  bottom: 0;
  right: 2%;
}

.hero-card--1 .card-label {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  font-style: italic;
}

.hero-card--2 {
  width: 58%;
  height: 38%;
  bottom: 30%;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--cream-deep) 0%, #ddd6c8 100%);
  border: 1px solid rgba(14, 14, 14, 0.08);
}

.hero-card--3 {
  width: 46%;
  height: 28%;
  bottom: 0;
  right: 4%;
  z-index: 1;
  background: linear-gradient(135deg, #1e3050 0%, var(--navy) 100%);
  border: 1px solid rgba(184, 149, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card--3 span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-card-stack.is-hidden { display: none; }

.hero-gallery {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.hero-gallery.is-active { display: flex; }

.hero-gallery-main {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 149, 106, 0.2);
  background: var(--navy);
}

.hero-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-gallery-main img.is-contain {
  object-fit: contain;
  background: #fff;
}

.hero-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hero-gallery-nav:hover { background: rgba(14, 14, 14, 0.65); }
.hero-gallery-nav.prev { left: 10px; }
.hero-gallery-nav.next { right: 10px; }

.hero-gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.hero-gallery-thumb.active { border-color: var(--gold); }

.hero-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card.hero-card--photo {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-card.hero-card--photo .card-label,
.hero-card.hero-card--photo > span {
  display: none;
}

#galleryMain .pb-gallery-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  border-radius: inherit;
}

.hero-stats {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247, 244, 238, 0.1);
  margin-top: 72px;
  padding-top: 0;
}

.hero-stat {
  padding: 28px 24px;
  border-right: 1px solid rgba(247, 244, 238, 0.08);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-stat span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.45);
}

.hero-stat small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  opacity: 0.85;
}

.sample-ship-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.sample-ship-note--light {
  color: rgba(247, 244, 238, 0.55);
  margin-top: 14px;
  position: relative;
}

.hero-actions + .sample-ship-note {
  margin-top: 12px;
  color: rgba(247, 244, 238, 0.5);
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Products section ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 340px;
  text-align: right;
  line-height: 1.7;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cat-card {
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background var(--duration) var(--ease);
  height: 100%;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.cat-card:hover {
  background: var(--cream);
}

.cat-card:hover .cat-tag {
  border-color: rgba(184, 149, 106, 0.45);
  color: var(--gold-dark);
  background: rgba(184, 149, 106, 0.08);
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-card-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(212, 188, 148, 0.5);
  font-style: italic;
  z-index: 2;
}

.cat-card-visual {
  flex: 0 0 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(184, 149, 106, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 20% 15%, rgba(212, 188, 148, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #243a5c 0%, #152238 45%, #0f1a2e 100%);
}

.cat-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.05) 0%, transparent 35%, rgba(14, 14, 14, 0.15) 100%);
  pointer-events: none;
}

.cat-icon {
  width: 88px;
  height: auto;
  position: relative;
  z-index: 1;
  transition: transform var(--duration) var(--ease), filter var(--duration) var(--ease);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.cat-card:hover .cat-icon {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.38));
}

/* Per-category icon sizing */
.cat-card[data-cat="cards"] .cat-icon { width: 96px; }
.cat-card[data-cat="stickers"] .cat-icon { width: 84px; }
.cat-card[data-cat="flags"] .cat-icon { width: 52px; }
.cat-card[data-cat="sleeves"] .cat-icon { width: 62px; }
.cat-card[data-cat="tags"] .cat-icon { width: 58px; }
.cat-card[data-cat="flyers"] .cat-icon { width: 68px; }
.cat-card[data-cat="cake"] .cat-icon { width: 72px; }
.cat-card[data-cat="uv"] .cat-icon { width: 84px; }

.cat-card-body {
  flex: 1;
  padding: 24px 24px 28px;
  border-top: 1px solid var(--border);
}

.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cat-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.cat-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

.cat-card-arrow {
  position: absolute;
  bottom: 28px;
  right: 24px;
  font-size: 18px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.cat-card:hover .cat-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── CTA band ── */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,149,106,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
}

.cta-band p {
  font-size: 16px;
  color: rgba(247, 244, 238, 0.6);
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-band .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  position: relative;
}

.cta-band .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-height: 360px; aspect-ratio: 16/10; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid rgba(247, 244, 238, 0.08); }
  .hero-stat:nth-child(2) { border-right: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-sub { text-align: left; }

  .nav-toggle { display: block; z-index: 210; }

  .header-actions { gap: 8px; }

  .lang-btn { padding: 5px 8px; font-size: 9px; }

  .nav-overlay.visible { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    padding: 8px 28px 40px;
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 160;
    flex: none;
    display: block;
    box-shadow: -8px 0 32px rgba(14, 14, 14, 0.08);
  }

  .site-nav.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 16px;
    padding-top: 8px;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 13px;
    font-weight: var(--nav-link-weight);
    white-space: normal;
  }

  .nav-links a::after { display: none; }

  .site-header .nav-links a.nav-cta {
    display: block !important;
    text-align: center;
    font-size: 13px !important;
    padding: 14px 18px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  .logo-mark { font-size: 30px; }
  .logo-tag { font-size: 9px; letter-spacing: 0.16em; }

  .cat-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 64px; }
  .section { padding: 64px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Sample pack modal */
.pb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.45);
}

.pb-modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(14, 14, 14, 0.18);
}

.pb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pb-modal-close:hover {
  color: var(--ink);
}

.pb-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  padding-right: 24px;
}

.pb-modal-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
  margin-bottom: 24px;
}

.pb-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-modal-btn {
  width: 100%;
  text-align: center;
}

.pb-modal-btn-secondary {
  padding: 12px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.pb-modal-btn-secondary:hover {
  color: var(--ink);
}

body.pb-modal-open {
  overflow: hidden;
}

.pb-modal-panel--form {
  max-width: 480px;
  width: calc(100% - 32px);
}

.pb-form-row {
  margin-bottom: 12px;
}

.pb-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pb-form-row input,
.pb-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}

.pb-form-row input:focus,
.pb-form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.pb-form-summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.pb-form-error {
  color: #c0392b;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* Product configurator: qty per design */
.option-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.qty-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.qty-custom-row label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.qty-custom-input {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
}

.qty-custom-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(23, 128, 122, 0.15);
}
