:root {
  --ink: #142019;
  --muted: #677168;
  --paper: #f4f2ea;
  --white: #fffdf8;
  --green: #124d35;
  --green-light: #d6e44a;
  --line: #d9ddd4;
  --danger: #a5392f;
  --shadow: 0 18px 50px rgba(16, 40, 27, .12);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 { font-size: 1.45rem; }
.eyebrow { margin-bottom: .8rem; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 4vw, 4.5rem); background: rgba(244, 242, 234, .9); border-bottom: 1px solid rgba(20, 32, 25, .1); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--green-light); background: var(--green); border-radius: 50%; font-size: .76rem; font-weight: 900; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.site-nav a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-nav .admin-link { padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: 999px; }
.language-control { position: relative; display: inline-flex; min-width: 174px; min-height: 42px; align-items: center; gap: .55rem; padding: .45rem .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.language-control:focus-within { outline: 3px solid #0868c9; outline-offset: 2px; }
.language-flag { font-size: 1.15rem; line-height: 1; filter: saturate(1.05); }
.language-name { flex: 1; font-size: .82rem; font-weight: 700; line-height: 1; }
.language-chevron { position: relative; top: -.1rem; font-size: 1.05rem; line-height: 1; }
.language-control select { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; border: 0; border-radius: 999px; cursor: pointer; }
.menu-button { display: none; padding: .5rem .75rem; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 99px; }
.hero { position: relative; min-height: clamp(660px, 46vw, 880px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.25rem, 6vw, 7rem); background: #d9effa; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 1200px); padding: .5rem 1rem 0; background: transparent; text-align: center; }
.hero h1 { max-width: 1200px; margin: 0 auto 1rem; font-size: clamp(3rem, 4.8vw, 5.3rem); text-shadow: 0 2px 18px rgba(255,255,255,.9); }
.hero-copy > p:not(.eyebrow) { max-width: 1050px; margin-right: auto; margin-left: auto; color: #26352d; font-size: clamp(1.05rem, 1.5vw, 1.35rem); text-shadow: 0 1px 10px rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--green); }
.button.whatsapp-button { grid-column: 1 / -1; width: min(100%, 760px); min-height: 86px; justify-self: center; margin-top: 0; padding: 1.1rem 2rem; color: #092817; background: #25d366; box-shadow: 0 14px 32px rgba(18, 77, 53, .23); font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.1; text-align: center; }
.button.whatsapp-button:hover { background: #20bd5a; }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--ink); }
.button.ghost { color: var(--ink); background: #e8e8e1; }
.button.danger { color: var(--danger); background: transparent; border-color: #e1b6b1; }
.hero-art { position: absolute; z-index: 0; inset: 0; min-height: 0; }
.hero-art::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(to bottom, rgba(244,251,255,.22) 0%, rgba(244,251,255,.12) 35%, rgba(244,251,255,0) 58%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; box-shadow: none; }
.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.section-heading h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.filters button { padding: .55rem .9rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.filters button.active { color: white; background: var(--green); border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(20,32,25,.07); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e3e7db; }
.product-card-body { padding: 1.5rem; }
.product-card-body > p:not(.eyebrow) { min-height: 4.8em; color: var(--muted); }
.text-button { padding: 0; color: var(--green); background: none; border: 0; cursor: pointer; font-weight: 800; text-decoration: none; }
.catalogue-reveal { position: relative; display: flex; justify-content: center; padding-top: 2.5rem; }
.catalogue-reveal[hidden] { display: none; }
.catalogue-reveal.expanded { display: none; }
.catalogue-reveal:not(.expanded)::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 7rem; content: ""; background: linear-gradient(to bottom, rgba(244, 242, 234, 0), var(--paper)); pointer-events: none; }
.catalogue-toggle { position: relative; z-index: 1; gap: .65rem; min-width: 220px; background: var(--white); box-shadow: 0 10px 28px rgba(16, 40, 27, .1); }
.toggle-arrow { font-size: 1.1rem; font-weight: 900; }
.about { color: white; background: #17231c; }
.about-content { width: min(100%, 1120px); margin: 0 auto; }
.about .eyebrow { color: var(--green-light); }
.about p:last-child { max-width: 800px; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 10vw, 10rem); row-gap: clamp(1.5rem, 3vw, 2.5rem); background: var(--green-light); }
.contact h2 { max-width: 700px; }
.contact > div > p:last-child { font-size: 1.08rem; }
.contact-list { margin: 0; font-size: clamp(1.05rem, 1.15vw, 1.18rem); }
.contact-list div { display: grid; grid-template-columns: minmax(150px, .34fr) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(20,32,25,.25); }
.contact-list dt { color: rgba(20,32,25,.64); }
.contact-list dd { margin: 0; font-weight: 700; }
footer { display: flex; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 6vw, 7rem); color: rgba(255,255,255,.62); background: #0c1610; font-size: .82rem; }
.page-jumps { position: fixed; z-index: 15; right: clamp(.75rem, 2vw, 1.5rem); bottom: 1.5rem; display: grid; gap: .5rem; }
.page-jumps a { display: grid; width: 44px; height: 44px; place-items: center; color: white; background: rgba(18, 77, 53, .92); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 8px 22px rgba(10, 30, 19, .22); font-size: 1.15rem; font-weight: 900; text-decoration: none; backdrop-filter: blur(8px); }
.page-jumps a:hover { color: var(--green-light); transform: translateY(-2px); }
.floating-collapse { position: sticky; z-index: 16; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: flex; width: max-content; min-height: 50px; align-items: center; gap: .65rem; margin: 2.5rem auto 0; padding: .75rem 1.3rem; color: white; background: rgba(18, 77, 53, .96); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; box-shadow: 0 12px 32px rgba(10, 30, 19, .3); cursor: pointer; font: inherit; font-weight: 800; backdrop-filter: blur(10px); }
.floating-collapse:hover { color: var(--green-light); transform: translateY(-2px); }
.floating-collapse:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }
.floating-collapse[hidden] { display: none; }
dialog { width: min(1050px, calc(100% - 2rem)); padding: 0; background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
#productDialog { position: fixed; inset: 0; height: min(860px, calc(100vh - 2rem)); height: min(860px, calc(100dvh - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; overflow: hidden; }
dialog::backdrop { background: rgba(7,17,11,.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; width: 42px; height: 42px; place-items: center; color: white; background: rgba(10,20,13,.72); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.6rem; }
.dialog-layout { display: grid; height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dialog-media { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; background: #e3e7db; }
.dialog-media > img { width: 100%; min-height: 0; flex: 1 1 0; object-fit: contain; background: #e3e7db; }
.dialog-gallery { display: flex; flex: 0 0 auto; gap: .5rem; overflow-x: auto; padding: .75rem; background: rgba(255,255,255,.7); }
.dialog-gallery:empty { display: none; }
.dialog-gallery button { flex: 0 0 auto; padding: 0; background: white; border: 2px solid transparent; border-radius: 7px; cursor: pointer; }
.dialog-gallery button.active { border-color: var(--green); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.dialog-gallery img { width: 68px; height: 54px; object-fit: cover; border-radius: 5px; }
.dialog-details { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.dialog-layout > div { padding: clamp(2rem, 5vw, 4rem); }
.spec-table { margin: 2rem 0; border-top: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; }
.empty-state, .error-message { padding: 2rem; color: var(--muted); background: var(--white); border-radius: var(--radius); text-align: center; }

/* Admin */
.admin-body { min-height: 100vh; background: #ecece5; }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 2rem clamp(1.25rem, 4vw, 4rem); color: white; background: #142019; }
.admin-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.admin-header .eyebrow { color: var(--green-light); }
.admin-actions { display: flex; align-items: center; gap: 1rem; }
.admin-header .button.secondary { color: white; border-color: rgba(255,255,255,.65); }
.save-status { min-width: 150px; color: var(--green-light); font-weight: 700; text-align: right; }
.save-status.error { color: #ff9990; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1500px; min-height: calc(100vh - 140px); margin: 0 auto; }
.admin-sidebar { padding: 2rem 1rem; border-right: 1px solid #d2d5cc; }
.admin-tab { width: 100%; padding: .9rem 1rem; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; text-align: left; }
.admin-tab.active { color: white; background: var(--green); }
.local-note { margin-top: 2rem; padding: 1rem; color: var(--muted); background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 12px; font-size: .8rem; }
.local-note p { margin: .3rem 0 0; }
.admin-panel { display: none; padding: clamp(2rem, 5vw, 5rem); }
.admin-panel.active { display: block; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.panel-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(20,32,25,.06); }
.editor-form label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.editor-form input, .editor-form textarea, .spec-row input { width: 100%; margin-top: .4rem; padding: .8rem .9rem; color: var(--ink); background: white; border: 1px solid #ccd1c8; border-radius: 9px; outline: 0; }
.editor-form input:focus, .editor-form textarea:focus, .spec-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,77,53,.12); }
.editor-form .full { grid-column: 1 / -1; }
.form-divider { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.form-divider span { position: relative; top: .7rem; padding-right: 1rem; color: var(--ink); background: var(--white); }
.product-admin-list { display: grid; gap: .8rem; }
.product-admin-row { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 1.3rem; padding: 1rem; background: var(--white); border-radius: 14px; }
.product-admin-row img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; background: #e3e7db; border-radius: 9px; }
.product-admin-row h3, .product-admin-row p { margin-bottom: .25rem; }
.product-admin-row p:not(.eyebrow) { color: var(--muted); font-size: .85rem; }
.row-actions { display: flex; gap: .5rem; }
.editor-dialog { width: min(920px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); }
.editor-dialog form { padding: clamp(1.25rem, 4vw, 3rem); }
.editor-dialog-head { display: flex; justify-content: space-between; }
.editor-dialog-head h2 { font-size: 2.5rem; }
.editor-dialog-head .dialog-close { position: static; flex: 0 0 auto; }
.editor-dialog .editor-form { padding: 0; box-shadow: none; }
.editor-dialog-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; }
.image-editor { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 1.5rem; padding: 1rem; background: #f1f2ed; border-radius: 12px; }
.image-editor img { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; background: #dfe4d8; border-radius: 8px; }
.image-editor p { margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
.spec-editor { padding-top: 1rem; }
.spec-editor-head { display: flex; align-items: center; justify-content: space-between; }
.spec-editor h3 { margin: 0; }
.spec-row { display: grid; grid-template-columns: 1fr 40px; gap: .6rem; margin-top: .6rem; padding: .7rem; background: #f1f2ed; border-radius: 10px; }
.spec-language { display: grid; grid-template-columns: 44px minmax(100px, 1fr) minmax(120px, 1.4fr); align-items: center; gap: .45rem; }
.spec-language strong { color: var(--green); font-size: .72rem; }
.spec-row input { margin: 0; }
.spec-row .icon-button { grid-column: 2; grid-row: 1 / span 5; }
.icon-button { color: var(--danger); background: #f7eae8; border: 0; border-radius: 8px; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 900px) {
  .hero { min-height: 720px; padding: 2rem 1.25rem; }
  .hero-copy { padding: .5rem 1rem 0; }
  .hero-art { min-height: 0; }
  .hero-art img { inset: 0; width: 100%; height: 100%; object-position: 34% top; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem; border: 0; }
  .admin-tab { width: auto; white-space: nowrap; }
  .local-note { display: none; }
}
@media (max-width: 650px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-open .site-nav { display: flex; }
  .hero { min-height: 700px; padding-top: 1.5rem; }
  .hero-copy { background: transparent; }
  .hero-art { min-height: 0; }
  .hero-art img { object-position: 27% top; }
  .floating-collapse { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 7rem); white-space: nowrap; }
  .section-heading, .admin-header, .panel-heading { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: .2rem; }
  #productDialog { width: calc(100% - 1rem); height: auto; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; }
  #productDialog > .dialog-close { position: sticky; top: .75rem; margin: .75rem .75rem -3.375rem auto; }
  .dialog-layout { height: auto; grid-template-columns: 1fr; }
  .dialog-media, .dialog-details { min-height: auto; overflow: visible; }
  .dialog-media > img { min-height: 280px; max-height: 380px; flex: 0 0 auto; }
  footer { flex-direction: column; gap: .5rem; }
  .admin-actions { width: 100%; justify-content: space-between; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-form .full { grid-column: auto; }
  .product-admin-row { grid-template-columns: 80px 1fr; }
  .product-admin-row img { width: 80px; }
  .row-actions { grid-column: 1 / -1; }
  .image-editor { grid-template-columns: 1fr; }
  .image-editor img { width: 100%; }
  .spec-language { grid-template-columns: 44px 1fr; }
  .spec-language input:last-child { grid-column: 2; }
}
