/* Ostler Leather Co., the product page of the Field Satchel: big photo, thumbnails, sizes and the Add to bag button */
:root {
  --carta: #f7f4ef;            /* warm white page */
  --quadro: #ebe6de;           /* the ground behind the photo while it loads */
  --inchiostro: #1b1916;       /* type and the lit button */
  --grigio: #8c867d;           /* small type */
  --filo: rgba(27, 25, 22, 0.14); /* hairlines and the pills' border */
  --spento: #e6e1d9;           /* the button before a size is chosen */
  --accento: #b4602a;          /* the one accent: cognac, like the leather */
  --raggio: 14px;
  --bordo: clamp(14px, 3vw, 48px);
  --foto-alta: min(76vh, 640px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  font-weight: 400;
  overflow: hidden;
}
p, h1, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; }
.solo-lettore { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pagina {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--bordo);
}

.palco {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 340px);
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px) clamp(20px, 3.4vw, 56px);
}

/* ---- thumbnails ---- */
.miniature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}
.mini {
  position: relative;
  width: clamp(44px, 4.4vw, 60px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--quadro);
}
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
.anello {
  position: absolute;
  left: -4px; top: -4px;
  width: calc(100% + 8px);
  border-radius: 11px;
  border: 1.5px solid var(--inchiostro);
  pointer-events: none;
  opacity: 0;
}

/* ---- the big photo ---- */
.quadro {
  position: relative;
  height: var(--foto-alta);
  aspect-ratio: 4 / 5;
  border-radius: var(--raggio);
  overflow: hidden;
  background: var(--quadro);
  box-shadow: 0 1px 1px rgba(27, 25, 22, 0.04), 0 18px 40px -22px rgba(27, 25, 22, 0.35);
  isolation: isolate;
}
.quadro__zoom { position: absolute; inset: 0; display: block; }
.quadro__foto { width: 100%; height: 100%; object-fit: cover; filter: brightness(1); }
.quadro__luce {
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
  z-index: 2;
}
.vista {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  padding: 7px 12px 7px;
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.vista__finestra { display: block; height: 1.25em; overflow: hidden; line-height: 1.25em; }
.vista__riga { display: block; white-space: nowrap; }

/* the thumbnail that grows into the big photo */
.volo {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  background: var(--quadro);
  box-shadow: 0 18px 40px -22px rgba(27, 25, 22, 0.45);
}
.volo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- information ---- */
.info { display: flex; flex-direction: column; min-width: 0; }
.info__testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(14px, 2.6vh, 28px); }
.marca, .etichetta, .borsa {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grigio);
  font-weight: 500;
}
.borsa { display: inline-flex; align-items: center; gap: 6px; color: var(--inchiostro); }
.borsa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.borsa__conta { display: inline-block; height: 1.2em; overflow: hidden; line-height: 1.2em; font-variant-numeric: tabular-nums; }
.borsa__riga { display: flex; flex-direction: column; }
.borsa__riga span { height: 1.2em; }

.nome {
  font-size: clamp(28px, min(3vw, 5vh), 44px);
  line-height: 1;
  font-weight: 600;
  font-variation-settings: 'wdth' 108;
  letter-spacing: -0.02em;
}
.colore { margin-top: 8px; font-size: 14px; color: var(--grigio); }

.prezzo { position: relative; display: flex; align-items: baseline; gap: 8px; margin-top: clamp(12px, 2vh, 20px); }
.prezzo__da { font-size: 13px; color: var(--grigio); }
.prezzo__cifre { display: inline-flex; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cifra { display: inline-block; height: 1.15em; overflow: hidden; line-height: 1.15em; width: 0.62em; text-align: center; }
.striscia { display: block; white-space: normal; width: 0.62em; word-spacing: 100vw; }

.descrizione { margin-top: clamp(10px, 1.8vh, 18px); font-size: 14px; line-height: 1.5; color: #4d4842; max-width: 32ch; }

.taglie { margin-top: clamp(16px, 3vh, 32px); }
.taglie__testa { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.guida { font-size: 12px; color: var(--inchiostro); text-decoration: none; border-bottom: 1px solid var(--filo); }
@media (hover: hover) {
  .guida:hover { border-bottom-color: var(--inchiostro); }
}
.pillole { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pillola-taglia {
  position: relative;
  z-index: 1;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--filo);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, border-color 0.3s;
}
.pillola-taglia[aria-checked="true"] { color: var(--carta); border-color: transparent; }
.pillola-taglia:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }
@media (hover: hover) {
  .pillola-taglia:not(.esaurita):not([aria-checked="true"]):hover { border-color: var(--inchiostro); }
}
.esaurita { color: #b3ada4; border-style: dashed; }
.barra { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.barra line { stroke: #b3ada4; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: none; }
.scelta {
  position: absolute;
  left: 0; top: 0;
  height: 40px;
  border-radius: 999px;
  background: var(--inchiostro);
  box-shadow: 0 6px 14px -8px rgba(27, 25, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  z-index: 0;
}
.nota { margin-top: 10px; height: 1.4em; overflow: hidden; font-size: 12.5px; line-height: 1.4em; color: var(--grigio); }
.nota__riga { display: block; white-space: nowrap; }
.nota__riga span { display: block; height: 1.4em; }
.nota b { font-weight: 500; color: var(--accento); }
.avvisami { font-size: inherit; color: var(--inchiostro); font-weight: 500; border-bottom: 1px solid var(--inchiostro); margin-left: 6px; }

/* ---- Add to bag ---- */
.compra {
  position: relative;
  margin-top: clamp(14px, 2.4vh, 26px);
  height: 54px;
  border-radius: 999px;
  background: var(--spento);
  overflow: hidden;
  isolation: isolate;
  font-size: 15px;
  font-weight: 500;
  color: #9b958b;
  cursor: not-allowed;
}
.compra.accesa { color: var(--carta); cursor: pointer; }
.compra:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
.compra__fondo {
  position: absolute; inset: 0;
  background: var(--inchiostro);
  border-radius: inherit;
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: -1;
}
.compra__luce {
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 226, 196, 0.18) 38%, rgba(255, 244, 232, 0.42) 50%, rgba(255, 226, 196, 0.18) 62%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}
.compra__finestra { position: relative; z-index: 1; display: block; height: 1.3em; overflow: hidden; line-height: 1.3em; }
.compra__riga { display: flex; flex-direction: column; align-items: center; }
.compra__riga > span { display: inline-flex; align-items: center; gap: 8px; height: 1.3em; }
.compra__riga svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compra__riga path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---- phone and small boxes: the photo on top, the information under it ---- */
@media (max-width: 760px) {
  .pagina { place-items: start center; padding: 12px; }
  .palco {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quadro {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: clamp(120px, 40vh, 340px);
    aspect-ratio: auto;
  }
  .miniature {
    grid-row: 1;
    grid-column: 1;
    z-index: 4;
    align-self: end;
    justify-self: end;
    flex-direction: row;
    gap: 6px;
    margin: 0 10px 10px 0;
  }
  .mini { width: clamp(26px, 8vw, 40px); border-radius: 6px; box-shadow: 0 0 0 1px rgba(247, 244, 239, 0.7); }
  .anello { border-color: var(--carta); border-radius: 9px; height: calc(100% + 8px); width: auto; }
  .vista { left: 10px; bottom: 10px; padding: 5px 9px; font-size: 11px; }
  .info__testa { margin-bottom: 4px; }
  .nome { font-size: clamp(20px, 6vw, 28px); }
  .colore, .descrizione, .taglie__testa { display: none; }
  .prezzo { position: absolute; right: 0; top: 18px; margin: 0; }
  .info { position: relative; }
  .prezzo__cifre { font-size: 18px; }
  .taglie { margin-top: 8px; }
  .pillola-taglia, .scelta { height: 32px; font-size: 13px; }
  .nota { margin-top: 6px; font-size: 11.5px; }
  .compra { margin-top: 8px; height: 42px; font-size: 14px; }
}
@media (max-width: 760px) and (min-height: 560px) {
  .colore, .taglie__testa { display: flex; }
  .colore { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01s !important; }
}
