@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #151311;
  --ink-soft: #2a2622;
  --paper: #f6f3ee;
  --card: #ffffff;
  --muted: #6f675f;
  --line: #e6dfd5;
  --wood: #a8743f;
  --wood-soft: #f0e6da;
  --wa: #1fa855;
  --radius: 22px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.025em; }
a { color: inherit; }
.sprite { position: absolute; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  color: #fff; transition: background .25s, color .25s, box-shadow .25s;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(246, 243, 238, .86); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid { transition: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.1rem; font-weight: 500; }
.brand strong { font-weight: 750; color: var(--wood); }
.site-header:not(.is-scrolled):not(.is-solid) .brand img { background: #f6f3ee; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--wood); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-small { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 128px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.eyebrow { margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #d7b48c; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: #d7b48c; }
.lead { margin: 22px 0 32px; max-width: 42ch; font-size: 1.12rem; color: #cbc3b9; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 44px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); color: #a89f95; font-size: .88rem; }
.hero-facts strong { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1.1; }

.hero-collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .95; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-collage .c1 { grid-row: 1 / -1; }

/* Catalog */
.catalog-section { padding: 96px 0 24px; }
.catalog-section + .catalog-section { padding-top: 72px; }
.section-head { margin-bottom: 36px; }
.section-index { display: inline-block; margin-bottom: 14px; font-family: var(--display); font-size: .9rem; font-weight: 600; color: var(--wood); padding: 5px 12px; border-radius: 999px; background: var(--wood-soft); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(21, 19, 17, .35); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3.4; background: #efe9e1; overflow: hidden; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; color: transparent; }
.card:hover .card-media > img { transform: scale(1.04); }
.card-media.is-empty { display: grid; place-items: center; color: var(--muted); font-size: .92rem; }
.card-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.card-tags span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: .74rem; font-weight: 600; }
.card-thumbs { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.card-thumbs button {
  width: 42px; height: 42px; padding: 0; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .9); background: center / cover no-repeat; opacity: .8;
}
.card-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }

.card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 22px; flex: 1; }
.card-title { font-size: 1.35rem; font-weight: 650; letter-spacing: -.015em; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--wood); }
.card-sizes-summary { margin: 0; font-size: .84rem; font-weight: 500; }
.card-actions { display: flex; gap: 8px; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.card-desc { margin: 0; color: var(--muted); font-size: .93rem; }
.card-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.card-sizes button {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font: 600 .86rem/1 var(--text); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.card-sizes button:hover { border-color: var(--ink); }
.card-sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-price { font-family: var(--display); font-weight: 650; font-size: 1.05rem; }

/* Product page */
.product-view { padding: 100px 0 24px; }
.product-view[hidden] { display: none; }
.pd-back { display: inline-block; margin-bottom: 24px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--muted); }
.pd-back:hover { color: var(--ink); }
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: 92px; display: grid; gap: 12px; }
.pd-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #efe9e1; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main.is-empty { display: grid; place-items: center; color: var(--muted); }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button { width: 84px; height: 84px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .7; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .card-tags { position: static; margin-bottom: 14px; }
.pd-info .card-tags span { background: var(--wood-soft); color: var(--ink); }
.pd-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; outline: none; }
.pd-ideal { margin: 12px 0 0; color: var(--wood); font-weight: 600; }
.pd-text { margin: 16px 0 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 56ch; }
.pd-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 24px 0 0; padding: 18px 0; border-block: 1px solid var(--line); font-size: .94rem; }
.pd-facts dt { color: var(--muted); }
.pd-facts dd { margin: 0; font-weight: 500; }
.pd-label { margin: 26px 0 10px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-sizes button { padding: 11px 18px; font-size: .95rem; }
.pd-price { margin: 24px 0 12px; font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.pd-order { width: 100%; padding: 17px 24px; font-size: 1.02rem; }
.pd-order svg { width: 22px; height: 22px; }
.pd-subtitle { margin: 40px 0 14px; font-size: 1.4rem; font-weight: 650; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--card); border-radius: 16px; overflow: hidden; }
.pd-table th, .pd-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.pd-table th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #fbf9f6; }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.pd-related { margin-top: 88px; }
.pd-related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 24px; }

/* Contact */
.contact { padding: 96px 0; }
.contact-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 52px; border-radius: 32px; background: var(--ink); color: #fff;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
.contact p { margin: 10px 0 0; color: #cbc3b9; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-outline { overflow-wrap: anywhere; }

.site-footer { padding: 0 0 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .brand { font-size: .95rem; color: var(--ink); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); box-shadow: 0 10px 30px rgba(31, 168, 85, .45);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive grid: never leave a card alone on the last row */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  /* Odd count in 2 columns: the first card becomes a wide featured card */
  .grid > .card:first-child:nth-last-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .grid > .card:first-child:nth-last-child(odd) .card-media { flex: 1.1; aspect-ratio: auto; min-height: 340px; }
  .grid > .card:first-child:nth-last-child(odd) .card-body { flex: 1; padding: 30px; }
}
@media (min-width: 1021px) {
  /* A lone product (e.g. one earphone model) spans the row as a featured card */
  .grid > .card:only-child { grid-column: 1 / -1; flex-direction: row; }
  .grid > .card:only-child .card-media { flex: 1.3; aspect-ratio: auto; min-height: 380px; }
  .grid > .card:only-child .card-body { flex: 1; padding: 36px; justify-content: center; }
  .grid > .card:only-child .card-foot { margin-top: 12px; }
}
@media (max-width: 860px) {
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; }
  .product-view { padding-top: 88px; }
  .hero { padding: 108px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-collage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .pd-thumbs button { width: 64px; height: 64px; }
  .pd-table th, .pd-table td { padding: 10px; }
  .nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid > .card:first-child:nth-last-child(odd) { flex-direction: column; }
  .grid > .card:first-child:nth-last-child(odd) .card-media { aspect-ratio: 4 / 3.4; min-height: 0; }
  .grid > .card:first-child:nth-last-child(odd) .card-body { padding: 22px; }
  .contact-inner { padding: 32px 24px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; font-size: .8rem; }
  .hero-facts strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

