:root {
  --blue: #2f9cf4;
  --blue-dark: #1f86db;
  --blue-soft: #e8f5ff;
  --ink: #1a2332;
  --ink-soft: #5b6573;
  --line: #d9dee7;
  --line-soft: #e8ecf2;
  --bg: #f3f5f8;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
  --font: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top utility bar */
.top-bar {
  background: #f3f5f7;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.5rem 1.5rem;
}

.top-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #3a4452;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
}

.top-bar-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-bar-flag svg {
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.top-bar a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-bar a:hover {
  color: var(--blue-dark);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  justify-self: start;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  height: 42px;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 65% 50% at 12% 18%, rgba(47, 156, 244, 0.07), transparent 58%),
    linear-gradient(180deg, #f6f8fb 0%, #eef1f5 100%);
  border-top: 1px solid #e6eaef;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 2.75rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.85rem 1.5rem 3.4rem;
}

.hero-copy {
  max-width: 34rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-sub {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 28rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(47, 156, 244, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.delivery-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 0;
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.delivery-item {
  padding: 0 1rem;
  border-right: 1px solid var(--line);
}

.delivery-item:first-child {
  padding-left: 0;
}

.delivery-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.delivery-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.delivery-value {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.delivery-value a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(217, 222, 231, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 35, 50, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: contain;
  background: #fafbfc;
  padding: 0.55rem;
}

.product-card span {
  display: block;
  padding: 0.7rem 0.75rem 0.9rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .product-card {
    animation: rise 0.7s ease both;
  }

  .hero-copy {
    animation-delay: 0.05s;
  }

  .product-card:nth-child(1) {
    animation-delay: 0.12s;
  }
  .product-card:nth-child(2) {
    animation-delay: 0.18s;
  }
  .product-card:nth-child(3) {
    animation-delay: 0.24s;
  }
  .product-card:nth-child(4) {
    animation-delay: 0.3s;
  }
  .product-card:nth-child(5) {
    animation-delay: 0.36s;
  }
  .product-card:nth-child(6) {
    animation-delay: 0.42s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .header-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 0.85rem 1rem;
  }

  .brand {
    grid-area: brand;
  }

  .primary-nav {
    grid-area: nav;
    justify-self: stretch;
  }

  .primary-nav ul {
    gap: 0.85rem 1.25rem;
  }

  .nav-cta {
    grid-area: cta;
  }
}

@media (max-width: 760px) {
  .top-bar {
    padding: 0.45rem 1rem;
  }

  .top-bar p {
    font-size: 0.72rem;
  }

  .header-bar {
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    height: 38px;
    padding: 0 1.1rem;
    font-size: 0.84rem;
  }

  .hero-inner {
    padding: 1.75rem 1rem 2.25rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .delivery-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .delivery-item,
  .delivery-item:first-child,
  .delivery-item:last-child {
    padding: 0;
    border-right: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .delivery-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

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

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

  .product-card span {
    font-size: 0.74rem;
    padding: 0.55rem 0.4rem 0.7rem;
  }
}

/* Best Sellers */
.bestsellers {
  background: linear-gradient(180deg, #eef3f8 0%, #f5f7fa 40%, #eef2f6 100%);
  padding: 3.5rem 1.5rem 4rem;
}

.bestsellers-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.bestsellers h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bestsellers-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.15rem;
  margin: 1.35rem auto 2rem;
  padding: 0.35rem;
  max-width: max-content;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.04);
}

.bestsellers-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bestsellers-tab.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.08);
  border: 1px solid var(--line-soft);
}

.bestsellers-tab:disabled {
  cursor: default;
  opacity: 0.55;
}

.bestsellers-tab:not(:disabled):not(.is-active):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.bestsellers-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sellers-track-wrap {
  position: relative;
}

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

.seller-card {
  background: var(--white);
  border: 1px solid rgba(217, 222, 231, 0.75);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.seller-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 35, 50, 0.11);
}

.seller-media {
  position: relative;
  background: #fafbfc;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
}

.seller-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bestsellers[data-active="hats"] .seller-media img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
}

.seller-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #243447;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.seller-badge-eco {
  top: auto;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: #e8f6e8;
  color: #2f7a3e;
}

.seller-badge-eco svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.seller-body {
  padding: 0.95rem 1rem 1.15rem;
}

.seller-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  min-height: 2.5em;
}

.seller-style {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a93a1;
}

.seller-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--swatch);
  padding: 0;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swatch.is-active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--blue);
}

.swatch-more {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a93a1;
  margin-left: 0.15rem;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.stars {
  color: #f5b301;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  line-height: 1;
}

.seller-meta {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a93a1;
}

.seller-price {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink);
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1.5px solid #b0b8c4;
  color: #7a8494;
  font-size: 0.62rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.bestsellers-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-bestsellers {
  min-width: 240px;
  min-height: 52px;
  padding: 0 1.8rem;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .sellers-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bestsellers {
    padding: 2.5rem 1rem 3rem;
  }

  .bestsellers-tabs {
    max-width: 100%;
    border-radius: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .bestsellers-tab {
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
  }

  .sellers-track {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .seller-body h3 {
    min-height: 0;
  }

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

/* Case Study */
.casestudy {
  background:
    radial-gradient(ellipse 55% 45% at 80% 20%, rgba(47, 156, 244, 0.08), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  padding: 4.25rem 1.5rem 4.75rem;
}

.casestudy-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.casestudy-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2.25rem;
}

.casestudy-intro {
  max-width: 38rem;
}

.casestudy-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.casestudy-tab {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.casestudy-tab:hover {
  border-color: #b7c0cc;
}

.casestudy-tab.is-active {
  background: #243447;
  border-color: #243447;
  color: var(--white);
}

.casestudy-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.casestudy-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.casestudy-media {
  position: relative;
  padding: 1.1rem 0.85rem 1.35rem;
}

.casestudy-photo {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe7f0;
  box-shadow: 0 22px 48px rgba(26, 35, 50, 0.14);
  transform: rotate(-1.5deg);
}

.casestudy-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  display: block;
}

.doodle {
  position: absolute;
  color: var(--blue);
  z-index: 2;
  pointer-events: none;
}

.doodle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.doodle-hash {
  top: 0.15rem;
  left: 0.1rem;
  width: 52px;
  height: 40px;
  transform: rotate(-8deg);
}

.doodle-scribble {
  bottom: 0.05rem;
  left: 0.35rem;
  width: 88px;
  height: 40px;
  transform: rotate(-4deg);
}

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

.casestudy-intro h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.casestudy-lead {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 42ch;
}

.casestudy-story-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.casestudy-story-lead {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
}

.casestudy-card {
  margin-top: 1.25rem;
  padding: 1.45rem 1.4rem 1.35rem;
  background: var(--white);
  border: 1px solid rgba(217, 222, 231, 0.85);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(26, 35, 50, 0.08);
}

.casestudy-quote {
  position: relative;
  margin: 0;
  padding-left: 1.65rem;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}

.quote-mark {
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  color: var(--blue);
}

.casestudy-customer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.2rem;
}

.customer-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.customer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e8f7ec;
  color: #2f7a3e;
  font-size: 0.74rem;
  font-weight: 700;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.casestudy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-soft);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat:first-child {
  padding-right: 1rem;
  border-right: 1px solid var(--line-soft);
}

.stat strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.stat span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.casestudy-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .casestudy-media,
  .casestudy-content {
    animation: rise 0.7s ease both;
  }

  .casestudy-content {
    animation-delay: 0.1s;
  }
}

@media (max-width: 1100px) {
  .casestudy-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .casestudy-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .casestudy-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .casestudy-lead {
    max-width: none;
  }

  .casestudy-photo {
    transform: none;
  }
}

@media (max-width: 760px) {
  .casestudy {
    padding: 2.75rem 1rem 3.25rem;
  }

  .casestudy-media {
    padding: 0.85rem 0.35rem 1rem;
  }

  .casestudy-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .casestudy-tab {
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.6rem 0.95rem;
  }

  .casestudy-card {
    padding: 1.2rem 1.05rem 1.15rem;
  }

  .casestudy-customer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat strong {
    font-size: 1.35rem;
  }
}

/* Customers gallery */
.customers {
  background: var(--white);
  padding: 4.25rem 1.5rem 4.5rem;
}

.customers-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.customers-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.customers-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.customers-header p {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
}

.customers-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 0.55rem;
}

.customer-shot {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf3;
  min-height: 0;
}

.customer-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.customer-shot:hover img {
  transform: scale(1.04);
}

.customer-shot-feature {
  grid-row: 1 / span 2;
  min-height: 380px;
}

@media (prefers-reduced-motion: reduce) {
  .customer-shot img {
    transition: none;
  }

  .customer-shot:hover img {
    transform: none;
  }
}

@media (max-width: 980px) {
  .customers-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(160px, auto);
  }

  .customer-shot-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .customers {
    padding: 2.75rem 1rem 3rem;
  }

  .customers-grid {
    gap: 0.4rem;
    grid-auto-rows: minmax(120px, auto);
  }

  .customer-shot {
    border-radius: 8px;
  }

  .customer-shot-feature {
    min-height: 220px;
  }
}

/* Products listing page */
.plp {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  min-height: 70vh;
  padding: 1.5rem 1.5rem 4rem;
}

.plp-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.plp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

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

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

.plp-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.plp-count {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plp-blurb {
  margin: 0;
  max-width: 28rem;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
}

.plp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
}

.plp-cat {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 76px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.plp-cat img,
.plp-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.08);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.plp-cat-icon {
  font-size: 1.1rem;
  color: var(--blue);
}

.plp-cat.is-active {
  color: var(--ink);
}

.plp-cat.is-active img,
.plp-cat.is-active .plp-cat-icon {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.plp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.plp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.plp-select select,
.plp-chip {
  appearance: none;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0 1rem;
  cursor: pointer;
}

.plp-select select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6573' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.plp-chip.is-active {
  background: #243447;
  border-color: #243447;
  color: var(--white);
}

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

.plp-card {
  background: var(--white);
  border: 1px solid rgba(217, 222, 231, 0.8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(26, 35, 50, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 35, 50, 0.1);
}

.plp-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: #fafbfc;
  overflow: hidden;
}

.plp-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.6rem;
}

.plp-fav {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8a93a1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.1);
}

.plp-fav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.plp-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: #243447;
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
}

.plp-badge-eco {
  top: auto;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #e8f6e8;
  color: #2f7a3e;
}

.plp-badge-eco svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.plp-body {
  padding: 0.9rem 0.95rem 1.1rem;
}

.plp-body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  min-height: 2.4em;
}

.plp-style {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: #8a93a1;
}

.plp-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.plp-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.plp-swatch.is-active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--blue);
}

.plp-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a93a1;
}

.plp-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.plp-meta {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: #8a93a1;
}

.plp-price {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ink);
}

.plp-empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 2rem 1rem;
}

@media (max-width: 1100px) {
  .plp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .plp-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .plp-blurb {
    text-align: left;
    max-width: none;
  }

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

@media (max-width: 560px) {
  .plp {
    padding: 1rem 1rem 3rem;
  }

  .plp-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .plp-cat {
    flex: 0 0 auto;
  }

  .plp-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .plp-body h3 {
    min-height: 0;
  }
}

/* ========== Custom Order Wizard ========== */
.order-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f3f6fa;
  min-height: calc(100vh - 140px);
  padding: 2.25rem 1.5rem 4rem;
}

.order-page::before,
.order-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
}

.order-page::before {
  width: min(580px, 78vw);
  height: min(460px, 62vw);
  top: -100px;
  left: -140px;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(47, 156, 244, 0.65) 0%,
    rgba(120, 200, 255, 0.42) 38%,
    transparent 70%
  );
}

.order-page::after {
  width: min(620px, 82vw);
  height: min(500px, 68vw);
  right: -160px;
  bottom: -120px;
  background:
    radial-gradient(
      circle at 55% 55%,
      rgba(47, 156, 244, 0.58) 0%,
      rgba(100, 185, 255, 0.38) 40%,
      transparent 72%
    ),
    radial-gradient(
      circle at -120% 40%,
      rgba(47, 156, 244, 0.28) 0%,
      transparent 55%
    );
}

.order-shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  z-index: 0;
}

.order-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(380px, 55vw);
  height: min(300px, 45vw);
  left: -80px;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(47, 156, 244, 0.45) 0%,
    rgba(110, 195, 255, 0.28) 45%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.order-steps {
  --progress: 0%;
  list-style: none;
  margin: 0 auto 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  position: relative;
  max-width: 560px;
}

.order-steps::before,
.order-steps::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  border-radius: 99px;
  z-index: 0;
}

.order-steps::before {
  background: var(--line);
}

.order-steps::after {
  right: auto;
  width: var(--progress);
  max-width: 75%;
  background: var(--blue);
  transition: width 0.3s ease;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.order-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.order-step.is-active .order-step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(47, 156, 244, 0.35);
}

.order-step.is-done .order-step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.order-step.is-active .order-step-label,
.order-step.is-done .order-step-label {
  color: var(--ink);
}

.order-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(26, 35, 50, 0.12);
  padding: 2rem 2.25rem 1.5rem;
  overflow: hidden;
}

.order-card[data-step="1"] {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.18fr;
  padding: 0;
}

.order-card[data-step="1"] .order-panel[data-step="1"],
.order-card[data-step="1"] .order-panel-contact {
  display: contents;
}

.order-card[data-step="1"] .contact-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.order-card[data-step="1"] .order-panel-main {
  grid-column: 2;
  grid-row: 1;
  padding: 2.15rem 2.35rem 0.5rem;
}

.order-card[data-step="1"] .order-actions {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 1rem 2.35rem 1.6rem;
  border-top: 0;
}

.order-panel[hidden] {
  display: none !important;
}

.order-panel-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: start;
}

.order-aside {
  position: sticky;
  top: 1.5rem;
}

.order-aside-art,
.order-preview {
  background: linear-gradient(160deg, var(--blue-soft), #f7fbff 60%);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.order-preview img {
  width: min(180px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(26, 35, 50, 0.15));
}

.order-preview p {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 2.4rem 2rem 2.5rem;
  color: var(--white);
  background: linear-gradient(165deg, #152033 0%, #1a2a42 48%, #12253d 100%);
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  left: -40%;
  right: -30%;
  bottom: -45%;
  height: 85%;
  background:
    radial-gradient(ellipse 75% 65% at 30% 75%, #2f9cf4 0%, rgba(47, 156, 244, 0.75) 28%, rgba(47, 156, 244, 0.2) 55%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 85%, rgba(140, 210, 255, 0.9) 0%, transparent 55%);
  filter: blur(22px);
  pointer-events: none;
}

.contact-hero::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -25%;
  bottom: -5%;
  height: 55%;
  background:
    linear-gradient(
      115deg,
      transparent 18%,
      rgba(255, 255, 255, 0.14) 34%,
      rgba(120, 205, 255, 0.55) 44%,
      rgba(47, 156, 244, 0.7) 52%,
      rgba(180, 230, 255, 0.5) 58%,
      rgba(47, 156, 244, 0.25) 68%,
      transparent 82%
    ),
    linear-gradient(
      98deg,
      transparent 30%,
      rgba(255, 255, 255, 0.22) 48%,
      transparent 62%
    );
  opacity: 1;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: skewY(-10deg);
  transform-origin: left bottom;
}

.contact-hero-kicker,
.contact-hero-title,
.contact-hero-lead,
.contact-card-art {
  position: relative;
  z-index: 1;
}

.contact-hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-hero-lead {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 18rem;
}

.contact-card-art {
  width: min(210px, 100%);
  margin: 1.25rem auto 0;
  background: linear-gradient(160deg, #ffffff 0%, #f3f7fc 100%);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: rotate(-2deg);
  animation: contact-card-float 5s ease-in-out infinite;
}

@keyframes contact-card-float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-6px);
  }
}

.contact-card-photo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 30%, #7ec8ff, transparent 45%),
    linear-gradient(145deg, var(--blue) 0%, #1a6fb8 100%);
  box-shadow: 0 8px 16px rgba(47, 156, 244, 0.35);
  position: relative;
}

.contact-avatar::after {
  content: "";
  position: absolute;
  inset: 14px 16px 10px;
  border-radius: 50% 50% 40% 40%;
  background: rgba(255, 255, 255, 0.35);
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-line {
  display: block;
  height: 9px;
  width: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #dce5f0, #eef3f8);
}

.contact-line.mid {
  width: 78%;
}

.contact-line.short {
  width: 52%;
}

.contact-check {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(47, 156, 244, 0.5);
}

.contact-check svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.order-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.req {
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.order-panel-main h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.order-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

.field > span,
.field > legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-row-split {
  align-items: start;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.9rem;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 156, 244, 0.18);
  background: var(--white);
}

.field-control svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--ink-soft);
}

.field-control input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0.7rem 0;
  color: var(--ink);
  min-width: 0;
}

.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  padding: 0.85rem 1rem;
  resize: vertical;
  outline: none;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 156, 244, 0.18);
  background: var(--white);
}

.product-picks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.product-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.4rem;
  border: 2px solid var(--line-soft);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
  position: relative;
}

.product-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-pick img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.product-pick.is-selected,
.product-pick:has(input:checked) {
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(47, 156, 244, 0.15);
}

.product-pick.is-selected::after,
.product-pick:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  display: grid;
  place-items: center;
}

.size-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.size-breakdown-head > span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.size-total {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.size-total strong {
  color: var(--blue);
  font-weight: 800;
}

.size-breakdown {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.size-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.size-qty span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.size-qty input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -moz-appearance: textfield;
}

.size-qty input::-webkit-outer-spin-button,
.size-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.size-qty input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 156, 244, 0.18);
  background: var(--white);
}

.size-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.design-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.design-method {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid var(--line-soft);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.design-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.design-method strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.design-method small {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.design-method.is-selected,
.design-method:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 156, 244, 0.15);
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.5rem;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: #f7f9fc;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.upload-zone strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.upload-zone span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.upload-zone em {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.review-product {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  padding: 1rem;
  background: #f7f9fc;
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.review-product img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 0.35rem;
}

.review-product h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.review-product p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.review-product-price {
  margin-top: 0.35rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

.review-block {
  border-top: 1px solid var(--line-soft);
  padding: 1rem 0;
}

.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-block h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.review-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.review-dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.review-dl dt {
  color: var(--ink-soft);
  font-weight: 500;
}

.review-dl dd {
  margin: 0;
  font-weight: 600;
}

#review-design {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.order-summary {
  background: #f3f6fa;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  position: sticky;
  top: 1.5rem;
}

.order-summary h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.summary-row strong {
  color: var(--ink);
  font-weight: 600;
}

.summary-total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.summary-total strong {
  font-weight: 800;
  color: var(--ink);
}

.summary-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.order-actions-right {
  margin-left: auto;
}

.btn-back {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}

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

.order-actions .btn {
  border-radius: 10px;
  min-width: 200px;
}

.order-success {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.order-success[hidden] {
  display: none !important;
}

.order-success-card {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.order-success-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.order-success-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.order-success-card p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.order-success-card a:not(.btn) {
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 900px) {
  .order-panel-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .order-aside {
    position: static;
    display: none;
  }

  .order-card[data-step="1"] {
    display: block;
    padding: 0;
  }

  .order-card[data-step="1"] .order-panel[data-step="1"],
  .order-card[data-step="1"] .order-panel-contact {
    display: block;
  }

  .order-card[data-step="1"] .contact-hero {
    padding: 1.75rem 1.5rem 2rem;
  }

  .order-card[data-step="1"] .order-panel-main {
    padding: 1.5rem 1.35rem 0.35rem;
  }

  .order-card[data-step="1"] .order-actions {
    padding: 0.85rem 1.35rem 1.35rem;
  }

  .contact-hero-lead {
    max-width: none;
  }

  .contact-card-art {
    margin-left: 0;
    margin-right: auto;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .product-picks {
    grid-template-columns: repeat(3, 1fr);
  }

  .size-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .design-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .order-page {
    padding: 1.5rem 1rem 3rem;
  }

  .order-card {
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 16px;
  }

  .order-card[data-step="1"] {
    padding: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .order-steps {
    max-width: none;
  }

  .order-steps::before,
  .order-steps::after {
    left: 8%;
    right: 8%;
  }

  .order-steps::after {
    max-width: 84%;
  }

  .order-step-label {
    font-size: 0.7rem;
  }

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

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

  .order-actions {
    flex-wrap: wrap;
  }

  .order-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .order-actions-right {
    width: 100%;
  }

  .contact-hero-title {
    font-size: 1.55rem;
  }
}
