:root {
  --ink: #181518;
  --paper: #f6f2ec;
  --white: #ffffff;
  --muted: #716b70;
  --line: rgba(24, 21, 24, 0.14);
  --pink: #ee0a7b;
  --red: #f51b24;
  --yellow: #ffdc18;
  --lilac: #9d7cc6;
  --green: #4da65b;
  --shadow: 0 16px 42px rgba(38, 28, 36, 0.11);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.cart-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 0;
  background: var(--lilac);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-shop {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: background 160ms ease;
}

.cart-trigger:hover,
.cart-trigger:focus-visible {
  background: var(--yellow);
}

.cart-count {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

main {
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: 0 clamp(18px, 4vw, 64px) 96px;
}

.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(52px, 7vw, 104px) 0 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "Avenir Next", Avenir, Futura, "Century Gothic", sans-serif;
  font-size: clamp(2.7rem, 6.5vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shop-facts {
  display: flex;
  max-width: 620px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shop-facts span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  white-space: nowrap;
}

.shop-facts span::before {
  content: none;
}

.filters {
  position: sticky;
  z-index: 30;
  top: 74px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

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

.filter {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
}

.filter:hover,
.filter:focus-visible {
  background: rgba(24, 21, 24, 0.07);
}

.filter.is-active {
  background: var(--ink);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 62px) clamp(18px, 2.6vw, 42px);
  padding-top: clamp(34px, 5vw, 72px);
}

.product-card {
  min-width: 0;
}

.product-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 105 / 148;
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(38, 28, 36, 0.13);
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.015);
}

.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 15px;
}

.product-name {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-spec {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.product-spec.is-sale {
  color: #a0272f;
  font-weight: 600;
}

.add-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.add-button:hover,
.add-button:focus-visible {
  transform: scale(1.08);
  background: var(--pink);
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.order-info {
  margin-top: clamp(80px, 12vw, 180px);
  padding: clamp(34px, 5vw, 64px) 0;
  border-top: 1px solid rgba(157, 124, 198, 0.42);
  border-bottom: 1px solid rgba(157, 124, 198, 0.42);
  background: linear-gradient(120deg, rgba(157, 124, 198, 0.08), rgba(255, 255, 255, 0.22));
}

.order-info h2 {
  margin-bottom: 28px;
  padding-inline: clamp(18px, 4vw, 56px);
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-inline: clamp(18px, 4vw, 56px);
}

.order-info-grid p {
  margin-bottom: 0;
  padding: 20px;
  border: 1px solid rgba(157, 124, 198, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
}

.order-info-grid strong {
  color: var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
  padding: 30px clamp(18px, 4vw, 64px);
  border-top: 1px solid rgba(157, 124, 198, 0.3);
  background: #eee8f5;
  color: var(--ink);
}

.footer-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  font-size: 0.84rem;
}

.footer-links a {
  align-self: center;
}

.withdrawal-link {
  padding: 9px 14px;
  border: 1px solid var(--lilac);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  text-decoration: none;
}

.withdrawal-link:hover,
.withdrawal-link:focus-visible {
  background: var(--white);
}

.backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(24, 21, 24, 0.54);
  backdrop-filter: blur(3px);
}

.cart-panel {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100dvh;
  overflow-y: auto;
  padding: 26px clamp(20px, 5vw, 44px) 48px;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(20, 14, 18, 0.22);
  transform: translateX(105%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h2 {
  margin-bottom: 0;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 200;
  line-height: 1;
}

.cart-items {
  min-height: 120px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  display: block;
  width: 68px;
  aspect-ratio: 105 / 148;
  object-fit: cover;
}

.cart-item-name {
  margin: 0 0 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quantity-control span {
  min-width: 26px;
  text-align: center;
  font-size: 0.82rem;
}

.cart-line-price {
  font-size: 0.82rem;
  white-space: nowrap;
}

.cart-limit-note {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f2ec;
  color: var(--muted);
  font-size: 0.78rem;
}

.totals {
  margin: 18px 0 24px;
}

.totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
}

.totals dt,
.totals dd {
  margin: 0;
}

.totals .total {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.16rem;
  font-weight: 600;
}

.totals .bonus-row {
  color: #2e7d3e;
  font-weight: 600;
}

.primary-button {
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--pink);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.full-width {
  width: 100%;
}

.text-button {
  padding: 18px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cart-overview-button {
  display: inline-flex;
  margin: 14px 0 10px;
  padding: 9px 14px;
  border: 1px solid rgba(157, 124, 198, 0.4);
  border-radius: 999px;
  background: #f3eef8;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(157, 124, 198, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--white);
}

.checkout-note {
  padding: 15px;
  border-left: 4px solid var(--lilac);
  background: #f3eef8;
  font-size: 0.86rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-zip {
  grid-column: 1;
}

.field-city {
  grid-column: 2;
}

.field span {
  font-size: 0.77rem;
  font-weight: 600;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

.delivery-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.delivery-choice legend {
  padding: 0 5px;
  font-size: 0.77rem;
  font-weight: 600;
}

.delivery-choice label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.84rem;
}

.delivery-choice input {
  margin-top: 3px;
  accent-color: var(--lilac);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 12px 13px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(238, 10, 123, 0.12);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 20px 0;
  font-size: 0.79rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--lilac);
}

.privacy-note {
  margin: -8px 0 20px 29px;
  color: var(--muted);
  font-size: 0.76rem;
}

.checkout-summary {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(157, 124, 198, 0.3);
  border-radius: 14px;
  background: #f7f3fa;
}

.checkout-summary h3 {
  margin: 0 0 12px;
  font-family: "Avenir Next", Avenir, Futura, "Century Gothic", sans-serif;
  font-size: 1rem;
}

.checkout-summary-items {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-line,
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.8rem;
}

.checkout-summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  font-weight: 700;
}

.checkout-summary-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 22px;
  margin-bottom: 10px;
  color: #a31313;
  font-size: 0.82rem;
}

.success-step {
  padding: 70px 0 20px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2rem;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-wrap {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 100px;
}

.legal-wrap h1 {
  margin: 28px 0 42px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.legal-wrap h2 {
  margin-top: 42px;
  font-size: 1.4rem;
}

.draft-notice {
  padding: 16px 18px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: var(--white);
}

.legal-wrap h3 {
  margin-top: 28px;
}

.legal-wrap address {
  font-style: normal;
}

.legal-wrap li + li {
  margin-top: 7px;
}

.legal-note {
  padding: 16px 18px;
  border-left: 4px solid var(--lilac);
  border-radius: 0 12px 12px 0;
  background: #f3eef8;
}

.legal-warning {
  padding: 16px 18px;
  border: 1px solid #b3323c;
  border-radius: 12px;
  background: #fff7f7;
}

.legal-form {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.legal-form .field input,
.legal-form .field textarea {
  background: var(--white);
}

.legal-success {
  padding: 22px;
  border: 1px solid rgba(77, 166, 91, 0.4);
  border-radius: 14px;
  background: #f0f8f1;
}

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

  .shop-heading {
    align-items: start;
    flex-direction: column;
  }

  .shop-facts {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .brand {
    gap: 12px;
  }

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

  .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .brand-shop {
    font-size: 0.74rem;
  }

  .cart-trigger {
    padding-left: 13px;
  }

  .filters {
    top: 66px;
  }

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

  .product-name {
    font-size: 0.86rem;
  }

  .product-info {
    gap: 6px;
  }

  .add-button {
    width: 36px;
    height: 36px;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .shop-heading {
    padding-top: 42px;
  }

  .shop-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shop-facts span {
    white-space: normal;
  }

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

  .cart-panel {
    padding-inline: 18px;
  }
}

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