:root {
  --bg: #b88732;
  --surface: #cfa247;
  --ink: #8e7425;
  --muted: #937b56;
  --primary: #c6954a;
  --secondary: #2e9b4b;
  --accent: #f5b971;
  --line: hsl(51, 46%, 59%);
  --radius: 16px;
  --shadow: 0 12px 25px rgba(57, 29, 8, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, #ffe6c9 0, transparent 35%),
    radial-gradient(circle at 85% 20%, #d9f0de 0, transparent 35%), var(--bg);
  line-height: 1.5;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.35rem 1rem;
  background: rgba(255, 248, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(57, 29, 8, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3b22f;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.brand-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
}

.menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0.8rem;
  width: min(220px, calc(100vw - 1.6rem));
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(47, 25, 10, 0.14);
}

.menu[hidden] {
  display: none !important;
}

.menu a {
  display: block;
  padding: 0.4rem 0.25rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: #111;
}

.hero {
  padding: 1rem 1rem 1.4rem;
  margin: 0.75rem 1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 8.5vw, 3.4rem);
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 6.8vw, 2.5rem);
}

.hero-copy,
.section-copy {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.section {
  margin: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #f2f9ff 0%, #dceeff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#about {
  background: linear-gradient(180deg, #eef8ff 0%, #9eb7d2 100%);
}

#featured-products {
  background: linear-gradient(180deg, #f0f9ff 0%, #d6eaff 100%);
}

#location {
  background: linear-gradient(180deg, #eef8ff 0%, #d3e8ff 100%);
}

#contact {
  background: linear-gradient(180deg, #f1f9ff 0%, #dcecff 100%);
}

.category-grid,
.product-grid,
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.card,
.product-card,
.contact-card {
  padding: 0.9rem;
  border: 2px solid #be1927;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5e6cc 59%, #c6954a 100%);
}

.carousel {
  position: relative;
  margin-bottom: 0.7rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #c6def4;
  color: #111;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.carousel-prev {
  left: 0.4rem;
}

.carousel-next {
  right: 0.4rem;
}

.carousel-counter {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  z-index: 10;
}

.location-message {
  margin-top: 0.7rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf7ff 0%, #dfeeff 100%);
  border: 1px solid #1784e4;
}

a {
  color: var(--secondary);
  font-weight: 700;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: currentColor;
}

#tiktokLink .social-icon {
  color: #111;
}

#whatsappLink .social-icon {
  color: #25d366;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin: 0 1rem 1rem;
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 248, 239, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.site-footer p {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-modal[hidden] {
  display: none;
}

.image-modal-content {
  width: min(95vw, 920px);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
}

.image-modal-close {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-frame {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: min(74vh, 620px);
  display: grid;
  place-items: center;
}

.image-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.image-modal-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.zoom-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 700px) {
  body {
    padding-top: 0;
  }

  .top-nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    border-radius: 0;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    position: static;
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .menu a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--ink);
  }

  .menu a:hover {
    background: rgba(198, 149, 74, 0.12);
    color: #6d5418;
  }

  .hero,
  .section,
  .site-footer {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .product-image-slot {
    min-height: 150px;
  }

  .carousel-images {
    height: 240px;
  }

  .image-modal-frame {
    height: min(78vh, 700px);
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
  }

  .top-nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(57, 29, 8, 0.12);
  }

  .brand {
    font-size: 2.1rem;
    gap: 0.6rem;
    justify-self: start;
  }

  .brand-badge {
    width: 1.45rem;
    height: 1.45rem;
  }

  .menu {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .menu a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--ink);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .menu a:hover {
    background: rgba(198, 149, 74, 0.12);
    color: #6d5418;
    transform: translateY(-1px);
  }

  .menu[hidden] {
    display: flex !important;
  }

  .hero,
  .section,
  .site-footer {
    max-width: 1200px;
  }

  .hero {
    margin-top: 1.2rem;
    padding: 2.4rem 2.5rem;
    text-align: center;
    border-radius: 32px;
    background:
      radial-gradient(
        circle at top left,
        rgba(255, 229, 195, 0.92),
        transparent 40%
      ),
      radial-gradient(
        circle at bottom right,
        rgba(220, 244, 225, 0.7),
        transparent 35%
      ),
      linear-gradient(
        180deg,
        rgba(255, 251, 244, 0.95),
        rgba(245, 232, 210, 0.95)
      );
    border: 1px solid rgba(163, 126, 59, 0.18);
    box-shadow: 0 20px 44px rgba(57, 29, 8, 0.12);
  }

  .hero-copy {
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    margin-top: 1.1rem;
    padding: 1.4rem;
    border-radius: 28px;
    background: linear-gradient(
      180deg,
      rgba(255, 251, 245, 0.95),
      rgba(244, 232, 210, 0.95)
    );
    box-shadow: 0 18px 40px rgba(57, 29, 8, 0.1);
  }

  .section-copy {
    max-width: 62ch;
  }

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

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

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

  .card,
  .product-card,
  .contact-card {
    padding: 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(140, 112, 64, 0.18);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(251, 243, 229, 0.98)
    );
    box-shadow: 0 14px 32px rgba(57, 29, 8, 0.08);
  }

  .carousel-images {
    height: 280px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .location-message {
    max-width: 680px;
  }
}

@media (min-width: 1440px) {
  .hero,
  .section,
  .site-footer,
  .top-nav {
    max-width: 1320px;
  }

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

  .carousel-images {
    height: 300px;
  }
}
