:root {
  --bg: #f8f5f1;
  --surface: #ffffff;
  --text: #2b2929;
  --muted: #777171;
  --brand: #b97883;
  --brand-dark: #985e68;
  --accent: #a69aad;
  --border: #e5deda;
  --success: #6d8b72;
  --shadow: 0 14px 32px rgba(43, 41, 41, 0.08);
  color-scheme: light;
  font-family: Inter, Manrope, "DM Sans", Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}
button, input, select, a { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled, .disabled { cursor: not-allowed; opacity: .55; }
img { display: block; max-width: 100%; }
main { min-height: 60vh; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 16px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 340px) minmax(430px, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(16px, 4vw, 42px);
  background: rgba(248, 245, 241, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand-logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}
.brand-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-height: 64px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.main-nav { grid-column: 3; }
.search-box { grid-column: 2; }
.header-actions { grid-column: 4; }
.main-nav button, .mobile-menu button, .footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 7px;
  white-space: nowrap;
}
.main-nav button:hover, .footer button:hover { color: var(--brand-dark); }
.search-box input, .select-field select, .sort-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  outline-color: var(--brand);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ghost, .text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.cart-pill, .whatsapp-link, .primary, .secondary, .add-button, .icon-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.cart-pill {
  background: var(--surface);
}
.cart-pill strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.cart-pill small { color: var(--muted); }
.whatsapp-link, .primary, .add-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.whatsapp-link:hover, .primary:hover, .add-button:hover { background: var(--brand-dark); }
.secondary {
  background: var(--surface);
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px) clamp(16px, 5vw, 70px) 30px;
}
.hero__copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}
.hero__copy p {
  color: var(--muted);
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
}
.eyebrow {
  color: var(--brand-dark) !important;
  font-weight: 700;
}
.discount-list {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.discount-list li {
  display: grid;
  grid-template-columns: minmax(118px, auto) 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
  font-size: 16px;
}
.discount-list span {
  font-weight: 750;
  color: var(--brand-dark);
}
.discount-list strong {
  font-weight: 650;
}
.discount-list span::after {
  content: " →";
  color: var(--muted);
  font-weight: 500;
}
.hero-note {
  max-width: 580px;
  margin: 0;
  font-size: 15px !important;
}
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.section, .page, .catalog-layout, .product-detail {
  padding: 34px clamp(16px, 5vw, 70px);
}
.section-heading, .catalog-toolbar, .filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(24px, 3vw, 34px); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  min-height: 158px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.category-card:hover, .product-card:hover { transform: translateY(-2px); border-color: rgba(185, 120, 131, .45); }
.category-art {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fff, #f2e8e4 40%, var(--brand) 41%, var(--accent));
  margin-bottom: 16px;
}
.category-card small { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.product-image {
  position: relative;
  width: 100%;
  border: 0;
  background: #f3eeea;
  padding: 0;
}
.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badges b {
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 12px;
}
.product-info { padding: 13px; }
.product-name {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 750;
  min-height: 40px;
}
.code {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
  margin: 7px 0;
}
.product-info p {
  min-height: 38px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.price-row strong, .detail-price { color: var(--brand-dark); font-size: 22px; }
.price-row span { color: var(--muted); font-size: 12px; }
.stock { display: inline-block; margin: 8px 0; font-size: 13px; }
.stock.ok { color: var(--success); }
.stock.out { color: #9b4d58; }
.buy-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: center;
}
.quantity {
  display: grid;
  grid-template-columns: 34px minmax(36px, 1fr) 34px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.quantity button, .quantity input {
  border: 0;
  background: transparent;
  text-align: center;
  width: 100%;
}
.quantity button { background: #f7f2ef; font-size: 18px; }
.quantity input { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.add-button { min-height: 40px; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.benefit, .steps div, .info-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.benefit span {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 9px;
}
.steps { display: grid; gap: 10px; }
.steps div { display: flex; gap: 14px; align-items: center; }
.steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f4e7e5;
  color: var(--brand-dark);
  border-radius: 50%;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.select-field, .sort-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.filter-note { color: var(--muted); font-size: 13px; }
.catalog-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
}
.catalog-toolbar h1 { margin-bottom: 4px; }
.catalog-toolbar p { color: var(--muted); margin-bottom: 0; }
.toolbar-actions { display: flex; align-items: end; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chips button {
  border: 1px solid #e4cad0;
  background: #fbf4f5;
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 7px 10px;
}

.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
}
.narrow { max-width: 1180px; margin: 0 auto; }
.cart-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
.cart-lines { display: grid; gap: 10px; }
.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr 126px 100px 34px;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.cart-line img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-line span, .cart-line small { display: block; color: var(--muted); }
.remove, .modal-close, .drawer-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.summary-box {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.summary-box > div:not(.minimum) {
  display: flex;
  justify-content: space-between;
}
.minimum p { color: var(--muted); margin: 8px 0 0; }
.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe7e2;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--success);
}
.checkout { width: 100%; }
.danger { color: #9b4d58; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
}
.detail-gallery, .detail-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.detail-info dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-info dl div { border-top: 1px solid var(--border); padding-top: 10px; }
.detail-info dt { color: var(--muted); font-size: 13px; }
.detail-info dd { margin: 4px 0 0; }
.detail-buy { max-width: 420px; margin: 18px 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 22px;
  padding: 34px clamp(16px, 5vw, 70px);
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer p { color: var(--muted); margin: 7px 0; }
.footer button { display: block; padding-left: 0; }
.footer small { grid-column: 1 / -1; color: var(--muted); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 41, 41, .32);
  z-index: 50;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 60;
  width: min(440px, 92vw);
  overflow: auto;
  background: var(--bg);
  box-shadow: -16px 0 34px rgba(43,41,41,.16);
  padding: 18px;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.drawer .cart-content, .compact-cart {
  grid-template-columns: 1fr;
}
.drawer .cart-line, .compact-cart .cart-line {
  grid-template-columns: 56px 1fr 112px 34px;
}
.drawer .cart-line > strong, .compact-cart .cart-line > strong { display: none; }
.drawer .summary-box, .compact-cart .summary-box { position: static; }
.drawer .filters {
  position: static;
  padding: 0;
  border: 0;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  padding: 22px;
  background: rgba(43,41,41,.38);
}
.modal-card {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 10px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-only { display: none; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .category-grid, .product-grid, .product-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) and (min-width: 1121px) {
  .header-actions .ghost { display: none; }
  .main-nav { display: none; }
  .site-header { grid-template-columns: auto minmax(280px, 1fr) auto; }
  .search-box { grid-column: 2; }
  .header-actions { grid-column: 3; }
}

@media (max-width: 820px) {
  .announcement { justify-content: center; }
  .announcement__secondary { display: none; }
  .site-header {
    gap: 10px;
    padding: 10px 12px;
    min-height: 68px;
  }
  .brand-logo { justify-self: start; }
  .brand-logo img {
    width: auto;
    height: 52px;
    max-height: 58px;
  }
  .header-actions { justify-self: end; }
  .whatsapp-link { display: none; }
  .cart-pill small, .cart-pill span { display: none; }
  .cart-pill {
    width: 44px;
    padding: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .hero img { aspect-ratio: 4 / 3; }
  .hero__copy h1 { font-size: 42px; }
  .section, .page, .catalog-layout, .product-detail { padding: 24px 12px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .product-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-info { padding: 10px; }
  .product-name { min-height: 46px; }
  .buy-row { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-layout > .filters { display: none; }
  .catalog-toolbar {
    display: grid;
    gap: 12px;
  }
  .toolbar-actions { align-items: stretch; justify-content: space-between; }
  .sort-field { flex: 1; }
  .split-section, .cart-content, .product-detail, .info-grid, .footer {
    grid-template-columns: 1fr;
  }
  .benefit-grid { grid-template-columns: 1fr; }
  .cart-line {
    grid-template-columns: 56px 1fr 104px 34px;
    gap: 8px;
  }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line > strong { display: none; }
  .summary-box { position: static; }
  .footer { padding-bottom: 84px; }
  .floating-cart {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 420px) {
  .product-grid, .product-grid.compact { gap: 8px; }
  .price-row { display: block; }
  .quantity { grid-template-columns: 32px minmax(34px, 1fr) 32px; }
  .product-info p { font-size: 13px; }
  .category-card { min-height: 142px; }
}

@media (min-width: 1280px) {
  .brand-logo img { height: 64px; }
}

@media (max-width: 359px) {
  .brand-logo img {
    height: 44px;
  }
}
