/* Humus — base comum às 3 propostas */
:root {
  --preto: #03070D;
  --oliva: #50583C;
  --bege: #E3E1D4;
  --offwhite: #ECEAE8;
  --branco: #FFFFFF;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--branco); color: var(--preto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo via máscara: herda a cor do texto (currentColor) */
.mark { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark--mono { --m: url(logo/monograma.svg); aspect-ratio: 233 / 156; width: 44px; }
.mark--full { --m: url(logo/logo-completo.svg); aspect-ratio: 603 / 284; width: 110px; }

/* Ícones */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; position: relative; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bag__count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center; background: var(--oliva); color: var(--branco); opacity: 0; transform: scale(.6); transition: .25s; }
.bag__count.is-on { opacity: 1; transform: none; }

/* Gaveta (menu mobile) */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgb(3 7 13 / .45); }
.drawer[hidden] { display: none; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--branco); color: var(--preto); padding: 16px 24px; animation: slide .3s ease; }
.drawer__close { margin-left: -8px; }
.drawer__nav { display: flex; flex-direction: column; margin-top: 24px; }
.drawer__nav a { padding: 14px 0; border-bottom: 1px solid var(--offwhite); font-size: 18px; }
@keyframes slide { from { transform: translateX(-100%); } }

/* Amostras de cor e tamanhos */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(3 7 13 / .2); }
button.sw { width: 30px; height: 30px; outline-offset: 3px; }
button.sw.is-active { outline: 1px solid var(--preto); }
.swatches { display: flex; gap: 12px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { height: 44px; border: 1px solid rgb(3 7 13 / .2); font-size: 14px; transition: .15s; }
.size:hover { border-color: var(--preto); }
.size.is-active { background: var(--preto); color: var(--branco); border-color: var(--preto); }

/* Newsletter */
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-form input { flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 0; }
.nl-form button { height: 46px; padding: 0 22px; }
.nl-ok { display: none; width: 100%; font-size: 14px; }
.nl-form.is-done input, .nl-form.is-done button { display: none; }
.nl-form.is-done .nl-ok { display: block; }

/* Acordeões */
.acc details { border-top: 1px solid rgb(3 7 13 / .15); }
.acc details:last-child { border-bottom: 1px solid rgb(3 7 13 / .15); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; line-height: 1; }
.acc details[open] summary::after { content: "–"; }
.acc details p { padding-bottom: 16px; line-height: 1.6; font-size: 14px; opacity: .8; }

.hide-sm { display: none !important; }
@media (min-width: 1024px) { .hide-sm { display: inline-flex !important; } }

/* Galeria de produto: carrossel no mobile, empilhada no desktop */
.pdp__gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
.pdp__gallery::-webkit-scrollbar { display: none; }
.pdp__gallery img { flex: 0 0 85%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .pdp__gallery img { width: 100%; }
  .pdp__gallery img:first-child { grid-column: 1 / -1; }
}
