:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --ink: #0d1117;
  --muted: #5e6672;
  --line: rgba(13, 17, 23, 0.1);
  --line-strong: rgba(13, 17, 23, 0.18);
  --blue: #3f6df6;
  --blue-soft: #dfe8ff;
  --shadow: 0 24px 60px rgba(18, 25, 38, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(63, 109, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, var(--bg) 54%, #f3f5f8 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

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

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.is-cart-open {
  overflow: hidden;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(13, 17, 23, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(18, 25, 38, 0.05);
}

.brand,
.hero h1,
.section-heading h2,
.checkout-banner h2,
.cart-drawer h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
}

.brand__mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1117, var(--blue));
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.cart-button,
.button,
.cart-close,
.cart-item__quantity button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.cart-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  min-height: 1.85rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button--ghost {
  background: transparent;
}

.button--small {
  min-height: 2.9rem;
  width: 100%;
}

.button:hover,
.button:focus-visible,
.cart-button:hover,
.cart-button:focus-visible,
.cart-close:hover,
.cart-close:focus-visible,
.cart-item__quantity button:hover,
.cart-item__quantity button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1.4rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding: 2.6rem 0 2rem;
}

.hero__eyebrow,
.section-heading__eyebrow,
.cart-drawer__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.88;
}

.hero__lede,
.section-heading p,
.benefit-card p,
.product-card__tone,
.product-card__price small,
.cart-item__meta span,
.checkout-note,
.status-panel p,
.site-footer {
  color: var(--muted);
}

.hero__lede {
  max-width: 38ch;
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.price-strip,
.benefit-strip {
  display: grid;
  gap: 1rem;
}

.price-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.price-strip div,
.hero-card,
.product-card,
.status-panel,
.checkout-banner,
.cart-drawer,
.category-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 17, 23, 0.06);
  box-shadow: var(--shadow);
}

.price-strip div {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.price-strip span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.price-strip strong {
  font-size: 1.08rem;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 0.8rem;
}

.hero-card__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 10px);
}

.section {
  padding: 1rem 0 2rem;
}

.section--compact {
  padding-top: 0;
}

.status-section {
  padding-bottom: 0.8rem;
}

.status-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.status-panel.is-canceled {
  border-color: rgba(217, 75, 75, 0.16);
  background: rgba(255, 248, 248, 0.96);
}

.status-panel p {
  margin: 0;
  line-height: 1.7;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.status-details div {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.status-details dt {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-details dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading h2,
.checkout-banner h2,
.cart-drawer h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.92;
}

.section-heading p {
  max-width: 32ch;
  margin: 0;
  line-height: 1.7;
  text-align: right;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0 1rem;
}

.category-heading--spaced {
  margin-top: 2rem;
}

.category-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-card__media {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: 1rem;
}

.product-card--black .product-card__media {
  background: linear-gradient(180deg, #eef1f5 0%, #f6f7f8 100%);
}

.product-card--tonal .product-card__media {
  background: linear-gradient(180deg, #f2f3f5 0%, #fafafa 100%);
}

.product-card--blue .product-card__media {
  background: linear-gradient(180deg, #ebf2ff 0%, #f8fbff 100%);
}

.product-card--white .product-card__media {
  background: linear-gradient(180deg, #f7f4ef 0%, #fffdfa 100%);
}

.product-card--alo-blue .product-card__media {
  background: linear-gradient(180deg, #e8edf9 0%, #f5f7fc 100%);
}

.product-card--alo-black .product-card__media {
  background: linear-gradient(180deg, #eff1f4 0%, #f8f9fb 100%);
}

.product-card--alo-white .product-card__media {
  background: linear-gradient(180deg, #f7f4ef 0%, #fffdfa 100%);
}

.product-card__image {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(18, 25, 38, 0.12));
  transition: transform 240ms ease;
}

.product-card:hover .product-card__image {
  transform: translateY(-4px);
}

.product-card__body {
  padding: 1.05rem;
}

.product-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
}

.product-card__tone {
  font-size: 0.82rem;
  text-align: right;
}

.product-card__price {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0 1.1rem;
}

.product-card__price span {
  color: #8993a1;
  text-decoration: line-through;
  font-size: 0.92rem;
}

.product-card__price strong {
  font-size: 1.6rem;
  line-height: 1;
}

.product-card__price small {
  font-size: 0.84rem;
}

.product-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.checkout-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1rem;
  line-height: 1.6;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(8, 10, 14, 0.42);
}

.cart-drawer {
  position: fixed;
  top: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(28rem, calc(100vw - 1.4rem));
  border-radius: 28px;
  transform: translateX(calc(100% + 1rem));
  transition: transform 260ms ease;
}

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

.cart-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

.cart-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-drawer__content {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
}

.cart-empty,
.checkout-note,
.checkout-error {
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.cart-empty p,
.checkout-note,
.checkout-error {
  margin: 0;
  line-height: 1.65;
}

.checkout-error {
  border-color: rgba(217, 75, 75, 0.18);
  background: rgba(255, 245, 245, 0.96);
  color: #bf3d3d;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.8rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.cart-item img {
  width: 100%;
  height: auto;
  display: block;
}

.cart-item__meta strong {
  display: block;
  margin-bottom: 0.2rem;
}

.cart-item__meta span {
  display: block;
  font-size: 0.85rem;
}

.cart-item__quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-item__quantity button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-item__remove {
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #d94b4b;
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-summary {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-summary__row--total {
  font-size: 1.08rem;
}

.button--checkout {
  width: 100%;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .section-heading,
  .checkout-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

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

  .section-heading p {
    text-align: left;
  }

  .status-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--content));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 14vw, 5.4rem);
    max-width: 100%;
  }

  .price-strip,
  .product-grid,
  .product-card__actions {
    grid-template-columns: 1fr;
  }

  .checkout-banner,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-drawer {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
