@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
}

:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --navy: #0c1528;
  --blue: #3868cb;
  --success: #147a4b;
  --danger: #b42318;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

button:hover,
.button:hover {
  background: #293142;
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--soft);
}

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

.button-light:hover {
  background: #e9edf5;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid #f0f1f3;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}

.site-nav a {
  font-size: 0.96rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding-inline: 0.3rem;
}

.hero {
  background: var(--soft);
  padding: 76px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3rem, 5.7vw, 5.6rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.hero-copy {
  max-width: 660px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.8rem 0 0;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.25;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid #e8eaee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.04);
  padding: 20px;
}

.hero-collage .hero-main {
  grid-column: 1 / -1;
  aspect-ratio: 1.35 / 1;
  object-fit: contain;
}

.hero-collage .hero-tile {
  aspect-ratio: 1;
  object-fit: contain;
}

.hero-collage figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.feature-strip {
  padding: 62px 0;
}

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

.feature-grid h2 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 64px 0 88px;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-heading p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.025);
  overflow: hidden;
}

.product-card-image {
  display: grid;
  min-height: 310px;
  place-items: center;
  background: #fff;
  padding: 18px;
}

.product-card-image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 18px 20px;
}

.product-card h2,
.product-card h3 {
  margin: 0.25rem 0 0.6rem;
  font-size: 1.03rem;
  line-height: 1.35;
}

.price {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.product-card .button {
  margin-top: auto;
}

.shop-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.shop-tools p {
  margin: 0;
  color: var(--muted);
}

.field,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
}

.shop-tools select {
  width: auto;
  min-width: 225px;
}

.cta {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.cta p {
  margin: 0.7rem auto 1.5rem;
  color: #9ca6b8;
}

.site-footer {
  padding: 92px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 84px;
}

.footer-brand h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.footer-brand p,
.footer-bottom {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.footer-links a {
  color: #3e4654;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 86px;
  font-size: 0.78rem;
}

.page-hero {
  background: var(--soft);
  padding: 58px 0;
}

.page-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-hero p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 72px;
  padding: 68px 0;
}

.product-media {
  display: grid;
  min-height: 620px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px;
}

.product-media img {
  max-height: 580px;
  object-fit: contain;
}

.product-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.product-info .price {
  margin-top: 1rem;
  font-size: 1.6rem;
}

.stock {
  color: var(--success);
  font-weight: 750;
}

.stock[data-state="out"] {
  color: var(--danger);
}

.product-summary {
  color: var(--muted);
}

.add-form {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.add-form input {
  max-width: 90px;
}

.notice {
  min-height: 1.5rem;
  margin: 0.65rem 0;
  color: var(--muted);
}

.notice[data-state="success"] {
  color: var(--success);
}

.notice[data-state="error"] {
  color: var(--danger);
}

.specifications {
  border-top: 1px solid var(--line);
  padding: 68px 0;
}

.specifications h2,
.reviews h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.spec-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.spec-row dt {
  font-weight: 750;
}

.spec-row dd {
  margin: 0;
  color: var(--muted);
}

.reviews {
  border-top: 1px solid var(--line);
  padding: 60px 0 80px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.review-list {
  display: grid;
  gap: 1rem;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem;
}

.review-card p {
  margin: 0.4rem 0 0;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-form {
  display: grid;
  gap: 0.9rem;
}

.review-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.review-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 450;
}

.review-form .consent input {
  margin-top: 0.3rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cart-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.quantity-controls button {
  min-width: 38px;
  min-height: 38px;
  padding: 0.35rem;
}

.quantity-controls output {
  min-width: 2rem;
  text-align: center;
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--danger);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
}

.link-button:hover {
  background: transparent;
  color: #7a1a14;
}

.cart-summary {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 22px;
}

.cart-summary h2 {
  margin-top: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.summary-row.total {
  border-bottom: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-summary .button {
  width: 100%;
  margin-top: 1rem;
}

.coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 1rem;
}

.coupon-form button {
  min-height: 44px;
  padding-inline: 0.9rem;
}

.empty-state,
.error-state {
  border: 1px dashed #cfd4dc;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.error-state {
  color: var(--danger);
}

.loading {
  color: var(--muted);
}

.static-note {
  border-left: 4px solid var(--blue);
  background: #edf3ff;
  padding: 1rem 1.1rem;
}

.not-found {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: -0.07em;
}

:focus-visible {
  outline: 3px solid #7aa2ff;
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .hero-grid,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-collage {
    max-width: 620px;
  }

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

  .product-media {
    min-height: 480px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .header-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-highlights,
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    padding: 12px;
  }

  .feature-grid {
    gap: 1.8rem;
  }

  .section {
    padding: 48px 0 64px;
  }

  .shop-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-tools select {
    width: 100%;
  }

  .product-card-image {
    min-height: 260px;
  }

  .product-card-image img {
    height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 52px;
  }

  .product-media {
    min-height: 360px;
  }

  .add-form {
    align-items: stretch;
    flex-direction: column;
  }

  .add-form input {
    max-width: none;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-item img {
    width: 80px;
    height: 80px;
  }

  .cart-item > :last-child {
    grid-column: 2;
  }

  .coupon-form {
    grid-template-columns: 1fr;
  }
}

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