:root {
  --bg: #fff7f3;
  --panel: #fffaf4;
  --card: #ffffff;
  --text: #1f1a17;
  --muted: #655a57;
  --primary: #ff6b6b;
  --primary-dark: #d95555;
  --accent: #ffd86b;
  --peach: #ffb7a6;
  --gold: #f7d181;
  --mint: #a9e6c8;
  --purple: #d6b8ff;
  --line: rgba(31, 26, 23, 0.08);
  --shadow: 0 18px 45px rgba(30, 20, 18, 0.12);
}

body.dark-mode {
  --bg: #141922;
  --panel: #1a2330;
  --card: #1f2a39;
  --text: #edf4ff;
  --muted: #b2bfd5;
  --primary: #ff8d6f;
  --primary-dark: #ffb18a;
  --accent: #ffd86b;
  --peach: #ffb7a6;
  --gold: #f7d181;
  --mint: #a9e6c8;
  --purple: #d6b8ff;
  --line: rgba(237, 244, 255, 0.1);
  --shadow: 0 18px 45px rgba(5, 7, 18, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 160, 120, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(173, 218, 255, 0.35), transparent 30%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

body.dark-mode {
  background:
    radial-gradient(circle at top left, rgba(255, 142, 88, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 147, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #0f1320 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #7f7f7f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.16);
}

.brand-mark img {
  display: block;
  width: 52px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #ffbe7a);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid #dc1025;
  border-radius: 999px;
  background: #f51d35;
  color: #fff;
  box-shadow: 0 8px 20px rgba(220, 16, 37, 0.24);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-toggle:hover {
  background: #dc1025;
  box-shadow: 0 10px 24px rgba(220, 16, 37, 0.3);
  transform: translateY(-1px);
}

.audio-toggle:focus-visible {
  outline: 3px solid rgba(245, 29, 53, 0.35);
  outline-offset: 3px;
}

.audio-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.audio-toggle .audio-pause,
.audio-toggle.is-playing .audio-play {
  display: none;
}

.audio-toggle.is-playing .audio-pause {
  display: block;
}

body.dark-mode .audio-toggle {
  background: #f51d35;
  color: #fff;
}

.theme-toggle,
.cart-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.04);
}

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.cart-dialog::backdrop {
  background: rgba(18, 20, 27, 0.48);
  backdrop-filter: blur(3px);
}

.cart-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg);
  box-shadow: -18px 0 50px rgba(5, 7, 18, 0.2);
  animation: cart-slide-in 0.22s ease-out;
}

@keyframes cart-slide-in {
  from { transform: translateX(28px); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
}

.cart-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.25rem;
}

.cart-items[hidden] {
  display: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.cart-item-art {
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-radius: 10px;
}

.cart-item-art.product-image {
  min-height: 64px;
}

.cart-item-art::before {
  width: 36px;
  height: 36px;
  top: -8px;
  right: -8px;
}

.cart-item-art .sock-figure {
  z-index: 1;
  width: 30px;
  height: 44px;
  border-radius: 18px 18px 7px 7px;
}

.cart-item-art .sock-figure::before {
  inset: 5px 5px auto;
  height: 7px;
}

.cart-item-art .sock-figure::after {
  left: 7px;
  right: 7px;
  bottom: 4px;
  height: 6px;
}

.cart-item-art .sock-band {
  left: 4px;
  right: 4px;
  height: 9px;
}

.cart-item-art .sock-toe {
  bottom: -2px;
  width: 22px;
  height: 9px;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-details h3 {
  overflow: hidden;
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  grid-column: 2;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-quantity button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.cart-quantity span {
  min-width: 1.2rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-remove {
  padding: 0.25rem 0.35rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
}

.cart-item-total {
  align-self: start;
  padding-top: 0.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cart-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 1;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8f7a, #ffd2a2);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.cart-empty p {
  margin: 1rem 0 0.25rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-empty > span:last-child {
  font-size: 0.9rem;
}

.cart-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.cart-subtotal strong {
  font-size: 1.2rem;
}

.cart-footer p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-continue {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.7rem 1rem;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-checkout {
  width: 100%;
}

.checkout-body,
body.dark-mode.checkout-body {
  min-height: 100vh;
  background: var(--bg);
}

.checkout-header {
  border-bottom: 1px solid var(--line);
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.checkout-back {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-back:hover {
  color: var(--text);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 4rem;
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.checkout-main h1 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.checkout-intro {
  margin: 0 0 2rem;
  color: var(--muted);
}

.checkout-section-title,
.order-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-field {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-field.full {
  grid-column: 1 / -1;
}

.checkout-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.checkout-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.newsletter-optin {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.newsletter-optin input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0.1rem 0 0;
  accent-color: var(--primary);
}

.checkout-submit {
  width: 100%;
}

.checkout-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.checkout-note,
.checkout-status {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.checkout-status {
  margin: 1rem 0 0;
  color: var(--text);
}

.order-summary {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding: 0.5rem 0 0 2rem;
  border-left: 1px solid var(--line);
}

.order-summary h2 {
  margin-bottom: 1.3rem;
}

.checkout-items {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0 0 1.2rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.checkout-items li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.checkout-item-art {
  width: 36px;
  height: 46px;
  flex: 0 0 auto;
  background: transparent url("sock-illustration.svg") center / contain no-repeat;
}

.checkout-item-name {
  flex: 1;
  color: var(--text);
}

.checkout-item-quantity {
  margin-left: 0.35rem;
  color: var(--muted);
}

.checkout-item-price {
  flex: 0 0 auto;
  font-weight: 700;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  font-size: 1rem;
}

.checkout-total strong {
  font-size: 1.15rem;
}

.checkout-shipping {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-empty {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.checkout-empty a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-layout {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.faq-intro {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.faq-intro h1 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.faq-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.faq-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin-top: 1.8rem;
}

.faq-topics a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.faq-topics a:hover,
.faq-contact a:hover {
  color: var(--primary-dark);
}

.faq-group {
  padding-top: 2.2rem;
  scroll-margin-top: 100px;
}

.faq-group h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 700px;
  margin: -0.1rem 3rem 1.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-contact {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-contact a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subscription-page {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.subscription-heading {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.subscription-heading h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
}

.subscription-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.subscription-plans {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.subscription-plans legend,
.subscription-details h2,
.subscription-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subscription-plan {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 142px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.subscription-plan:hover {
  transform: translateY(-2px);
}

.subscription-plan:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.12);
}

.subscription-plan input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.subscription-plan input:focus-visible + .plan-radio {
  outline: 3px solid rgba(255, 107, 107, 0.3);
  outline-offset: 3px;
}

.plan-radio {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.subscription-plan input:checked + .plan-radio {
  border: 6px solid var(--primary);
}

.plan-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.plan-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.plan-price {
  font-size: 1.7rem;
  line-height: 1.1;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.plan-description {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(53, 143, 104, 0.12);
  color: #287552;
  font-size: 0.72rem;
  font-weight: 800;
}

body.dark-mode .plan-badge {
  background: rgba(143, 224, 189, 0.12);
  color: #8fe0bd;
}

.subscription-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 3rem;
  margin-top: 2.7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.subscription-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subscription-fields .checkout-field.full {
  grid-column: 1 / -1;
}

.subscription-summary {
  align-self: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.subscription-summary h2 {
  margin-top: 0;
}

.subscription-summary-row,
.subscription-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.subscription-summary-row span,
.subscription-summary-total span {
  color: var(--muted);
}

.subscription-summary-row strong {
  text-align: right;
}

.subscription-summary-total {
  margin-bottom: 1rem;
  border: 0;
  font-size: 1rem;
}

.subscription-summary-total strong {
  font-size: 1.15rem;
}

.subscription-submit {
  width: 100%;
}

.subscription-note,
.subscription-status {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.subscription-status {
  color: var(--text);
}

@media (max-width: 760px) {
  .subscription-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .subscription-page {
    padding-top: 2.5rem;
  }

  .subscription-plan-grid,
  .subscription-fields {
    grid-template-columns: 1fr;
  }

  .subscription-fields .checkout-field.full {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .order-summary {
    position: static;
    grid-row: 1;
    padding: 0 0 1.5rem;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-field.full {
    grid-column: auto;
  }
}

body.dark-mode .theme-toggle,
body.dark-mode .cart-pill,
body.dark-mode .menu-toggle {
  background: rgba(31, 36, 48, 0.9);
}

body.dark-mode .site-header {
  background: rgba(17, 22, 31, 0.82);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .navbar,
body.dark-mode .nav-links,
body.dark-mode .nav-actions,
body.dark-mode .theme-toggle,
body.dark-mode .cart-pill,
body.dark-mode .menu-toggle {
  color: var(--text);
}

body.dark-mode .button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.dark-mode .hero-card,
body.dark-mode .feature,
body.dark-mode .story-card,
body.dark-mode .process-step,
body.dark-mode .testimonial-card,
body.dark-mode .product-card,
body.dark-mode .stat,
body.dark-mode .slider-button,
body.dark-mode .nav-links {
  background: rgba(30, 38, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(5, 7, 18, 0.24);
}

body.dark-mode .sock-display {
  background: linear-gradient(180deg, #1f2938 0%, #17202e 100%);
}

body.dark-mode .badge {
  background: rgba(21, 28, 38, 0.92);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .slider-button {
  color: var(--text);
}

body.dark-mode .banner {
  box-shadow: 0 18px 38px rgba(5, 7, 18, 0.35);
}

body.dark-mode .product-card:hover .add-button {
  background: linear-gradient(135deg, #ff8d6f 0%, #ffb37b 100%);
  color: #201b1a;
}

body.dark-mode .menu-toggle {
  background: rgba(31, 36, 48, 0.9);
}

body.dark-mode .feature .icon {
  background: rgba(255, 141, 111, 0.12);
  color: var(--primary-dark);
}

body.dark-mode .story-icon {
  background: rgba(237, 244, 255, 0.08);
}

body.dark-mode .story-card.warm .story-icon {
  color: #ffb39d;
}

body.dark-mode .story-card.cool .story-icon {
  color: #9bd5f0;
}

body.dark-mode .story-card.mint .story-icon {
  color: #8fe0bd;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  margin: 0 auto;
}

.button,
button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff9a6d 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 107, 107, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 24, 21, 0.08);
  color: var(--text);
  box-shadow: none;
}

.hero {
  padding: 4.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.12);
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-card {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #fff2ed 0%, #fff0d9 100%);
  border: 1px solid rgba(31, 26, 23, 0.06);
  border-radius: 2rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.hero-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.sock-display {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  border-radius: 1.6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.8), transparent 40%),
    linear-gradient(180deg, #ffe5cf 0%, #ffe7bf 35%, #f7efe9 100%);
}

.sock-art {
  position: relative;
  width: min(100%, 330px);
  height: 310px;
}

.sock-pair {
  position: absolute;
  inset: 18% 8% auto 8%;
  height: 190px;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.sock {
  position: relative;
  width: 126px;
  height: 190px;
  border-radius: 100px 100px 28px 28px;
  background: linear-gradient(180deg, #ff9977 0%, #ff7260 100%);
  box-shadow: inset 0 -14px 25px rgba(101, 49, 25, 0.12);
}

.sock::before,
.sock::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  border-radius: 50px;
}

.sock::before {
  top: 18px;
  height: 26px;
  background: rgba(255, 255, 255, 0.26);
}

.sock::after {
  bottom: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(98, 59, 38, 0.15);
}

.sock:nth-child(2) {
  background: linear-gradient(180deg, #f7d890 0%, #e7b15d 100%);
}

.badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 26, 23, 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.65rem 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge.top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 26, 23, 0.16);
}

.badge.top:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.badge.top {
  top: 1.1rem;
  right: 1.1rem;
}

.badge.bottom {
  bottom: 1.1rem;
  left: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 0.8rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.stat strong.delivery-stat {
  font-size: 0.88rem;
  line-height: 1.4;
}

.delivery-stat span {
  display: block;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem auto 5rem;
}

.feature {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.2rem;
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.03);
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff5ef, #f9ead0);
  margin-bottom: 0.75rem;
  color: #c8644e;
}

.feature .icon svg,
.story-icon svg,
.slider-button svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.06em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 5rem;
}

.catalog-main {
  padding-bottom: 1rem;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(210, 125, 85, 0.12);
  border-radius: 1.4rem;
  background: linear-gradient(110deg, #fff0e5 0%, #fff8e9 58%, #e9f7ed 100%);
}

.catalog-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-back:hover {
  color: var(--text);
}

.catalog-heading h1 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
}

.catalog-heading p {
  margin: 0;
  color: var(--muted);
}

.catalog-count {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.catalog-count strong {
  color: #c8644e;
  font-size: 3rem;
  line-height: 1;
}

.catalog-products {
  padding-top: 3rem;
}

.catalog-products .section-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.catalog-products .section-header h2 {
  margin-top: 0.35rem;
}

body.dark-mode .catalog-heading {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(110deg, #302a2c 0%, #2c2c2a 58%, #20322f 100%);
}

body.dark-mode .catalog-count strong {
  color: var(--primary-dark);
}

.slider-section {
  margin-top: 1.5rem;
  margin-bottom: 4rem;
  scroll-margin-top: 96px;
}

.slider-section #best {
  scroll-margin-top: 96px;
}

.slider-controls {
  display: flex;
  gap: 0.7rem;
}

.slider-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.05);
}

.slider-button svg {
  width: 20px;
  height: 20px;
}

.slider-button:hover {
  background: #fff;
}

.product-slider {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.35s ease;
}

.product-slide {
  flex: 0 0 calc((100% - 2.5rem) / 3);
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(31, 26, 23, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 34px rgba(31, 26, 23, 0.1);
}

.product-card:hover .sock-figure {
  transform: rotate(-5deg) translateY(-4px);
}

.product-card:hover .add-button {
  background: linear-gradient(135deg, #1f1f1f 0%, #3a2f35 100%);
}

.product-image {
  min-height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  top: -10px;
  right: -20px;
}

.peach-bg {
  background: linear-gradient(180deg, #fff4ee 0%, #ffd9c9 100%);
}

.gold-bg {
  background: linear-gradient(180deg, #fff9eb 0%, #ffe7a7 100%);
}

.lilac-bg {
  background: linear-gradient(180deg, #f8f1ff 0%, #ead6ff 100%);
}

.mint-bg {
  background: linear-gradient(180deg, #f0fff7 0%, #d4f7ea 100%);
}

.sock-figure {
  position: relative;
  width: 120px;
  height: 172px;
  border-radius: 64px 64px 24px 24px;
  box-shadow: inset 0 -18px 28px rgba(0, 0, 0, 0.08);
}

.sock-figure::before {
  content: "";
  position: absolute;
  inset: 14px 18px auto 18px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.sock-figure::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 14px;
  height: 20px;
  border-radius: 999px;
  background: rgba(75, 34, 26, 0.12);
}

.sock-band {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.sock-toe {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 84px;
  height: 32px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
}

.sock-figure.coral {
  background: linear-gradient(180deg, #ffb39a 0%, #ff7d6b 100%);
}

.sock-figure.golden {
  background: linear-gradient(180deg, #fbe1a4 0%, #f3ba62 100%);
}

.sock-figure.purple {
  background: linear-gradient(180deg, #e2d1ff 0%, #b996ee 100%);
}

.sock-figure.mint {
  background: linear-gradient(180deg, #c7f1df 0%, #67c9a2 100%);
}

.sock,
.sock:nth-child(2),
.product-image .sock-figure {
  background: transparent url("sock-illustration.svg") center / contain no-repeat;
  border-radius: 0;
  box-shadow: none;
}

.sock::before,
.sock::after,
.sock-figure::before,
.sock-figure::after,
.sock-band,
.sock-toe {
  display: none;
}

.product-meta {
  padding: 1.1rem;
}

.product-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.product-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rating {
  color: #f9a825;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.price {
  font-size: 1.28rem;
  font-weight: 800;
}

.add-button {
  background: #1f1f1f;
  color: white;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-button:hover {
  transform: scale(1.04);
}

.story-grid,
.process-grid,
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4.5rem;
}

.story-card,
.process-step,
.testimonial-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.4rem;
  box-shadow: 0 10px 22px rgba(31, 26, 23, 0.04);
}

.story-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(31, 26, 23, 0.07);
}

.story-card.warm {
  background: linear-gradient(180deg, #fff8f3 0%, #ffe3d1 100%);
}

.story-card.cool {
  background: linear-gradient(180deg, #edf9ff 0%, #dfeeff 100%);
}

.story-card.mint {
  background: linear-gradient(180deg, #edfff5 0%, #d6f6ea 100%);
}

.story-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: #c8644e;
  margin-bottom: 0.9rem;
}

.story-card.cool .story-icon {
  color: #397a9e;
}

.story-card.mint .story-icon {
  color: #27866b;
}

.story-card h3,
.process-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.story-card p,
.process-step p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4.2rem;
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe1d4, #ffd38a);
  font-weight: 800;
  margin-bottom: 1rem;
}

body.dark-mode .process-step span {
  background: rgba(255, 141, 111, 0.14);
  border: 1px solid rgba(255, 141, 111, 0.3);
  color: #ffb18a;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4.5rem;
}

.review-overview {
  margin-bottom: 2rem;
}

.review-overview .section-header {
  margin-bottom: 1rem;
}

.review-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
  color: var(--muted);
}

.review-average {
  color: var(--text);
  font-size: 1.4rem;
}

.review-summary .stars {
  font-size: 1rem;
}

.review-all-link {
  flex: 0 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stars {
  color: #f5b31a;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.testimonial-card strong {
  font-size: 0.95rem;
}

.review-form {
  margin: 0 0 5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.review-form-heading h3 {
  margin: 0.35rem 0 1.25rem;
  font-size: 1.35rem;
}

.review-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.review-field {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.review-field-full {
  grid-column: 1 / -1;
}

.review-field input,
.review-field select,
.review-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.review-field textarea {
  min-height: 110px;
  resize: vertical;
}

.review-field :focus-visible {
  outline: 3px solid rgba(255, 107, 107, 0.3);
  outline-offset: 2px;
}

.review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.review-note,
.review-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.review-status {
  margin-top: 0.9rem;
  color: var(--text);
}

.review-empty,
.review-page-note {
  color: var(--muted);
  line-height: 1.6;
}

.review-empty {
  padding: 1.25rem 0;
}

.review-page-action {
  margin: 0 0 5rem;
}

.photo-gallery {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.photo-gallery .section-header {
  margin-bottom: 2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.photo-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 10px 22px rgba(31, 26, 23, 0.05);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(31, 26, 23, 0.06);
}

.photo-item figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.customer-review {
  animation: review-arrive 0.3s ease-out both;
}

@keyframes review-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner {
  background: linear-gradient(135deg, #1d1a1b 0%, #352b44 100%);
  border-radius: 2rem;
  padding: 2rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.banner h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-video-link {
  font-size: 0.75rem;
  opacity: 0.58;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-video-link:hover,
.footer-video-link:focus-visible {
  opacity: 1;
  text-decoration-color: currentColor;
}

@media (max-width: 920px) {
  .hero-inner,
  .spotlight,
  .story-grid,
  .process-grid,
  .testimonial-grid,
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .button {
    display: none;
  }

  .nav-actions .audio-toggle span {
    display: none;
  }

  .nav-actions .audio-toggle {
    width: 50px;
    min-height: 50px;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .spotlight,
  .story-grid,
  .process-grid,
  .testimonial-grid,
  .photo-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .navbar,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-fields {
    grid-template-columns: 1fr;
  }

  .review-field-full {
    grid-column: auto;
  }

  .review-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-heading {
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.5rem;
  }

  .catalog-products {
    padding-top: 2rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .product-slide {
    flex-basis: 86%;
  }

  .slider-controls {
    align-self: flex-end;
  }
}
