:root {
  --navy: #0f2a5c;
  --navy-dark: #0a1d40;
  --red: #c8102e;
  --red-dark: #a50d26;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --tile: #f6f6f6;
  --white: #ffffff;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Ticker ---------- */

.ticker {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker__track {
  display: inline-flex;
  padding: 9px 0;
  animation: ticker 40s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.ticker__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__badge {
  width: 34px;
  height: 34px;
}

.logo__word {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.logo__word small {
  font-size: 22px;
  font-weight: 400;
}

@media (max-width: 480px) {
  .logo__word small {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .site-header__inner {
    gap: 20px;
  }

  .nav {
    gap: 20px;
  }

  .search {
    width: 180px;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .search {
    display: none;
  }
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a.nav__hot {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  width: 220px;
}

.search:focus-within {
  border-color: var(--ink);
  background: var(--white);
}

.search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  width: 100%;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
}

.icon-btn:hover {
  background: var(--tile);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .site-header__inner {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(320px, 85vw);
    padding: 20px 0;
    background: var(--white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 16px 24px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .logo {
    flex: 1;
  }

  .search {
    display: none;
  }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
}

.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.underline-link {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
}

.underline-link:hover {
  color: var(--red);
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 28px 0;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
}

.center {
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 440px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(44px, 6.4vw, 84px);
}

.hero__title span {
  color: var(--red);
  -webkit-text-stroke: 0;
}

.hero__copy {
  max-width: 460px;
  margin: 0 0 28px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.hero .btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.hero .btn--ghost {
  background: transparent;
  color: var(--white);
}

.hero__art {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero__art img {
  width: min(460px, 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg) translateY(24px);
}

@media (max-width: 820px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: left;
  }

  .hero__art img {
    width: 80%;
  }
}

/* ---------- Category carousel ---------- */

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 8px) / 4);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  transform: translateY(-50%);
}

.carousel__btn:disabled {
  border-color: var(--line);
  color: #bbb;
  cursor: default;
}

.carousel__btn--prev {
  left: -58px;
}

.carousel__btn--next {
  right: -58px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 2 / 3;
  padding: 24px 16px 28px;
  background: var(--tile);
  scroll-snap-align: start;
  transition: background 0.15s ease;
}

.cat-card:hover {
  background: #efefef;
}

.cat-card__img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.cat-card__img img {
  max-height: 100%;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__img img {
  transform: scale(1.04);
}

.cat-card__label {
  margin-top: 16px;
  font-size: 18px;
  text-align: center;
}

@media (max-width: 1320px) {
  .carousel__btn--prev {
    left: 8px;
  }

  .carousel__btn--next {
    right: 8px;
  }
}

@media (max-width: 820px) {
  .carousel__track {
    grid-auto-columns: 62%;
  }

  .carousel__btn {
    display: none;
  }
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 10px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--tile);
  overflow: hidden;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-card__media img + img {
  opacity: 0;
}

.product-card:hover .product-card__media img:first-child {
  transform: scale(1.04);
}

.product-card:hover .product-card__media img + img {
  opacity: 1;
}

.product-card:hover .product-card__media img:has(+ img) {
  opacity: 0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--red {
  background: var(--red);
}

.product-card__quick {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 42px;
  border: 0;
  background: var(--white);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .product-card__quick {
    display: none;
  }
}

.product-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.product-card__price {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Spotlight (Brand Spotlight style) ---------- */

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.spot-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.spot-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.spot-card__img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: var(--tile);
}

.spot-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-card__label {
  font-size: 18px;
}

/* ---------- Feature band ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.feature__media {
  background: var(--tile);
}

.feature__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
}

.feature__copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 820px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ig-embed {
  max-width: 540px;
  margin: 0 auto;
}

.ig-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5);
  color: var(--white);
  text-align: center;
}

.ig-placeholder svg {
  width: 56px;
  height: 56px;
}

.ig-placeholder .display {
  font-size: 30px;
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--red);
  color: var(--white);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.newsletter__title {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 44px);
}

.newsletter__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter form {
  display: flex;
  gap: 8px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  font: inherit;
}

.newsletter .btn {
  height: 52px;
  background: var(--ink);
  border-color: var(--ink);
}

.newsletter .btn:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.form-msg {
  margin: 10px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .newsletter__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .logo__word {
  color: var(--white);
}

.site-footer__tag {
  max-width: 300px;
  margin: 14px 0 0;
}

.site-footer__bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Shop page ---------- */

.page-head {
  padding: 40px 0 8px;
  text-align: center;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 56px);
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.empty {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- Product page ---------- */

.breadcrumbs {
  display: flex;
  gap: 8px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

@media (max-width: 860px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
}

.gallery--single {
  grid-template-columns: 1fr;
}

.gallery__thumbs {
  display: grid;
  gap: 8px;
}

.gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  background: var(--tile);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--ink);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery__main {
  background: var(--tile);
  aspect-ratio: 4 / 5;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    order: 2;
    grid-template-columns: repeat(5, 64px);
  }
}

.pdp__info h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
}

.pdp__price {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
}

.pdp__desc {
  margin: 0 0 24px;
  color: #333;
}

.opt-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.opt-label span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.size-btn {
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
}

.size-btn:hover {
  border-color: var(--ink);
}

.size-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.sizes.is-error .size-btn {
  border-color: var(--red);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  height: 50px;
}

.qty button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.qty button:hover {
  background: var(--tile);
}

.qty output {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}

.buy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.buy-row .btn {
  flex: 1;
}

.perks {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  background: var(--tile);
  font-size: 14px;
}

.perks div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perks svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

details.acc {
  border-top: 1px solid var(--line);
}

details.acc:last-of-type {
  border-bottom: 1px solid var(--line);
}

details.acc summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

details.acc summary::-webkit-details-marker {
  display: none;
}

details.acc summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
}

details.acc[open] summary::after {
  content: "–";
}

details.acc ul,
details.acc p {
  margin: 0 0 16px;
  color: #333;
}

details.acc ul {
  padding-left: 18px;
}

/* ---------- Cart drawer ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  margin: 0;
  font-size: 24px;
}

.drawer__ship {
  padding: 12px 20px;
  background: var(--tile);
  font-size: 13px;
}

.drawer__bar {
  height: 4px;
  margin-top: 8px;
  background: var(--line);
  overflow: hidden;
}

.drawer__bar span {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}

.drawer__empty {
  padding: 48px 0;
  text-align: center;
}

.drawer__empty p {
  margin: 0 0 20px;
  color: var(--muted);
}

.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line__img {
  aspect-ratio: 4 / 5;
  background: var(--tile);
}

.line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.line__name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.line__meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.line .qty {
  height: 34px;
}

.line .qty button {
  width: 32px;
  font-size: 15px;
}

.line__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

.line__remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

.line__remove:hover {
  color: var(--red);
}

.drawer__foot {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}

.drawer__note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.drawer__error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transform: translate(-50%, 140%);
  transition: transform 0.25s ease;
}

.toast.is-open {
  transform: translate(-50%, 0);
}

/* ---------- How to play ---------- */

.rules-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.rules-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.rules-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 6vw, 76px);
}

.rules-hero p {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.rules-hero img {
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

@media (max-width: 820px) {
  .rules-hero__inner {
    grid-template-columns: 1fr;
  }
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
}

.rule-block h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.rule-block ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.rule-block li {
  position: relative;
  padding-left: 42px;
  counter-increment: step;
}

.rule-block li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

/* ---------- Success / 404 ---------- */

.message-page {
  padding: 96px 0;
  text-align: center;
}

.message-page h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 68px);
}

.message-page p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
}

.message-page img {
  width: 220px;
  margin: 0 auto 28px;
  border-radius: 10px;
}
