:root {
  --coffee: #3a1708;
  --cream: #fff8e8;
  --paper: #fff0c8;
  --gold: #ffc928;
  --berry: #9a0f62;
  --berry-dark: #5a073e;
  --green: #28551e;
  --ink: #20140d;
  --muted: #725d4d;
  --line: rgba(58, 23, 8, 0.16);
  --card: #fffdf7;
  --shadow: 0 18px 50px rgba(58, 23, 8, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--berry);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 232, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 56px);
  background: linear-gradient(90deg, var(--berry-dark), var(--berry));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.topbar a {
  text-decoration: none;
  color: var(--gold);
}

.nav-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 56px);
}

.brand {
  width: 156px;
}

.brand img,
.footer img {
  mix-blend-mode: multiply;
}

.search {
  position: relative;
}

.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search input {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(154, 15, 98, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(154, 15, 98, 0.12);
}

.cart-button,
.menu-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--coffee);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.cart-button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 16px;
}

.cart-button strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--coffee);
}

.menu-button {
  display: none;
  padding: 0 16px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 56px) 12px;
}

.nav-links a {
  color: var(--coffee);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;
}

.hero,
.section,
.quick-categories,
.footer {
  padding-inline: clamp(16px, 4vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(34px, 6vw, 76px);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 201, 40, 0.32), transparent 28%),
    radial-gradient(circle at 96% 4%, rgba(154, 15, 98, 0.18), transparent 28%),
    linear-gradient(135deg, #fff9e9 0%, #fff0c8 55%, #f9c642 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  color: var(--coffee);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--coffee);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: var(--coffee);
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 620px;
  color: #4c3324;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
}

.button.primary,
.mini-button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(154, 15, 98, 0.24);
}

.button.secondary {
  border: 2px solid rgba(154, 15, 98, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: var(--berry-dark);
}

.button.disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.featured-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

.featured-card div {
  padding: 24px;
}

.featured-card span,
.category-label,
.info-grid span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

.quick-categories {
  position: sticky;
  top: 122px;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 12px;
  background: rgba(255, 248, 232, 0.92);
  border-block: 1px solid var(--line);
}

.quick-chip,
.side-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--coffee);
  font-weight: 900;
  cursor: pointer;
}

.quick-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.quick-chip.is-active,
.side-filter.is-active {
  background: var(--berry);
  color: #fff;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin-inline: auto;
  padding-block: 18px;
}

.category-links a,
.category-link-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--berry-dark);
  font-weight: 900;
  text-decoration: none;
}

.category-links a {
  padding: 12px 16px;
}

.category-page {
  max-width: 1180px;
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--berry-dark);
  font-weight: 850;
}

.category-intro {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.category-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(58, 23, 8, 0.1);
}

.category-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}

.category-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.category-product-body h2 {
  font-size: 1.35rem;
}

.category-product-body p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.category-product-body .button {
  width: 100%;
  margin-top: 18px;
}

.related-categories {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.category-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-link-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.category-link-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding-block: clamp(46px, 7vw, 88px);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding-block: 14px;
}

.legal-nav .brand {
  width: 170px;
}

.legal-nav .button {
  width: auto;
  flex: 0 0 auto;
}

.legal-page {
  max-width: 900px;
  margin-inline: auto;
}

.legal-page h1 {
  max-width: 780px;
}

.legal-page section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-page section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.policy-intro,
.policy-meta,
.legal-page section p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.policy-meta {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--coffee);
}

.policy-meta a,
.legal-page a:not(.button) {
  color: var(--berry-dark);
  font-weight: 850;
}

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

.section-heading p,
.story p,
.info-grid p,
.contact p {
  color: var(--muted);
  font-size: 1.03rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 185px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(58, 23, 8, 0.08);
}

.side-filter {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
}

.sidebar-note {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--coffee);
}

.sidebar-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}

.toolbar-summary {
  display: grid;
  gap: 3px;
}

.shop-toolbar strong {
  color: var(--coffee);
}

.clear-filters,
.catalog-retry {
  min-height: 40px;
  border: 1px solid rgba(154, 15, 98, 0.2);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--berry-dark);
  font-weight: 900;
  cursor: pointer;
}

.catalog-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 201, 40, 0.18);
  color: var(--coffee);
  font-weight: 800;
}

.catalog-status[data-state="error"] {
  background: #fff0f0;
  color: #8b1e1e;
}

.catalog-retry {
  margin-top: 14px;
}

.catalog-nojs {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--coffee);
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(58, 23, 8, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.product-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.price {
  display: block;
  margin-top: auto;
  color: var(--berry-dark);
  font-size: 1.02rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.product-meta span {
  border-radius: 999px;
  background: rgba(255, 201, 40, 0.2);
  color: var(--coffee);
  padding: 5px 9px;
  font-size: 0.77rem;
  font-weight: 850;
}

.product-actions {
  display: grid;
  gap: 8px;
}

.mini-button {
  min-height: 42px;
  border: 1px solid rgba(154, 15, 98, 0.18);
  background: #fff;
  color: var(--berry-dark);
  padding: 9px 12px;
  text-align: center;
}

.empty-state {
  padding: 22px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--coffee);
  font-weight: 900;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  background: #fffdf7;
}

.story-copy {
  max-width: 680px;
}

.story-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.story-highlights article {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.story-highlights strong {
  color: var(--berry-dark);
}

.story-highlights span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.story-actions {
  margin-top: 24px;
}

.story-source {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-source a {
  color: var(--berry-dark);
  font-weight: 900;
}

.story-visuals {
  display: grid;
  gap: 12px;
}

.story-carousel {
  display: grid;
  gap: 14px;
}

.story-carousel-slides {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.story-slide {
  margin: 0;
}

.story-slide[hidden] {
  display: none;
}

.story-slide img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
}

.story-slide figcaption {
  padding: 12px 16px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-carousel-toggle,
.story-carousel-dots button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--berry-dark);
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.story-carousel-toggle {
  padding: 0 14px;
}

.story-carousel-dots {
  display: flex;
  gap: 7px;
}

.story-carousel-dots button {
  min-width: 40px;
  padding: 0 10px;
}

.story-carousel-dots button[aria-current="true"] {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

.story-carousel-toggle:focus-visible,
.story-carousel-dots button:focus-visible {
  outline: 3px solid rgba(255, 201, 40, 0.9);
  outline-offset: 3px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--paper);
}

.info-grid article {
  min-height: 250px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(58, 23, 8, 0.08);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
  background: linear-gradient(135deg, var(--berry-dark), var(--coffee));
  color: #fff;
}

.contact h2,
.contact p,
.contact .eyebrow {
  color: #fff;
}

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

.contact-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.cart-dialog {
  width: min(460px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: -18px 0 60px rgba(58, 23, 8, 0.24);
}

.cart-dialog::backdrop {
  background: rgba(32, 20, 13, 0.56);
  backdrop-filter: blur(3px);
}

.cart-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-size: 2.2rem;
}

.cart-close {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--coffee);
  font-weight: 900;
  cursor: pointer;
}

.cart-list {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

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

.cart-item h3 {
  margin-bottom: 4px;
}

.cart-item-copy > span {
  color: var(--berry-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.quantity-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.quantity-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--coffee);
  font-weight: 900;
  cursor: pointer;
}

.quantity-controls .remove-item {
  margin-left: auto;
  padding-inline: 10px;
  color: var(--berry-dark);
}

.cart-empty {
  margin: auto 24px;
  padding: 22px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--coffee);
  text-align: center;
  font-weight: 850;
}

.cart-footer {
  margin-top: auto;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.cart-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--coffee);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.cart-price-note,
.cart-fallback {
  margin-bottom: 12px;
}

.cart-fallback a {
  color: var(--berry-dark);
  font-weight: 900;
}

.cart-footer .button {
  width: 100%;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  min-width: 118px;
  min-height: 48px;
  place-items: center;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(31, 168, 85, 0.34);
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
  padding-block: 34px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 180px;
  margin-bottom: 10px;
}

.footer h3 {
  font-size: 0.95rem;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
}

.footer-credit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-credit span {
  margin: 0;
}

.footer-credit strong {
  color: var(--berry-dark);
}

@media (max-width: 980px) {
  .nav-row {
    grid-template-columns: auto 1fr auto;
  }

  .cart-button span {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px 16px;
  }

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

  .hero,
  .shop-layout,
  .story,
  .contact,
  .info-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer-credit {
    flex-direction: column;
  }

  .shop-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .topbar {
    display: none;
  }

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

  .brand {
    width: 128px;
  }

  .search {
    grid-column: 1 / -1;
    order: 2;
  }

  .quick-categories {
    top: 124px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions,
  .product-actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .category-links a {
    width: 100%;
  }

  .category-link-grid,
  .story-highlights {
    grid-template-columns: 1fr;
  }

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

  .clear-filters {
    width: 100%;
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
  }

  .cart-dialog {
    width: 100%;
  }
}
