:root {
  --milk: #fff9ef;
  --cream: #ffe9c9;
  --beige: #f7c76e;
  --rose: #ef7f7a;
  --caramel: #df8f3d;
  --olive: #56a98f;
  --sky: #84c7d0;
  --lilac: #b99bd8;
  --brown: #30233d;
  --muted: #74647e;
  --line: rgba(48, 35, 61, 0.16);
  --shadow: 0 24px 70px rgba(67, 42, 78, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(239, 127, 122, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(86, 169, 143, 0.08) 1px, transparent 1px),
    var(--milk);
  background-size: 34px 34px;
  color: var(--brown);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.28;
  pointer-events: none;
}
body::before {
  left: -54px;
  top: 118px;
  background:
    radial-gradient(circle at center, transparent 0 18px, rgba(239, 127, 122, 0.7) 19px 21px, transparent 22px),
    repeating-radial-gradient(circle at center, rgba(239, 127, 122, 0.55) 0 3px, transparent 4px 13px);
}
body::after {
  right: -62px;
  bottom: 72px;
  background:
    radial-gradient(circle at center, transparent 0 16px, rgba(86, 169, 143, 0.72) 17px 20px, transparent 21px),
    repeating-radial-gradient(circle at center, rgba(86, 169, 143, 0.58) 0 3px, transparent 4px 12px);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.decor {
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 22px rgba(67, 42, 78, 0.13));
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 249, 239, 0.92);
  border-bottom: 2px dashed rgba(48, 35, 61, 0.18);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 36% 64% 48% 52%;
  background: linear-gradient(135deg, var(--rose), var(--lilac));
  color: var(--milk);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(239, 127, 122, 0.28);
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.brand small { color: var(--muted); font-size: 12px; }
.brand::after {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--caramel);
  box-shadow: 10px 7px 0 var(--olive);
  transform: rotate(-24deg);
}

.nav { display: flex; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.nav a {
  border-radius: 999px;
  padding: 8px 10px;
}
.nav a:hover {
  background: rgba(132, 199, 208, 0.22);
  color: var(--brown);
}
.header-actions, .hero-actions, .card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.primary, .secondary, .cart-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary {
  background: linear-gradient(135deg, var(--rose), var(--caramel));
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 127, 122, 0.22);
}
.secondary, .cart-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(48, 35, 61, 0.2);
  color: var(--brown);
}
.primary:hover, .secondary:hover, .cart-button:hover { transform: translateY(-1px); }
.small, .compact { min-height: 38px; padding: 9px 13px; font-size: 14px; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; }
.cart-button b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
}
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff8ef; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--brown); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 4vw, 72px);
}
.hero-media {
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px 18px 18px -16px;
  z-index: -1;
  border: 3px dashed var(--olive);
  border-radius: 34px;
  transform: rotate(-2deg);
}
.hero-media img {
  width: 100%;
  min-height: 460px;
  max-height: 680px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.hero-copy {
  position: relative;
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: min(3vw, 34px);
  top: -42px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 11px, var(--lilac) 12px 14px, transparent 15px),
    repeating-radial-gradient(circle at center, rgba(185, 155, 216, 0.9) 0 3px, transparent 4px 10px);
  box-shadow: 0 16px 30px rgba(67, 42, 78, 0.14);
  transform: rotate(12deg);
}
.decor-hero {
  position: absolute;
  right: -18px;
  top: -112px;
  width: clamp(110px, 15vw, 210px);
  transform: rotate(9deg);
}
.hero-copy { max-width: 650px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(247, 199, 110, 0.34);
  color: #9d5b18;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; }
h1 { max-width: 760px; font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { margin: 0; font-size: 20px; }
.hero-copy p:not(.eyebrow), .section-heading p, .about p, .final-cta p, .delivery p, .product-info p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-copy p:not(.eyebrow) { max-width: 560px; margin: 24px 0 30px; }
.knit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 26px;
}
.knit-tags span {
  border: 2px dashed rgba(48, 35, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.section, .about, .custom-order, .delivery, .final-cta, .footer, .product-section { padding: clamp(54px, 8vw, 112px) clamp(18px, 4vw, 72px); }
.section,
.product-section,
.final-cta {
  position: relative;
  overflow: hidden;
}
.stitch-divider {
  height: 18px;
  margin: 0 0 28px;
  background:
    radial-gradient(ellipse at center, transparent 0 7px, var(--rose) 8px 10px, transparent 11px) 0 0 / 34px 18px repeat-x;
  opacity: 0.72;
}
.decor-categories {
  position: absolute;
  right: clamp(18px, 5vw, 78px);
  top: 34px;
  width: clamp(120px, 17vw, 240px);
  opacity: 0.86;
  transform: rotate(-7deg);
}
.decor-catalog {
  position: absolute;
  right: clamp(12px, 4vw, 56px);
  top: 44px;
  width: clamp(110px, 15vw, 220px);
  opacity: 0.78;
  transform: rotate(8deg);
}
.muted {
  background:
    linear-gradient(135deg, rgba(132, 199, 208, 0.16), rgba(255, 233, 201, 0.45)),
    #fff6e7;
}
.section-heading { max-width: 860px; margin-bottom: 30px; }
.section-heading.split { display: flex; max-width: none; justify-content: space-between; gap: 32px; }
.section-heading.split p { max-width: 420px; }
.category-grid, .product-grid, .benefit-grid, .review-grid, .delivery-columns { display: grid; gap: 18px; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card, .product-card, .review-card, .delivery article, .benefit {
  border: 2px solid rgba(48, 35, 61, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(67, 42, 78, 0.08);
}
.category-card { position: relative; min-height: 250px; overflow: hidden; }
.category-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 249, 239, 0.8);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(255, 249, 239, 0.92) 0 2px, transparent 3px 7px),
    rgba(48, 35, 61, 0.16);
  box-shadow: 0 10px 20px rgba(48, 35, 61, 0.12);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.category-card:hover img { transform: scale(1.04); }
.category-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.94);
  padding: 10px 14px;
  font-weight: 700;
}
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { overflow: hidden; }
.product-card::before {
  content: "handmade";
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.92);
  color: var(--brown);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.product-card {
  position: relative;
}
.product-card:nth-child(3n + 1) { transform: rotate(-0.7deg); }
.product-card:nth-child(3n + 2) { transform: rotate(0.6deg); }
.product-card:nth-child(3n) { transform: rotate(-0.2deg); }
.product-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { display: grid; gap: 12px; padding: 18px; }
.product-body p { min-height: 44px; margin: 0; color: var(--muted); }
.product-body strong { font-size: 22px; }
.status { width: max-content; border-radius: 999px; background: rgba(185, 155, 216, 0.24); color: #6a438c; padding: 6px 10px; font-size: 13px; font-weight: 800; }
.status.in-stock { background: rgba(86, 169, 143, 0.2); color: #367662; }

.product-section {
  background:
    linear-gradient(90deg, rgba(239, 127, 122, 0.1), transparent 34%),
    var(--milk);
}
.decor-product {
  position: absolute;
  left: clamp(12px, 4vw, 58px);
  top: 34px;
  width: clamp(130px, 18vw, 260px);
  opacity: 0.74;
  transform: rotate(-8deg);
}
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-gallery .main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.product-gallery div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-gallery div img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.product-info { display: grid; gap: 18px; }
.product-info h2 { font-size: clamp(38px, 5vw, 68px); }
.product-price { font-size: 34px; }
.product-info dl { display: grid; border-top: 1px solid var(--line); }
.product-info dl div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.product-info dt { color: var(--muted); }
.product-info dd { margin: 0; }
.inline-success { border: 1px solid rgba(169, 173, 133, 0.5); border-radius: 8px; background: rgba(169, 173, 133, 0.18); color: #4f5834; padding: 13px 15px; line-height: 1.45; }

.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.about-visual {
  position: relative;
}
.decor-about {
  position: absolute;
  right: -32px;
  bottom: -54px;
  width: clamp(130px, 19vw, 250px);
  transform: rotate(7deg);
}
.craft-notes {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.craft-notes li {
  position: relative;
  border: 2px dashed rgba(48, 35, 61, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 12px 14px 12px 42px;
  color: var(--muted);
  font-weight: 700;
}
.craft-notes li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 7px 0 0 var(--olive), 14px 0 0 var(--beige);
  transform: translateY(-50%) scale(0.72);
}
.about-visual > img:first-child {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.benefit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.benefit { min-height: 150px; padding: 18px; }
.benefit span { color: var(--rose); font-weight: 900; }
.benefit p { margin: 28px 0 0; font-weight: 700; }
.custom-order {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 127, 122, 0.28), transparent 34%),
    linear-gradient(315deg, rgba(132, 199, 208, 0.32), transparent 36%),
    #30233d;
  color: var(--milk);
}
.decor-custom {
  position: absolute;
  right: clamp(10px, 4vw, 60px);
  bottom: 22px;
  width: clamp(170px, 28vw, 360px);
  opacity: 0.34;
}
.needle-pair {
  position: absolute;
  top: 34px;
  right: clamp(18px, 4vw, 72px);
  width: 180px;
  height: 52px;
  opacity: 0.78;
}
.needle-pair::before,
.needle-pair::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 178px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--beige), #fff1d5 82%, transparent 82%);
  transform-origin: 88% 50%;
}
.needle-pair::before {
  transform: rotate(14deg);
}
.needle-pair::after {
  transform: rotate(-14deg);
}
.custom-order .eyebrow, .custom-order h2 { color: var(--milk); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.step { min-height: 142px; border: 2px dashed rgba(255, 249, 239, 0.25); border-radius: 20px; padding: 18px; background: rgba(255, 255, 255, 0.07); }
.step b { display: block; margin-bottom: 24px; color: var(--beige); }
.gallery { display: grid; grid-template-columns: 1.25fr 0.75fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border: 6px solid #fff; border-radius: 24px; box-shadow: 0 16px 34px rgba(67, 42, 78, 0.09); }
.gallery img:first-child, .gallery img:last-child { grid-row: span 2; }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-card { padding: 16px; }
.review-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.review-card p { color: var(--muted); line-height: 1.6; }
.review-card div { display: flex; justify-content: space-between; gap: 12px; }
.review-card span { color: var(--muted); }
.delivery { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.delivery-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.delivery article { padding: 22px; }
.final-cta {
  position: relative;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(247, 199, 110, 0.45), rgba(239, 127, 122, 0.18)),
    #fff1d5;
}
.decor-final {
  position: absolute;
  left: clamp(8px, 4vw, 56px);
  bottom: 18px;
  width: clamp(130px, 20vw, 270px);
  opacity: 0.76;
  transform: rotate(-5deg);
}
.final-cta p { max-width: 720px; margin: 18px auto 28px; }
.final-cta .hero-actions { justify-content: center; }
.footer {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(86, 169, 143, 0.18), transparent),
    #30233d;
  color: var(--milk);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; color: #d8c9b8; }
.footer address, .footer p, .footer small { max-width: 900px; margin: 0; color: #d8c9b8; font-style: normal; line-height: 1.7; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(440px, 100vw); overflow-y: auto; background: var(--milk); box-shadow: -20px 0 70px rgba(67, 42, 78, 0.22); padding: 24px; }
.close { float: right; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 24px; }
.cart-row { display: grid; grid-template-columns: 82px 1fr; gap: 14px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.cart-row img { width: 82px; height: 82px; border-radius: 16px; object-fit: cover; }
.cart-row span, .cart-row strong { display: block; }
.quantity { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }
.quantity button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cart-total { display: flex; justify-content: space-between; margin: 22px 0; font-size: 20px; }
.checkout, .order-form { display: grid; gap: 12px; }
input, textarea { width: 100%; border: 2px solid rgba(48, 35, 61, 0.13); border-radius: 14px; background: #fffdf8; padding: 13px 14px; color: var(--brown); }
textarea { min-height: 110px; resize: vertical; }
.checkbox, .file-field { color: var(--muted); font-size: 14px; line-height: 1.45; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: auto; margin-top: 4px; }
.file-field input { margin-top: 8px; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(36, 25, 19, 0.46); }
.order-form { width: min(620px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 26px; background: var(--milk); padding: 26px; box-shadow: var(--shadow); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: min(420px, calc(100vw - 36px)); border-radius: 18px; background: var(--brown); color: var(--milk); padding: 14px 18px; box-shadow: var(--shadow); }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .burger { display: block; }
  .nav { position: absolute; top: 78px; right: 18px; left: 18px; display: none; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--milk); padding: 16px; box-shadow: var(--shadow); }
  .nav.nav-open { display: flex; }
  .header-actions { justify-content: end; }
  .hero, .about, .delivery, .product-detail { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .category-grid, .product-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .burger { order: 2; }
  .header-actions { grid-column: 1 / -1; justify-content: stretch; }
  .header-actions > * { flex: 1; }
  h1 { font-size: 40px; }
  .hero-media img { min-height: 320px; }
  .section-heading.split { display: grid; }
  .category-grid, .product-grid, .benefit-grid, .steps, .review-grid, .delivery-columns, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .gallery img:first-child, .gallery img:last-child { grid-row: auto; }
  .card-actions, .hero-actions { align-items: stretch; flex-direction: column; }
  .card-actions > *, .hero-actions > * { width: 100%; text-align: center; }
  .product-info dl div { grid-template-columns: 1fr; gap: 6px; }
  .decor-hero,
  .decor-categories,
  .decor-catalog,
  .decor-product,
  .decor-about,
  .decor-custom,
  .decor-final {
    display: none;
  }
}
