:root {
  --forest: #063f35;
  --forest-deep: #032d27;
  --forest-soft: #0c574a;
  --cream: #f5efe5;
  --paper: #fbf8f2;
  --nude: #dfc8b4;
  --sand: #e9dfd3;
  --gold: #caa85c;
  --ink: #132520;
  --muted: #68736e;
  --line: rgba(6, 63, 53, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .7rem 1rem; background: white; color: var(--forest); border-radius: 99px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: white;
  transition: background .35s, color .35s, height .35s, box-shadow .35s;
}
.site-header.is-scrolled { height: 70px; color: var(--forest); background: rgba(251, 248, 242, .94); box-shadow: 0 8px 32px rgba(18, 37, 32, .08); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; font-family: var(--display); font-size: 1.45rem; letter-spacing: .2em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; letter-spacing: 0; }
.desktop-nav { display: flex; gap: 2rem; font-size: .86rem; letter-spacing: .05em; }
.desktop-nav a, .header-contact { position: relative; }
.desktop-nav a::after, .header-contact::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 0; height: 1px; background: currentColor; transition: width .25s; }
.desktop-nav a:hover::after, .header-contact:hover::after { width: 100%; }
.header-contact { justify-self: end; font-size: .86rem; }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--forest);
  color: white;
}
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(244, 227, 174, .18); border-radius: 50%; left: -270px; bottom: -220px; }
.hero-copy { align-self: center; max-width: 740px; padding: 9rem clamp(1.5rem, 7vw, 8rem) 5rem; z-index: 1; }
.eyebrow { margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 650; }
.hero h1 { margin: 0; max-width: 690px; font-family: var(--display); font-size: clamp(3.6rem, 6.4vw, 7.5rem); font-weight: 400; line-height: .93; letter-spacing: -.045em; }
.hero-text { max-width: 590px; margin: 2.3rem 0 0; color: rgba(255,255,255,.74); font-size: 1.04rem; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.6rem; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.45rem; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--forest); background: #f3e1a9; }
.button-primary:hover { background: #fff0bc; }
.button-light { background: var(--paper); color: var(--forest); }
.text-link { font-size: .88rem; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.4); }
.hero-visual { position: relative; display: grid; place-items: center; padding: 8rem 5vw 5rem; background: linear-gradient(160deg, #0b5649, #04362f); overflow: hidden; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(244,227,174,.24); }
.hero-visual::before { width: min(46vw, 640px); height: min(46vw, 640px); }
.hero-visual::after { width: min(34vw, 470px); height: min(34vw, 470px); }
.hero-frame { position: relative; z-index: 2; width: min(30vw, 440px); aspect-ratio: 1; border-radius: 50% 50% 47% 53% / 43% 46% 54% 57%; overflow: hidden; box-shadow: 0 35px 80px rgba(0,0,0,.28); transform: rotate(-4deg); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: rotate(4deg) scale(1.08); }
.hero-visual p { position: absolute; z-index: 3; right: 2.5rem; bottom: 2rem; margin: 0; font-family: var(--display); color: #f4e3ae; font-style: italic; }
.hero-index { position: absolute; z-index: 3; left: clamp(1.5rem,4vw,4rem); bottom: 2rem; color: rgba(255,255,255,.45); font-size: .75rem; letter-spacing: .15em; }
.reveal { animation: reveal .8s ease-out both; }
.hero-visual.reveal { animation-delay: .15s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.quality-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.3rem; min-height: 70px; padding: 1rem 5vw; background: #f0e6da; color: var(--forest); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; }
.quality-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.section-shell { width: min(1380px, calc(100% - 3rem)); margin-inline: auto; }
.story { padding-block: clamp(5rem, 9vw, 9rem); }
.section-kicker { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--forest); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.section-kicker span { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); padding: 4rem 0 5rem; }
.story h2, .catalog h2, .material-copy h2, .contact-section h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5.2vw, 5.8rem); line-height: .98; font-weight: 400; letter-spacing: -.035em; color: var(--forest); }
.story-copy { max-width: 590px; font-size: 1.08rem; color: #52615c; }
.story-copy p { margin: 0 0 1.4rem; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.principles article { padding: 2rem 2.5rem 1rem 0; border-right: 1px solid var(--line); }
.principles article + article { padding-left: 2.5rem; }
.principles article:last-child { border-right: 0; }
.principles span { color: var(--gold); font-size: .72rem; letter-spacing: .12em; }
.principles h3 { margin: 1rem 0 .55rem; font-family: var(--display); font-size: 1.55rem; font-weight: 400; color: var(--forest); }
.principles p { margin: 0; color: var(--muted); font-size: .9rem; }

.catalog { padding-block: 2rem clamp(6rem, 10vw, 10rem); scroll-margin-top: 70px; }
.catalog-heading { display: grid; grid-template-columns: 1fr minmax(280px, .5fr); gap: 3rem; align-items: end; padding-top: 2rem; }
.catalog-heading h2 { margin-top: 2rem; }
.catalog-heading > p { max-width: 480px; margin: 0 0 .7rem; color: var(--muted); }
.filters { display: flex; gap: .6rem; margin: 3.5rem 0 2rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--forest); cursor: pointer; }
.filter span { margin-left: .4rem; color: var(--muted); font-size: .72rem; }
.filter.is-active { background: var(--forest); color: white; border-color: var(--forest); }
.filter.is-active span { color: rgba(255,255,255,.6); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2.6rem 1rem; }
.product-card { min-width: 0; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4/5; width: 100%; padding: 0; border: 0; background: #ece3d8; cursor: zoom-in; }
.product-media::after { content: "Ver detalles"; position: absolute; inset: auto 1rem 1rem; min-height: 46px; display: grid; place-items: center; border-radius: 99px; background: rgba(251,248,242,.94); color: var(--forest); font-size: .82rem; font-weight: 750; transform: translateY(70px); transition: transform .3s; }
.product-media:hover::after, .product-media:focus-visible::after { transform: none; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-media:hover img { transform: scale(1.035); }
.product-card.is-placeholder .product-media { background: var(--forest); }
.product-card.is-placeholder .product-media img { opacity: .68; }
.photo-pending { position: absolute; inset: auto 1rem 1rem; padding: .55rem .75rem; color: white; background: rgba(3,45,39,.82); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.product-card.is-placeholder .product-media::after { display: none; }
.product-meta { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.product-category { margin: 0 0 .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .65rem; font-weight: 700; }
.product-name { margin: 0; font-family: var(--display); color: var(--forest); font-size: 1.28rem; font-weight: 400; line-height: 1.22; }
.product-price { margin: .1rem 0 0; color: var(--forest); font-size: .94rem; white-space: nowrap; }
.empty-state { min-height: 360px; text-align: center; place-content: center; border: 1px solid var(--line); background: var(--cream); }
.empty-state:not([hidden]) { display: grid; }
.empty-state > span { color: var(--gold); font-size: 2rem; }
.empty-state h3 { margin: .5rem 0; font-family: var(--display); font-size: 2rem; font-weight: 400; color: var(--forest); }
.empty-state p { margin: 0; color: var(--muted); }
.text-button { justify-self: center; margin-top: 1.2rem; padding: .6rem 0; border: 0; border-bottom: 1px solid; background: none; color: var(--forest); cursor: pointer; }

.material-section { color: white; background: var(--forest); overflow: hidden; }
.material-inner { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7vw; padding-block: 6rem; }
.material-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.material-art > span { z-index: 2; font-family: var(--display); font-size: clamp(4rem, 9vw, 9rem); letter-spacing: .12em; color: #f2dfa8; }
.orbit { position: absolute; border: 1px solid rgba(242,223,168,.3); border-radius: 50%; }
.orbit-one { width: 82%; height: 82%; }
.orbit-two { width: 58%; height: 94%; transform: rotate(58deg); }
.material-art::before { content: ""; position: absolute; width: 42%; height: 42%; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #e1c479, #9d7430 55%, #5f431c); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.material-copy .eyebrow { color: #e8d49d; }
.material-copy h2 { color: white; }
.material-copy > p:not(.eyebrow) { max-width: 600px; margin: 2rem 0 2.5rem; color: rgba(255,255,255,.7); }
.material-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.material-copy li { display: flex; gap: 1.3rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.material-copy li span { color: #e8d49d; font-size: .74rem; }
.contact-section { padding-block: clamp(6rem, 10vw, 10rem); text-align: center; }
.contact-section .eyebrow { color: var(--gold); }
.contact-section h2 { max-width: 820px; margin-inline: auto; }
.contact-section > p:not(.eyebrow) { max-width: 600px; margin: 1.6rem auto 2.3rem; color: var(--muted); }
.contact-section .button-light { background: var(--forest); color: white; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 150px; padding: 2.5rem clamp(1.5rem,5vw,5rem); border-top: 1px solid var(--line); color: var(--forest); }
footer > p { font-family: var(--display); font-style: italic; }
footer > div { display: flex; flex-direction: column; align-items: end; font-size: .78rem; color: var(--muted); }
footer > div a { color: var(--forest); font-weight: 700; }

.product-dialog { width: min(1180px, calc(100% - 2rem)); max-height: min(92vh, 900px); margin: auto; padding: 0; border: 0; border-radius: 3px; background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.35); overflow: auto; }
.product-dialog::backdrop { background: rgba(2, 28, 24, .78); backdrop-filter: blur(8px); }
.dialog-close { position: fixed; z-index: 4; top: max(2rem, calc(4vh + .75rem)); right: max(2rem, calc((100vw - min(1180px, calc(100vw - 2rem))) / 2 + .75rem)); width: 42px; height: 42px; border: 1px solid rgba(6,63,53,.18); border-radius: 50%; color: var(--forest); background: rgba(251,248,242,.92); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 700px; }
.dialog-media { position: relative; padding: 1.2rem; background: #eae0d4; }
.gallery-view { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: .8rem; }
.main-image-wrap { position: relative; width: 100%; height: 100%; min-height: 570px; padding: 0; border: 0; background: #e5dacc; overflow: hidden; cursor: zoom-in; }
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.main-image-wrap.is-placeholder img { object-fit: cover; }
.zoom-hint { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem; padding: .55rem .7rem .55rem 1rem; border-radius: 99px; color: var(--forest); background: rgba(251,248,242,.9); font-size: .72rem; }
.zoom-hint b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: white; font-size: 1rem; }
.gallery-thumbs { display: flex; gap: .6rem; min-height: 74px; }
.thumb { width: 62px; height: 74px; padding: 0; border: 2px solid transparent; background: #d7cabd; cursor: pointer; overflow: hidden; }
.thumb.is-active { border-color: var(--forest); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialog-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,5vw,5rem); }
.dialog-info h2 { margin: 0; font-family: var(--display); color: var(--forest); font-size: clamp(2.5rem,4vw,4.2rem); line-height: 1; font-weight: 400; }
.dialog-price { margin: 1rem 0 1.6rem; color: var(--forest); font-size: 1.15rem; font-weight: 700; }
.dialog-description { margin: 0 0 1.8rem; color: var(--muted); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .76rem; }
.specs dd { margin: 0; color: var(--forest); font-size: .84rem; }
.benefit-list { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0; }
.benefit-list span { padding: .45rem .7rem; border-radius: 99px; background: #efe7dc; color: var(--forest); font-size: .68rem; }
.dialog-contact { align-self: stretch; margin-top: .5rem; }
.provider-note { margin: 1rem 0 0; color: var(--muted); font-size: .68rem; text-align: center; }

.zoom-overlay { position: fixed; z-index: 100; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border: 0; border-radius: 0; background: #052f29; color: white; overflow: hidden; overscroll-behavior: none; touch-action: none; }
.zoom-overlay[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.zoom-overlay::backdrop { background: #052f29; }
.zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 70px; padding: .75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.zoom-heading { display: flex; align-items: center; gap: 1rem; }
.zoom-heading > span { font-family: var(--display); font-size: 1.2rem; }
.zoom-heading output { font-size: .875rem; white-space: nowrap; color: #f4e3ae; }
.zoom-actions { display: grid; grid-template-columns: 44px minmax(100px,1fr) 44px 44px; gap: .5rem; }
.zoom-toolbar button { min-width: 0; min-height: 44px; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; background: transparent; color: white; font-size: .875rem; cursor: pointer; }
.zoom-toolbar button:disabled { opacity: .4; cursor: default; }
.zoom-toolbar button:focus-visible { outline: 2px solid #f4e3ae; outline-offset: 3px; }
.zoom-canvas { position: relative; min-width: 0; min-height: 0; overflow: hidden; cursor: default; touch-action: none; }
.zoom-canvas.is-zoomed { cursor: grab; }
.zoom-canvas.is-zoomed:active { cursor: grabbing; }
.zoom-canvas img { position: absolute; left: 50%; top: 50%; max-width: none; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; transform: translate(-50%, -50%) scale(1); transform-origin: center; will-change: transform; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.zoom-overlay > p { margin: 0; padding: .8rem 1rem; text-align: center; color: rgba(255,255,255,.75); font-size: .875rem; }
@media (max-width: 780px) {
  .zoom-toolbar { flex-direction: column; align-items: stretch; padding: .65rem .8rem; }
  .zoom-heading { justify-content: space-between; }
  .zoom-heading > span { font-size: 1.05rem; }
  .zoom-overlay > p { padding: .6rem .8rem; }
}

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .hero h1 { font-size: clamp(3.5rem, 7vw, 5.8rem); }
  .dialog-layout { grid-template-columns: 1fr 1fr; }
  .dialog-info { padding: 3rem; }
}

@media (max-width: 780px) {
  .site-header { height: 70px; grid-template-columns: 1fr auto; padding-inline: 1rem; }
  .desktop-nav { display: none; }
  .header-contact { font-size: .78rem; }
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding: 7rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .hero-visual { min-height: 560px; padding: 5rem 1.5rem; }
  .hero-frame { width: min(76vw, 420px); }
  .hero-visual::before { width: 92vw; height: 92vw; }
  .hero-visual::after { width: 68vw; height: 68vw; }
  .hero-index { display: none; }
  .quality-strip { justify-content: flex-start; padding-inline: 1.25rem; gap: .7rem; }
  .quality-strip i { display: none; }
  .quality-strip span { width: calc(50% - .4rem); }
  .section-shell { width: min(100% - 2rem, 1380px); }
  .story-grid, .catalog-heading, .material-inner { grid-template-columns: 1fr; }
  .story-grid { gap: 2rem; padding: 2.5rem 0 3rem; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article + article { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-heading { gap: 1.3rem; }
  .catalog-heading > p { margin: 0; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 2rem .7rem; }
  .product-name { font-size: 1.05rem; }
  .product-meta { flex-direction: column; gap: .35rem; }
  .product-price { margin: 0; }
  .product-media::after { transform: none; inset: auto .65rem .65rem; min-height: 40px; }
  .photo-pending { inset: auto .65rem .65rem; }
  .material-inner { gap: 2rem; min-height: 0; }
  .material-art { max-width: 560px; width: 100%; justify-self: center; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-self: center; }
  footer > div { align-items: center; }
  .product-dialog { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .dialog-close { position: fixed; top: .8rem; right: .8rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media { min-height: 75svh; }
  .main-image-wrap { min-height: 60svh; }
  .dialog-info { padding: 3rem 1.4rem 4rem; }
}

@media (max-width: 430px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  .quality-strip span { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .product-media { aspect-ratio: 4/4.7; }
  .story h2, .catalog h2, .material-copy h2, .contact-section h2 { font-size: 2.8rem; }
  .dialog-media { padding: .55rem; }
  .main-image-wrap { min-height: 65svh; }
  .zoom-toolbar { padding-inline: .8rem; }
}

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

/* Ficha de catálogo: empaque principal y galería debajo. */
.product-dialog { padding: 1.6rem; background: #f6efe3; border-radius: 20px; }
.dialog-layout { grid-template-columns: 1.2fr 1fr; min-height: 0; gap: 1.8rem; }
.dialog-media { padding: 0; background: transparent; min-height: 0; }
.gallery-view { display: block; height: auto; }
.main-image-wrap { display: block; aspect-ratio: 3/4; min-height: 0; height: auto; border-radius: 16px; }
.main-image-wrap img { position: absolute; inset: 0; object-fit: cover; }
.dialog-info { padding: 2rem 1rem; }
.dialog-info h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.dialog-info .product-category { font-size: .875rem; }
.specs dt, .specs dd { font-size: .875rem; }
.benefit-list span { font-size: .875rem; }
.provider-note { font-size: .8rem; }
.detail-gallery { grid-column: 1/-1; padding-top: .8rem; }
.gallery-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.gallery-heading h3 { margin: 0; font: 400 2rem/1.2 var(--display); color: var(--forest); }
.gallery-heading::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.gallery-heading > span { color: var(--muted); font-size: .875rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; min-height: 0; }
.gallery-item { padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; text-align: center; font: 400 1rem/1.4 var(--display); }
.gallery-picture { display: block; aspect-ratio: 1.1; border-radius: 12px; overflow: hidden; margin-bottom: .65rem; border: 2px solid transparent; outline: 2px solid transparent; outline-offset: 3px; }
.gallery-picture img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-active .gallery-picture { outline-color: var(--forest); }
.gallery-source-note { margin: 1.2rem 0 .2rem; font-size: .8rem; color: var(--muted); }
.product-media { border-radius: 12px; }
.product-media::after { display: none; }
.card-details { position: absolute; bottom: 1rem; right: 1rem; background: #f6efe3; color: var(--forest); padding: .65rem .9rem; border-radius: 999px; font-size: .75rem; }
.card-details b { margin-left: .6rem; }
.product-category { font-size: .8rem; }
.dialog-close { top: max(1rem, calc(4vh + .5rem)); }
@media (max-width: 780px) {
  .product-dialog { padding: 3.8rem 1rem 1.5rem; border-radius: 0; }
  .dialog-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .dialog-info { padding: .8rem .2rem; }
  .gallery-thumbs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-heading h3 { font-size: 1.7rem; }
  .detail-gallery { grid-column: auto; }
  .dialog-close { top: .8rem; }
}
