:root {
  --sand-50: #fcf8f1;
  --sand-100: #f2e6d1;
  --olive-700: #5f6540;
  --sea-600: #496f6d;
  --ink-700: #2f3f3b;
  --ink-500: #5c6b67;
  --line: rgba(95, 101, 64, 0.16);
  --shadow: 0 20px 60px rgba(51, 63, 48, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --content-width: 1320px;
  --whatsapp: #25d366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-700);
  background:
    radial-gradient(circle at top left, rgba(126, 167, 161, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(123, 131, 83, 0.12), transparent 22%),
    linear-gradient(180deg, #fcfaf6 0%, #f6eee0 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(252, 248, 241, 0.52), rgba(252, 248, 241, 0.52)),
    url("./assets/fondo.png"),
    radial-gradient(rgba(79, 102, 95, 0.04) 0.6px, transparent 0.6px);
  background-position: center, center 34px, 0 0;
  background-repeat: no-repeat, repeat, repeat;
  background-size: auto, min(760px, 88vw), 12px 12px;
}

.page-grain::before,
.page-grain::after {
  content: "";
  display: none;
}

.topbar,
.site-header,
.hero,
.catalog-section,
.contact-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar__inner,
.site-header__inner,
.hero,
.catalog-section,
.contact-section,
.site-footer {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid rgba(73, 111, 109, 0.12);
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.topbar__inner p {
  margin: 0;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__contact a {
  color: var(--sea-600);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(95, 101, 64, 0.12);
  background: rgba(242, 230, 209, 0.94);
  backdrop-filter: blur(18px);
  transition: transform 260ms ease, box-shadow 220ms ease, background-color 220ms ease;
  will-change: transform;
}

.site-header.is-hidden {
  pointer-events: none;
  transform: translateY(calc(-100% - 2px));
}

.site-header.is-scrolled {
  background: rgba(242, 230, 209, 0.98);
  box-shadow: 0 18px 42px rgba(72, 76, 45, 0.14);
}

.site-header__inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand__mark {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 30px;
  flex-shrink: 0;
  background: transparent;
  color: transparent;
}

.brand__label {
  color: var(--ink-700);
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--sea-600);
}

.site-header__actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
}

.button,
.icon-button {
  border: 0;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--olive-700), #899568);
  box-shadow: 0 16px 34px rgba(95, 101, 64, 0.28);
}

.button--secondary {
  color: white;
  background: linear-gradient(135deg, var(--sea-600), #5f8e8a);
}

.button--ghost {
  color: var(--sea-600);
  background: rgba(73, 111, 109, 0.1);
}

.button--cart {
  color: white;
  background: var(--ink-700);
}

.button--cart span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.floating-cart {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 31;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-700);
  color: white;
  box-shadow: 0 18px 40px rgba(43, 54, 47, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px) scale(0.94);
  transition: opacity 180ms ease, transform 220ms ease, box-shadow 180ms ease;
}

.floating-cart.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-cart:hover,
.floating-cart:focus-visible {
  box-shadow: 0 22px 48px rgba(43, 54, 47, 0.32);
  transform: translateY(1px) scale(1.02);
}

.floating-cart svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.floating-cart span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 2px solid var(--sand-100);
  border-radius: 999px;
  background: var(--sea-600);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.hero {
  padding: 34px 0 24px;
}

.hero__copy {
  position: relative;
  max-width: 1180px;
  padding: 52px 54px 56px;
  overflow: hidden;
  border: 1px solid rgba(95, 101, 64, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(126, 167, 161, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(123, 131, 83, 0.1), transparent 22%),
    rgba(255, 252, 246, 0.8);
  box-shadow: var(--shadow);
}

.hero__copy::before,
.hero__copy::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero__copy::before {
  width: 220px;
  height: 220px;
  top: -92px;
  right: -54px;
  background: radial-gradient(circle, rgba(126, 167, 161, 0.2), rgba(126, 167, 161, 0));
}

.hero__copy::after {
  width: 180px;
  height: 180px;
  left: -72px;
  bottom: -84px;
  background: radial-gradient(circle, rgba(123, 131, 83, 0.14), rgba(123, 131, 83, 0));
}

.hero h1,
.section-heading h2,
.catalog-toolbar h2,
.contact-card h2,
.cart-drawer h2,
.product-modal__content h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.9rem, 4.7vw, 5.3rem);
  line-height: 0.95;
  color: var(--olive-700);
  max-width: 17ch;
}

.hero__lead,
.section-heading p,
.contact-card p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.7;
}

.hero__lead {
  position: relative;
  z-index: 1;
  max-width: 580px;
  font-size: 1.08rem;
}

.sidebar-card,
.product-card,
.contact-card,
.cart-drawer,
.product-modal {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.84);
  box-shadow: var(--shadow);
}

.catalog-section,
.contact-section {
  padding: 54px 0 26px;
}

.section-heading {
  max-width: 820px;
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 3vw, 3.8rem);
  color: var(--olive-700);
  line-height: 1;
}

.catalog-disclaimer {
  width: fit-content;
  max-width: 720px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(99, 111, 59, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 242, 0.82);
  color: var(--olive-700);
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-chip,
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-chip {
  border: 1px solid rgba(73, 111, 109, 0.18);
  background: rgba(73, 111, 109, 0.09);
  color: var(--sea-600);
}

.brand-chip.is-active {
  border-color: rgba(73, 111, 109, 0.36);
  background: rgba(73, 111, 109, 0.18);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 126px;
}

.catalog-main {
  min-width: 0;
}

.sidebar-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-card--accent {
  color: white;
  background: linear-gradient(180deg, rgba(73, 111, 109, 0.98), rgba(95, 142, 138, 0.96));
}

.sidebar-card--accent p {
  color: rgba(255, 255, 255, 0.8);
  margin: 12px 0 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field span {
  color: var(--ink-500);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(95, 101, 64, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-700);
}

.field textarea {
  resize: vertical;
}

.address-suggestions {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(95, 101, 64, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(72, 76, 45, 0.12);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestions button {
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(242, 230, 209, 0.72);
  color: var(--ink-700);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: rgba(73, 111, 109, 0.12);
  transform: translateX(2px);
}

.address-suggestions__empty,
.address-status {
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.4;
}

.address-status[data-tone="success"] {
  color: var(--sea-600);
  font-weight: 700;
}

.address-status[data-tone="warning"] {
  color: #9b5b23;
  font-weight: 700;
}

.field--full {
  grid-column: 1 / -1;
}

.category-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.category-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(95, 101, 64, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-700);
  transition: border-color 160ms ease, background 160ms ease;
}

.category-button span:last-child {
  color: var(--sea-600);
  font-weight: 700;
}

.category-button.is-active {
  border-color: rgba(73, 111, 109, 0.36);
  background: rgba(73, 111, 109, 0.12);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(95, 101, 64, 0.12);
}

.catalog-toolbar h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  color: var(--olive-700);
}

.catalog-summary {
  display: grid;
  gap: 4px;
  color: var(--ink-500);
  text-align: right;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-pill {
  background: rgba(73, 111, 109, 0.1);
  color: var(--sea-600);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(95, 101, 64, 0.1);
  background: #fffefb;
}

.product-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__fallback {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed rgba(231, 184, 203, 0.9);
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--ink-500);
  text-align: center;
}

.product-card__fallback strong {
  font-size: 0.92rem;
  color: var(--ink-700);
}

.product-card__fallback span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.product-card__meta span:last-child {
  color: var(--sea-600);
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.6;
  min-height: 4.8em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__variant {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(123, 131, 83, 0.1);
  color: var(--olive-700);
  font-size: 0.84rem;
  font-weight: 700;
}

.price-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  margin-top: auto;
}

.price-block strong {
  font-size: 1.48rem;
  color: var(--olive-700);
}

.price-block small {
  color: var(--ink-500);
  line-height: 1.35;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.product-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card__actions button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-card__actions button:first-child {
  color: var(--sea-600);
  background: rgba(73, 111, 109, 0.1);
  border: 1px solid rgba(73, 111, 109, 0.18);
}

.product-card__actions button:last-child {
  color: white;
  background: var(--ink-700);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed rgba(95, 101, 64, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.74);
  text-align: center;
}

.empty-state h3 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--olive-700);
}

.empty-state p {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--ink-500);
  line-height: 1.65;
}

.contact-section {
  padding: 70px 0 78px;
}

.contact-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.contact-card h2 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--olive-700);
  line-height: 1;
}

.contact-card--single {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-card__copy {
  max-width: 58ch;
}

.contact-card__details {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(95, 101, 64, 0.12);
  border-radius: 26px;
  background: rgba(73, 111, 109, 0.08);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(95, 101, 64, 0.1);
}

.contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list strong {
  color: var(--sea-600);
}

.contact-list a {
  color: var(--ink-700);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.9fr;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(95, 101, 64, 0.12);
  color: var(--ink-500);
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-700);
  font-size: 1.1rem;
}

.site-footer__title {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--sea-600);
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.cart-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1080px, calc(100vw - 32px));
  height: min(840px, calc(100vh - 24px));
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 30px;
  padding: 24px;
  background: rgba(252, 248, 241, 0.98);
  box-shadow: 0 28px 90px rgba(47, 63, 59, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 180ms ease, transform 220ms ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cart-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(95, 101, 64, 0.12);
}

.cart-drawer__body {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding-top: 16px;
}

.cart-success {
  grid-row: 1;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(76, 139, 97, 0.12);
  color: #2f6b47;
  font-weight: 700;
}

.cart-panel,
.checkout-form {
  min-height: 0;
}

.cart-panel {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(95, 101, 64, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.cart-panel__heading {
  display: grid;
  gap: 4px;
}

.cart-panel__heading strong,
.checkout-form__header strong {
  color: var(--olive-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.cart-items {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
}

.cart-item,
.cart-empty {
  padding: 16px;
  border: 1px solid rgba(95, 101, 64, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.cart-item__top {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
}

.cart-item__top img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid rgba(95, 101, 64, 0.08);
  border-radius: 12px;
  background: #fffefb;
}

.cart-item__top strong {
  display: block;
  margin-bottom: 4px;
}

.cart-item__meta {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button,
.remove-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(73, 111, 109, 0.1);
  color: var(--sea-600);
  font-weight: 800;
}

.remove-button {
  min-width: auto;
}

.cart-summary {
  padding: 16px;
  border-radius: 20px;
  background: rgba(73, 111, 109, 0.08);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cart-summary strong {
  color: var(--olive-700);
}

.cart-summary p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.55;
}

.checkout-form {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(95, 101, 64, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.checkout-form__header {
  display: grid;
  gap: 6px;
}

.checkout-fields {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
}

.icon-button {
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(38, 55, 49, 0.38);
  backdrop-filter: blur(4px);
}

.product-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 41;
  width: min(1040px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(252, 248, 242, 0.99);
  transform: translate(-50%, -50%);
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.product-modal__image {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  padding: 36px;
  background: #fffefb;
}

.product-modal__image img {
  width: auto;
  max-width: 100%;
  max-height: min(520px, calc(100vh - 128px));
  margin: auto;
  object-fit: contain;
}

.product-modal__content {
  overflow: auto;
  padding: 34px 30px 30px;
}

.product-modal__content h3 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--olive-700);
  line-height: 1;
}

.product-modal__content p {
  color: var(--ink-500);
  line-height: 1.7;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.detail-meta span,
.detail-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(73, 111, 109, 0.1);
  color: var(--sea-600);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-blocks {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(95, 101, 64, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.detail-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sea-600);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-500);
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.detail-actions button {
  flex: 1;
}

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
  font-weight: 800;
}

.floating-wa svg {
  width: 24px;
  height: 24px;
}

.floating-wa span {
  display: none;
}

@media (max-width: 1180px) {
  .catalog-layout,
  .contact-card--single {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

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

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

  .product-modal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar__inner {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    text-align: center;
  }

  .topbar__inner p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .topbar__contact {
    gap: 8px;
    font-size: 0.84rem;
  }

  .topbar__contact span {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 96px;
    gap: 12px;
  }

  .brand {
    gap: 12px;
    min-width: 0;
  }

  .brand__mark {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }

  .brand__label {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .button--cart {
    min-width: 92px;
    padding: 0 16px;
  }

  .site-header__actions .button--ghost {
    display: none;
  }

  .hero,
  .catalog-section,
  .contact-section {
    padding-top: 38px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__copy {
    padding: 38px 24px 40px;
    border-radius: 30px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.25rem);
    line-height: 0.92;
    max-width: 12ch;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .product-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-card__details {
    padding: 18px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: start;
  }

  .catalog-summary {
    text-align: left;
  }

  .detail-actions {
    flex-direction: column;
  }

  .product-card__body {
    padding: 16px;
  }

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

  .product-card__actions button {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .cart-drawer {
    top: 50%;
    left: 50%;
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
    padding: 18px;
    overflow: hidden;
    border-radius: 24px;
  }

  .cart-drawer__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow: auto;
    padding-right: 4px;
  }

  .cart-success,
  .cart-panel,
  .checkout-form {
    grid-column: 1;
  }

  .cart-success {
    grid-row: 1;
  }

  .cart-panel {
    grid-row: 2;
    max-height: none;
  }

  .checkout-form {
    grid-row: 3;
  }

  .cart-items {
    max-height: 300px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .product-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 26px;
  }

  .product-modal__image {
    padding: 18px;
  }

  .product-modal__image img {
    width: auto;
    max-width: 100%;
    max-height: 220px;
  }

  .product-modal__content {
    padding: 22px 18px 20px;
  }

  .product-modal__content h3 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .detail-meta,
  .detail-tags {
    gap: 8px;
  }

  .detail-meta span,
  .detail-tags span {
    font-size: 0.84rem;
  }

  .detail-block {
    padding: 14px;
  }

  .floating-wa {
    right: 14px;
    bottom: 14px;
  }
}
