/* Crochet Corner — shop styles (colors and fonts come from theme.css) */

:root {
  --wrap: 1240px;
  --gutter: 24px;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow: 0 6px 20px rgba(18, 18, 18, 0.07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.brand-word { color: var(--brand); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 9px 16px;
  letter-spacing: 0.05em;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  justify-content: center;
  padding: 22px 0 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { white-space: nowrap; }

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0 0 12px;
}
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
}
.nav a:hover { background: rgba(18, 18, 18, 0.05); color: var(--text); }
.nav a[aria-current="page"] { background: rgba(18, 18, 18, 0.06); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 1.05rem/1 var(--body);
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: 11px;
  border: 0;
  cursor: pointer;
}
.btn svg { width: 22px; height: 12px; }
.btn-cta { background: var(--cta); color: var(--cta-text); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.btn-cta:hover { background: var(--cta-deep); color: var(--cta-text); }
.btn-green { background: var(--brand); color: #fff; }
.btn-green:hover { background: var(--brand-deep); color: #fff; }
.btn-buy {
  background: var(--buy);
  color: #fff;
  width: 100%;
  border-radius: 6px;
}
.btn-buy:hover { background: var(--buy-deep); color: #fff; }
.btn-buy[aria-disabled="true"],
.btn-buy[aria-disabled="true"]:hover { background: #e4e4e1; color: #6b6b6b; cursor: default; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
    var(--brand);
  color: #fff;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  max-width: 12ch;
}
.hero-lede {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40ch;
  margin: 22px 0 32px;
}

.hero-chart {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px 28px 18px;
  margin: 0;
}
.hero-chart .chart { width: 100%; height: auto; }
.hero .c-st { stroke: #f6f1e7; }
.hero .c-ch { stroke: #a9c3b7; }
.hero .c-loop { stroke: var(--cta); }
.hero .c-num { fill: #b8cdc4; }
.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.chart-key svg { width: 18px; height: 18px; }

.chart .row { animation: row-in 0.45s ease-out both; animation-delay: calc(var(--i) * 85ms + 150ms); transform-box: fill-box; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 6px solid rgba(255, 255, 255, 0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* full-width photo hero: text on green at left, photo edge to edge at right */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 600px;
}
.hero-split .hero-copy {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 72px 48px 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-split .hero-copy-inner { width: 100%; max-width: 540px; }
.hero-split h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
.hero-media { position: relative; min-height: 100%; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* ---------- sections ---------- */

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--muted); margin: 10px auto 0; max-width: 52ch; }
.section-more { text-align: center; margin-top: 40px; }

/* why choose */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.features li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 22px 34px;
  text-align: center;
}
.feat-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px #e3ece8;
}
.feat-icon svg { width: 38px; height: 38px; }
.features h3 { font-size: 1.22rem; margin-bottom: 14px; }
.features p { font-style: italic; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 276px));
  justify-content: center;
  gap: 32px 28px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img { display: block; aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  padding: 20px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card h3 { font-size: 1.08rem; line-height: 1.35; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.price { color: var(--buy); font-weight: 700; font-size: 1.05rem; }
.card .btn-buy { margin-top: auto; padding: 15px 18px; font-size: 1.02rem; }
.card-price { margin-bottom: 12px; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  font: 600 0.92rem/1 var(--body);
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.empty { color: var(--muted); text-align: center; }

/* scrolling band */
.band {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.band-track {
  display: flex;
  width: max-content;
  animation: band 38s linear infinite;
}
.band ul {
  list-style: none;
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  white-space: nowrap;
}
@keyframes band { to { transform: translateX(-50%); } }

/* process photos */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process figure { margin: 0; }
.process img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.process figcaption { text-align: center; font-weight: 700; margin-top: 14px; font-size: 1rem; }

/* split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }

/* how it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 26px;
  text-align: center;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* faq */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 18px 56px 18px 22px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--text);
  border-bottom: 2.5px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--muted); padding: 0 22px 6px; }

/* ---------- product page ---------- */

.crumbs { font-size: 0.88rem; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }

.product { padding: 28px 0 80px; }
.product .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.gallery-main img { width: 100%; height: auto; max-height: 820px; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  width: 84px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--surface);
}
.thumbs button[aria-current="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); line-height: 1.25; }
.product-price { color: var(--buy); font-weight: 700; font-size: 1.6rem; margin: 18px 0 20px; }
.perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.product-info h1 + .perks { margin-top: 20px; }
.perks li { font-size: 0.98rem; }
.perks strong { font-weight: 700; }
.product-info .btn-buy { padding: 20px; font-size: 1.12rem; }
.buy-note { font-size: 0.9rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.details {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.details h2 { font-size: 1.1rem; margin-bottom: 12px; }
.details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 0;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 0.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.page { padding: 56px 0 88px; }
.page-head { text-align: center; margin-bottom: 36px; }
.page-head p { color: var(--muted); margin: 10px 0 0; }
.page .prose h1 { margin-bottom: 18px; }
.page .updated { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-grid.has-social { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.site-footer .logo { color: #fff; font-size: 1.5rem; }
.site-footer .logo:hover { color: #fff; }
.site-footer .l-st { stroke: var(--cta); }
.site-footer .l-ch { stroke: #a9c3b7; }
.footer-grid p { max-width: 36ch; margin-top: 14px; }
.footer-grid h2 { font-family: var(--body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255, 255, 255, 0.85); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- 404 ---------- */
.notfound { padding: 110px 0; text-align: center; }
.notfound p { color: var(--muted); }

/* ---------- stitch drawings take their colors from the theme ---------- */
.c-st { stroke: var(--chart-stitch); }
.c-ch { stroke: var(--chain-color); }
.c-loop { stroke: var(--accent); }
.c-num { fill: var(--muted); font-family: var(--body); }
.l-st { stroke: var(--buy); }
.l-ch { stroke: var(--chain-color); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart .row { animation: none; }
  .band-track { animation: none; width: auto; }
  .band ul[aria-hidden="true"] { display: none; }
  .band ul { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 10px 40px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero .wrap,
  .product .wrap,
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .hero-chart { max-width: 420px; }
  .hero-photo { max-width: 460px; aspect-ratio: 1 / 1; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-media { aspect-ratio: 3 / 2; }
  .hero-split .hero-copy { order: 0; justify-content: flex-start; padding: 40px var(--gutter) 52px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid,
  .footer-grid.has-social { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 60px 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .announce { font-size: 0.85rem; }
  .logo { font-size: 1.5rem; }
  .logo svg { width: 24px; height: 24px; }
  .nav a { font-size: 0.8rem; padding: 6px 8px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-lede { font-size: 1.02rem; }
  .hero .btn-cta { width: 100%; }
  .features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .process figcaption { font-size: 0.88rem; margin-top: 10px; }
  .features li { padding: 22px 14px 24px; }
  .features h3 { font-size: 1rem; margin-bottom: 8px; }
  .feat-icon { width: 58px; height: 58px; box-shadow: 0 0 0 5px #e3ece8; }
  .feat-icon svg { width: 30px; height: 30px; }
  .features p { font-size: 0.85rem; }
  .card-body { padding: 14px 12px 14px; }
  .card h3 { font-size: 0.92rem; }
  .card .btn-buy { padding: 12px 8px; font-size: 0.88rem; }
  .details dl { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
}
