/* =========================
   Design tokens
   ========================= */

:root {
  --bg: #f7f3ec;           /* warm parchment */
  --bg-alt: #fdfbf8;       /* off white */
  --ink: #221c15;          /* deep brown/charcoal */
  --muted: #7f7468;        /* soft taupe */
  --border: #ddd1c2;
  --accent: #16352f;       /* bottle green */
  --accent-soft: #c6a878;  /* champagne gold */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* =========================
   Global
   ========================= */

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

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

/* Offset in-page anchor jumps so the sticky header doesn't cover the target */
:target,
section[id],
[id] {
  scroll-margin-top: 130px;
}

body.page {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #fdfbf8 0, #f7f3ec 38%, #f3eee6 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Layout */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}
/* Compact section spacing for pages where header/content should sit closer */
.section--compact {
  padding-top: 1.2rem;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.section-link:hover {
  border-color: var(--muted);
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid rgba(221, 209, 194, 0.65);
}

/* =========================
   Soft-launch announcement banner
   ========================= */
.site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  text-align: center;
  background: var(--ink);
  color: #fdfbf8;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.55rem 2.4rem 0.55rem 1rem;
}
.site-banner-text { margin: 0; }
.site-banner a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  font-weight: 500;
}
.site-banner-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fdfbf8;
  opacity: 0.65;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}
.site-banner-close:hover { opacity: 1; }
@media (max-width: 640px) {
  .site-banner {
    font-size: 0.78rem;
    padding: 0.5rem 1.9rem 0.5rem 0.8rem;
  }
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}

/* Left and right navs flanking centered brand */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

/* LOGO + BRAND BLOCK ---------------------------------------- */

.brand-banner {
  position: relative;
  display: grid;
  place-items: center;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.brand-center img {
  height: 48px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-center .brand-main {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.brand-center .brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Removed decorative arc: using a single centered logo for clarity */

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 0.6rem;
}

.nav-link--icon:hover {
  border-color: var(--ink);
}

.nav-link--icon svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}

/* Cart icon */
.nav-link--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-link--cart:hover {
  border-color: var(--border);
  background: rgba(198, 168, 120, 0.08);
}

.nav-link--cart::after {
  display: none;
}

.icon-cart {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  min-width: 1.4rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Mobile menu toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* =========================
   Hero
   ========================= */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 1.2rem;
  color: var(--accent-soft);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.hero-text {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 32rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: var(--ink);
  color: #fdfbf8;
}

.btn-primary:hover {
  background: #16100a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

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

/* Hero imagery */

.hero-image-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fdfbf8;
  box-shadow: var(--shadow-soft);
}

.hero-card--secondary {
  max-width: 80%;
  align-self: flex-end;
}

.hero-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-card-caption {
  padding: 1.1rem 1.2rem 1.3rem;
}

.hero-card-caption--small {
  padding: 0.9rem 1rem 1rem;
}

.hero-card-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   Product grid
   ========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.9rem;
}

.product-card {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(221, 209, 194, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Whole card is one clickable link */
.product-card-link-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--bg-alt);
}

.product-card-body {
  padding: 1rem 1.2rem 1.3rem;
}

.product-card-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.product-card-price {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.product-card-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.product-card-link {
  display: inline-block;
}

.product-card-link:hover,
.product-card:hover .product-card-link {
  border-color: var(--ink);
}

/* =========================
   Two-column / ethos
   ========================= */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.3rem;
}

.two-column-block h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.two-column-block p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

.two-column-block--border {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.pillar h3 {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid rgba(221, 209, 194, 0.8);
  background: rgba(247, 243, 236, 0.95);
  padding: 2.2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-main {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--ink);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   Responsiveness
   ========================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image-panel {
    order: -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .pillars {
    grid-template-columns: 1fr;
  }

  .two-column-block--border {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  /* Show hamburger toggle on the left */
  .nav-toggle {
    display: flex;
    position: absolute;
    left: 0;
  }

  /* Reveal primary nav as a dropdown panel when the menu is open */
  .nav-left {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(247, 243, 236, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 209, 194, 0.65);
    box-shadow: var(--shadow-soft);
  }

  .header-inner.menu-open .nav-left {
    display: flex;
  }

  .nav-left .nav-link {
    font-size: 1rem;
  }

  /* Animate hamburger into an X when open */
  .header-inner.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header-inner.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .header-inner.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-right {
    position: absolute;
    right: 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Page titles & layout
   ========================= */

.page-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0.3rem 0 0.8rem;
}

.page-intro {
  max-width: 35rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Narrow content helper for page headers */
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

/* =========================
   Shop layout
   ========================= */

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.shop-filters {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.filters-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.filter-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  background: #fdfbf8;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--ink);
}

.filter-select:focus {
  outline: none;
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.shop-results {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.shop-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.shop-count {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================
   Product detail
   ========================= */

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.6rem;
  align-items: flex-start;
}


/* =========================
  Carousel (product detail)
  ========================= */

.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.8);
  box-shadow: var(--shadow-soft);
}

.carousel-slide {
  display: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 250ms ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-slide video {
  background: #000;
}


.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(253, 251, 248, 0.92);
  color: rgba(34, 28, 21, 0.85);
  border: 1px solid rgba(34, 28, 21, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 28, 21, 0.18);
}

.carousel-control:hover {
  background: #fdfbf8;
  box-shadow: 0 3px 12px rgba(34, 28, 21, 0.28);
}

.carousel-control.prev { left: 14px; }
.carousel-control.next { right: 14px; }

.carousel-control[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(34, 28, 21, 0.2);
  border: 1.5px solid rgba(34, 28, 21, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.carousel-dot:hover {
  background: rgba(34, 28, 21, 0.4);
  transform: scale(1.2);
}

.carousel-dot svg {
  width: 7px;
  height: 7px;
}

.carousel-dot:has(svg) {
  width: 20px;
  border-radius: var(--radius-pill);
}

.carousel-dot.active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  .carousel-control.prev { left: 10px; }
  .carousel-control.next { right: 10px; }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-detail-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}

.product-detail-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.5rem;
}

.product-detail-oneoff {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
  margin-top: 0.3rem;
}

.product-detail-copy {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-line;   /* preserve paragraph breaks the shopkeeper types */
}

/* Trust signals beside the buy button */
.product-trust {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.7rem;
}
.product-trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.product-trust svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "You might also like" */
.related-section {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
}
.related-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
}

/* Sticky mobile add-to-cart bar */
.product-sticky-bar { display: none; }
@media (max-width: 640px) {
  .product-sticky-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(253, 251, 248, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(221, 209, 194, 0.9);
    box-shadow: 0 -4px 18px rgba(28, 20, 12, 0.07);
  }
  .product-sticky-bar[hidden] { display: none; }
  .product-sticky-bar .psb-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
  }
  .product-sticky-bar .psb-info small {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-sticky-bar .psb-info strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
  }
  .product-sticky-bar .btn { flex: 1; white-space: nowrap; }
  .product-sticky-bar .psb-sold {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  /* Room so the bar never covers content/footer */
  body.product-page .site-footer { padding-bottom: 5.5rem; }
}

/* Breadcrumb-style link */

.breadcrumb-link {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.breadcrumb-link:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* =========================
   Cart
   ========================= */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 2.3rem;
}

/* The class rule above beats the [hidden] attribute, so make hiding explicit */
.cart-layout[hidden] { display: none; }

.cart-items-wrapper {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
}

/* Cart page heading */
.cart-heading {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}
.cart-heading h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  margin: 0;
}
.cart-heading .cart-item-count {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 2.4rem 1rem 1rem;
}
.cart-empty svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}
.cart-empty-message {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

/* Continue shopping link below the item list */
.cart-continue {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.cart-continue a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cart-continue a:hover { color: var(--ink); }

.cart-summary {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.cart-summary-title {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.cart-summary-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.cart-summary-small {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Cart items styling — flat rows inside the wrapper card, hairline dividers */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s ease;
}

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

.cart-item:hover {
  background: rgba(201, 169, 97, 0.04);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-item-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.cart-item-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0;
  margin-top: 0.3rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--ink);
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-title {
    font-size: 1.05rem;
  }
  
  .cart-item-meta {
    font-size: 0.85rem;
  }
  
  .cart-item-price {
    font-size: 1rem;
  }

  /* Sticky mobile checkout bar — keeps subtotal + checkout always reachable */
  .mobile-checkout-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(253, 251, 248, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(221, 209, 194, 0.9);
    box-shadow: 0 -4px 18px rgba(28, 20, 12, 0.07);
  }
  .mobile-checkout-bar[hidden] { display: none; }
  .mobile-checkout-bar .mcb-subtotal {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mobile-checkout-bar .mcb-subtotal small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .mobile-checkout-bar .mcb-subtotal strong {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
  }
  .mobile-checkout-bar .btn { flex: 1; }

  /* On mobile, hide the desktop summary's checkout button (use the bar instead),
     and leave room so the bar never covers the last item / footer. */
  body.cart-page #checkout-button { display: none; }
  body.cart-page .cart-summary-small { margin-top: 0; }
  body.cart-page .site-footer { padding-bottom: 5.5rem; }
}

/* =========================
   Success page
   ========================= */

.success-layout {
  display: flex;
  justify-content: center;
}

.success-card {
  max-width: 540px;
  width: 100%;
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 2.2rem 2rem 2.4rem;
  box-shadow: var(--shadow-soft);
}

.success-note {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* =========================
   Responsive tweaks (pages)
   ========================= */

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  /* Compact filter panel once it stacks above the product grid:
     trim padding and lay Category + Sort side by side so the box
     no longer fills the screen and pushes pieces below the fold. */
  .shop-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.9rem;
    row-gap: 0.7rem;
    padding: 1rem 1.1rem 1.1rem;
  }

  .filters-title {
    grid-column: 1 / -1;
    margin: 0;
  }

  .shop-filters .filter-group {
    margin-bottom: 0;
  }

  #clear-filters {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
  }
}

@media (max-width: 640px) {
  /* No arc in new design — keep absolute positioning for the
     hamburger dropdown (.nav-left) and cart (.nav-right). */
  .nav { justify-content: center; }

  /* Shorter hero so the featured rings peek above the fold on landing */
  .hero {
    padding: 2rem 0 2.25rem;
  }
  .hero-inner {
    gap: 1.4rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
    margin-bottom: 0.8rem;
  }
  .hero-actions {
    margin-top: 1.2rem;
  }
  /* Crop the hero image shorter on phones (overrides the inline height:auto) */
  .hero-image-panel img {
    height: 34vh !important;
    object-fit: cover;
  }
}

/* Cap the (portrait) hero image on tablet/desktop so it doesn't tower over
   the copy — crop to a balanced landscape frame. */
@media (min-width: 641px) {
  .hero-image-panel img {
    height: 460px !important;
    object-fit: cover;
    object-position: center;
  }

  /* Tighten the gap between the hero and the featured section */
  .hero { padding-bottom: 2rem; }
  .hero + .section { padding-top: 2.5rem; }
}

/* =========================
   Floating mobile "Shop" CTA
   ========================= */
.mobile-shop-cta { display: none; }

@media (max-width: 640px) {
  .mobile-shop-cta {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 90;
    box-shadow: 0 6px 22px rgba(28, 20, 12, 0.22);
    padding: 0.8rem 1.7rem;
  }
  .mobile-shop-cta[hidden] { display: none; }
  /* Room so the floating button never hides the footer's last line */
  .site-footer { padding-bottom: 5rem; }

  /* Empty cart on mobile uses the floating CTA, so drop the inline button */
  body.cart-page .cart-empty .btn { display: none; }
}
