/* ─────────────────────────────────────────────────────────────────────────────
   Alternative /veikals layouts: Vitrīna (vt-), Katalogs (kt-), Plaukts (pk-).
   Loaded only when one of them is active. Same paper, inks and outlines as the
   rest of the site — no new colours, nothing dark, nothing rounded.
   ───────────────────────────────────────────────────────────────────────────*/

/* Shared bits ---------------------------------------------------------------*/
.sv-dots { display: inline-flex; align-items: center; gap: 4px; }
.sv-dot { width: 13px; height: 13px; border: var(--hairline) solid var(--ink); display: inline-block; }
.sv-dot-more { font-size: var(--micro); color: var(--ink-mute); font-weight: 600; }
.shop-how-wrap { margin-top: 34px; border-top: var(--rule-weight) solid var(--rule); padding-top: 10px; }
.shop-vt .shop-tabs, .shop-kt .shop-tabs, .shop-pk .shop-tabs { margin-bottom: 10px; }

/* ═══ Vitrīna ═══════════════════════════════════════════════════════════════*/
.vt-head { padding: 22px 0 16px; display: grid; grid-template-columns: auto minmax(0, 56ch); gap: 8px 32px; align-items: end; }
.vt-head h1 { font-size: clamp(44px, 6vw, 92px); line-height: .85; }
.vt-head p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.vt-hero {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  border: var(--outline); background: var(--field-strong); box-shadow: 6px 6px 0 var(--orange);
  margin: 4px 0 28px;
}
.vt-hero__media { display: block; background: var(--paper-deep); border-right: var(--outline); aspect-ratio: 1 / 1; overflow: hidden; }
/* Mockups bring their own paper square; filling the frame avoids a square in a square. */
.vt-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.vt-hero__text { padding: clamp(18px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.vt-kicker {
  margin: 0; align-self: flex-start; padding: 3px 8px; background: var(--amber); color: var(--ink);
  font-size: var(--micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.vt-hero__name { font-size: clamp(32px, 4.2vw, 64px); line-height: .9; margin: 0; }
.vt-hero__name a { color: inherit; text-decoration: none; }
.vt-hero__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.vt-hero__desc { margin: 0; color: var(--ink-soft); line-height: 1.55; max-width: 48ch; }
.vt-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vt-hero__price {
  font-family: var(--font-display); font-style: var(--slant); font-weight: 800;
  font-size: clamp(30px, 3vw, 44px); color: var(--orange); line-height: 1;
}
.vt-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-hero__actions form { margin: 0; }

.vt-bar { display: grid; gap: 0; }
.vt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px) clamp(12px, 1.6vw, 24px); }
.vt-card { display: grid; align-content: start; gap: 10px; }
.vt-card__media {
  position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden;
  background: var(--paper-deep); border: var(--outline);
  transition: box-shadow .15s ease, transform .15s ease;
}
.vt-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.vt-card__alt { opacity: 0; }
.vt-card__media--swap:hover .vt-card__alt, .vt-card__media--swap:focus-visible .vt-card__alt { opacity: 1; }
.vt-card__media--swap:hover img:first-child { opacity: 0; }
.vt-card__media:hover { box-shadow: 5px 5px 0 var(--orange); transform: translate(-2px, -2px); }
.vt-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.vt-card__name { margin: 0; font-size: clamp(18px, 1.5vw, 24px); line-height: 1; }
.vt-card__name a { color: var(--ink); text-decoration: none; }
.vt-card__name a:hover { text-decoration: underline; }
.vt-card__price { font-family: var(--font-display); font-style: var(--slant); font-weight: 800; font-size: clamp(20px, 1.6vw, 26px); color: var(--orange); white-space: nowrap; }
.vt-card__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-card__quick { grid-column: 1 / -1; }
.vt-card__quick form { margin: 0; }
.vt-flag, .pk-flag, .kt-flag {
  font-size: var(--micro); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--paper); border: var(--hairline) solid var(--ink); padding: 1px 6px; color: var(--ink-mute);
}
.vt-flag, .pk-flag { position: absolute; top: 8px; right: 8px; z-index: 1; }

@media (max-width: 1080px) { .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .vt-head { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .vt-hero { grid-template-columns: minmax(0, 1fr); box-shadow: 4px 4px 0 var(--orange); }
  .vt-hero__media { border-right: 0; border-bottom: var(--outline); aspect-ratio: 1 / .9; }
}
@media (max-width: 560px) {
  .vt-grid { gap: 18px 10px; }
  .vt-card__body { grid-template-columns: minmax(0, 1fr); }
  .vt-card__name { font-size: 16px; }
  .vt-card__price { font-size: 19px; }
}

/* ═══ Katalogs ══════════════════════════════════════════════════════════════*/
.kt-head {
  display: grid; grid-template-columns: auto minmax(0, 58ch); gap: 8px 32px; align-items: end;
  padding: 20px 0 14px; margin-bottom: 14px; border-bottom: var(--rule-weight) solid var(--rule);
}
.kt-head__kicker { margin: 0 0 4px; font-size: var(--micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.kt-head h1 { font-size: clamp(40px, 5vw, 76px); line-height: .85; }
.kt-head p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }

/* Column template shared by the header line and every row. */
.kt-cols, .kt-row {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr) minmax(120px, 190px) 92px minmax(200px, 250px);
  gap: 16px; align-items: center;
}
.kt-cols {
  padding: 0 12px 6px; font-size: var(--micro); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.kt-cols span:nth-child(5) { text-align: right; }
.kt-group { margin: 0 0 22px; }
.kt-group__title {
  display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 6px 12px;
  background: var(--ink); color: var(--paper); font-size: clamp(20px, 1.8vw, 26px);
}
.kt-group__count { font-family: var(--font-text); font-style: normal; font-size: 12px; font-weight: 600; color: var(--amber); }
.kt-list { list-style: none; margin: 0; padding: 0; border: var(--outline); border-top: 0; background: var(--field-strong); }
.kt-row { padding: 10px 12px; border-top: var(--hairline) solid var(--rule-soft); }
.kt-row:first-child { border-top: 0; }
.kt-row:nth-child(even) { background: var(--field); }
.kt-row:hover { background: var(--accent-wash); }
.kt-no { font-family: var(--font-display); font-style: var(--slant); font-size: 22px; color: var(--ink-mute); }
.kt-thumb { display: block; width: 96px; aspect-ratio: 1 / 1.05; background: var(--paper-deep); border: var(--hairline) solid var(--ink); overflow: hidden; }
.kt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kt-main { min-width: 0; }
.kt-name { margin: 0 0 3px; font-size: 19px; line-height: 1.05; }
.kt-name a { color: var(--ink); text-decoration: none; }
.kt-name a:hover { text-decoration: underline; }
.kt-desc { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.4; }
.kt-facts { display: grid; gap: 6px; justify-items: start; }
.kt-sizes { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kt-price {
  font-family: var(--font-display); font-style: var(--slant); font-weight: 800;
  font-size: 24px; text-align: right; color: var(--orange); white-space: nowrap;
}
.kt-buy form { margin: 0; }
.sv-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.sv-pick__select { min-height: 36px; padding-block: 4px; font-size: 13px; }
.kt-buy > form:not(.sv-pick) .btn, .kt-buy > .btn { width: 100%; }

@media (max-width: 1080px) {
  .kt-cols { display: none; }
  .kt-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "thumb main price" "thumb facts facts" "buy buy buy";
    gap: 8px 14px; align-items: start;
  }
  .kt-no { display: none; }
  .kt-thumb { grid-area: thumb; width: 84px; }
  .kt-main { grid-area: main; }
  .kt-facts { grid-area: facts; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .kt-price { grid-area: price; font-size: 22px; }
  .kt-buy { grid-area: buy; }
}
@media (max-width: 760px) { .kt-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 470px) {
  .kt-row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb main" "thumb price" "facts facts" "buy buy"; }
  .kt-thumb { width: 72px; }
  .kt-price { text-align: left; font-size: 20px; }
  .kt-desc { display: none; }
}

/* ═══ Plaukts ═══════════════════════════════════════════════════════════════*/
.pk-head { padding: 18px 0 14px; display: grid; grid-template-columns: auto minmax(0, 56ch); gap: 8px 32px; align-items: end; }
.pk-head h1 { font-size: clamp(48px, 7vw, 110px); line-height: .82; }
.pk-head__dot { color: var(--orange); }
.pk-head p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.pk-group { margin: 8px 0 30px; }
.pk-group__title {
  font-size: clamp(30px, 3.4vw, 52px); line-height: .9; margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: var(--rule-weight) solid var(--rule);
}
.pk-group__title sup { font-family: var(--font-text); font-style: normal; font-size: 13px; font-weight: 700; color: var(--orange); margin-left: 6px; vertical-align: super; }
.pk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
.pk-tile { display: grid; gap: 8px; align-content: start; transform: rotate(-.7deg); transition: transform .15s ease; }
.pk-tile:nth-child(3n + 2) { transform: rotate(.6deg); }
.pk-tile:nth-child(4n + 3) { transform: rotate(-.3deg); }
.pk-tile:hover, .pk-tile:focus-within { transform: none; }
.pk-tile__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--field-strong); border: var(--outline); box-shadow: var(--offset-sm);
}
.pk-tile:hover .pk-tile__media { box-shadow: 5px 5px 0 var(--orange); }
.pk-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.pk-tag {
  position: absolute; left: -2px; bottom: 10px; z-index: 1; padding: 3px 9px 2px;
  background: var(--orange); color: var(--on-accent); border: var(--outline); border-left: 0;
  font-family: var(--font-display); font-style: var(--slant); font-weight: 800; font-size: 19px; line-height: 1;
  transform: rotate(-3deg); transform-origin: left center;
}
.pk-tile__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.pk-tile__name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.25; }
.pk-tile__name:hover { text-decoration: underline; }
.pk-tile__sizes { font-size: var(--micro); color: var(--ink-mute); white-space: nowrap; padding-top: 2px; }
.pk-tile__foot form { margin: 0; }
.pk-quick {
  border: var(--outline); background: var(--paper); color: var(--ink); cursor: pointer;
  font: 700 11px/1 var(--font-text); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; white-space: nowrap;
}
.pk-quick:hover { background: var(--ink); color: var(--paper); }
.pk-quick:focus-visible { box-shadow: var(--focus); outline: 0; }

@media (max-width: 1280px) { .pk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pk-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .pk-tag { font-size: 16px; }
  .pk-tile__foot { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-tile, .pk-tile:nth-child(3n + 2), .pk-tile:nth-child(4n + 3) { transform: none; transition: none; }
  .vt-card__media, .vt-card__media img { transition: none; }
  .vt-card__media:hover { transform: none; }
}
