:root {
  --brand: #8f1d2c;
  --brand-dark: #6e1320;
  --ink: #292727;
  --muted: #615d5d;
  --line: #dfd8d4;
  --paper: #fff;
  --soft: #f8f3f0;
  --focus: #005fcc;
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #daf1f7 0, #f3fafb 38rem, #fff 100%);
  line-height: 1.6;
}

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

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  border-bottom: 1px solid rgba(110, 19, 32, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 22px;
}

.brand {
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #cdbfba;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.site-nav,
.dropdown-menu,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > li > a,
.cart-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--ink);
  border-radius: 10px;
  text-decoration: none;
}

.site-nav > li > a:hover,
.site-nav > li > a:focus-visible {
  background: var(--soft);
}

.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 2px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(41, 39, 39, 0.14);
}

.dropdown-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--soft);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.cart-link {
  margin-left: auto;
  border: 1px solid #cdbfba;
  background: var(--paper);
  white-space: nowrap;
}

.main-content {
  min-height: 55vh;
  padding-block: 42px 64px;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  margin: 32px 0 14px;
}

.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.panel,
.hero-copy,
.hero-media,
.category-card,
.product-card,
.order-card,
.contact-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(70, 45, 38, 0.05);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-media,
.panel,
.content-card {
  padding: clamp(22px, 4vw, 38px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 14px;
  object-fit: cover;
}

.button-row,
.cta-buttons,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.btn-main,
.btn-secondary,
.btn-whatsapp {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button,
.btn-main {
  color: #fff;
  background: var(--brand);
}

.button:hover,
.btn-main:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #fff;
}

.btn-whatsapp {
  border-color: #166b38;
  color: #fff;
  background: #187b41;
}

.section-block {
  margin-top: 34px;
}

.category-grid,
.products-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

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

.category-card {
  overflow: hidden;
}

.category-card a {
  display: block;
  height: 100%;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  object-fit: cover;
}

.category-card h3 {
  margin: 16px 0 6px;
}

.gallery-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 2px 18px;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

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

.category-intro {
  max-width: 78ch;
}

.category-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.category-switcher a {
  min-height: 44px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.b2b-notice,
.b2b-banner {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
}

.b2b-notice {
  border: 2px solid var(--brand);
  background: #fff8f7;
}

.b2b-banner {
  color: #fff;
  background: var(--brand-dark);
}

.b2b-banner h2 {
  margin-top: 0;
}

.b2b-banner .btn-main {
  border-color: #fff;
  color: var(--brand-dark);
  background: #fff;
}

.product-card {
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(70, 45, 38, 0.13);
}

.product-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.product-card__link:focus-visible {
  outline-offset: -4px;
}

.product-card picture,
.product-card img {
  width: 100%;
}

.product-card img {
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  object-fit: cover;
}

.product-card h2 {
  margin: 16px 0 10px;
  font-size: 1.25rem;
}

.price {
  margin: auto 0 8px;
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.retail-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #5d1a23;
  background: #f6dfe2;
  font-size: 0.86rem;
  font-weight: 700;
}

.product-cta {
  margin-top: 6px;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 26px;
  align-items: start;
}

.product-detail,
.order-card,
.contact-card {
  padding: clamp(20px, 4vw, 30px);
}

.product-detail__image {
  width: 100%;
  height: auto;
  max-height: 700px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--soft);
}

.order-card {
  position: sticky;
  top: 20px;
}

.business-price-link {
  display: block;
  margin: 0 0 22px;
  font-weight: 700;
}

.quantity-field {
  max-width: 110px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #a9a19d;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

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

.map iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius);
}

.cart-item {
  margin-bottom: 16px;
  padding: 22px;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.cart-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.cart-actions input {
  width: 100px;
  margin: 0;
}

.message,
.error-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
}

.message {
  color: #155b30;
  background: #e8f7ec;
}

.error-message {
  color: #7b2018;
  background: #fce7e2;
}

.site-footer {
  padding-block: 42px;
  color: #fff;
  background: #302627;
}

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

.site-footer p {
  color: #e7dddd;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .header-inner nav {
    order: 3;
    width: 100%;
  }

  .nav-enhanced .nav-toggle {
    display: inline-flex;
  }

  .nav-enhanced .header-inner nav {
    display: none;
  }

  .nav-enhanced .header-inner nav.is-open {
    display: block;
  }

  .site-nav {
    flex-wrap: wrap;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .main-content {
    padding-block: 28px 44px;
  }

  .brand {
    margin-right: auto;
  }

  .cart-link {
    margin-left: 0;
  }

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

  .site-nav > li > a {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-item.dropdown {
    grid-column: 1 / -1;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .dropdown-menu a {
    justify-content: center;
    padding-inline: 6px;
    font-size: 0.88rem;
    text-align: center;
  }

  .hero,
  .product-layout,
  .category-grid,
  .products-grid,
  .contact-grid,
  .footer-grid,
  .category-switcher {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 260px;
  }

  .order-card {
    position: static;
  }

  .button-row,
  .cta-buttons,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .btn-main,
  .btn-secondary,
  .btn-whatsapp,
  .b2b-banner .btn-main {
    width: 100%;
  }

  .carousel-item img {
    width: 210px;
    height: 210px;
  }

  .cart-actions,
  .cart-actions form {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-actions input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
