@font-face {
  font-family: "Mel Sans";
  src: url("assets/UbuntuSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #11110f;
  --paper: #f7f4ee;
  --white: #fffefb;
  --line: #d9d4cb;
  --muted: #6e6a63;
  --accent: #1fa463;
  --header-height: 82px;
  --page-x: clamp(18px, 3.4vw, 54px);
  --focus: #1f5eff;
  --ease-out: cubic-bezier(.22, .75, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Mel Sans", "Avenir Next", "Century Gothic", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.announcement {
  height: 30px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.announcement__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 62px);
  height: 100%;
  white-space: nowrap;
}
.announcement__track i { width: 3px; height: 3px; background: white; border-radius: 50%; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 12px var(--page-x);
  border-bottom: 1px solid rgba(17, 17, 15, .1);
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(16px);
}
.brand { width: clamp(154px, 17vw, 224px); }
.brand img { width: 100%; height: auto; }
.cart-trigger, .icon-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
}
.cart-trigger { width: 50px; height: 50px; }
.cart-trigger svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; transition: transform .3s var(--ease-out); }
.cart-trigger:hover svg { transform: translateY(-2px) rotate(-2deg); }
.hero-carousel {
  position: relative;
  margin: clamp(10px, 1.5vw, 22px) var(--page-x) 0;
  overflow: hidden;
  background: #e8e1d6;
  animation: hero-enter .42s var(--ease-out) both;
}
.hero-carousel__track { position: relative; aspect-ratio: 16 / 8.35; max-height: 760px; min-height: 390px; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.05s var(--ease-soft);
  pointer-events: none;
}
.hero-slide.is-active { z-index: 1; opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.015);
  will-change: transform;
}
.hero-slide.is-active img.is-motion-ready { animation: hero-drift 5s var(--ease-soft) both; }
.hero-slide:nth-child(1) { --pan-from-x: -.65%; --pan-to-x: .45%; --pan-y: .2%; }
.hero-slide:nth-child(2) { --pan-from-x: .7%; --pan-to-x: -.4%; --pan-y: -.15%; }
.hero-slide:nth-child(3) { --pan-from-x: -.35%; --pan-to-x: .55%; --pan-y: .3%; }
.hero-slide:nth-child(2) img { object-position: center 32%; }
.hero-slide:nth-child(3) img { object-position: center 30%; }
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(var(--pan-from-x), calc(var(--pan-y) * -1), 0); }
  to { transform: scale(1.015) translate3d(var(--pan-to-x), var(--pan-y), 0); }
}
@keyframes hero-enter { from { transform: translateY(8px) scale(.998); } }
.catalog { padding: clamp(42px, 6vw, 88px) var(--page-x) clamp(64px, 9vw, 128px); }
.catalog-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 44px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.catalog-filters label { display: grid; min-width: 0; gap: 6px; }
.catalog-filters label > span:not(.sr-only) {
  padding-left: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-filters select, .catalog-search {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background-color: var(--white);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.catalog-filters select:hover, .catalog-search:hover { border-color: #aaa49a; background-color: #fff; }
.catalog-filters select:focus-visible, .catalog-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.catalog-filters select {
  min-width: 132px;
  padding: 0 38px 0 14px;
}
.catalog-search {
  display: flex !important;
  flex: 1;
  min-width: 180px;
  align-items: center;
  gap: 8px !important;
  padding: 0 14px;
}
.catalog-search svg { width: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.catalog-search input { width: 100%; border: 0; outline: 0; color: inherit; background: transparent; }
.catalog-search input::placeholder { color: #918c84; }
.reset-filters {
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: inherit;
  background: transparent;
  font-size: 12px;
  transition: opacity .2s ease, transform .2s ease;
}
.reset-filters:hover { transform: translateY(-1px); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 22px); }
.product-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e9e3d9;
}
.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17,17,15,.08);
  transition: border-color .25s ease;
  pointer-events: none;
}
.product-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.product-tile:hover img { transform: scale(1.025); }
.product-tile:hover::after { border-color: rgba(17,17,15,.35); }
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal-item.is-visible { opacity: 1; transform: none; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state button { border: 0; border-bottom: 1px solid; background: transparent; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  padding: 42px var(--page-x);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-brand { width: clamp(150px, 16vw, 210px); }
.footer-brand img { width: 100%; height: auto; }
.footer-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-align: left;
  text-decoration: none;
  transition: transform .28s var(--ease-out), opacity .2s ease;
}
.footer-link:hover { transform: translateY(-2px); }
.footer-link svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; }
.footer-link svg .fill { fill: currentColor; stroke: none; }
.footer-link span { font-size: 13px; font-weight: 700; }
.footer-link small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

.whatsapp-float {
  position: fixed;
  z-index: 25;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 34px);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #1faa61;
  box-shadow: 0 12px 32px rgba(13, 89, 49, .28);
  transition: transform .25s var(--ease-out), background .2s ease, box-shadow .25s ease;
  animation: whatsapp-enter .65s .8s var(--ease-out) both;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.035); background: #168d50; box-shadow: 0 16px 36px rgba(13, 89, 49, .34); }
.whatsapp-float svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }

.overlay { position: fixed; z-index: 39; inset: 0; background: rgba(14,13,11,.44); backdrop-filter: blur(2px); animation: overlay-enter .3s ease both; }
.cart-drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100vw);
  height: 100dvh;
  color: var(--ink);
  background: var(--white);
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.22,.75,.2,1);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer.is-open .panel-header,
.cart-drawer.is-open .cart-content,
.cart-drawer.is-open .cart-footer { animation: panel-content-enter .28s .08s var(--ease-out) both; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-family: Didot, "Bodoni MT", "Bodoni 72", Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.035em; }
.icon-button { width: 44px; height: 44px; font-size: 31px; font-weight: 200; line-height: 1; }
.cart-content { overflow-y: auto; padding: 26px 28px; }
.cart-empty { margin: 0; color: var(--muted); font-size: 14px; }
.cart-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.cart-list li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart-list img { width: 64px; aspect-ratio: 4/5; object-fit: cover; background: var(--paper); }
.cart-list strong { display: block; margin-bottom: 5px; font-size: 13px; }
.cart-list small { color: var(--muted); font-size: 11px; }
.cart-list button { width: 38px; height: 38px; border: 0; color: var(--muted); background: transparent; font-size: 23px; }
.cart-footer { padding: 22px 28px 28px; border-top: 1px solid var(--line); }
.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  color: white;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .22s ease, background .22s ease, transform .22s var(--ease-out);
}
.primary-button:not(:disabled):hover { transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .35; }
body.panel-open { overflow: hidden; }

.product-dialog {
  width: min(1020px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .32s ease, transform .42s var(--ease-out), display .42s allow-discrete, overlay .42s allow-discrete;
}
.product-dialog[open] { opacity: 1; transform: none; }
@starting-style { .product-dialog[open] { opacity: 0; transform: translateY(18px) scale(.985); } }
.product-dialog::backdrop { background: rgba(14,13,11,.58); backdrop-filter: blur(3px); opacity: 0; transition: opacity .32s ease, display .32s allow-discrete, overlay .32s allow-discrete; }
.product-dialog[open]::backdrop { opacity: 1; }
@starting-style { .product-dialog[open]::backdrop { opacity: 0; } }
.product-dialog__close { position: absolute; z-index: 2; top: 14px; right: 14px; color: var(--ink); background: rgba(255,255,255,.84); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); min-height: 580px; }
.product-detail__media { min-height: 580px; background: #e9e3d9; }
.product-detail__media img { width: 100%; height: 100%; max-height: calc(100dvh - 40px); object-fit: cover; }
.product-detail__media:not(.is-feature) img { object-fit: cover; }
.product-detail__content { display: flex; flex-direction: column; padding: clamp(36px, 5vw, 70px) clamp(30px, 4vw, 56px) 34px; }
.product-detail__code { margin: 0 0 11px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.product-detail h2 { max-width: 390px; margin: 0 0 30px; font-family: Didot, "Bodoni MT", "Bodoni 72", Georgia, serif; font-size: clamp(32px, 3.5vw, 50px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.product-detail__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 34px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-detail__facts div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.product-detail__facts dt { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-detail__facts dd { margin: 0; font-size: 13px; font-weight: 700; }
.product-detail__label { margin: 0 0 13px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.color-swatch { width: 26px; height: 26px; border: 1px solid rgba(17,17,15,.2); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--white); }
.product-detail .primary-button { margin-top: auto; }
.product-detail .primary-button.is-added { color: var(--ink); background: transparent; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 25px;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes overlay-enter { from { opacity: 0; } }
@keyframes panel-content-enter { from { opacity: 0; transform: translateX(12px); } }
@keyframes whatsapp-enter { from { opacity: 0; transform: translateY(16px) scale(.9); } }

.product-tile:focus-visible img { transform: scale(1.025); }
.product-tile:focus-visible::after { border-color: rgba(17,17,15,.55); }

@media (max-width: 860px) {
  :root { --header-height: 70px; }
  .announcement__track { justify-content: flex-start; padding-left: 20px; }
  .announcement__track span:nth-of-type(n+3), .announcement__track i:nth-of-type(n+3) { display: none; }
  .brand { width: 160px; }
  .hero-carousel { margin-right: 0; margin-left: 0; }
  .hero-carousel__track { aspect-ratio: 4 / 3.4; min-height: 0; }
  .hero-slide img { object-position: center center; }
  .catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .catalog-filters select { width: 100%; min-width: 0; max-width: 100%; }
  .catalog-search { grid-column: 1 / -1; }
  .reset-filters { grid-column: 1 / -1; justify-self: center; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-detail { grid-template-columns: 1fr 340px; }
}

@media (max-width: 620px) {
  .hero-carousel__track { aspect-ratio: 4 / 4.7; }
  .hero-slide img { object-position: center center; }
  .catalog { padding-top: 32px; }
  .catalog-filters { gap: 8px; margin-bottom: 24px; padding-bottom: 14px; }
  .catalog-filters label > span:not(.sr-only) { font-size: 10px; }
  .catalog-filters select { height: 43px; padding-right: 24px; padding-left: 10px; font-size: 12px; }
  .catalog-search { height: 43px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .whatsapp-float { width: 54px; height: 54px; }
  .product-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; }
  .product-detail { display: block; min-height: 0; }
  .product-detail__media { height: 54dvh; min-height: 360px; }
  .product-detail__media img { max-height: none; }
  .product-detail__content { min-height: 46dvh; padding: 30px 22px 24px; }
  .product-detail h2 { margin-bottom: 24px; font-size: 34px; }
  .product-detail__facts { margin-bottom: 25px; }
  .color-swatches { margin-bottom: 28px; }
  .product-detail .primary-button { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-item { opacity: 1; transform: none; }
}
