:root {
  --ink: #12212a;
  --muted: #62717a;
  --paper: #fffdf8;
  --cream: #f5efe3;
  --blue: #073f55;
  --blue-2: #0a6078;
  --yellow: #f5bd21;
  --orange: #e86c34;
  --line: rgba(18, 33, 42, .14);
  --shadow: 0 20px 55px rgba(18, 33, 42, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.cart-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: white; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.archive-bar { min-height: 34px; padding: .45rem 5vw; display: flex; justify-content: center; gap: .5rem 1rem; flex-wrap: wrap; background: var(--yellow); color: #2c260e; font-size: .78rem; text-align: center; }
.site-header { height: 82px; padding: 0 5vw; display: flex; align-items: center; gap: 2.5rem; position: sticky; top: 0; z-index: 30; background: rgba(255,253,248,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50% 50% 48% 52%; background: var(--blue); color: white; font-family: Georgia, serif; font-weight: 800; letter-spacing: -.06em; box-shadow: inset 0 0 0 3px var(--yellow); }
.brand b { display: block; font-family: Georgia, serif; font-size: 1.25rem; line-height: .9; }
.brand small { color: var(--orange); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; gap: 1.7rem; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 750; }
.cart-button { border: 0; border-radius: 999px; padding: .75rem 1rem; background: var(--blue); color: white; font-weight: 800; cursor: pointer; }
.cart-button span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: .4rem; border-radius: 50%; background: var(--yellow); color: var(--blue); font-size: .75rem; }

.hero { min-height: min(740px, calc(100vh - 116px)); position: relative; display: grid; align-items: end; overflow: hidden; background: var(--blue); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,38,52,.94) 0%, rgba(3,38,52,.72) 42%, rgba(3,38,52,.12) 75%), linear-gradient(0deg, rgba(3,38,52,.65), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 90vw); margin: 0 5vw; padding: clamp(4rem, 10vh, 7rem) 0; color: white; }
.eyebrow { margin: 0 0 .8rem; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.045em; }
.hero-content > p:not(.eyebrow) { max-width: 620px; margin: 1.5rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { min-height: 48px; padding: .8rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; text-decoration: none; font-weight: 850; cursor: pointer; }
.button.primary { background: var(--yellow); color: #2f2609; }
.button.secondary { background: var(--blue); color: white; }
.button.ghost { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: white; }
.button.whatsapp { width: 100%; background: #1e9e59; color: white; }

.intro { padding: clamp(4.5rem, 9vw, 8rem) 5vw; text-align: center; background: var(--cream); }
.intro h2 { max-width: 900px; margin: 0 auto; font-family: Georgia, serif; font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1.06; }
.intro > p:not(.eyebrow) { max-width: 720px; margin: 1.5rem auto 0; color: var(--muted); line-height: 1.7; }
.intro dl { max-width: 760px; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.intro dl div { padding: 1.5rem .75rem 0; }
.intro dl div + div { border-left: 1px solid var(--line); }
.intro dt { font-family: Georgia, serif; color: var(--blue); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; }
.intro dd { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 5vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading h2, .about h2, .promo-banner h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card { min-height: 270px; position: relative; overflow: hidden; border: 0; border-radius: var(--radius); padding: 0; text-align: left; background: var(--blue); cursor: pointer; }
.category-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,32,42,.9), rgba(4,32,42,0) 68%); }
.category-card span { position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1.15rem; display: flex; justify-content: space-between; align-items: center; color: white; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 800; }
.category-card span i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font: 800 1rem/1 system-ui; }
.category-card:hover img { transform: scale(1.04); }

.promo-banner { margin: 0 5vw; min-height: 420px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--blue); color: white; box-shadow: var(--shadow); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner > div { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.promo-banner h2 { max-width: 530px; }
.text-link { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.3rem; border: 0; padding: 0; background: none; color: inherit; font-weight: 850; text-underline-offset: .25em; cursor: pointer; }

.catalog { margin-top: 1rem; }
.catalog-heading { margin-bottom: 1.4rem; }
.catalog-tools { position: sticky; top: 82px; z-index: 15; margin: 0 -1rem 2rem; padding: 1rem; background: rgba(255,253,248,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.search-field { max-width: 620px; height: 52px; margin: 0 auto 1rem; display: flex; align-items: center; gap: .7rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: white; box-shadow: 0 8px 25px rgba(18,33,42,.06); }
.search-field svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }
.filter-row { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: .58rem .85rem; background: white; color: var(--muted); font-size: .82rem; font-weight: 800; cursor: pointer; }
.filter-button.active { background: var(--blue); border-color: var(--blue); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--cream); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.recovered-badge { position: absolute; top: .7rem; left: .7rem; padding: .4rem .55rem; border-radius: 999px; background: rgba(7,63,85,.9); color: white; font-size: .66rem; font-weight: 850; }
.product-info { flex: 1; padding: 1rem; display: flex; flex-direction: column; }
.product-category { margin: 0 0 .45rem; color: var(--orange); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-info h3 { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.product-bottom { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 900; }
.price.pending { color: var(--muted); font-size: .78rem; }
.add-button { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--yellow); color: var(--blue); font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.empty-state { padding: 5rem 1rem; text-align: center; }
.empty-state h3 { margin: 0; font-family: Georgia, serif; font-size: 2rem; }
.empty-state p { color: var(--muted); }

.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--cream); }
.about-image { min-height: 500px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { align-self: center; padding: clamp(3rem, 7vw, 7rem); }
.about-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.about-copy .button { margin-top: 1rem; }

.cart-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(3,22,29,.55); opacity: 0; transition: opacity .25s ease; }
.cart-panel { width: min(470px, 100vw); height: 100%; margin-left: auto; position: relative; display: flex; flex-direction: column; padding: 1.3rem; background: var(--paper); transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 50px rgba(3,22,29,.2); }
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0; font-family: Georgia, serif; font-size: 2.3rem; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.7rem; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; }
.cart-item { padding: 1rem 0; display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cart-item b { display: block; font-family: Georgia, serif; }
.cart-item small { color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: .55rem; }
.qty-controls button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.cart-empty { margin: auto; text-align: center; color: var(--muted); }
.cart-footer { padding-top: 1rem; border-top: 1px solid var(--line); }
.cart-footer > p { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; }
.cart-total strong { font-size: 1.3rem; }
.text-button { width: 100%; margin-top: .7rem; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }

footer { padding: 4rem 5vw 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; background: var(--blue); color: white; }
footer p { color: rgba(255,255,255,.7); line-height: 1.6; }
footer a { color: white; }
.footer-brand { display: flex; gap: .8rem; }
.footer-brand b { font-family: Georgia, serif; font-size: 1.5rem; }
.footer-brand p { margin-top: .25rem; }
.footer-note { grid-column: 1/-1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 1rem; gap: .75rem; }
  nav { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 660px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(3,38,52,.95) 0%, rgba(3,38,52,.42) 75%); }
  .hero-content { margin: 0 1.2rem; padding-bottom: 3.2rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .intro, .section { padding-left: 1rem; padding-right: 1rem; }
  .intro dl { grid-template-columns: 1fr; }
  .intro dl div + div { border-left: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .category-card { min-height: 190px; }
  .category-card span { font-size: 1.15rem; }
  .promo-banner { margin: 0 1rem; grid-template-columns: 1fr; }
  .promo-banner img { max-height: 320px; }
  .catalog-tools { top: 68px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .product-info { padding: .8rem; }
  .product-info h3 { font-size: 1.05rem; }
  .about { grid-template-columns: 1fr; }
  .about-image { min-height: 350px; }
  footer { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 420px) {
  .archive-bar { font-size: .68rem; }
  .brand small { display: none; }
  .cart-button { padding: .65rem .75rem; font-size: .8rem; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
