:root {
  --accent: #801414;
  --accent-soft: rgba(128, 20, 20, 0.08);
  --bg: #faf9f7;
  --bg-section: #f3f1ed;
  --text: #1a1816;
  --text-muted: #6b6560;
  --border: rgba(26, 24, 22, 0.1);
  --header-h: 120px;
  --pad-x: clamp(12px, 2.5vw, 28px);
  --max-w: 1440px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "Pinyon Script", cursive;
  --font-hero: "Sloop Script Pro", "Pinyon Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }

.brand-script {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 16px;
}
.burger-btn {
  display: none;
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text);
  justify-self: start;
  position: relative;
  z-index: 3;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.site-header.menu-open .burger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .burger-btn span:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.show { display: flex; }

.announcement-bar {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px var(--pad-x);
  border-top: 1px solid var(--border);
}
.announcement-bar:empty,
.announcement-bar[hidden] {
  display: none !important;
}

.categories-bar {
  position: relative;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: min-content;
}
.cat-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: left 0.28s var(--ease), width 0.28s var(--ease);
  pointer-events: none;
  opacity: 0;
}
.cat-indicator.ready { opacity: 1; }
.cat-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
  white-space: nowrap;
}
.cat-tab.active { color: var(--accent); }

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 44px 1fr auto;
    padding: 10px var(--pad-x);
    gap: 8px;
  }
  .burger-btn {
    display: flex;
    border-color: var(--border);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  .brand-script {
    grid-column: 2;
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    grid-column: 3;
    gap: 4px;
  }
  .categories-bar {
    display: none !important;
    overflow: visible;
    border-top: 1px solid var(--border);
    background: rgba(250, 249, 247, 0.98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .site-header.menu-open .categories-bar {
    display: block !important;
  }
  .categories-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: 0;
  }
  .categories-bar .cat-tab {
    padding: 14px var(--pad-x);
    font-size: 12px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-muted);
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    white-space: nowrap;
  }
  .categories-bar .cat-tab:last-child { border-bottom: none; }
  .categories-bar .cat-tab.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--border);
  }
  .cat-indicator { display: none; }
  .tagline-block {
    padding: clamp(24px, 5vw, 36px) var(--pad-x) clamp(20px, 4vw, 28px);
  }
  .tagline-block .inner {
    padding-bottom: 0;
  }
  .tagline-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 0 4px;
  }
  .tagline-sections .cat-tab {
    flex: 0 1 auto;
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
  }
  .tagline-sections .cat-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
  }
}

.hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #1a1816;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide img {
  transform: scale(1);
  transition: transform 7s linear;
}
.hero-slide.active img { transform: scale(1.06); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
}
.hero-caption {
  position: absolute;
  bottom: clamp(72px, 11vw, 100px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 520px;
}
.hero-caption .line-top {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.hero-caption .line-mid {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero-cta {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.hero-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-nav svg { width: 26px; height: 26px; stroke-width: 2; }
.hero-nav:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%) scale(1.05);
}
.hero-nav.prev { left: max(16px, var(--pad-x)); }
.hero-nav.next { right: max(16px, var(--pad-x)); }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.75); }
.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.tagline-block {
  padding: clamp(28px, 5vw, 48px) var(--pad-x);
  background: #801414;
  text-align: center;
}
.tagline-block .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4px, 1vw, 8px);
}
.tagline-block p {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tagline-block p + p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

@media (min-width: 769px) {
  .tagline-sections {
    display: none;
  }
}

.catalog { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x) 80px; }

.category-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x) 80px;
}
.category-page-head {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.category-page-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.category-page-back:hover { color: var(--accent); }
.category-page-head h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.category-page-catalog {
  padding: 0;
}

.catalog-section { padding: 48px 0 24px; scroll-margin-top: var(--header-h); }
.catalog-section[data-slug="roses"] { min-height: 55vh; }
.catalog-section:nth-child(even) { background: var(--bg-section); margin: 0 calc(-1 * var(--pad-x)); padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.filter-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
  transition: all 0.2s;
}
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Roses — sidebar filter (left) */
.catalog-section__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.catalog-section__body.has-filter {
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 900px) {
  .catalog-section__body.has-filter { grid-template-columns: 1fr; }
}

.filter {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  padding: 0 20px 0 0;
  border-right: 1px solid var(--border);
}
@media (max-width: 900px) {
  .filter {
    position: static;
    padding: 0 0 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .filter__options--color { flex-direction: row; flex-wrap: wrap; }
}
.filter__title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.filter__group { margin-bottom: 28px; }
.filter__group:last-child { margin-bottom: 0; }
.filter__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.filter__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: color 0.2s;
}
.filter-chip:hover,
.filter-chip.is-active { color: var(--text); }
.filter-chip.is-active .filter-chip__swatch {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.filter-chip__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .products-grid { grid-template-columns: 1fr; } }

.product-card { cursor: pointer; }
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ebe8e4;
  margin-bottom: 12px;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease);
}
.product-card img.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover img.hover-img { opacity: 1; }
.product-card .title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.product-card .price { font-size: 15px; color: var(--accent); }
.product-card .add-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.product-card .add-btn:hover { background: #6a1010; }
.product-card:hover .add-btn { opacity: 1; transform: none; }
@media (max-width: 768px) { .product-card .add-btn { opacity: 1; } }

.placeholder-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 56px var(--pad-x) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-cta {
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-cta .btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  font-size: 14px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.footer-grid a { display: block; margin-bottom: 8px; color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--accent); }
.checkout-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout-note a:hover { color: var(--accent); }
.checkout-legal-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.checkout-legal-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout-legal-note a:hover { color: var(--accent); }

/* Cart / Checkout — premium fullscreen */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: #faf9f7;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', system-ui, sans-serif;
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  background: #fff;
}
.drawer-head strong {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  grid-column: 2;
  color: var(--text);
}
.drawer-continue {
  grid-column: 1;
  justify-self: start;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.drawer-continue:hover { color: var(--accent); }
.drawer-close {
  grid-column: 3;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.drawer-close:hover { border-color: var(--accent); }

.drawer-empty[hidden],
.drawer-layout[hidden],
.drawer-continue[hidden] { display: none !important; }

.drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 20px;
}
.drawer-empty p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: var(--text);
}
.drawer-empty .btn-link {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
}

.drawer-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 44%) 1fr;
  min-height: 0;
  overflow: hidden;
}

/* Left panel — milk white */
.checkout-visual {
  background: linear-gradient(180deg, #fdfcfa 0%, #f7f4ef 100%);
  color: var(--text);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.checkout-brand {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}
.checkout-hero {
  flex: 1;
  min-height: 280px;
  max-height: 48vh;
  border-radius: 2px;
  overflow: hidden;
  background: #ebe8e4;
  box-shadow: 0 12px 40px rgba(26, 24, 22, 0.08);
}
.checkout-postcard {
  margin-top: 28px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.checkout-postcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.checkout-badge {
  color: var(--accent);
  font-weight: 600;
}
.checkout-visual-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.checkout-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.checkout-postcard textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  min-height: 88px;
  border-radius: 2px;
}
.checkout-postcard textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.checkout-trust {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Right panel */
.checkout-main {
  background: #faf9f7;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.checkout-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 56px) 32px;
  max-width: 640px;
}
.checkout-section { margin-bottom: 36px; }
.checkout-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.checkout-form .checkout-section:last-of-type { margin-bottom: 24px; }

/* Order lines */
.order-lines { display: flex; flex-direction: column; gap: 0; }
.order-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.order-line:first-child { padding-top: 0; }
.order-line-img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
  background: #ebe8e4;
}
.order-line-body { min-width: 0; }
.order-line-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.35;
}
.order-line-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: var(--accent);
}
.order-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.order-line-qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: background 0.15s;
}
.order-line-qty button:hover { background: var(--bg-section); }
.order-line-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 32px;
}
.order-line-remove {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
}
.order-line-remove:hover { opacity: 1; color: var(--accent); }

/* Form fields */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-field.full { grid-column: 1 / -1; }
.checkout-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(26, 24, 22, 0.12);
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(128, 20, 20, 0.08);
}
.checkout-field textarea { resize: vertical; min-height: 72px; }

/* Payment methods */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-method { cursor: pointer; display: block; }
.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-method-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(26, 24, 22, 0.1);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.pay-method input:checked + .pay-method-box {
  border-color: var(--accent);
  background: rgba(128, 20, 20, 0.03);
  box-shadow: 0 0 0 1px var(--accent);
}
.pay-method:hover .pay-method-box {
  border-color: rgba(128, 20, 20, 0.35);
}
.pay-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.pay-method-icon svg { width: 22px; height: 22px; }
.pay-method-icon--sbp { background: rgba(45, 125, 70, 0.12); color: #2d7d46; }
.pay-method-text { display: flex; flex-direction: column; gap: 2px; }
.pay-method-text strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.pay-method-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-error {
  color: #b71c1c;
  font-size: 13px;
  padding: 12px 16px;
  background: rgba(183, 28, 28, 0.06);
  border-radius: 2px;
  margin-bottom: 16px;
}

.checkout-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.checkout-summary-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.checkout-summary-total {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.checkout-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.checkout-btn:hover { background: #6a1010; }
.checkout-btn:active { transform: scale(0.99); }
.checkout-btn:disabled { opacity: 0.55; cursor: wait; }
.checkout-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .drawer-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .checkout-visual {
    flex-shrink: 0;
    min-height: auto;
    padding: 16px;
    overflow: visible;
  }
  .checkout-visual-inner {
    max-width: none;
  }
  .checkout-brand {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }
  .checkout-hero {
    flex: none;
    min-height: 0;
    height: clamp(100px, 28vw, 140px);
    max-height: 140px;
  }
  .checkout-postcard {
    margin-top: 12px;
    padding: 12px 14px;
  }
  .checkout-postcard textarea {
    min-height: 56px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .checkout-trust {
    margin-top: 10px;
    font-size: 10px;
  }
  .checkout-main {
    flex: none;
    overflow: visible;
    min-height: auto;
  }
  .checkout-scroll {
    flex: none;
    overflow: visible;
    max-width: none;
    padding: 8px 16px 28px;
  }
  .checkout-section { margin-bottom: 28px; }
  .checkout-section-title { font-size: 1.25rem; margin-bottom: 14px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-footer {
    position: static;
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .drawer-head {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 10px 14px;
  }
  .drawer-continue {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    font-size: 12px;
    padding: 6px 0;
  }
  .drawer-close {
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
  }
  .drawer-head strong {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  .drawer-head {
    padding: 10px 12px;
  }
  .checkout-visual {
    padding: 12px 14px 10px;
  }
  .checkout-brand {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  .checkout-hero {
    height: 110px;
    max-height: 110px;
  }
  .checkout-postcard {
    margin-top: 10px;
    padding: 10px 12px;
  }
  .checkout-postcard-head {
    margin-bottom: 8px;
    font-size: 9px;
  }
  .checkout-postcard textarea {
    min-height: 48px;
  }
  .checkout-trust { display: none; }
  .checkout-scroll { padding: 4px 14px 24px; }
  .order-line { grid-template-columns: 60px 1fr; }
  .order-line-remove { grid-column: 2; justify-self: end; margin-top: -40px; }
  .order-line-img { width: 60px; height: 76px; }
}

/* Postcard modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.postcard-overlay { padding: 16px; }
.postcard-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(260px, 340px);
  align-items: stretch;
  gap: 0;
  width: min(760px, 100%);
  max-height: min(94vh, 720px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}
.postcard-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  display: grid;
  place-items: center;
}
.postcard-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.postcard-visual {
  position: relative;
  background: var(--accent) url("/shop-static/img/postcard-bg.png") center / cover no-repeat;
  overflow: hidden;
  min-height: 420px;
  aspect-ratio: 3 / 4;
}
.postcard-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.postcard-on-card {
  position: absolute;
  z-index: 2;
  top: 47.5%;
  left: 51.5%;
  width: 50%;
  height: 27%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(12px, 2.2vw, 15px);
  line-height: 1.35;
  text-align: center;
  color: #2a2523;
  text-shadow:
    0 0 12px rgba(255, 248, 235, 0.95),
    0 0 24px rgba(255, 240, 220, 0.75),
    0 0 36px rgba(255, 235, 210, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) rotate(-17deg);
  transform-origin: center center;
}
.postcard-on-card::placeholder {
  color: rgba(42, 37, 35, 0.38);
  text-shadow:
    0 0 10px rgba(255, 248, 235, 0.85),
    0 0 20px rgba(255, 240, 220, 0.55);
}
.postcard-panel {
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.postcard-panel h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.postcard-panel p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.postcard-actions { display: flex; gap: 10px; }
.postcard-actions button {
  flex: 1;
  padding: 14px 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: var(--text);
}
.postcard-actions .primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .postcard-modal {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
  .postcard-visual {
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
  .postcard-on-card {
    top: 47.5%;
    left: 51.5%;
    width: 52%;
    height: 24%;
    font-size: 13px;
    transform: translate(-50%, -50%) rotate(-17deg);
  }
  .postcard-panel { padding: 20px; }
}

.modal-box {
  background: #fff;
  max-width: 440px;
  width: 100%;
  padding: 32px;
  border-radius: 4px;
}
.modal-box h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal-box textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font: inherit;
  resize: vertical;
}
.modal-actions { display: flex; gap: 12px; }
.modal-actions button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
}
.modal-actions .primary { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Product page popup */
.product-modal-overlay { padding: 16px; z-index: 350; }
.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0;
  width: min(1040px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.product-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.product-modal-gallery {
  background: #f3f1ed;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.product-modal-stage {
  position: relative;
  flex: 1;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px 56px;
}
.product-modal-stage img {
  max-width: 100%;
  max-height: min(58vh, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: border-color 0.2s, color 0.2s;
}
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav:hover { border-color: var(--accent); color: var(--accent); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-nav[disabled] { opacity: 0.35; pointer-events: none; }
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 16px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.product-gallery-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
  padding: 0;
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.product-modal-info {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow-y: auto;
}
.product-modal-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 14px;
}
.product-modal-price {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.product-modal-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
  white-space: pre-line;
}
.product-modal-desc:empty { display: none; }
.product-modal-add {
  align-self: flex-start;
  min-width: 200px;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.product-modal-add:hover { opacity: 0.9; }

@media (max-width: 860px) {
  .product-modal-overlay { padding: 12px; }
  .product-modal {
    grid-template-columns: 1fr;
    max-height: 88vh;
    width: min(420px, 100%);
    overflow-y: auto;
    border-radius: 4px;
  }
  .product-modal-stage {
    min-height: 200px;
    padding: 40px 36px 16px;
  }
  .product-modal-stage img {
    max-height: 38vh;
  }
  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .gallery-nav {
    width: 34px;
    height: 34px;
  }
  .gallery-nav svg { width: 16px; height: 16px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .product-gallery-thumbs {
    padding: 10px 12px 12px;
    gap: 6px;
  }
  .product-gallery-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 62px;
  }
  .product-modal-info { padding: 18px 16px 20px; }
  .product-modal-cat { font-size: 10px; margin-bottom: 6px; }
  .product-modal-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }
  .product-modal-price {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .product-modal-desc {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .product-modal-add {
    width: 100%;
    align-self: stretch;
    padding: 14px 20px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .product-modal-overlay { padding: 8px; }
  .product-modal { max-height: 86vh; }
  .product-modal-stage {
    min-height: 170px;
    padding: 36px 28px 12px;
  }
  .product-modal-stage img { max-height: 34vh; }
}
