:root {
  --bg-0: #f7f2ea;
  --bg-1: #fff9f3;
  --bg-2: #f3e9dc;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-solid: #fffaf4;
  --surface-soft: #f5ede1;
  --line: rgba(106, 86, 67, 0.18);
  --line-strong: rgba(98, 75, 54, 0.32);
  --ink: #2b221a;
  --ink-soft: #5a4b3f;
  --ink-muted: #867666;
  --accent: #c15634;
  --accent-2: #4a7d7a;
  --accent-3: #d2ad6d;
  --ok: #2f8b63;
  --danger: #d26c6c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --shadow-soft: 0 14px 34px rgba(91, 67, 44, 0.12);
  --shadow-hard: 0 28px 65px rgba(92, 67, 44, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(209, 173, 109, 0.28), transparent 58%),
    radial-gradient(900px 540px at 92% 0%, rgba(193, 86, 52, 0.2), transparent 60%),
    linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(130, 100, 70, 0.09) 0.6px, transparent 0.6px);
  background-size: 2px 2px;
  opacity: 0.16;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.section {
  margin: 44px 0;
}

/* ────────────────────────────────────────
   Topbar / Brand
   ──────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  width: min(1120px, calc(100vw - 32px));
  margin: 10px auto 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-mark {
  display: none;
}

.logo-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  font-family: "Lora", serif;
  font-size: 1.72rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6a4432;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logo-tag {
  display: none;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.89rem;
  font-weight: 700;
  color: #3a2e22;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 238, 226, 0.72));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(209, 173, 109, 0.34), rgba(209, 173, 109, 0.16));
}

.nav-btn.nav-btn-soft {
  color: var(--ink-soft);
}

.nav-btn.cart-link {
  border-color: rgba(193, 86, 52, 0.48);
  background: linear-gradient(180deg, rgba(193, 86, 52, 0.9), rgba(193, 86, 52, 0.76));
  color: #fff;
}

.nav-btn.cart-link:hover {
  border-color: rgba(193, 86, 52, 0.95);
  background: linear-gradient(180deg, rgba(193, 86, 52, 0.96), rgba(173, 75, 44, 0.86));
}

#cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #513523;
  font-size: 0.74rem;
  font-weight: 800;
}

/* ────────────────────────────────────────
   Hero / Banner
   ──────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
}

.hero-banner {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 30px;
  border: 1px solid rgba(113, 84, 55, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(247, 236, 221, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(210, 173, 109, 0.2), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(193, 86, 52, 0.18), transparent 46%);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-editorial-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(6px, 1.5vw, 12px);
}

.hero-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 70, 51, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: #6b4b39;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #2f241d;
}

.hero-sub {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

.btn-primary,
.btn-outline {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  border: 1px solid rgba(193, 86, 52, 0.88);
  background: linear-gradient(135deg, #d06742 0%, #b84f2c 100%);
  box-shadow: 0 14px 26px rgba(193, 86, 52, 0.23);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(193, 86, 52, 0.3);
}

.btn-outline {
  border: 1px solid rgba(92, 70, 51, 0.3);
  color: #503d2f;
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 70, 51, 0.48);
}

.hero-editorial-cta {
  margin-top: 4px;
  width: fit-content;
  min-width: 190px;
}

.hero-editorial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.78fr);
  gap: 14px;
  min-height: 520px;
}

.hero-editorial-main,
.hero-editorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #efe5da;
  box-shadow: 0 18px 38px rgba(97, 68, 46, 0.16);
}

.hero-editorial-main img,
.hero-editorial-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-editorial-main:hover img,
.hero-editorial-card:hover img {
  transform: scale(1.04);
}

.hero-editorial-main {
  min-height: 520px;
}

.hero-editorial-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.hero-editorial-card {
  min-height: 0;
}

.hero-editorial-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(32, 24, 19, 0.06), rgba(32, 24, 19, 0.7));
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-editorial-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 241, 231, 0.86);
}

.hero-editorial-overlay h2 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.hero-cta-row,
.hero-points,
.hero-note {
  display: none;
}

/* ────────────────────────────────────────
   Brand Story
   ──────────────────────────────────────── */

.brand-story {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.story-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.story-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.74rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.story-card h2,
.story-card h3 {
  margin: 12px 0 10px;
  line-height: 1.28;
  color: #32261c;
}

.story-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.highlight-card {
  background:
    linear-gradient(145deg, rgba(193, 86, 52, 0.14), rgba(74, 125, 122, 0.08)),
    var(--surface-solid);
}

.mini-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(112, 85, 63, 0.25);
  font-size: 0.78rem;
  color: #4f3c2f;
  background: rgba(255, 255, 255, 0.7);
}

/* ────────────────────────────────────────
   Section header
   ──────────────────────────────────────── */

.section-head h2 {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  color: #2e2219;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

/* ────────────────────────────────────────
   Product cards
   ──────────────────────────────────────── */

.product-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 241, 229, 0.88));
  box-shadow: var(--shadow-soft);
  transform: translateY(12px);
  opacity: 0;
  animation: fade-in 520ms cubic-bezier(.21,.72,.23,1) forwards;
}

.card-gallery {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(246, 236, 224, 0.96), rgba(235, 223, 211, 0.82));
}

.card-gallery-stage {
  position: relative;
  min-height: 0;
  touch-action: pan-y;
}

.card-gallery-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(40, 29, 20, 0.12));
  pointer-events: none;
  z-index: 1;
}

.card-gallery-slide {
  display: none;
  position: relative;
  overflow: hidden;
}

.card-gallery-slide.is-active {
  display: block;
}

.card-gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ede4d9;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .card-gallery-slide.is-active img {
  transform: scale(1.06);
}

.card-gallery-nav {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(35, 24, 16, 0.36);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.card-gallery-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 247, 238, 0.52);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, width 0.18s ease;
}

.card-gallery-dot.is-active {
  width: 22px;
  background: #fff5eb;
}

.product-card-body {
  padding: 12px 14px 14px;
}

.product-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.muted {
  color: var(--ink-muted);
}

.card-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-sale {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent);
}

.card-original {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.price-row {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.price-row strong {
  color: #412d22;
}

.color-dots {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.4px solid rgba(90, 70, 52, 0.3);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.color-dot:hover {
  transform: scale(1.25);
  border-color: #4a3a2e;
}

.color-dot.dot-active {
  border-color: #4a3a2e;
  box-shadow: 0 0 0 2px #fbf4ea, 0 0 0 3px #4a3a2e;
  transform: scale(1.13);
}

.card-buy-now-btn {
  width: 100%;
  margin-top: 12px;
  height: 44px;
  border: 1px solid rgba(193, 86, 52, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(193, 86, 52, 0.14), rgba(232, 178, 141, 0.28));
  color: #8f4123;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-buy-now-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 86, 52, 0.46);
  box-shadow: 0 12px 26px rgba(193, 86, 52, 0.12);
}

/* ────────────────────────────────────────
   Size board
   ──────────────────────────────────────── */

.size-grid {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.size-row {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.size-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.5);
}

.size-cell {
  padding: 10px 14px;
  border-top: 1px solid rgba(118, 92, 68, 0.15);
}

/* ────────────────────────────────────────
   Product detail page
   ──────────────────────────────────────── */

.product-detail {
  min-height: 65vh;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 18px;
}

.product-gallery-shell {
  display: grid;
  gap: 12px;
}

.product-gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.98), rgba(240, 228, 215, 0.92)),
    radial-gradient(circle at top right, rgba(193, 86, 52, 0.12), transparent 30%);
  box-shadow: var(--shadow-soft);
  touch-action: pan-y;
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 33, 24, 0.48);
  color: #fff4e8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.gallery-slides {
  position: relative;
  min-height: 0;
}

.gallery-main {
  display: none;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #eee4d7;
}

.gallery-main.is-active {
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(40, 28, 20, 0.38);
  color: #fff9f0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(38, 25, 18, 0.16);
}

.gallery-arrow-prev {
  left: 16px;
}

.gallery-arrow-next {
  right: 16px;
}

.gallery-pagination {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40, 28, 20, 0.36);
  backdrop-filter: blur(10px);
  z-index: 3;
}

.gallery-page-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 247, 238, 0.5);
  cursor: pointer;
  transition: width 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.gallery-page-dot.is-active {
  width: 26px;
  background: #fff3e8;
}

.thumb-list {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-btn {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.thumb-btn.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(74, 125, 122, 0.35);
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.panel {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 17px;
  box-shadow: var(--shadow-soft);
}

.panel h1,
.panel h2 {
  margin-top: 0;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.3;
}

.panel p {
  line-height: 1.7;
}

.option-block {
  margin: 14px 0;
}

.option-title {
  margin-bottom: 8px;
  font-weight: 700;
}

.option-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #4a392d;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.pill.active {
  border-color: rgba(193, 86, 52, 0.8);
  background: rgba(193, 86, 52, 0.17);
  color: #4a2b1e;
}

.qty-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(208, 105, 67, 0.2);
  background: linear-gradient(145deg, rgba(255, 248, 240, 0.96), rgba(255, 236, 217, 0.82));
  box-shadow: 0 12px 28px rgba(193, 86, 52, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.price-compare {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(110, 88, 73, 0.72);
  text-decoration: line-through;
}

.price-value-inline {
  font-size: 1.45rem;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.qty-row {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
}

.qty-row button,
.qty-row input {
  border: 0;
  background: transparent;
  color: #392b20;
  height: 40px;
}

.qty-row button {
  width: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.qty-row input {
  width: 56px;
  text-align: center;
  font-weight: 700;
}

.price-panel {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 125, 122, 0.34);
  background: linear-gradient(135deg, rgba(74, 125, 122, 0.18), rgba(74, 125, 122, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-label {
  font-size: 0.9rem;
  color: #355e5b;
}

.price-value {
  font-size: 1.35rem;
  line-height: 1;
}

.summary-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(111, 83, 60, 0.3);
  background: rgba(255, 255, 255, 0.62);
}

.action-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.add-cart-btn,
.checkout-btn {
  height: 48px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-cart-btn {
  width: 100%;
  border: 1px solid rgba(193, 86, 52, 0.86);
  color: #fff;
  background: linear-gradient(135deg, #d06943 0%, #b74d2b 100%);
  box-shadow: 0 10px 24px rgba(193, 86, 52, 0.22);
}

.add-cart-btn:hover {
  transform: translateY(-2px);
}

.checkout-btn {
  border: 1px solid rgba(104, 78, 57, 0.32);
  color: #4a372a;
  background: rgba(255, 255, 255, 0.78);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
}

.action-note {
  min-height: 20px;
  margin: 10px 2px 0;
  color: #9a4f35;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 180ms ease;
}

.action-note.is-visible {
  opacity: 1;
}

.product-extra-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-info-section {
  padding-top: 8px;
}

.home-size-section {
  padding-top: 8px;
}

.home-size-panel {
  padding: 24px 22px 22px;
}

.home-size-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.52rem, 1.2rem + 0.5vw, 1.9rem);
  line-height: 1.16;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-info-grid-single {
  grid-template-columns: 1fr;
}

.home-info-card {
  min-height: 100%;
  padding: 24px 22px 22px;
}

.info-eyebrow {
  display: none;
}

.home-info-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.52rem, 1.2rem + 0.5vw, 1.9rem);
  line-height: 1.16;
}

.home-info-copy {
  display: grid;
  gap: 12px;
}

.prose-block p {
  margin: 0;
}

.home-info-copy p,
.policy-highlights p {
  line-height: 1.78;
}

.policy-highlights {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(193, 86, 52, 0.18);
  background: linear-gradient(145deg, rgba(255, 247, 238, 0.96), rgba(255, 238, 220, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.policy-title {
  margin-bottom: 10px !important;
  font-weight: 800;
  color: #7e4028;
}

.policy-highlights p {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.policy-highlights p:first-child {
  display: block;
}

.policy-highlights p:last-child {
  margin-bottom: 0;
}

.policy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}

.home-info-card-story {
  position: relative;
  overflow: hidden;
}

.home-info-card-story::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 207, 170, 0.22), rgba(255, 207, 170, 0));
  pointer-events: none;
}

.home-info-card-policy {
  position: relative;
  overflow: hidden;
}

.home-info-card-policy::after {
  content: "";
  position: absolute;
  inset: -40px -30px auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(208, 105, 67, 0.12), rgba(208, 105, 67, 0));
  pointer-events: none;
}

/* ── Sticky bottom bar (mobile) ── */
.sticky-bottom-bar {
  display: none;
}

/* ────────────────────────────────────────
   Checkout page
   ──────────────────────────────────────── */

.checkout-layout {
  min-height: 70vh;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.cart-item {
  padding: 12px;
  border-top: 1px solid rgba(118, 92, 68, 0.16);
}

.cart-item:first-child {
  border-top: 0;
}

.cart-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-top img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(109, 82, 61, 0.24);
}

.cart-copy {
  min-width: 0;
}

.cart-copy strong {
  display: block;
  margin-bottom: 2px;
}

.cart-controls {
  margin-top: 12px;
}

.cart-qty-row .qty-input {
  width: 64px;
  border-left: 1px solid rgba(112, 85, 61, 0.2);
  border-right: 1px solid rgba(112, 85, 61, 0.2);
}

.qty-btn {
  width: 42px;
  font-size: 1.15rem;
}

.cart-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-price {
  font-size: 1.05rem;
}

.remove-link {
  border: 0;
  background: transparent;
  color: #af4f33;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.address-version-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.64);
}

.version-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #4b3a2d;
}

.version-label input[type="radio"] {
  accent-color: var(--accent);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  color: #3b2c21;
  background: rgba(255, 255, 255, 0.82);
}

.input::placeholder,
.textarea::placeholder {
  color: #967f68;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(74, 125, 122, 0.74);
  box-shadow: 0 0 0 3px rgba(74, 125, 122, 0.17);
}

.select option {
  color: #2b2119;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.total-line strong {
  font-size: 1.1rem;
}

.notice-ok {
  margin-top: 10px;
  color: var(--ok);
  font-weight: 700;
}

/* ────────────────────────────────────────
   Modal + Utility
   ──────────────────────────────────────── */

.modal-open {
  overflow: hidden;
}

.empty-cart-overlay,
.size-chart-overlay,
.quick-buy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeInOverlay 0.25s ease;
}

.empty-cart-modal,
.size-chart-modal,
.quick-buy-modal {
  width: min(420px, 92vw);
  background: #fff7ef;
  color: #34271e;
  border: 1px solid rgba(112, 84, 61, 0.28);
  border-radius: 18px;
  padding: 30px 24px 22px;
  box-shadow: var(--shadow-hard);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.size-chart-modal {
  position: relative;
  width: min(520px, 94vw);
  padding-top: 56px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(250, 239, 226, 0.96)),
    radial-gradient(circle at top right, rgba(214, 120, 78, 0.16), transparent 34%);
}

.quick-buy-modal {
  position: relative;
  width: min(900px, 96vw);
  max-height: min(86vh, 900px);
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.99), rgba(248, 236, 223, 0.97)),
    radial-gradient(circle at top right, rgba(214, 120, 78, 0.16), transparent 34%);
}

.quick-buy-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.quick-buy-image-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(112, 84, 61, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.quick-buy-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quick-buy-swatches {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-buy-swatch {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.quick-buy-swatch.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(74, 125, 122, 0.35);
}

.quick-buy-swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.quick-buy-kicker {
  margin: 0 0 6px;
  color: #a45634;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-buy-content h3 {
  margin: 0;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1.1;
}

.quick-buy-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quick-buy-row {
  grid-template-columns: 1fr;
}

.quick-buy-actions {
  margin-top: 18px;
}

.quick-buy-checkout {
  background: rgba(255, 255, 255, 0.84);
}

.quick-size-guide {
  margin-top: -2px;
}

.quick-size-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(154, 79, 53, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(193, 86, 52, 0.14), rgba(232, 178, 141, 0.28));
  box-shadow: 0 10px 22px rgba(193, 86, 52, 0.1);
  color: #8f4123;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-size-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 79, 53, 0.38);
  box-shadow: 0 14px 28px rgba(193, 86, 52, 0.16);
}

.quick-size-toggle::before {
  content: "↕";
  font-size: 0.92rem;
}

.quick-size-guide-body {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(154, 79, 53, 0.14);
  background: rgba(255, 255, 255, 0.55);
}

.quick-size-grid {
  margin-top: 0;
}

.quick-size-grid .size-row:first-child .size-cell {
  border-top: 0;
}

.quick-size-guide-note {
  margin: 10px 2px 0;
  color: #6b5241;
  font-size: 0.9rem;
  line-height: 1.5;
}

.quick-buy-feedback {
  min-height: 20px;
  margin: 12px 2px 0;
  color: #9a4f35;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 180ms ease;
}

.quick-buy-feedback.is-visible {
  opacity: 1;
}

.quick-buy-close,
.size-chart-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b84f2c, #d46b45);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(184, 79, 44, 0.26);
  cursor: pointer;
}

.size-chart-kicker {
  margin: 0 0 6px;
  color: #a45634;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.size-chart-modal h3 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #36251c;
}

.size-chart-sub {
  margin: 10px 0 18px;
  color: #614b3b;
  line-height: 1.6;
}

.size-grid-modal {
  gap: 10px;
}

.size-grid-modal .size-row {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(115, 84, 58, 0.16);
}

.empty-cart-modal .modal-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.empty-cart-modal h3 {
  margin: 0 0 10px;
  color: #392a20;
}

.empty-cart-modal p {
  margin: 0 0 8px;
  color: #614b3b;
  line-height: 1.58;
}

.empty-cart-modal .modal-steps {
  text-align: left;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.empty-cart-modal .modal-steps li {
  font-size: 0.9rem;
  padding: 5px 0;
  color: #4f3b2d;
}

.empty-cart-modal .modal-btn {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #d06943, #b84f2c);
  cursor: pointer;
}

.footer {
  margin-top: 34px;
  padding: 26px 20px 34px;
  text-align: center;
  color: var(--ink-muted);
}

.footer-brand {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1.4px;
  color: #35281e;
}

.empty {
  padding: 24px;
  text-align: center;
}

/* ────────────────────────────────────────
   Animations
   ──────────────────────────────────────── */

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes badgeBounce {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.55);
  }

  50% {
    transform: scale(0.85);
  }

  70% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

#cart-badge.badge-bounce {
  animation: badgeBounce 0.5s ease;
}

.cart-spark {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1100;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.85);
  animation: cartSparkBurst 0.82s cubic-bezier(.16,.84,.32,1) forwards;
}

@keyframes cartSparkBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.05);
    opacity: 0;
  }
}

#nav-cart.cart-fireworks {
  animation: cartFireworksPulse 0.9s ease;
  box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.16), 0 0 28px rgba(255, 143, 90, 0.42);
}

@keyframes cartFireworksPulse {
  0% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-3px) scale(1.06);
  }

  70% {
    transform: translateY(0) scale(1.02);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.fly-ghost {
  box-shadow: 0 4px 24px rgba(88, 63, 42, 0.28);
}

/* ────────────────────────────────────────
   Responsive
   ──────────────────────────────────────── */

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topnav {
    justify-content: center;
  }

  .hero,
  .brand-story,
  .product-layout,
  .checkout-grid,
  .product-extra-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 930px) {
  .topbar {
    width: calc(100vw - 18px);
    margin-top: 6px;
    padding: 8px 10px;
  }

  .logo-mark {
    display: none;
  }

  .logo-word {
    font-size: 1.32rem;
    letter-spacing: 0.06em;
  }

  .logo-tag {
    display: none;
  }

  .topnav {
    width: 100%;
    gap: 6px;
  }

  .nav-btn {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.79rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-editorial-copy {
    padding: 0;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-editorial-main {
    min-height: 360px;
  }

  .hero-editorial-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .hero-editorial-card {
    min-height: 180px;
  }

  .hero-editorial-cta,
  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .card-gallery-nav {
    bottom: 12px;
    padding: 6px 9px;
  }

  .gallery-badge {
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    padding: 7px 10px;
  }

  .gallery-arrow {
    display: none;
  }

  .gallery-pagination {
    bottom: 12px;
  }

  .quick-buy-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-buy-modal {
    width: min(96vw, 720px);
    max-height: none;
    margin: 0 auto;
    padding: 24px 18px 18px;
    overflow: visible;
  }

  .quick-buy-grid {
    grid-template-columns: 1fr;
  }

  .quick-buy-content {
    padding-bottom: 8px;
  }

  .qty-price-row,
  .action-row {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding-bottom: 84px;
  }

  .sticky-bottom-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 247, 238, 0.94);
    border-top: 1px solid rgba(116, 89, 66, 0.24);
    backdrop-filter: blur(10px);
  }

  .sticky-add-btn,
  .sticky-checkout-btn {
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 800;
    cursor: pointer;
  }

  .sticky-add-btn {
    flex: 1;
    border: 1px solid rgba(193, 86, 52, 0.82);
    color: #fff;
    background: linear-gradient(135deg, #d06943 0%, #b84f2c 100%);
  }

  .sticky-checkout-btn {
    flex: 1;
    border: 1px solid rgba(193, 86, 52, 0.72);
    color: #fff8f1;
    background: linear-gradient(135deg, #9c3e20 0%, #c9562f 55%, #d86f45 100%);
    box-shadow: 0 12px 28px rgba(169, 73, 42, 0.28);
  }
}

/* ────────────────────────────────────────
   Thank you page
   ──────────────────────────────────────── */

.thank-you-page {
  width: min(1180px, calc(100vw - 24px));
  margin: 28px auto 60px;
}

.thank-you-shell {
  display: grid;
  gap: 18px;
}

.thank-you-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 166, 0.45), transparent 36%),
    linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(247, 236, 223, 0.9));
}

.thank-you-kicker,
.thank-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b25734;
}

.thank-you-kicker::before,
.thank-section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(178, 87, 52, 0.55);
}

.thank-you-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.thank-you-sub,
.thank-side-copy,
.thank-info-block p,
.thank-save-status,
.thank-note-box {
  color: rgba(86, 64, 50, 0.82);
  line-height: 1.7;
}

.thank-you-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.thank-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(193, 86, 52, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  color: #5a4638;
}

.thank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.84fr);
  gap: 18px;
  align-items: start;
}

.thank-card-wrap {
  position: relative;
}

.thank-watermark {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.8rem, 8vw, 6rem);
  line-height: 1;
  color: rgba(189, 100, 64, 0.06);
  pointer-events: none;
  z-index: 0;
}

.thank-order-card {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.thank-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.thank-card-head-center {
  justify-content: center;
  margin-bottom: 16px;
}

.thank-section-label-center {
  justify-content: center;
  text-align: center;
}

.thank-layout {
  display: block;
}

.thank-card-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.thank-total-pill {
  min-width: 130px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d06943 0%, #b84f2c 100%);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 28px rgba(193, 86, 52, 0.24);
}

.thank-customer-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(193, 86, 52, 0.12);
}

.thank-customer-row {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.thank-customer-row + .thank-customer-row {
  padding-top: 10px;
  border-top: 1px dashed rgba(193, 86, 52, 0.12);
}

.thank-customer-label {
  color: rgba(119, 89, 66, 0.9);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thank-customer-value {
  color: #2f2622;
  line-height: 1.65;
}

.thank-customer-row-address .thank-customer-value {
  font-weight: 700;
}


.thank-order-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.thank-order-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(193, 86, 52, 0.12);
}

.thank-order-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(97, 73, 54, 0.14);
}

.thank-order-copy {
  display: grid;
  gap: 6px;
}

.thank-item-meta {
  color: rgba(87, 67, 54, 0.76);
  font-size: 0.96rem;
}

.thank-item-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.thank-compare-price {
  color: rgba(101, 80, 66, 0.65);
  text-decoration: line-through;
  font-weight: 700;
}

.thank-totals {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 248, 241, 0.96), rgba(255, 238, 224, 0.84));
  border: 1px solid rgba(193, 86, 52, 0.14);
}

.total-line-strong {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(193, 86, 52, 0.22);
}

.thank-capture-area {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(193, 86, 52, 0.18);
}

.thank-capture-text {
  margin: 0 0 12px;
  color: rgba(86, 64, 50, 0.82);
  line-height: 1.6;
  font-weight: 600;
}

.thank-you-actions {
  display: grid;
  gap: 12px;
}


.thank-link-btn {
  display: none;
}


.thank-save-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 600;
}

#save-order-image.is-success {
  border: 1px solid rgba(51, 125, 82, 0.92);
  background: linear-gradient(135deg, #4ea36f 0%, #2f7f53 100%);
  box-shadow: 0 12px 24px rgba(55, 128, 86, 0.22);
}

.thank-preview-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(193, 86, 52, 0.12);
}

.thank-preview-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #765441;
}

.thank-preview-image {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(193, 86, 52, 0.12);
  box-shadow: 0 10px 28px rgba(89, 65, 47, 0.14);
}

@media (max-width: 930px) {
  .thank-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .thank-customer-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .thank-order-item {
    grid-template-columns: 74px 1fr;
  }

  .thank-order-image {
    width: 74px;
    height: 74px;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 680px) {
  .thank-you-page {
    width: min(100vw - 14px, 100%);
    margin-top: 18px;
  }

  .thank-you-hero,
  .thank-order-card,
  .thank-side-panel {
    padding: 18px;
  }

  .thank-chip {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .thank-order-item {
    grid-template-columns: 1fr;
  }

  .home-info-card {
    padding: 20px 18px 18px;
  }

  .home-info-card h2 {
    font-size: 1.5rem;
  }

  .policy-highlights {
    padding: 14px 14px 12px;
  }

  .policy-highlights p {
    grid-template-columns: 18px 1fr;
    gap: 8px;
  }
}

@media print {
  .topbar,
  .footer,
  .thank-side-panel,
  .thank-save-status {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .thank-you-page {
    width: 100%;
    margin: 0;
  }

  .thank-order-card,
  .thank-you-hero {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* ────────────────────────────────────────
   Site Footer + Info Panels
   ──────────────────────────────────────── */

.site-footer {
  width: min(1240px, 94vw);
  margin: 28px auto 36px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(113, 84, 55, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 251, 245, 0.96), rgba(244, 234, 220, 0.92)),
    radial-gradient(circle at 12% 0%, rgba(210, 173, 109, 0.2), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(193, 86, 52, 0.14), transparent 34%);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), transparent 35%, transparent 65%, rgba(255,255,255,0.15));
  pointer-events: none;
}

.footer-shell,
.footer-top,
.footer-brand-col,
.footer-links-col {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.footer-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(106, 68, 50, 0.72);
}

.footer-title {
  margin: 0;
  font-family: "Lora", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-style: italic;
  line-height: 1.06;
  color: #5c3929;
}

.footer-description {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-links-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a4432;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-link-btn {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(113, 84, 55, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,238,226,0.74));
  box-shadow: 0 10px 24px rgba(103, 75, 49, 0.08);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  color: #3f3026;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.footer-link-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(193, 86, 52, 0.34);
  box-shadow: 0 16px 28px rgba(96, 67, 44, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,228,208,0.88));
}

.footer-link-btn:focus-visible {
  outline: 3px solid rgba(193, 86, 52, 0.18);
  outline-offset: 2px;
}

.footer-legal-bar {
  margin-top: clamp(26px, 4vw, 34px);
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(112, 84, 55, 0.24), rgba(193, 86, 52, 0.28), rgba(112, 84, 55, 0.24), transparent);
}

.footer-legal-copy {
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
}

.footer-legal-brand {
  justify-self: start;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a4432;
}

.footer-legal-text {
  justify-self: end;
  text-align: right;
  font-size: 0.94rem;
  color: rgba(90, 75, 63, 0.86);
}

.footer-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(41, 29, 20, 0.42);
  backdrop-filter: blur(10px);
}

.footer-panel {
  width: min(760px, calc(100vw - 24px));
  max-height: min(80vh, 760px);
  overflow: auto;
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(113, 84, 55, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 252, 247, 0.98), rgba(244, 234, 220, 0.96)),
    radial-gradient(circle at 0% 0%, rgba(210,173,109,0.16), transparent 36%);
  box-shadow: 0 34px 80px rgba(49, 34, 22, 0.26);
}

.footer-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(103, 75, 49, 0.08);
  color: #523626;
  font-size: 1.2rem;
  cursor: pointer;
}

.footer-panel-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(106, 68, 50, 0.7);
}

.footer-panel h3 {
  margin: 0;
  padding-right: 46px;
  font-family: "Lora", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.14;
  color: #593827;
}

.footer-panel-sub {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.footer-panel-body {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.footer-panel-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(113, 84, 55, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.footer-panel-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #5b3b2b;
}

.footer-panel-card p,
.footer-panel-card li {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.footer-panel-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.footer-faq-list {
  display: grid;
  gap: 12px;
}

.footer-faq-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(113, 84, 55, 0.14);
  background: rgba(255,255,255,0.68);
}

.footer-faq-item strong {
  display: block;
  margin-bottom: 8px;
  color: #523626;
}

@media (max-width: 930px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-legal-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-legal-brand,
  .footer-legal-text {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-footer {
    width: min(100vw - 14px, 100%);
    margin: 20px auto 20px;
    padding: 20px 16px;
    border-radius: 24px;
  }

  .footer-title {
    font-size: 1.7rem;
  }

  .footer-description,
  .footer-link-btn,
  .footer-legal-text {
    font-size: 0.92rem;
  }

  .footer-panel-overlay {
    padding: 12px;
  }

  .footer-panel {
    width: min(100vw - 12px, 100%);
    max-height: 84vh;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .footer-panel h3 {
    font-size: 1.48rem;
  }
}

/* ==========  Thank-you Capture Hint + Success Modal  ========== */

.thank-capture-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px dashed rgba(193, 86, 52, 0.36);
  background: linear-gradient(135deg, #fff8f0, #ffecd8);
  font-size: 0.95rem;
  font-weight: 600;
  color: #6a3f28;
  line-height: 1.5;
  animation: hintPulse 2.4s ease-in-out infinite;
}

.thank-capture-hint-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

@keyframes hintPulse {
  0%, 100% { border-color: rgba(193, 86, 52, 0.36); }
  50%      { border-color: rgba(193, 86, 52, 0.7); background: linear-gradient(135deg, #fff4e6, #ffe0c0); }
}

.thank-capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.04rem;
}

.thank-capture-btn-icon {
  font-size: 1.3rem;
}

/* ---- success modal ---- */
.thank-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 18, 10, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.thank-modal-box {
  width: min(520px, calc(100vw - 40px));
  max-height: 85vh;
  overflow: auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: 28px;
  border: 1px solid rgba(113, 84, 55, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 252, 247, 0.98), rgba(244, 234, 220, 0.96)),
    radial-gradient(circle at 0% 0%, rgba(210,173,109,0.16), transparent 36%);
  box-shadow: 0 34px 80px rgba(49, 34, 22, 0.26);
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thank-modal-overlay.is-visible .thank-modal-box {
  transform: translateY(0) scale(1);
}

.thank-modal-check {
  font-size: 3.2rem;
  margin-bottom: 8px;
  animation: checkBounce 0.6s ease;
}

@keyframes checkBounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.thank-modal-title {
  margin: 0 0 12px;
  font-family: "Lora", serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #3f6b2c;
}

.thank-modal-desc {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #5a4b3f;
}

.thank-modal-preview {
  margin-bottom: 22px;
}

.thank-modal-preview-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(90, 75, 63, 0.7);
}

.thank-modal-preview-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(113, 84, 55, 0.12);
  box-shadow: 0 6px 20px rgba(90, 70, 50, 0.12);
}

.thank-modal-close-btn {
  width: 100%;
  max-width: 320px;
  font-size: 1.02rem;
}
