/* Demo konfetki/prototip/index.html:2083–2086.
   Mobile <= 767.98px, tablet 768–1199.98px, desktop >= 1200px.
   Tablet keeps the desktop header/footer. Where the demo uses tq(px),
   px * 100 / 1440 gives 40 -> 2.778cqw, 24 -> 1.667cqw, 32 -> 2.222cqw,
   28 -> 1.944cqw, 12 -> 0.833cqw and 16 -> 1.111cqw. */
.k-page {
  /* Footer card and legal row side padding, index.html:1385, :2429. */
  --k-footer-card-side: clamp(20px, 3.3cqw, calc(var(--footer-card-side) * 1px));
  --k-footer-legal-side: clamp(12px, 1.9cqw, calc(var(--footer-legal-side) * 1px));

  /* The hero surface is 108.166deg, not the 113.629deg CTA accent, index.html:195, :203. */
  --k-gradient-hero: linear-gradient(108.166deg, #D8365E 3.51%, #E54F4F 42.25%, #F26F24 81%);
  --k-gradient-band: linear-gradient(100.042deg, #D8365E 2.48%, #E54F4F 42.08%, #F26F24 81.68%); /* :2256 */
  --k-gradient-backdrop: linear-gradient(100deg, #D8365E 2.48%, #E54F4F 42.08%, #F26F24 81.68%); /* :67 */
  --k-gradient-accent: linear-gradient(113.629deg, #D8365E 4.44%, #E54F4F 42.41%, #F26F24 80.37%); /* :203, :263, :895 */

  /* Product photo tints from index.html:1729, used by tile B.7. */
  --k-tint-raspberry: linear-gradient(180deg, #FFE0E6 0%, #FFF3EC 100%);
  --k-tint-peach: linear-gradient(180deg, #FFE7D6 0%, #FFF6EE 100%);
  --k-tint-warm: linear-gradient(180deg, #F5F0E8 0%, #FFF9F2 100%);

  --k-shadow-summary: 0 8px 32px rgba(115, 26, 31, 0.06); /* :681, :775 */
  --k-shadow-panel: 0 24px 64px rgba(37, 37, 37, 0.24); /* :103 */
  --k-shadow-dropdown: 0 12px 32px rgba(37, 37, 37, 0.12); /* :435 */
  --k-shadow-toast: 0 12px 32px rgba(0, 0, 0, 0.2); /* :1585 */
  --k-shadow-header: 0 8px 24px rgba(115, 26, 31, 0.18); /* :67 */
  --k-shadow-chip: 0 4px 12px rgba(37, 37, 37, 0.12); /* :369 */
}

/* Section-specific block padding stays with the page, index.html:237, :251. */
.k-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--k-side);
}

/* Section heading rows, index.html:238, :252. */
.k-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.k-section-head--bottom {
  align-items: flex-end;
}

/* Tile grids, index.html:2349, :2377–2381, :2473–2474, :2529. */
.k-grid {
  display: grid;
  gap: 40px 24px;
}

.k-grid--hits,
.k-grid--upsell,
.k-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.k-grid--catalog,
.k-grid--favourites,
.k-grid--tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.k-grid--tiers {
  gap: 24px;
}

/* Glass hit card surface, index.html:222–227. */
.k-glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px var(--bg-border-glass);
  border-radius: calc(var(--rounded-2xl) * 1px);
}

/* The same Glaze Edge SVG at two heights, index.html:233, :351. */
.k-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  display: block;
  color: var(--warm-50);
  pointer-events: none;
}

.k-wave--hero {
  height: clamp(32px, 4.2cqw, 80px);
}

.k-wave--band {
  height: clamp(20px, 2.6cqw, 40px);
}

/* Inner-page title band, index.html:333–353, :2256–2258, :2416–2418. */
.k-band {
  --k-band-padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  background: var(--k-gradient-band);
  color: var(--white);
}

.k-band--light {
  background: var(--warm-50);
  color: #252525;
}

.k-band--catalog {
  --k-band-padding-bottom: 72px;
}

.k-band__glow {
  position: absolute;
  left: 62cqw;
  top: -80px;
  width: 560px;
  height: 560px;
  opacity: .45;
  border-radius: 50%;
  background: #F26F24;
}

.k-band__body {
  position: relative;
  padding-block: calc(2 * var(--k-hdr-top) + var(--k-hdr-h)) var(--k-band-padding-bottom);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.k-band__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.k-band__crumb {
  color: inherit;
  opacity: .85;
}

.k-band__crumb:hover {
  color: inherit;
}

.k-band__crumb[aria-current="page"] {
  opacity: 1;
  font-weight: 500;
}

.k-band__title {
  margin: 0;
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-size: clamp(40px, 3.9cqw, 56px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.k-band__sub {
  margin: -12px 0 0;
  font-size: clamp(14px, 1.25cqw, 18px);
  line-height: 1.5;
  font-weight: 500;
}

.k-band__sub-mobile {
  display: none;
}

/* Home hero and its two glows, index.html:195–201, :2334–2343. */
.k-hero {
  position: relative;
  overflow: hidden;
  background: var(--k-gradient-hero);
}

.k-hero__glow {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
}

.k-hero__glow--one {
  left: -200px;
  top: 420px;
  width: 700px;
  height: 700px;
  background: #F26F24;
}

.k-hero__glow--two {
  left: calc(50% - 20px);
  top: -260px;
  width: 680px;
  height: 680px;
  background: #C42F52;
}

.k-hero__inner {
  position: relative;
  padding-block: clamp(120px, 10.4cqw, 150px) clamp(80px, 7cqw, 106px);
  display: grid;
  grid-template-columns: minmax(0, 669fr) minmax(0, 627fr);
  gap: 16px 24px;
}

.k-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.k-hero__title {
  max-width: 669px;
  color: var(--white);
  text-wrap: balance;
}

.k-hero__lead {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: clamp(14px, 1.25cqw, 18px);
  line-height: 1.56;
  color: var(--white);
}

/* CTA and fact placeholders, index.html:202–211, :2345. */
.k-hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: stretch;
  gap: 16px 32px;
}

.k-hero__cta {
  height: 56px;
  padding: 0 6px 0 28px;
  border-radius: 999px;
  background: var(--white);
  color: #252525;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.k-hero__cta-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--k-gradient-accent);
}

.k-hero__marketplace {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.k-hero__facts {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.k-hero__fact {
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--white-a18);
  box-shadow: inset 0 0 0 1px var(--white-a55);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero artwork slot and glass card, index.html:216–230, :2334, :2344. */
.k-hero__art {
  position: relative;
  min-width: 0;
  min-height: clamp(380px, 40cqw, 560px);
}

/* Artwork placement and square source PNGs, index.html:217–221. */
.k-hero__photo {
  position: absolute;
  aspect-ratio: 1;
}

.k-hero__photo--first {
  left: 0;
  top: -6%;
  width: 62%;
}

.k-hero__photo--second {
  right: -2%;
  top: 4%;
  width: 46%;
}

.k-hero__photo--third {
  left: 20%;
  top: 40%;
  width: 40%;
}

.k-hero__hit {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.k-hero__hit-photo,
.k-hero__hit-mark {
  flex: 0 0 auto;
  background: var(--white);
}

.k-hero__hit-photo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.k-hero__hit-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.k-hero__hit-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  color: var(--white);
}

/* Header overlay and capsule, index.html:66–78. */
.k-sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 0;
}

.k-sticky-header__backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: calc(2 * var(--k-hdr-top) + var(--k-hdr-h));
  background: var(--k-gradient-backdrop);
  box-shadow: var(--k-shadow-header);
  transition: opacity .12s;
}

.k-sticky-header__capsule {
  position: absolute;
  top: var(--k-hdr-top);
  left: 0;
  right: 0;
}

/* Order summary, index.html:681, :775, :2488, :2533. */
.k-sticky-summary {
  width: min(420px, 100%);
  border-radius: calc(var(--rounded-2xl) * 1px);
  background: var(--white);
  box-shadow: var(--k-shadow-summary);
}

/* Mobile action bar surface, index.html:1423. */
.k-sticky-bottom {
  background: var(--white);
  border-top: 1px solid var(--bg-border);
}

/* Toast anchor and two mobile offsets, index.html:1584, :3060. */
.k-sticky-toast {
  --k-toast-bottom: 24px;
  position: sticky;
  bottom: var(--k-toast-bottom);
  z-index: 50;
  height: 0;
  display: flex;
  justify-content: center;
}

@media (min-width: 1200px) {
  /* index.html:2488, :2533 */
  .k-sticky-summary {
    position: sticky;
    top: calc(var(--k-hdr-top) + var(--k-hdr-h) + 32px);
    align-self: start;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  /* Only these grids use tq() for gaps, index.html:2349, :2377–2381, :2473–2474, :2529. */
  .k-grid--hits,
  .k-grid--catalog,
  .k-grid--related {
    gap: 2.778cqw 1.667cqw;
  }

  .k-grid--upsell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .k-grid--favourites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-grid--tiers {
    gap: 1.667cqw;
  }

  /* Hero tablet title phrases and gap, index.html:2337–2342. */
  .k-hero__inner {
    column-gap: 1.667cqw;
  }

  .k-hero__title {
    max-width: none;
  }

  .k-hero__title span {
    white-space: nowrap;
  }
}

@media (768px <= width < 900px) {
  /* Narrow tablet favourites, index.html:2379–2381. */
  .k-grid--favourites {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  /* Footer legal row, index.html:2429. */
  .k-page {
    --k-footer-legal-side: 24px;
  }

  /* Tile grids, index.html:2349, :2377–2381, :2473–2474, :2529. */
  .k-grid {
    gap: 24px 16px;
  }

  .k-grid--hits,
  .k-grid--upsell,
  .k-grid--catalog,
  .k-grid--related,
  .k-grid--favourites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-grid--tiers {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
  }

  /* Mobile title band, index.html:2416–2418. */
  .k-band--catalog {
    --k-band-padding-bottom: 48px;
  }

  .k-band__body {
    padding-block-start: 72px;
  }

  .k-band__crumbs {
    display: none;
  }

  .k-band__title {
    font-size: 32px;
  }

  .k-band__sub {
    font-size: 14px;
  }

  .k-band__sub-wide {
    display: none;
  }

  .k-band__sub-mobile {
    display: inline;
  }

  /* Single-column hero, index.html:2334, :2343–2345. */
  .k-hero__inner {
    padding-block: 88px 72px;
    grid-template-columns: minmax(0, 1fr);
  }

  .k-hero__cta {
    flex: 1 1 100%;
  }

  .k-hero__art {
    min-height: 0;
  }

  .k-hero__photo {
    display: none;
  }

  .k-hero__hit {
    position: relative;
    width: 100%;
  }

}

@media (width < 768px) {
  /* Action panels and toast anchors, index.html:1423, :3060. */
  .k-sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 30;
  }

  .k-sticky-toast {
    --k-toast-bottom: 96px;
  }

  .k-sticky-toast--above-actions,
  .k-page:has(> [data-mobile-bottom] > [data-mobile-panel]:not([hidden])) .k-sticky-toast {
    --k-toast-bottom: 178px;
  }
}
