:root {
  --bg: #f5f2ec;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-alt: #f8f5ef;
  --line: #e7dfd4;
  --text: #221d18;
  --muted: #675f55;
  --accent: #70543a;
  --accent-dark: #503822;
  --shadow: 0 20px 60px rgba(34, 29, 24, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-sm: 999px;
  --container: min(1180px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(217, 198, 174, 0.34), transparent 30%),
    linear-gradient(180deg, #faf7f1 0%, #f5f2ec 45%, #f0ebe2 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 200;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.announcement-bar {
  border-bottom: 1px solid rgba(112, 84, 58, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

.announcement-bar p {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(245, 242, 236, 0.78);
  border-bottom: 1px solid rgba(112, 84, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #83654a, #4e3825);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 0;
}

.nav-list a {
  position: relative;
  font-weight: 600;
  color: var(--muted);
}

.nav-list a[aria-current="page"],
.nav-list a:hover,
.text-link:hover {
  color: var(--text);
}

.has-mega-menu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  width: min(620px, 90vw);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 26px;
  border: 1px solid rgba(112, 84, 58, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu h3 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.05;
}

.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mega-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-link {
  font-weight: 700;
  color: var(--accent-dark);
}

.cart-pill,
.chip,
.button,
.qty-control input,
.sort-control select {
  border: 1px solid rgba(112, 84, 58, 0.12);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.cart-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero-section,
.page-hero {
  padding: 40px 0 28px;
}

.hero-grid,
.page-hero-grid,
.editorial-grid,
.product-detail-grid {
  display: grid;
  gap: 28px;
}

.hero-grid,
.editorial-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.hero-copy,
.page-hero-grid,
.product-summary,
.editorial-copy {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(112, 84, 58, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
}

.hero-copy h1,
.page-hero h1,
.product-summary h1,
.section-heading h2,
.editorial-copy h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.page-hero h1,
.product-summary h1,
.section-heading h2,
.editorial-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-copy p,
.page-hero p,
.editorial-copy p,
.product-description {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-actions,
.purchase-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.chip:hover,
.cart-pill:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.92rem;
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}

.hero-metrics li {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.hero-metrics strong,
.price-row strong {
  display: block;
  font-size: 1.4rem;
}

.hero-metrics span,
.price-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  display: flex;
}

.hero-card {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
  min-height: 100%;
  padding: 24px;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  left: 24px;
  right: 318px;
  bottom: 24px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(34, 29, 24, 0.15), rgba(34, 29, 24, 0.6));
  color: #fff;
  z-index: 1;
}

.hero-overlay h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.floating-note-stack {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 270px;
  display: grid;
  gap: 14px;
}

.floating-note {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
}

.floating-note-secondary {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.floating-note strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.floating-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  padding: 28px 0 80px;
}

.section-heading {
  margin-bottom: 28px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.category-card,
.product-card,
.page-hero-grid,
.gallery-panel,
.product-summary,
.editorial-image,
.editorial-copy {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
}

.category-card {
  display: grid;
  background: rgba(255, 255, 255, 0.76);
}

.category-card img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
}

.category-card div,
.product-info {
  padding: 16px 18px 18px;
}

.category-card h3,
.product-info h3 {
  margin: 0;
  font-size: 1.12rem;
}

.category-card p,
.product-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.78);
}

.product-media {
  position: relative;
}

.product-media img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-category {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.product-meta strong {
  font-size: 1.1rem;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.editorial-copy {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.72);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature-list div {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface-alt);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
}

.page-hero-grid {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.72);
}

.page-hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-hero-note span {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--muted);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  background: var(--accent-dark);
  color: #fff;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.sort-control select,
.qty-control input {
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  color: var(--text);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-detail-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.gallery-panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.main-gallery-image {
  overflow: hidden;
  border-radius: 24px;
}

.main-gallery-image img {
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

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

.thumb.is-active {
  border-color: var(--accent-dark);
}

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

.product-summary {
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.76);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.spec-list,
.footer-links {
  list-style: none;
  padding: 0;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.spec-list li {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.qty-control input {
  width: 82px;
}

.info-panels {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.info-panels details {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.info-panels summary {
  cursor: pointer;
  font-weight: 800;
}

.info-panels p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 26px 0 0;
  border-top: 1px solid rgba(112, 84, 58, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
}

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

.footer-grid p,
.footer-links li,
.footer-links a {
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-links {
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(112, 84, 58, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.28);
}

[data-product-grid] .product-card.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .category-grid,
  .product-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .editorial-grid,
  .product-detail-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-note {
    justify-content: flex-start;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-overlay {
    left: 20px;
    right: 20px;
    bottom: 184px;
  }

  .floating-note-stack {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    max-width: none;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(112, 84, 58, 0.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-list,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav-list {
    gap: 14px;
  }

  .mega-menu {
    position: static;
    width: 100%;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-mega-menu:hover .mega-menu,
  .has-mega-menu:focus-within .mega-menu {
    display: grid;
  }

  .hero-card {
    min-height: 620px;
  }

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

  .shop-toolbar,
  .split-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 100%);
  }

  .section {
    padding: 18px 0 56px;
  }

  .header-inner {
    padding: 14px 0;
  }

  .hero-copy,
  .page-hero-grid,
  .gallery-panel,
  .product-summary,
  .editorial-copy {
    padding: 22px;
  }

  .category-grid,
  .product-grid,
  .shop-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .product-meta,
  .purchase-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card {
    min-height: 520px;
  }

  .whatsapp-button {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 16px;
  }
}

:root {
  --section-space: clamp(3.5rem, 8vw, 5.5rem);
  --section-space-compact: clamp(1.25rem, 3vw, 2.25rem);
  --card-padding: clamp(1rem, 2vw, 1.3rem);
}

.site-shell {
  overflow-x: clip;
}

body.has-drawer,
body.menu-open {
  overflow: hidden;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1220px, calc(100% - clamp(1rem, 4vw, 2rem)));
}

.hero-section,
.page-hero {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 var(--section-space-compact);
}

.section {
  padding: var(--section-space-compact) 0 var(--section-space);
}

.hero-copy,
.page-hero-grid,
.gallery-panel,
.product-summary,
.editorial-copy {
  padding: clamp(1.35rem, 4vw, 3rem);
}

.section-heading {
  margin-bottom: clamp(1.15rem, 3vw, 1.9rem);
}

.product-card,
.category-card {
  height: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--card-padding);
}

.product-meta {
  margin-top: auto;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 24px 70px rgba(34, 29, 24, 0.12);
}

.service-strip-section {
  padding: 0 0 var(--section-space-compact);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-strip article {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
}

.service-strip strong {
  display: block;
  margin-bottom: 6px;
}

.service-strip p,
.results-summary {
  margin: 0;
  color: var(--muted);
}

.shop-toolbar {
  gap: 16px;
}

.shop-toolbar-main,
.shop-toolbar-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.shop-toolbar-secondary {
  flex-wrap: wrap;
}

.search-control {
  flex: 1;
  min-width: min(100%, 320px);
}

.search-control input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(112, 84, 58, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.search-control input:focus,
.sort-control select:focus,
.qty-stepper:focus-within,
.qty-control input:focus {
  outline: 2px solid rgba(112, 84, 58, 0.22);
  outline-offset: 2px;
}

.results-summary {
  font-size: 0.95rem;
}

.no-results-message {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(112, 84, 58, 0.08);
  color: var(--muted);
}

.product-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.highlight-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 84, 58, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(112, 84, 58, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.qty-step {
  width: 42px;
  min-height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.qty-stepper input {
  width: 64px;
  min-height: 46px;
  border: 0;
  border-left: 1px solid rgba(112, 84, 58, 0.08);
  border-right: 1px solid rgba(112, 84, 58, 0.08);
  border-radius: 0;
  text-align: center;
}

.product-media {
  overflow: hidden;
}

.product-media .wishlist-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
}

.wishlist-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(112, 84, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.wishlist-toggle[aria-pressed="true"] {
  background: var(--accent-dark);
  color: #fff;
}

.detail-wishlist {
  min-width: 180px;
}

.toast-stack {
  position: fixed;
  top: 96px;
  right: 18px;
  z-index: 170;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(34, 29, 24, 0.95);
  color: #fff;
  box-shadow: 0 20px 50px rgba(34, 29, 24, 0.24);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.toast p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(34, 29, 24, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(420px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 22px;
  background: #fbf8f3;
  box-shadow: -20px 0 60px rgba(34, 29, 24, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header,
.cart-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-drawer-header {
  padding-bottom: 14px;
}

.cart-drawer-header h2,
.cart-drawer-footer p {
  margin: 0;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(112, 84, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.shipping-progress {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.shipping-progress p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.shipping-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(112, 84, 58, 0.12);
  overflow: hidden;
}

.shipping-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8e6c4c, #4e3825);
}

.cart-items {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.cart-item,
.cart-empty {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
}

.cart-item img {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-item p,
.cart-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.remove-line {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.cart-drawer-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(112, 84, 58, 0.08);
}

.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.is-hidden {
  display: none !important;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.checkout-form-shell,
.checkout-sidebar {
  display: grid;
  gap: 18px;
}

.checkout-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
}

.checkout-card-heading h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.98;
}

.sticky-summary {
  position: sticky;
  top: 110px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field span {
  font-weight: 700;
  color: var(--text);
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 84, 58, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

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

.payment-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.payment-option input {
  margin-top: 5px;
}

.payment-option strong {
  display: block;
  margin-bottom: 4px;
}

.payment-option p,
.checkout-note {
  margin: 0;
  color: var(--muted);
}

.checkout-line-items {
  display: grid;
  gap: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.checkout-item img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}

.checkout-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.checkout-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.coupon-form {
  margin-top: 16px;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.summary-breakdown {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.summary-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-breakdown strong {
  color: var(--text);
}

.summary-total {
  padding-top: 14px;
  border-top: 1px solid rgba(112, 84, 58, 0.08);
  font-size: 1.02rem;
}

.summary-total strong {
  font-size: 1.2rem;
}

.checkout-submit {
  width: 100%;
  margin-top: 18px;
}

.checkout-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.checkout-empty {
  display: grid;
  gap: 12px;
}

.success-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,245,239,0.92));
}

.cart-page-items,
.wishlist-page-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 84, 58, 0.08);
}

.cart-page-item img {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
}

.cart-page-item-copy {
  display: grid;
  gap: 12px;
}

.cart-page-item-copy h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cart-page-item-copy p {
  margin: 0;
  color: var(--muted);
}

.cart-page-item-controls,
.cart-page-item-actions,
.wishlist-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-submit-secondary {
  width: 100%;
  margin-top: 10px;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.wishlist-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wishlist-card-page {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(112, 84, 58, 0.08);
  box-shadow: var(--shadow);
}

.wishlist-card-media img,
.wishlist-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.wishlist-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b6a4d, #4e3825);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wishlist-card-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wishlist-card-copy h3,
.wishlist-card-copy p {
  margin: 0;
}

.wishlist-empty,
.cart-page-empty {
  display: grid;
  gap: 12px;
}

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

  .sticky-summary {
    position: static;
  }

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

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .service-strip,
  .shop-toolbar-main,
  .shop-toolbar-secondary {
    grid-template-columns: 1fr;
  }

  .shop-toolbar-main,
  .shop-toolbar-secondary {
    flex-direction: column;
    align-items: stretch;
  }

  .search-control,
  .sort-control {
    width: 100%;
  }

  .sort-control {
    justify-content: space-between;
  }

  .toast-stack {
    top: auto;
    right: 12px;
    bottom: 84px;
  }
}

@media (max-width: 640px) {
  .service-strip {
    grid-template-columns: 1fr;
  }

  .cart-page-item,
  .wishlist-page-grid {
    grid-template-columns: 1fr;
  }

  .cart-page-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .form-grid,
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .floating-note-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-overlay {
    left: 16px;
    right: 16px;
    bottom: 194px;
  }

  .cart-drawer {
    padding: 18px;
  }

  .detail-wishlist,
  .purchase-panel .button {
    width: 100%;
  }
}
