:root {
  color-scheme: light;
  font-family: 'Inter', sans-serif;
  --bg: #f5ede2;
  --surface: #fff8f0;
  --surface-soft: #f1e3d2;
  --surface-strong: #f2d4b6;
  --text: #3b2f24;
  --muted: #7a664f;
  --accent: #d47015;
  --accent-dark: #7b3f12;
  --border: rgba(90, 53, 24, 0.12);
  --shadow: 0 24px 70px rgba(90, 53, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #fff2e0 0%, #f7e2ce 45%, var(--bg) 100%);
  color: var(--text);
}

img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

button, a {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(252, 231, 204, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fde3c2;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 64px;
  height: auto;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  box-shadow: 0 10px 25px rgba(90, 53, 24, 0.12);
  mix-blend-mode: multiply;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: #fff4e6;
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.cart-count {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(255, 244, 230, 0.98);
  box-shadow: -20px 0 80px rgba(123, 63, 18, 0.16);
  backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: transform 240ms ease;
  z-index: 50;
}

.cart-panel:not(.hidden) {
  transform: translateX(0);
}

.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cart-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.cart-close:hover {
  color: var(--accent-dark);
}

.cart-items {
  flex: 1;
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cart-item {
  background: #f4dac0;
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.cart-item strong {
  display: block;
}

.cart-summary {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.cart-total {
  font-weight: 700;
}

.cart-order {
  width: 100%;
}

.cart-empty {
  color: var(--muted);
  margin-top: 1rem;
}

.product-card .quantity-row,
.product-card .payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.product-card .quantity-row label,
.product-card .payment-row label {
  font-weight: 600;
}

.product-card .product-quantity,
.product-card .payment-select {
  width: 140px;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.product-card .add-to-cart {
  width: 100%;
  margin-bottom: 0.75rem;
}

.whatsapp-cta,
.whatsapp-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.5rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.whatsapp-cta,
.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.whatsapp-cta:hover,
.button:hover,
.whatsapp-link:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
}

.hero-copy h2,
.section-header h2,
.history-section h2,
.contact-section h2,
.about-section h2 {
  font-size: clamp(2.3rem, 3.3vw, 3.6rem);
  margin: 0 0 1rem;
  line-height: 1.02;
}

.hero-copy p,
.section-text p,
.product-card p,
.timeline-item p,
.contact-info p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.quick-info {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-image img {
  box-shadow: var(--shadow);
}

.about-section,
.history-section,
.products-section,
.contact-section {
  padding: 3rem 0;
}

.section-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  align-items: start;
}

.section-text,
.contact-info {
  display: grid;
  gap: 1rem;
}

.section-cards,
.products-grid,
.timeline,
.contact-map {
  display: grid;
  gap: 1.25rem;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-image {
  overflow: hidden;
  border-radius: 28px;
  min-height: 280px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card,
.product-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card h3,
.product-content h3,
.contact-card strong {
  margin: 0 0 0.75rem;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
}

.timeline-year {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 112, 21, 0.16);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-map img {
  height: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 1.75rem 0;
  background: rgba(151, 92, 40, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .products-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy h2,
  .section-header h2 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
