:root {
  --green: #49ad50;
  --green-dark: #2f7f38;
  --yellow: #ffe638;
  --ink: #121212;
  --cream: #fffced;
  --white: #ffffff;
  --muted: #68685f;
  --line: #191919;
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--green);
  background-image:
    radial-gradient(circle at 14% 7%, rgba(255,255,255,.15) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 15%, rgba(0,0,0,.09) 0 2px, transparent 3px);
  background-size: 46px 46px, 62px 62px;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 9999;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: 0 0 auto; }

/* LINK PAGE */
.link-page {
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 52px;
}
.profile-card {
  position: relative;
  padding: 28px 20px 24px;
  text-align: center;
}
.share-button {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.share-button:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--ink); }
.avatar-wrap {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--shadow);
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(35px, 8vw, 54px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .95;
  text-transform: uppercase;
}
.profile-card .handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0 0;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}
.profile-card .bio {
  max-width: 540px;
  margin: 18px auto 0;
  font-weight: 700;
  line-height: 1.55;
}
.link-list { display: grid; gap: 15px; }
.link-button {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
}
.link-button:hover,
.link-button:focus-visible { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); background: var(--yellow); }
.link-button.primary { background: var(--yellow); }
.link-button.primary:hover { background: var(--white); }
.link-button.disabled { opacity: .68; cursor: not-allowed; }
.link-button.disabled:hover { transform: none; box-shadow: var(--shadow-sm); background: var(--cream); }
.link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
}
.link-copy { text-align: left; }
.link-copy strong { display: block; font-size: 17px; }
.link-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.link-arrow { font-size: 25px; line-height: 1; }

.featured-mini {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin: 28px 0 22px;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.featured-mini img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.mini-copy { display: flex; flex-direction: column; justify-content: center; }
.mini-copy .eyebrow { margin-bottom: 8px; }
.mini-copy h2 { margin: 0; font-size: clamp(23px, 5vw, 35px); line-height: 1; }
.mini-copy p { margin: 9px 0 12px; line-height: 1.45; color: var(--muted); font-weight: 700; }
.price { font-size: 24px; font-weight: 1000; }
.mini-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 13px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}
.social-note { margin: 28px 0 0; text-align: center; font-size: 12px; font-weight: 700; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* CATALOG */
.catalog-body { background: var(--cream); }
.catalog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ink);
  background: rgba(255,252,237,.94);
  backdrop-filter: blur(12px);
}
.catalog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 28px));
  min-height: 72px;
  margin: auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 1000; }
.nav-brand img { width: 42px; height: 42px; object-fit: cover; border: 2px solid var(--ink); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a, .nav-back {
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.nav-links a:hover, .nav-back:hover { border-color: var(--ink); background: var(--yellow); }
.nav-back { display: inline-flex; align-items: center; gap: 7px; }

.catalog-main { width: min(var(--max), calc(100% - 28px)); margin: auto; padding: 36px 0 90px; }
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 32px;
  align-items: start;
}
.gallery-card, .product-info, .size-card, .how-card {
  border: 3px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}
.gallery-card { overflow: hidden; padding: 14px; }
.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #ece9db;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 13px; }
.gallery-thumb {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}
.gallery-thumb img { width: 62px; height: 62px; object-fit: cover; border: 2px solid var(--ink); border-radius: 9px; }
.gallery-thumb.active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }

.product-info { padding: clamp(22px, 4vw, 34px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.product-info h1 {
  margin: 16px 0 8px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(42px, 7vw, 70px);
  letter-spacing: .01em;
  line-height: .88;
  text-transform: uppercase;
}
.product-desc { margin: 15px 0 20px; color: var(--muted); font-weight: 700; line-height: 1.6; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 23px; }
.product-price { font-size: clamp(30px, 5vw, 42px); font-weight: 1000; }
.stock-pill { padding: 7px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #d9ffd5; font-size: 12px; font-weight: 900; }
.option-group { margin-top: 23px; }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.option-head strong { font-size: 15px; }
.option-head a { font-size: 12px; font-weight: 900; text-decoration: underline; }
.options { display: flex; flex-wrap: wrap; gap: 9px; }
.option-btn {
  min-width: 54px;
  min-height: 46px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
}
.option-btn.active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px,-1px); }
.qty-wrap { display: flex; align-items: center; width: fit-content; overflow: hidden; border: 2px solid var(--ink); border-radius: 13px; }
.qty-wrap button { width: 46px; height: 46px; border: 0; background: var(--yellow); cursor: pointer; font-size: 22px; font-weight: 1000; }
.qty-wrap input { width: 58px; height: 46px; border: 0; border-inline: 2px solid var(--ink); text-align: center; font-weight: 900; appearance: textfield; }
.qty-wrap input::-webkit-inner-spin-button { appearance: none; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 14px 0; border-top: 2px dashed var(--ink); }
.total-row span { color: var(--muted); font-weight: 800; }
.total-row strong { font-size: 25px; }
.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--green);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 1000;
  transition: .18s ease;
}
.order-button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); background: var(--yellow); }
.product-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }

.section-title { margin: 74px 0 24px; }
.section-title h2 { margin: 10px 0 0; font-size: clamp(31px, 5vw, 50px); line-height: 1; }
.section-title p { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-weight: 700; line-height: 1.55; }
.size-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 25px; align-items: start; }
.size-card { padding: 14px; }
.size-card img { width: 100%; border: 2px solid var(--ink); border-radius: 18px; }
.table-card { overflow: hidden; border: 3px solid var(--ink); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 16px 13px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); text-align: center; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { background: var(--ink); color: var(--white); font-size: 12px; text-transform: uppercase; }
td:first-child { background: var(--yellow); font-weight: 1000; }
.measure-note { padding: 14px 17px; border-top: 3px solid var(--ink); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.5; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { padding: 22px; }
.how-card span { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 18px; font-weight: 1000; }
.how-card h3 { margin: 15px 0 8px; }
.how-card p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.5; }
.catalog-footer { padding: 28px 14px; border-top: 3px solid var(--ink); background: var(--green); text-align: center; font-size: 13px; font-weight: 900; }

/* CHECKOUT MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.show { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 25px;
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(0,0,0,.65);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.modal-head h2 { margin: 5px 0 0; font-size: 29px; }
.close-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); cursor: pointer; font-size: 26px; font-weight: 900; }
.order-summary { margin-bottom: 18px; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-size: 13px; font-weight: 800; line-height: 1.6; }
.checkout-form { display: grid; gap: 14px; }
.checkout-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 900; }
.checkout-form input, .checkout-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  outline: none;
}
.checkout-form input:focus, .checkout-form textarea:focus { box-shadow: 3px 3px 0 var(--yellow); }
.checkout-form textarea { resize: vertical; }
.submit-order {
  min-height: 56px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--green);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 1000;
}
.submit-order:hover { background: var(--yellow); }

.mobile-order { display: none; }

@media (max-width: 900px) {
  .catalog-hero, .size-grid { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 16 / 15; }
  .gallery-main img { object-position: center 42%; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .link-page { width: min(100% - 22px, 680px); padding-top: 18px; }
  .profile-card { padding-inline: 10px; }
  .featured-mini { grid-template-columns: 112px 1fr; gap: 13px; padding: 12px; }
  .featured-mini img { height: 150px; }
  .mini-copy p { display: none; }
  .link-button { grid-template-columns: 44px 1fr 26px; min-height: 67px; }
  .link-icon { width: 44px; height: 44px; }
  .catalog-nav { min-height: 64px; }
  .nav-links { display: none; }
  .catalog-main { padding-top: 20px; }
  .gallery-card, .product-info, .size-card, .table-card { border-radius: 21px; box-shadow: 5px 5px 0 var(--ink); }
  .gallery-main { aspect-ratio: 4 / 5; }
  .gallery-thumb { grid-template-columns: 48px 1fr; font-size: 12px; }
  .gallery-thumb img { width: 48px; height: 48px; }
  .product-info h1 { font-size: 47px; }
  .price-row { align-items: flex-start; flex-direction: column; }
  .section-title { margin-top: 58px; }
  .modal-card { padding: 18px; }
  .mobile-order {
    position: fixed;
    left: 11px;
    right: 11px;
    bottom: 11px;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 15px;
    border: 3px solid var(--ink);
    border-radius: 17px;
    background: var(--cream);
    box-shadow: var(--shadow-sm);
  }
  .mobile-order strong { display: block; font-size: 16px; }
  .mobile-order span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
  .mobile-order button { min-height: 44px; padding: 0 15px; border: 2px solid var(--ink); border-radius: 12px; background: var(--green); font-size: 12px; font-weight: 1000; }
}
@media (max-width: 420px) {
  .featured-mini { grid-template-columns: 96px 1fr; }
  .featured-mini img { height: 132px; }
  .mini-copy h2 { font-size: 22px; }
  .price { font-size: 20px; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumb { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gallery-thumb img { width: 100%; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
