/* --- teekond ja toote vahetus ------------------------------------------- */
.pd-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.pd-bar-in {
  padding: 0.65rem var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-2);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.55;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.crumbs [aria-current] {
  color: var(--text);
}
.pd-skip {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.pd-skip a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pd-skip a:hover {
  color: var(--brand);
}
.pd-skip svg {
  width: 11px;
  height: 11px;
}
.pd-skip .prev svg {
  transform: rotate(90deg);
}
.pd-skip .next svg {
  transform: rotate(-90deg);
}
@media (max-width: 699px) {
  .pd-skip {
    display: none;
  }
}

/* --- tootepaneel: galerii + ostukast ------------------------------------- */
/* kogu akna laiuses nagu avalehe paneelid; ostukast on laial ekraanil kleepuv */
.pdp {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
  padding: clamp(1.4rem, 2.5vw, 2.25rem) var(--gut) clamp(2rem, 3.5vw, 3rem);
}
@media (min-width: 1000px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr) clamp(21rem, 27vw, 29rem);
  }
}

/* galerii: toote foto, mida saab suurendada */
.gal {
  display: grid;
  min-width: 0;
}
.stage {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  overflow: hidden;
}
/* laual annab korguse aken, mitte kulgsuhe - muidu kahaneb lava veerust kitsamaks ja korvale jaab tuhi ala */
@media (min-width: 1000px) {
  .stage {
    aspect-ratio: auto;
    height: min(62vh, 600px);
  }
}
.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage img {
  padding: clamp(1rem, 3%, 2.5rem);
}
.stage-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  color: var(--text);
}
.stage-zoom svg {
  width: 17px;
  height: 17px;
}
.stage-zoom:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* --- ostukast ------------------------------------------------------------- */
.buy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
@media (min-width: 1000px) {
  .buy {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    align-self: start;
  }
}
.buy-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}
.buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-2);
}
.buy-meta b {
  color: var(--text);
  font-weight: 500;
}
.buy-meta a {
  color: var(--brand);
}
.sum {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
}
.sum div {
  background: var(--surface);
  padding: 0.55rem 0.75rem;
  flex: 1 1 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sum dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sum dd {
  margin: 0;
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.p-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
}
.p-price b {
  font-family: Jost, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.p-price .km {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.p-price s {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
}
.p-price .out {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.2rem 0.4rem;
  align-self: center;
}
.p-net {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}
.p-delivery {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-2);
}

.qty-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.qty {
  display: flex;
  border: 1px solid var(--line);
  flex: none;
}
.qty button {
  width: 2.7rem;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}
.qty button:hover {
  background: var(--panel);
  color: var(--brand);
}
.qty button svg {
  width: 13px;
  height: 13px;
}
.qty input {
  width: 2.8rem;
  border: none;
  background: none;
  text-align: center;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.qty-row .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 1rem;
  min-height: 3.15rem;
}
.buy-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  align-items: center;
  font-size: 0.82rem;
}
.buy-alt a {
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.buy-alt a:hover {
  text-decoration: underline;
}
.buy-alt svg {
  width: 15px;
  height: 15px;
}

.assur {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-size: 0.83rem;
}
.assur li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.assur svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex: none;
  margin-top: 0.12rem;
}
.assur b {
  font-weight: 600;
}
.assur span {
  color: var(--text-2);
}

/* --- sisukord, mis jaab kerides nahtavale ---------------------------------- */
/* Baymard: horisontaalsed tabid peidavad sisu (27% ei leia) - uks pikk leht + kleepuv sisukord (8%) */
.toc {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc-in {
  display: flex;
  flex-wrap: wrap;
  padding-inline: var(--gut);
}
.toc a {
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  padding: 0.9rem 0;
  margin-right: clamp(1.1rem, 2.5vw, 2.2rem);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.toc a:hover {
  color: var(--text);
}
.toc a[aria-current] {
  color: var(--text);
  border-bottom-color: var(--brand);
}
/* kitsal ekraanil vork, mitte kulili kerija - iga link jaab nahtavaks */
@media (max-width: 719px) {
  .toc-in {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    padding: 0;
  }
  .toc a {
    background: var(--surface);
    margin: 0;
    padding: 0.6rem 0.3rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-align: center;
    justify-content: center;
    display: flex;
    border-bottom: none;
    border-top: 2px solid transparent;
  }
  .toc a[aria-current] {
    border-top-color: var(--brand);
  }
}

/* --- sektsioonid ------------------------------------------------------------ */
.sec {
  padding: var(--step) var(--gut);
  border-top: 1px solid var(--line);
}
.sec.alt {
  background: var(--paper);
}
.band-head {
  display: grid;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
@media (min-width: 900px) {
  .band-head {
    grid-template-columns: 1fr 1fr;
  }
}
.band-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.band-head .lede {
  color: var(--text-2);
}
.two {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
}

/* kirjeldus */
.body-txt {
  display: grid;
  gap: 1rem;
  max-width: 60ch;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
}
.body-txt b {
  color: var(--text);
  font-weight: 600;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.ticks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.45;
}
.ticks svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex: none;
  margin-top: 0.15rem;
}
.ticks b {
  display: block;
  color: var(--text);
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.ticks span {
  color: var(--text-2);
  font-size: 0.87rem;
}
.kit {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.7rem;
}
.kit h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
}
.kit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.kit li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.kit li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--brand);
  flex: none;
  transform: translateY(-2px);
}
.kit .opt {
  color: var(--text-2);
}

/* --- moodud ja andmed ------------------------------------------------------- */
.spec-cols {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
@media (min-width: 620px) {
  .spec-cols {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }
}
.spec-grp h4 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.specs th {
  text-align: left;
  font-weight: 400;
  color: var(--text-2);
  padding: 0.5rem 0.8rem 0.5rem 0;
  vertical-align: top;
  font-size: 0.83rem;
  border-top: 1px solid var(--line);
  width: 52%;
}
.specs td {
  padding: 0.5rem 0;
  vertical-align: top;
  border-top: 1px solid var(--line);
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: 1px solid var(--line);
}
.specs td .veo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.specs td .veo svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}
.specs td em {
  font-style: normal;
  color: var(--text-2);
}

/* mootjoonis: sama andmestik kui tabelis, inimese siluett annab suurusvorreldava */
.draw {
  border: 1px solid var(--line);
  background: var(--plate);
  padding: clamp(0.9rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.8rem;
}
.draw svg {
  width: 100%;
  height: auto;
  display: block;
}
.draw figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
}
.draw figcaption b {
  color: var(--text);
  font-weight: 500;
}
.fig-ink {
  color: var(--text);
}

/* --- markus dokumentide juures ----------------------------------------------- */
.note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.15rem;
  margin-top: 1.1rem;
}
.note svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand);
  margin-top: 0.15rem;
}
.note.warn svg {
  color: var(--warn);
}
.note b {
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.2rem;
}
.note p {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-2);
}
.note a {
  color: var(--brand);
}

/* --- dokumendid -------------------------------------------------------------- */
.docs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .docs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1250px) {
  .docs {
    grid-template-columns: repeat(3, 1fr);
  }
}
.docs li {
  background: var(--surface);
}
.docs li:only-child {
  grid-column: 1 / -1;
}
.doc {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.doc:hover {
  background: var(--paper);
}
.doc .ic {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--brand);
  flex: none;
}
.doc b {
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  display: block;
}
.doc small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.doc .dl {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-2);
  flex: none;
}
.doc:hover .dl {
  color: var(--brand);
}

/* --- kleepuv osturiba telefonis ---------------------------------------------- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem var(--gut) calc(0.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px -12px rgba(11, 12, 16, 0.5);
}
.buybar .nm {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}
.buybar b {
  font-family: Jost, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.buybar small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buybar .btn {
  margin-left: auto;
  flex: none;
}
@media (max-width: 999px) {
  .buybar.show {
    display: flex;
  }
}

/* --- suurendus ---------------------------------------------------------------- */
.lb {
  border: none;
  padding: 0;
  background: var(--surface);
  width: min(96vw, 1180px);
  max-width: 100%;
  max-height: 94vh;
  overflow: auto;
}
.lb::backdrop {
  background: rgba(11, 12, 16, 0.84);
}
/* koraldus tuleb sisust: joonise viewBox ja foto proportsioon maaravad korguse, taust on sama hall */
.lb-fig {
  margin: 0;
  position: relative;
  background: var(--plate);
  display: grid;
  max-height: 80vh;
  overflow: hidden;
}
.lb-fig img,
.lb-fig svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.lb-fig img {
  padding: clamp(1rem, 3%, 3rem);
}
.lb-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-2);
}
.lb-bar .btn {
  margin-left: auto;
}
.lb-x {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  color: var(--text);
}
.lb-x svg {
  width: 15px;
  height: 15px;
}
.lb-x:hover {
  border-color: var(--brand);
  color: var(--brand);
}
