/* =========================================================
   House of Papiya — palette and type taken from the brand logo:
   crimson + near-black on white, with a script accent face.
   ========================================================= */

:root {
  --ink: #1b1214;
  --ink-soft: #5f5154;
  --maroon: #c00034;        /* logo crimson */
  --maroon-dark: #94002a;
  --blush: #fde9ee;
  --gold: #b88d4a;
  --forest: #2f4f3e;
  --ivory: #fffbfb;
  --ivory-deep: #fcf1f3;
  --line: #f1dfe3;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Allura', 'Brush Script MT', cursive;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 22, 0.06);
  --shadow-md: 0 12px 28px rgba(36, 26, 22, 0.10);
  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section--tint { background: var(--ivory-deep); max-width: none; }
.section--tint > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.section-head .section-kicker,
.section-kicker {
  font-family: var(--font-script);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: var(--maroon);
  margin-bottom: 2px;
}
.newsletter__inner .section-kicker--light { color: #ffd3dd; margin: 0 0 4px; }
.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.section-cta { text-align: center; margin-top: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--maroon); color: var(--white); }
.btn--primary:hover { background: var(--maroon-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--outline { border-color: var(--maroon); color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); padding: 14px 22px; }
.btn--light { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: flex; align-items: center; margin-right: 8px; flex-shrink: 0; }
.logo__img { height: 70px; width: auto; }
.logo--light .logo__img { height: 96px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 1;
  justify-content: center;
}
.main-nav > a, .nav-item > a {
  padding: 8px 0;
  position: relative;
  color: var(--ink);
}
.main-nav > a::after, .nav-item > a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--maroon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav > a:hover::after, .nav-item:hover > a::after { transform: scaleX(1); }
.nav-sale { color: var(--maroon); font-weight: 500; }
.chev { font-style: normal; font-size: 11px; margin-left: 2px; }

.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: -14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.18s ease;
  text-transform: none;
  letter-spacing: normal;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 20px; font-size: 13.5px; }
.dropdown a:hover { background: var(--ivory-deep); color: var(--maroon); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
}
.icon-btn:hover { background: var(--ivory-deep); }
.badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--maroon); color: var(--white);
  font-size: 10px; line-height: 1;
  min-width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 24px;
}
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-only { display: none; }

.search-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}
.search-panel.open { max-height: 90px; border-top-color: var(--line); }
.search-panel__inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: flex; gap: 10px;
}
.search-panel__inner input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
}
.search-panel__inner input:focus { outline: 2px solid var(--maroon); }

/* ---------- Hero: copy left, founder portrait right ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--maroon);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, var(--blush) 0, rgba(253, 233, 238, 0) 55%),
    linear-gradient(180deg, var(--white) 0%, var(--ivory-deep) 100%);
}
.hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__copy { padding-bottom: 48px; }
.hero__script {
  font-family: var(--font-script);
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
  color: var(--maroon);
}
.hero__brand {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 6px 0 18px;
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  margin-bottom: 18px;
}
.hero h1 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25em;
  color: var(--maroon);
  line-height: 0.8;
}
.hero__sub {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--maroon);
}
.hero__stats span { font-size: 12.5px; color: var(--ink-soft); }

.hero__media {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(360px, 100%);
}
.hero__frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 30px 60px rgba(192, 0, 52, 0.18);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Offset outline arch behind the photo */
.hero__ring {
  position: absolute;
  z-index: 1;
  inset: -18px -18px 0 18px;
  border: 1.5px solid var(--maroon);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
}
/* Crimson brush curve, echoing the "P" swoosh in the logo */
.hero__swoosh {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: -26%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid transparent;
  border-top-color: var(--maroon);
  border-left-color: var(--maroon);
  transform: rotate(-28deg);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  z-index: 4;
  left: -44px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 22px 10px 10px;
  box-shadow: var(--shadow-md);
}
.hero__badge-heart {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-script);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--maroon);
}
.hero__badge span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Promise strip ---------- */
.promise-strip { background: var(--maroon); color: var(--white); }
.promise-strip__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.promise-strip__inner span::before { content: '\2665'; margin-right: 10px; font-size: 10px; opacity: 0.75; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card__art { height: 190px; overflow: hidden; }
.category-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.category-card:hover .category-card__art img { transform: scale(1.05); }
.category-card h3 { font-size: 19px; padding: 18px 18px 2px; }
.category-card span { display: block; padding: 0 18px 18px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Swatch filter ---------- */
.swatch-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid var(--white);
  outline: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.swatch:hover { transform: scale(1.15); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--ivory-deep);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__link { position: absolute; inset: 0; z-index: 1; }

.tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 2;
}
.tag--off { background: var(--maroon); color: var(--white); }
.tag--new { background: var(--ink); color: var(--white); }
.wish-btn {
  position: absolute; top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.active { background: var(--maroon); color: var(--white); }

.product-card__body { padding: 16px 18px 20px; }
.product-card__cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 4px; }
.product-card__body h3 { font-size: 17px; font-weight: 500; font-family: var(--font-body); line-height: 1.35; margin-bottom: 8px; }
.rating { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.rating span { color: var(--ink-soft); letter-spacing: normal; margin-left: 4px; }
.price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price__now { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--maroon); }
.price__was { font-size: 13px; color: #a79a90; text-decoration: line-through; }

/* ---------- Feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 22px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); }
.feature-card a { color: var(--maroon); font-weight: 500; }

/* ---------- Banner grid ---------- */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.banner-card {
  position: relative;
  z-index: 0;
  height: 320px;
  border-radius: 12px;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  overflow: hidden;
  color: var(--white);
}
.banner-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0.05) 60%);
  z-index: 0;
}
.banner-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  z-index: 0;
  transition: transform 0.3s ease;
}
.banner-card:hover > img { transform: scale(1.05); }
.banner-card > * { position: relative; z-index: 1; }
.banner-card .btn { width: fit-content; }
.banner-card__eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; opacity: 0.85; }
.banner-card h3 { font-size: 24px; color: var(--white); }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.review-card p { margin: 14px 0 20px; font-size: 15px; color: var(--ink); font-style: italic; }
.review-card__who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ivory-deep);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.review-card__who div { display: flex; flex-direction: column; font-size: 12.5px; }
.review-card__who strong { font-size: 14px; }
.review-card__who span { color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--maroon);
  padding: 72px 32px;
}
.newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--ivory);
}
.newsletter__inner h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 38px); }
.newsletter__inner p { color: #ffdbe3; margin: 12px 0 28px; font-size: 14.5px; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}
.newsletter__form input::placeholder { color: #ffc6d3; }
.newsletter__form input:focus { outline: 2px solid var(--white); }
.newsletter .btn--primary { background: var(--white); color: var(--maroon); }
.newsletter .btn--primary:hover { background: var(--ink); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: #170d10;
  color: #bfaeb2;
  padding: 64px 32px 0;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #36232a;
}
.footer-col h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a, .footer-contact { display: block; font-size: 13.5px; margin-bottom: 12px; color: #bfaeb2; }
.footer-col a:hover { color: #ff6f91; }
.footer-col--brand p { font-size: 13.5px; margin: 14px 0 20px; max-width: 30ch; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 32px; height: 32px;
  border: 1px solid #453a30;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  margin: 0;
}
.social-row a:hover { border-color: var(--maroon); color: var(--white); background: var(--maroon); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-row { display: flex; gap: 10px; }
.payment-row span {
  border: 1px solid #453a30;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .banner-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__badge { left: -20px; }
}

/* Header: the full desktop nav doesn't fit below ~1080px, so switch to the
   hamburger drawer there. The drawer is position:absolute under the header
   (not position:fixed) because .site-header's backdrop-filter makes it the
   containing block for fixed children. script.js sizes it to the viewport. */
@media (max-width: 1080px) {
  .header-inner { padding: 0 20px; gap: 14px; }
  .hamburger { display: flex; flex-shrink: 0; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: var(--nav-drawer-h, calc(100vh - var(--header-h)));
    background: var(--ivory);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 24px 32px;
    gap: 0;
    font-size: 13.5px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .main-nav > a, .nav-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav > a::after, .nav-item > a::after { display: none; }
  .nav-item > a { padding: 0; display: flex; justify-content: space-between; align-items: center; }
  .chev { transition: transform 0.2s ease; }
  .nav-item.open .chev { transform: rotate(180deg); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; background: none;
    display: none; min-width: 0; padding: 8px 0 0 12px;
  }
  .dropdown a { padding: 9px 0; }
  .nav-item.open .dropdown { display: block; }
  .nav-mobile-only { display: block; color: var(--maroon); }
  .nav-drawer-contact {
    margin-top: auto;
    padding-top: 28px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ink-soft);
  }
  .nav-drawer-contact .btn { width: 100%; margin-bottom: 14px; }
  .nav-drawer-contact a:not(.btn) { display: block; font-size: 13.5px; padding: 4px 0; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
    min-height: 0;
    text-align: center;
  }
  .hero__copy { padding-bottom: 0; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__media { width: min(320px, 78%); }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: 24px; white-space: nowrap; }
  .hero__badge > div { text-align: left; }
  .promise-strip__inner { justify-content: center; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .logo { margin-right: 0; }
  .logo__img { height: 50px; }
  .search-panel__inner { padding: 14px 20px; }
  .search-panel__inner .btn { padding: 12px 16px; }


  .section { padding: 56px 20px; }
  .hero__inner { padding: 36px 20px 0; }
  .hero h1 br { display: none; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
    text-align: center;
  }
  .hero__stats strong { font-size: 21px; }
  .hero__stats span { display: block; font-size: 11px; line-height: 1.35; }
  .promise-strip__inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 13px 20px;
    font-size: 10.5px;
    gap: 22px;
    white-space: nowrap;
  }
  .promise-strip__inner::-webkit-scrollbar { display: none; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-card__media { height: 220px; }
  .banner-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter__form { flex-direction: column; }
}

@media (max-width: 460px) {
  .header-inner { padding: 0 14px; gap: 10px; }
  .header-actions { gap: 0; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn--wishlist { display: none; }
  .logo__img { height: 44px; }

  .section { padding: 48px 14px; }
  .hero__inner { padding: 30px 16px 0; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card__art { height: 120px; }
  .category-card h3 { font-size: 16px; padding: 12px 12px 0; }
  .category-card span { padding: 0 12px 12px; font-size: 11.5px; }
  .product-card__media { height: 190px; }
  .product-card__body { padding: 12px 12px 14px; }
  .product-card__body h3 { font-size: 13.5px; }
  .price__now { font-size: 16px; }
  .price__was { font-size: 11.5px; }
  .tag { top: 8px; left: 8px; font-size: 10px; padding: 4px 8px; }
  .wish-btn { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 14px; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 20px 14px; }
  .feature-card__icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 12.5px; }
  .banner-card { height: 260px; }
  .hero__badge { padding: 8px 18px 8px 8px; }
  .hero__badge-heart { width: 34px; height: 34px; }
  .hero__badge strong { font-size: 24px; }
  .site-footer { padding: 48px 20px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-col--brand, .footer-col:last-child { grid-column: 1 / -1; }
  .logo--light .logo__img { height: 80px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--ivory-deep);
}
.breadcrumb__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 13px;
  color: var(--ink-soft);
}
.breadcrumb__inner a:hover { color: var(--maroon); }
.breadcrumb__inner span { margin: 0 6px; }
.breadcrumb__current { color: var(--ink); }

/* =========================================================
   Product detail page
   ========================================================= */
.product-detail {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

.pd-gallery__main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.pd-gallery__main img { width: 100%; height: 560px; object-fit: cover; }
.pd-gallery__tag { top: 16px; left: 16px; font-size: 12px; padding: 6px 12px; }

.pd-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 76px; height: 92px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { opacity: 1; border-color: var(--maroon); }

.pd-info h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 6px 0 12px;
  line-height: 1.15;
}
.pd-info .rating { font-size: 13px; }
.pd-info .rating span { font-size: 13px; }

.pd-price { margin: 18px 0; gap: 12px; flex-wrap: wrap; }
.pd-price .price__now { font-size: 26px; }
.pd-price__save {
  font-size: 12.5px;
  color: var(--forest);
  background: #e4ede8;
  padding: 3px 10px;
  border-radius: 999px;
}

.pd-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 52ch;
  margin-bottom: 26px;
}

.pd-option { margin-bottom: 22px; }
.pd-option__label { display: block; font-size: 13.5px; margin-bottom: 10px; }
.pd-swatches { justify-content: flex-start; margin-top: 0; }
.pd-swatches .swatch { width: 26px; height: 26px; }
.swatch.is-selected { outline: 2px solid var(--maroon); outline-offset: 2px; }

.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: var(--white);
  transition: all 0.15s ease;
}
.pill.is-active { border-color: var(--maroon); background: var(--maroon); color: var(--white); }

.pd-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 44px;
  font-size: 16px;
  color: var(--ink);
}
.qty-stepper button:hover { background: var(--ivory-deep); }
.qty-stepper input {
  width: 34px;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
}
.pd-add { padding: 14px 28px; }
.pd-wish {
  position: static;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 18px;
}
.pd-wish.active { background: var(--maroon); color: var(--white); border-color: var(--maroon); }

.pd-toast {
  font-size: 13px;
  color: var(--forest);
  background: #e4ede8;
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-block;
  margin-bottom: 18px;
}

.pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.pd-trust strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.pd-trust span { font-size: 12px; color: var(--ink-soft); }

.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
}
.accordion__head span { font-size: 18px; color: var(--maroon); }
.accordion__body { padding: 0 2px 18px; }
.accordion__body p { font-size: 13.5px; color: var(--ink-soft); }

.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   Checkout & thank-you shared header
   ========================================================= */
.site-header--minimal .header-inner { justify-content: space-between; }
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b3a89c;
}
.checkout-steps__item.is-done { color: var(--forest); }
.checkout-steps__item.is-active { color: var(--maroon); font-weight: 600; }
.checkout-steps__sep { color: var(--line); }
.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* =========================================================
   Checkout page
   ========================================================= */
.checkout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 32px 100px;
}
.checkout-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.checkout-main { display: flex; flex-direction: column; gap: 8px; }
.checkout-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 22px;
}
.checkout-block h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.field input:focus, .field select:focus { outline: 2px solid var(--maroon); }
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.payment-option.is-active { border-color: var(--maroon); background: #fbf1f4; }
.payment-option__title { font-size: 14px; font-weight: 500; }
.payment-option__sub { font-size: 12.5px; color: var(--ink-soft); }

.checkout-summary {
  background: var(--ivory-deep);
  border-radius: 10px;
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.checkout-summary h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.summary-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.summary-item { display: flex; align-items: center; gap: 12px; }
.summary-item img { width: 56px; height: 68px; object-fit: cover; border-radius: 6px; }
.summary-item__body { flex: 1; }
.summary-item__title { font-size: 13.5px; margin-bottom: 3px; }
.summary-item__meta { font-size: 12px; color: var(--ink-soft); }
.summary-item__price { font-size: 13.5px; font-weight: 500; }

.promo-row { display: flex; gap: 8px; margin-bottom: 20px; }
.promo-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  background: var(--white);
}
.promo-row .btn { padding: 10px 16px; border-radius: 6px; }

.summary-totals {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.summary-totals > div { display: flex; justify-content: space-between; }
.summary-free { color: var(--forest); }
.summary-totals__grand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.summary-submit { width: 100%; padding: 15px; text-align: center; display: block; }
.summary-note { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }

/* =========================================================
   Cart page (no static mockup for this one — built with the
   same component language as the checkout summary card)
   ========================================================= */
.cart-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 32px 100px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.cart-item img { width: 72px; height: 88px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__title { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.cart-item__title:hover { color: var(--maroon); }
.cart-item__meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.cart-item__price {
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--maroon);
  min-width: 84px; text-align: right;
}
.cart-remove {
  background: none; border: none; font-size: 20px; line-height: 1; color: var(--ink-soft);
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
.cart-remove:hover { color: var(--maroon); }

/* =========================================================
   Thank-you page
   ========================================================= */
.thankyou {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px 90px;
}
.thankyou-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 40px;
  text-align: center;
}
.thankyou-check {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #e4ede8;
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.thankyou-card .eyebrow { text-align: center; }
.thankyou-card h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.thankyou-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 32px; }

.thankyou-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  text-align: left;
}
.thankyou-meta span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 4px; }
.thankyou-meta strong { font-size: 14px; }

.thankyou-items { text-align: left; margin-bottom: 20px; }
.thankyou-totals { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 30px; }
.thankyou-totals .summary-totals__grand { border-top: none; padding-top: 0; }

.thankyou-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer--slim { padding-top: 28px; }
.site-footer--slim .footer-bottom { border-top: none; }

/* =========================================================
   Responsive — detail / checkout / thank-you
   ========================================================= */
@media (max-width: 1080px) {
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery__main img { height: 420px; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .pd-trust, .thankyou-meta { grid-template-columns: 1fr; }
  .checkout-steps { display: none; }
  .product-grid--4 { grid-template-columns: 1fr 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item__price { text-align: left; }
}

@media (max-width: 460px) {
  .product-grid--4 { grid-template-columns: 1fr 1fr; }
  .thankyou-card { padding: 32px 22px; }
}

/* =========================================================
   Django messages (flash notices) — not in the static mockup,
   added for the real backend without disturbing its look.
   ========================================================= */
.flash-messages {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flash-message {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: var(--ivory-deep);
  color: var(--ink);
}
.flash-message--success { border-color: var(--forest); color: var(--forest); }
.flash-message--error { border-color: var(--maroon); color: var(--maroon); }
.flash-message--info { border-color: var(--gold); color: var(--ink-soft); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-soft); }

/* =========================================================
   Auth pages (login / register) — not in the static mockup,
   built with the same field/card language as checkout.
   ========================================================= */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 60px 24px 100px; }
.auth-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px 32px; }
.auth-box h1 { font-size: 26px; text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 760px) {
  .flash-messages { padding: 16px 20px 0; }
}

/* =========================================================
   Account — order history + order detail
   ========================================================= */
.account-wrap { max-width: 960px; margin: 0 auto; padding: 36px 32px 100px; }
.account-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.account-head .eyebrow { margin-bottom: 8px; }
.account-head h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; word-break: break-word; }
.account-head__sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.account-section-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.order-cards { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-card:hover { border-color: var(--maroon); box-shadow: var(--shadow-sm); }
.order-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card__number { font-weight: 500; }
.order-card__date { font-size: 12.5px; color: var(--ink-soft); }
.order-card__items { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.order-card__items img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.order-card__names {
  font-size: 13px; color: var(--ink-soft); margin-left: 6px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft);
}
.order-card__bottom strong { color: var(--ink); font-size: 15px; font-weight: 600; }

.order-status {
  display: inline-block; flex-shrink: 0; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--ivory-deep); color: var(--ink-soft);
}
.order-status--paid, .order-status--processing { background: #f6ecd2; color: #7a5a14; }
.order-status--shipped { background: #e6eee9; color: var(--forest); }
.order-status--delivered { background: var(--forest); color: var(--white); }
.order-status--cancelled { background: #f7e6ec; color: var(--maroon); }

.account-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; font-size: 13px; color: var(--ink-soft); }
.account-pager .btn { padding: 10px 18px; }

.order-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; padding: 0; }
.order-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.order-progress li::before {
  content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line);
}
.order-progress li:first-child::before { display: none; }
.order-progress li.is-done::before { background: var(--forest); }
.order-progress__dot {
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--line);
}
.order-progress li.is-done .order-progress__dot { background: var(--forest); border-color: var(--forest); }
.order-progress li.is-current .order-progress__dot { box-shadow: 0 0 0 4px rgba(47, 79, 62, 0.18); }
.order-progress__label { font-size: 12.5px; color: var(--ink-soft); }
.order-progress li.is-done .order-progress__label { color: var(--ink); }
.order-eta { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 32px; }
.order-eta strong { color: var(--ink); font-weight: 500; }

.order-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; margin-bottom: 28px; }
.order-detail-side { display: flex; flex-direction: column; gap: 20px; }
.order-detail-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; font-size: 14px; }
.order-detail-card h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.order-detail-card a.summary-item__title:hover { color: var(--maroon); }
.order-detail-muted { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

@media (max-width: 760px) {
  .account-wrap { padding: 28px 20px 80px; }
  .account-head { flex-wrap: wrap; }
  .order-card { padding: 16px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-progress__label { font-size: 11px; }
}

.link-underline { font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
.link-underline:hover { color: var(--maroon); }
