/* Casa Mia — design tokens & public styles */
:root {
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --terracotta: #c45c4a;
  --terracotta-dark: #a84638;
  --olive: #5c6b3c;
  --olive-dark: #465230;
  --gold: #c4a46a;
  --ink: #2a2420;
  --ink-soft: #5c534c;
  --white: #fffcf7;
  --line: rgba(42, 36, 32, 0.1);
  --shadow: 0 12px 40px rgba(42, 36, 32, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 164, 106, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 74, 0.1), transparent 55%),
    var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 232, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 34px;
  height: 34px;
  color: var(--terracotta);
}

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

.hero-logo {
  width: min(100%, 420px);
  height: auto;
  margin: 0 0 1rem;
  filter: drop-shadow(0 8px 24px rgba(42, 36, 32, 0.08));
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav-desktop a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-desktop a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch {
  display: flex;
  gap: 0.2rem;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 0.18rem;
}

.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--olive);
  transition: transform 0.2s var(--ease);
}

.icon-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 0 1.1rem;
  border-top: 1px solid var(--line);
}

.nav-mobile.open {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--olive-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}

.btn-wa {
  background: #25d366;
  color: #fff;
}

.btn-wa:hover {
  background: #1ebe57;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  padding: 1.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-media {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.about-logo-panel {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 164, 106, 0.16), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.about-logo-panel img {
  width: min(100%, 480px);
  height: auto;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 600;
}

.about-copy #about-text {
  color: var(--ink-soft);
}

.about-closing {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--terracotta);
}

.hero-copy .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 28rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

.seal {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold);
  background: rgba(255, 252, 247, 0.92);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.15;
  color: var(--terracotta);
  padding: 0.5rem;
}

/* Features */
.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(92, 107, 60, 0.12);
  color: var(--olive);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Catalog */
.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  animation: rise 0.5s var(--ease) both;
}

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

.product-card .thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-deep);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
}

.badge.new {
  background: var(--gold);
  color: var(--ink);
}

.badge.sale {
  background: var(--olive);
}

.product-card .body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.product-card .desc {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.price small {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.weight {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.wa-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(37, 211, 102, 0.15);
  color: #1ebe57;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hits-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hit-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.hit-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.hit-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* About / cook / delivery */
.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  background: var(--cream-deep);
  position: relative;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.script-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 12rem;
}

.cook-grid {
  display: grid;
  gap: 0.85rem;
}

.cook-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.cook-card .emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.cook-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cook-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.delivery-panel {
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 252, 247, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(196, 92, 74, 0.12), transparent 50%),
    linear-gradient(145deg, #f6d5cc 0%, #efc4b8 45%, #e8b4a8 100%);
  color: var(--ink);
  padding: 2rem 1.25rem;
}

.delivery-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.delivery-list {
  display: grid;
  gap: 0.85rem;
}

.delivery-list div {
  display: grid;
  gap: 0.15rem;
}

.delivery-list strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  opacity: 1;
}

/* Reviews */
.reviews {
  display: grid;
  gap: 0.9rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.review-card p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}

.review-card .name {
  font-weight: 700;
  font-size: 0.9rem;
}

/* CTA / footer */
.final-cta {
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 90% 0%, rgba(255, 252, 247, 0.5), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(196, 92, 74, 0.14), transparent 50%),
    linear-gradient(160deg, #f3cfc6 0%, #ebbbb0 50%, #e5a99c 100%);
  color: var(--ink);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.final-cta p {
  margin: 0 auto 1.4rem;
  max-width: 28rem;
  opacity: 0.9;
  color: var(--ink-soft);
}

.final-cta .btn-secondary {
  border-color: var(--olive);
  color: var(--olive);
}

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.footer-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Product page */
.product-page {
  padding: 1.5rem 0 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-layout {
  display: grid;
  gap: 1.5rem;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 1;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0.5rem 0 0.5rem;
  line-height: 1.1;
}

.product-info .desc {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.product-facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.fact strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.variant-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.variant-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.unavailable {
  opacity: 0.55;
  pointer-events: none;
}

.unavailable::after {
  content: attr(data-soldout);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero-media {
    order: 2;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }

  .hits-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
