/* ============================================
   NELSMARI SOUS VIDE — Design System v1.0
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #2D4A1E;
  --color-primary-rgb: 45, 74, 30;
  --color-secondary: #4A6741;
  --color-secondary-rgb: 74, 103, 65;
  --color-accent: #C9A84C;
  --color-accent-rgb: 201, 168, 76;
  --color-bg-warm: #F5EFE0;
  --color-bg-white: #FFFFFF;
  --color-text: #444444;
  --color-text-dark: #2D4A1E;
  --color-text-light: #777777;
  --color-white: #FFFFFF;
  --color-error: #C0392B;
  --color-success: #27AE60;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Segoe UI', Tahoma, sans-serif;

  /* Font sizes — fluid scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* WhatsApp */
  --color-whatsapp: #25D366;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

.text-accent {
  color: var(--color-accent);
}

.text-price {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-accent);
}

.text-center {
  text-align: center;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

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

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

/* --- Header --- */
.header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Mobile: center logo */
@media (max-width: 767px) {
  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 64px;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo-img {
    height: 72px;
  }
}

.header__nav {
  display: none;
}

.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.header__menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(var(--color-primary-rgb), 0.95);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

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

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

.nav-mobile__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
}

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

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

.btn--secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn--secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

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

.btn--accent:hover {
  background-color: #B8963E;
  color: var(--color-white);
}

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

.btn--whatsapp:hover {
  background-color: #1EBE57;
  color: var(--color-white);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}

/* --- Cards --- */
.card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-warm);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card__price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
}

/* --- Quantity Selector --- */
.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.qty-selector__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-bg-warm);
  transition: background var(--transition-fast);
}

.qty-selector__btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.qty-selector__value {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-dark);
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* --- Filter Pills --- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-bg-warm);
  border: 1px solid transparent;
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.is-active {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  color: var(--color-white);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* --- Cart Badge (mobile fixed bottom) --- */
.cart-float {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  z-index: 80;
  align-items: center;
  justify-content: space-between;
}

.cart-float.has-items {
  display: flex;
}

/* Spacer to prevent cart float from covering content */
body:has(.cart-float.has-items) {
  padding-bottom: 60px;
}

/* Move WhatsApp float up when cart float is visible */
body:has(.cart-float.has-items) .whatsapp-float {
  bottom: calc(var(--space-lg) + 56px);
}

.cart-float__info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
}

.cart-float__badge {
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer a {
  color: var(--color-accent);
}

.footer a:hover {
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__title {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
  background: var(--color-bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-rgb), 0.15);
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-md) auto;
  border-radius: 2px;
}

/* --- Allergen Badges --- */
.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--border-radius-full);
  background-color: rgba(var(--color-accent-rgb), 0.15);
  color: var(--color-text-dark);
}

/* --- Nutrition Table --- */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

.nutrition-table th,
.nutrition-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.nutrition-table th {
  font-weight: 700;
  color: var(--color-text-dark);
}

.nutrition-table td:last-child {
  text-align: right;
  font-weight: 700;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-warm);
  overflow: hidden;
}

/* Slideshow background */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Dark overlay on top of images so text is readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(245, 239, 224, 0.88) 0%,
    rgba(245, 239, 224, 0.75) 50%,
    rgba(245, 239, 224, 0.65) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- Benefits --- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.benefit {
  text-align: center;
  padding: var(--space-lg);
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-bg-warm);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.benefit__title {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.benefit__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

.benefit:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .benefit:last-child {
    grid-column: auto;
  }
}

/* --- How it works (Steps) --- */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.step {
  max-width: 280px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.step__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

.step__arrow {
  color: var(--color-accent);
  transform: rotate(90deg);
}

/* --- Featured section --- */
.featured__intro {
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  color: var(--color-text-light);
}

.featured__cta {
  margin-top: var(--space-2xl);
}

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

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

.card--featured {
  display: block;
  color: inherit;
  text-align: left;
}

.card--featured:hover {
  color: inherit;
}

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3D5A2E 0%, #4A6741 50%, #2D4A1E 100%);
  position: relative;
}

.card__image--placeholder::after {
  content: attr(data-name);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.card__image--placeholder img {
  display: none;
}

/* --- Category cards --- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.category-card {
  position: relative;
  background: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card--accent {
  background: var(--color-primary);
  color: var(--color-white);
}

.category-card--accent .category-card__title {
  color: var(--color-white);
}

.category-card--accent .category-card__price {
  color: var(--color-accent);
}

.category-card--accent .category-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.category-card--accent .category-card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.category-card__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
}

.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-warm);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.category-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.category-card__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.category-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Menu Page Layout --- */
.menu-header {
  padding-bottom: var(--space-xl);
}

.menu-header__subtitle {
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto;
}

.menu-section {
  padding-top: var(--space-xl);
}

.menu-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.menu-layout__main {
  flex: 1;
  min-width: 0;
}

.menu-count {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.menu-category-header {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: var(--space-sm);
}

.menu-category-header:first-child {
  padding-top: 0;
}

.menu-category-title {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

/* --- Promos Banner (Menu page) --- */
.promos-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.promo-card {
  position: relative;
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(var(--color-accent-rgb), 0.15);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.promo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.promo-card--highlight {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.promo-card--highlight .promo-card__title {
  color: var(--color-white);
}

.promo-card--highlight .promo-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

.promo-card__badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-sm);
}

.promo-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.promo-card__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.promo-card__price small {
  font-size: var(--text-base);
}

.promo-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Card menu variant */
.card--menu .card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.card__title-link {
  color: inherit;
}

.card__title-link:hover {
  color: var(--color-secondary);
}

.card__title-link:hover .card__title {
  color: var(--color-secondary);
}

/* --- Cart Sidebar (Desktop) --- */
.cart-sidebar {
  display: none;
  width: 320px;
  flex-shrink: 0;
  background: var(--color-bg-white);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--border-radius-lg);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  flex-direction: column;
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.cart-sidebar__header h3 {
  margin-bottom: 0;
  font-size: var(--text-lg);
}

.cart-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.cart-sidebar__empty {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  padding: var(--space-xl) 0;
}

.cart-sidebar__footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.cart-sidebar__total strong {
  color: var(--color-accent);
  font-size: var(--text-xl);
}

.cart-sidebar__clear {
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: center;
  transition: color var(--transition-fast);
}

.cart-sidebar__clear:hover {
  color: var(--color-error);
}

/* Cart item in sidebar */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.06);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 700;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cart-item__remove {
  color: var(--color-text-light);
  padding: 4px;
  transition: color var(--transition-fast);
}

.cart-item__remove:hover {
  color: var(--color-error);
}

/* --- Checkout --- */
.checkout-empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.checkout-empty h2 {
  margin-bottom: var(--space-sm);
}

.checkout-empty p {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.checkout-items {
  margin-bottom: var(--space-xl);
}

.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-bg-warm);
  flex-shrink: 0;
}

.checkout-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item__info {
  min-width: 0;
}

.checkout-item__name {
  display: block;
  font-weight: 700;
  color: var(--color-text-dark);
  font-size: var(--text-sm);
}

.checkout-item__unit {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.checkout-item__total {
  text-align: right;
  color: var(--color-accent);
  font-size: var(--text-base);
  white-space: nowrap;
}

/* Combos section */
.checkout-combos {
  background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.06), rgba(var(--color-accent-rgb), 0.08));
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.checkout-combos__title {
  font-size: var(--text-base);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.checkout-combo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.checkout-combo + .checkout-combo {
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.15);
}

.checkout-combo__name {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-dark);
}

.checkout-combo__desc {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.checkout-combo__savings {
  font-weight: 700;
  color: var(--color-success);
  white-space: nowrap;
}

/* Combo tip */
.checkout-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.checkout-tip svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

/* Totals */
.checkout-totals {
  border-top: 2px solid rgba(var(--color-primary-rgb), 0.1);
  padding-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: var(--text-base);
}

.checkout-totals__row--discount {
  color: var(--color-success);
}

.checkout-totals__row--total {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
  margin-top: var(--space-sm);
  font-size: var(--text-xl);
}

.checkout-totals__row--total strong {
  color: var(--color-accent);
}

/* Form */
.checkout-form {
  margin-bottom: var(--space-xl);
}

.checkout-form__hint {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.form-input--error {
  border-color: var(--color-error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

/* Actions */
.checkout-actions {
  margin-bottom: var(--space-xl);
}

/* Note */
.checkout-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.08);
}

.checkout-note p {
  margin-bottom: 0;
}

/* Responsive: checkout item on mobile */
@media (max-width: 767px) {
  .checkout-item {
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-sm) var(--space-md);
  }

  .checkout-item__name {
    font-size: var(--text-base);
  }

  .checkout-item__controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- Page Hero (support pages) --- */
.page-hero {
  padding-bottom: var(--space-xl);
}

.page-hero__subtitle {
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

.text-lg {
  font-size: var(--text-lg);
}

/* --- Method Steps (Cómo calentar) --- */
.method {
  margin-bottom: var(--space-2xl);
}

.method__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-warm);
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.steps-list {
  margin-top: var(--space-xl);
}

.steps-list__item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
}

.steps-list__item:last-child {
  border-bottom: none;
}

.steps-list__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.steps-list__content h3 {
  margin-bottom: var(--space-xs);
}

.steps-list__content p {
  margin-bottom: 0;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* Tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  text-align: left;
}

.tip-card {
  padding: var(--space-lg);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
}

.tip-card svg {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.tip-card h4 {
  margin-bottom: var(--space-sm);
}

.tip-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Info Cards (Seguridad) --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.info-card {
  padding: var(--space-xl);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-white);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.info-card h3 {
  margin-bottom: var(--space-sm);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- FAQ (Seguridad) --- */
.faq-list {
  margin-top: var(--space-2xl);
}

.faq-item {
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.faq-item__question {
  padding: var(--space-lg) 0;
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-accent);
  font-weight: 300;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 0 var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cert-list li {
  background: var(--color-bg-warm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  line-height: 1.6;
}

.cert-list li a {
  display: inline-block;
  margin-top: var(--space-xs);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--text-sm);
}

/* --- Delivery Map (Zonas) --- */
.delivery-map {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

.zone-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.zone-info__card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
}

.zone-info__card svg {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

.zone-info__card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.zone-info__card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- About Page (Nosotros) --- */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.about-feature {
  text-align: center;
  padding: var(--space-lg);
}

.about-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-white);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.about-feature h3 {
  margin-bottom: var(--space-sm);
}

.about-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Benefit list */
.benefit-list {
  margin-top: var(--space-xl);
}

.benefit-list__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
  font-size: var(--text-base);
  line-height: 1.6;
}

.benefit-list__item:last-child {
  border-bottom: none;
}

.benefit-list__check {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

/* Promise quote */
.promise-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-md) 0;
  background: var(--color-bg-warm);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* --- Product Detail --- */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.pd-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-warm);
}

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

.pd-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3D5A2E 0%, #4A6741 50%, #2D4A1E 100%);
}

.pd-image--placeholder::after {
  content: attr(data-name);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: var(--space-2xl);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.pd-image--placeholder img {
  display: none;
}

.pd-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.pd-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.pd-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.pd-description {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.pd-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.pd-allergens strong {
  font-size: var(--text-sm);
  margin-right: var(--space-xs);
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.qty-selector--lg .qty-selector__btn {
  width: 44px;
  height: 44px;
  font-size: var(--text-xl);
}

.qty-selector--lg .qty-selector__value {
  width: 48px;
  font-size: var(--text-lg);
}

.pd-whatsapp {
  margin-bottom: var(--space-2xl);
}

.pd-nutrition {
  padding: var(--space-xl);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-xl);
}

.pd-nutrition h3 {
  margin-bottom: var(--space-xs);
}

.pd-nutrition__note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.pd-heating {
  padding: var(--space-xl);
  background: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
}

.pd-heating h3 {
  margin-bottom: var(--space-md);
}

.pd-heating__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.pd-heating__method strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.pd-heating__method p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

.pd-heating__link {
  font-size: var(--text-sm);
  font-weight: 700;
}

@media (min-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pd-image {
    aspect-ratio: 4 / 3;
    position: sticky;
    top: 80px;
  }
}

/* --- CTA Final --- */
.cta-final {
  background-color: var(--color-bg-warm);
}

/* --- Footer links --- */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links li {
  font-size: var(--text-sm);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

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

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

  .header__nav {
    display: flex;
    gap: var(--space-xl);
  }

  .header__nav a {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .header__nav a:hover {
    color: var(--color-secondary);
  }

  .header__nav a.is-active {
    color: var(--color-secondary);
  }

  .header__menu-btn {
    display: none;
  }

  .cart-sidebar {
    display: flex;
  }

  .cart-float {
    display: none !important;
  }

  .hero__content {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

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

  .steps {
    flex-direction: row;
    justify-content: center;
  }

  .step__arrow {
    transform: rotate(0deg);
    margin-top: var(--space-xl);
  }

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

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }

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

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

  .hero {
    min-height: 80vh;
  }

  .benefits__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- Micro-interactions --- */

/* Btn press effect */
.btn:active {
  transform: scale(0.96);
}

/* Qty button tap feedback */
.qty-selector__btn:active {
  transform: scale(0.9);
  transition: transform 80ms ease;
}

/* WhatsApp float pulse on idle */
.whatsapp-float {
  animation: wa-pulse 3s ease-in-out infinite;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5); }
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1);
}

/* Cart float slide-in */
.cart-float {
  transform: translateY(100%);
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}

.cart-float.has-items {
  transform: translateY(0);
  opacity: 1;
}

/* Promo card hover */
.promo-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* Benefit card entrance */
.benefit {
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.benefit:hover {
  transform: translateY(-4px);
}

.benefit:hover .benefit__icon {
  transform: scale(1.1);
  transition: transform var(--transition-base);
}

/* Category card hover */
.category-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* Info card hover (seguridad page) */
.info-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* Step number bounce on hover */
.step:hover .step__number {
  transform: scale(1.15);
  transition: transform var(--transition-base);
}

/* Smooth checkout item removal */
.checkout-item {
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* Cart sidebar item hover */
.cart-item {
  transition: background var(--transition-fast);
}

.cart-item:hover {
  background: rgba(var(--color-primary-rgb), 0.04);
}
