:root {
  --ink: #211a16;
  --muted: #6e625b;
  --leather: #b9822f;
  --leather-dark: #5d3514;
  --copper: #d9a441;
  --sand: #f8f1e4;
  --paper: #fffaf1;
  --line: #ead8b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #c98a56; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: auto; padding-inline: 32px; }
.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; top: 8px; left: 8px; padding: 12px; background: white; z-index: 10; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.announcement { text-align: center; background: var(--leather-dark); color: #fff4e7; padding: 8px 16px; font-size: 12px; letter-spacing: .02em; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 54px; }
.brand img { object-fit: contain; max-height: 58px; max-width: 180px; mix-blend-mode: multiply; }
.header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; font-weight: 500; align-items: center; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.header nav a:hover { color: var(--leather); }
.cart-icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 22px; }
.cart-icon #cart-count { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; display: inline-grid; place-items: center; margin: 0; padding: 0 5px; background: var(--leather); color: white; font-size: 11px; font-weight: 800; }
.primary, .subtle { display: inline-block; border-radius: 8px; padding: 12px 18px; min-height: 44px; font-weight: 700; text-align: center; }
.primary { border: 0; background: var(--leather); color: white; }
.primary:hover { background: var(--leather-dark); }
.subtle { background: transparent; border: 1px solid var(--line); color: var(--ink); }
#cart-count { border-radius: 20px; background: #ffffff2e; padding: 2px 7px; margin-left: 4px; }
h1, h2, h3 { line-height: 1.16; margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(34px, 4.6vw, 62px); max-width: 720px; margin-bottom: 18px; }
h2 { font-size: 31px; }
p { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .15em; color: var(--copper); margin: 0 0 12px; }
.hero { position: relative; min-height: clamp(360px, 48vw, 560px); display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: heroDrift 13s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000000a8 0%, #00000070 40%, #00000018 100%); }
.hero-overlay { position: relative; z-index: 1; padding-block: 54px; color: white; }
.hero-overlay p { max-width: 560px; color: #fff4e7; font-size: 18px; }
.hero-overlay h1 { color: white; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 800; max-width: 720px; }
.hero-action { margin-top: 12px; }
.hero .eyebrow { color: #ffc28f; }
.intro { text-align: center; padding-block: clamp(58px, 8vw, 110px) 38px; }
.intro h2 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.intro > p:not(.eyebrow) { max-width: 720px; margin-inline: auto; font-size: 18px; }
.intro-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 46px; }
.intro-images img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 2px; filter: saturate(.96) contrast(1.02); }
.about { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 6vw, 72px); align-items: center; padding-block: 52px; scroll-margin-top: 24px; }
.about-media { display: grid; grid-template-columns: .88fr .72fr; gap: 16px; align-items: end; }
.about-media img { width: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 18px 40px #211a1618; }
.about-media img:first-child { aspect-ratio: 3/4; }
.about-media img:last-child { aspect-ratio: 3/4.35; transform: translateY(42px); }
.about-copy h2 { font-size: clamp(30px, 4vw, 48px); }
.about-copy p { font-size: 16px; }
.philosophy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 46px 72px; }
.philosophy article { background: #fffdfb; padding: clamp(22px, 3vw, 34px); min-width: 0; }
.philosophy span { color: var(--copper); font-weight: 900; font-size: 13px; }
.philosophy h2 { font: 800 22px/1.15 system-ui, -apple-system, "Segoe UI", sans-serif; margin: 12px 0 10px; }
.philosophy p { margin: 0; }
.gallery { padding-block: 48px 64px; background: #18120f; color: white; overflow: hidden; scroll-margin-top: 24px; }
.gallery h2 { color: white; font-size: clamp(30px, 4vw, 46px); }
.gallery .eyebrow { color: #ffc28f; }
.gallery-track { display: flex; gap: 16px; width: max-content; padding: 8px 16px 8px max(16px, calc((100vw - 1240px) / 2 + 32px)); animation: gallerySlide 42s linear infinite; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-track img { width: clamp(210px, 22vw, 330px); aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center 35%; border-radius: 2px; filter: saturate(.95); }
.gallery-track img:nth-child(2n) { margin-top: 34px; }
.gallery-track img.gallery-landscape { width: clamp(280px, 29vw, 440px); aspect-ratio: 4 / 3; margin-top: 0; align-self: center; object-fit: cover; }
.catalog-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: clamp(20px, 5vw, 56px); align-items: center; padding-block: 46px 20px; }
.catalog-hero h1 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 850; margin-bottom: 12px; }
.catalog-hero p:not(.eyebrow) { max-width: 620px; font-size: 18px; }
.catalog-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 2px; box-shadow: 0 18px 40px #211a1618; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 52px 8px; }
.highlights article { background: white; padding: 22px; min-width: 0; }
.highlights span { color: var(--copper); font-weight: 800; font-size: 13px; }
.highlights h2 { font: 700 18px/1.2 system-ui, sans-serif; margin: 10px 0 8px; }
.highlights p { margin: 0; font-size: 14px; }
.catalogue { padding-block: 54px; scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; }
label { font-size: 13px; font-weight: 700; display: block; color: var(--muted); }
input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 10px; color: var(--ink); margin-top: 6px; font-size: 16px; }
.catalogue-search { width: min(320px, 100%); flex-shrink: 0; }
.catalogue-search input { border-radius: 999px; padding-inline: 18px; margin: 0; }
.browse-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; background: color-mix(in srgb, var(--paper) 92%, white); padding-block: 12px; border-bottom: 1px solid var(--line); }
#families { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 4px 3px 8px; scrollbar-width: thin; }
.family-button { flex-shrink: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 9px 18px; color: var(--ink); font-size: 14px; min-height: 44px; }
.family-button:hover { background: var(--sand); }
.family-button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
#open-cart { flex-shrink: 0; }
.browse-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.text-button { border: 0; background: none; color: var(--leather); padding: 10px 0; min-height: 44px; text-decoration: underline; }
#status:empty, #cart-notice:empty, .detail-notice:empty { display: none; }
.family-heading { margin: 14px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid + .family-heading { margin-top: 36px; }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.image-button { display: block; padding: 0; border: 0; width: 100%; background: none; }
.photo { aspect-ratio: 1; background: linear-gradient(140deg, #f4ede6, #e7d6c6); display: grid; place-items: center; position: relative; overflow: hidden; width: 100%; }
.photo > span { font-size: 13px; color: var(--muted); padding: 16px; text-align: center; }
.photo img { position: absolute; width: 100%; height: 100%; object-fit: contain; background: #f5eee7; padding: 12px; }
.card-body { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 12px; color: var(--leather); font-weight: 700; }
.card h3 { font-size: 17px; margin: 6px 0; }
.card h3 button { padding: 4px 0; min-height: 44px; background: none; border: 0; text-align: left; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.presentation { font-size: 13px; margin: 2px 0 16px; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.card-bottom strong { font-size: 14px; }
.add { background: var(--sand); border: 0; border-radius: 7px; padding: 10px 14px; min-height: 44px; color: var(--leather); font-size: 14px; font-weight: 750; }
.add:hover { background: #ead9c8; }
.footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.footer p { margin: 4px 0 0; }
.footer a { color: var(--leather); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.legal-page section { max-width: 900px; margin-inline: auto; }
.legal-page h2 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 22px; font-weight: 800; margin: 30px 0 10px; }
.legal-page ul { color: var(--muted); padding-left: 22px; }
.legal-page li + li { margin-top: 8px; }
dialog { color: var(--ink); background: white; border: 0; border-radius: 10px; width: min(640px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: 90vh; max-height: 90dvh; padding: 24px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 25px 100px #211a1640; }
dialog::backdrop { background: #211a1688; backdrop-filter: blur(3px); }
.dialog-toolbar, .cart-head { position: sticky; top: -24px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; padding-block: 8px; }
.dialog-toolbar { justify-content: flex-end; }
.close { flex-shrink: 0; border: 0; background: var(--sand); border-radius: 50%; width: 44px; height: 44px; font-size: 26px; color: var(--ink); }
.cart-head h2 { margin: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 145px); gap: 18px; border-bottom: 1px solid var(--line); padding-block: 16px; }
.cart-item p { font-size: 13px; margin: 4px 0; }
.cart-item input { width: 88px; margin-bottom: 8px; }
.cart-item > div:last-child { justify-self: end; max-width: 100%; }
.cart-item > div:last-child strong { font-size: 14px; }
.remove { background: none; border: 0; padding: 8px 0; min-height: 44px; color: #9a432e; font-size: 14px; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 20px 0 8px; }
.fine { font-size: 13px; }
.full { width: 100%; margin-top: 12px; }
.empty { text-align: center; padding-block: 24px; }
.fact { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.fact h3 { font-size: 16px; margin: 0; }
.fact p { white-space: pre-line; font-size: 15px; margin: 8px 0; }
.dialog-actions { margin-top: 12px; }
#detail .photo { max-height: 300px; aspect-ratio: 4/3; margin-bottom: 20px; }
#detail h2 { margin-block: 10px; }
#toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none; z-index: 5; width: max-content; max-width: calc(100% - 32px); text-align: center; }
#toast.visible { opacity: 1; }
.whatsapp-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 4; display: inline-flex; align-items: center; gap: 9px; min-height: 56px; padding: 10px 16px 10px 10px; border: 1px solid #117b48; border-radius: 999px; background: #25d366; color: white; box-shadow: 0 12px 28px #211a1638; font-size: 14px; font-weight: 800; letter-spacing: 0; transition: background .2s ease, transform .2s ease; }
.whatsapp-float:hover { background: #1db75a; transform: translateY(-2px); }
.whatsapp-mark { display: block; width: 34px; height: 34px; fill: currentColor; }
#cart-notice, .detail-notice { font-size: 14px; color: var(--leather); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes heroDrift {
  from { transform: scale(1.08) translateY(10px); }
  to { transform: scale(1.02) translateY(0); }
}

@keyframes gallerySlide {
  from { transform: translateX(0); }
  to { transform: translateX(-42%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero picture img, .gallery-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-media { order: 2; }
  .philosophy { grid-template-columns: minmax(0, 1fr); }
  .catalog-hero { grid-template-columns: minmax(0, 1fr); }
  .catalog-hero img { max-height: 440px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 28px; }
}

@media (max-width: 700px) {
  .wrap { padding-inline: 16px; }
  .header { flex-direction: column; gap: 8px; padding-block: 14px 10px; }
  .brand img { max-width: 142px; max-height: 48px; }
  .header nav { justify-content: center; gap: 4px 16px; font-size: 14px; }
  .cart-icon { width: 40px; height: 40px; font-size: 20px; }
  .hero { min-height: 430px; }
  .hero::after { background: linear-gradient(180deg, #00000088 0%, #00000078 55%, #00000040 100%); }
  .hero-overlay { padding-block: 42px; }
  .hero-overlay p { font-size: 16px; }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .intro { padding-block: 46px 24px; }
  .intro-images { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .about { padding-block: 34px; }
  .about-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about-media img:last-child { transform: translateY(20px); }
  .gallery { padding-block: 38px 48px; }
  .gallery-track { gap: 10px; animation-duration: 34s; }
  .gallery-track img { width: 210px; }
  .gallery-track img.gallery-landscape { width: 280px; }
  .catalog-hero { padding-block: 30px 6px; }
  .catalog-hero p:not(.eyebrow) { font-size: 16px; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 26px; }
  .catalogue-search { width: 100%; margin-top: 16px; }
  .browse-bar { gap: 8px; }
  .family-button { padding: 9px 14px; }
  #open-cart { font-size: 14px; padding: 10px 12px; }
  .family-heading { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 16px; }
  .card-bottom { display: block; }
  .add { width: 100%; margin-top: 12px; }
  .footer { align-items: flex-start; flex-direction: column; }
  dialog { padding: 16px; }
  .dialog-toolbar, .cart-head { top: -16px; }
  .cart-head h2, #detail h2 { font-size: 28px; }
  .cart-item { grid-template-columns: minmax(0, 1fr) minmax(0, 105px); gap: 12px; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .whatsapp-float .whatsapp-label { display: none; }
  .whatsapp-mark { width: 36px; height: 36px; }
}

@media (max-width: 359px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .photo { aspect-ratio: 4/3; }
  .browse-bar { flex-wrap: wrap; }
  #families { flex-basis: 100%; }
  #open-cart { width: 100%; }
  .cart-item { grid-template-columns: minmax(0, 1fr); }
  .cart-item > div:last-child { justify-self: stretch; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; }
}

.cart-icon#open-cart {
  flex-shrink: 0;
  padding: 0;
  min-height: 44px;
  width: 44px;
}

@media (max-width: 700px) {
  .cart-icon#open-cart {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 359px) {
  .cart-icon#open-cart {
    width: 40px;
  }
}
