/* CRIYOYO - black, chalk and neon lime, taken from the tees and beanies themselves */

:root {
  --ink: #000;
  --paper: #f1f3ee;
  --white: #fff;
  --lime: #b8f000;
  --pink: #ff2d8a;
  --mute: #585d52;
  --line: #d5d9cf;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--lime); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; line-height: 0.95; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--lime); color: var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--ink); color: var(--lime); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- header ---------- */
.promo { background: var(--lime); font-size: 0.875rem; font-weight: 600; text-align: center; padding: 0.45rem var(--gutter); }
.site-head { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); height: 64px; }
.brand { font: 900 1.35rem/1 var(--display); font-stretch: 125%; color: var(--lime); text-decoration: none; margin-right: auto; }
.site-head nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-head nav a { text-decoration: none; font-weight: 600; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current] { border-color: var(--lime); }
.bag-btn { background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700; display: inline-flex; gap: 0.5rem; align-items: center; }
.bag-btn:hover { background: var(--white); }
.bag-btn .n { background: var(--ink); color: var(--lime); border-radius: 999px; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; display: grid; place-items: center; font-size: 0.8rem; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px); }
.hero .mark { display: block; width: 100%; height: auto; fill: var(--lime); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: clamp(20px, 3.5vw, 48px); }
.hero-copy { display: grid; gap: 1.4rem; align-content: end; padding-bottom: 0.25rem; }
.hero-copy p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 30ch; }
.hero-copy .row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-copy .btn.ghost { color: var(--white); border-color: var(--white); }
.hero-copy .btn.ghost:hover { background: var(--white); color: var(--ink); }
.hero-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 7vw, 96px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(20px, 3vw, 36px); }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.text-link { font-weight: 700; text-underline-offset: 4px; }

/* product grids */
.drop { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.drop .card { grid-column: span 3; }
.drop .card:first-child { grid-column: span 6; grid-row: span 2; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; background: #e2e6da; flex: 1 1 auto; display: flex; }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.drop .card:first-child .card-media { display: block; min-height: 340px; }
.drop .card:first-child .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.card .add {
  position: absolute; right: 12px; bottom: 12px; background: var(--lime); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.card .add:hover { background: var(--ink); color: var(--lime); }
.card-info { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.7rem; font-weight: 600; }
.card-info .price { font-family: var(--display); font-weight: 800; font-stretch: 110%; }
.card-note { color: var(--mute); font-size: 0.875rem; padding-top: 0.1rem; }

/* how it works - a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 3px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.steps .num { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); font-stretch: 125%; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--mute); max-width: 34ch; }

.lime-band { background: var(--lime); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.band-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-height: 640px; }
.band-grid h2 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.band-grid p { font-size: 1.15rem; max-width: 36ch; margin-bottom: 1.5rem; }

/* page head */
.page-head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.page-head p { color: var(--mute); margin-top: 0.8rem; max-width: 48ch; font-size: 1.1rem; }

.empty { padding: 3rem 0; display: grid; gap: 1rem; justify-items: start; }
.empty p { font-size: 1.2rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--white); padding: clamp(32px, 5vw, 56px) 0; margin-top: auto; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-end; }
.foot-grid .brand { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { text-underline-offset: 4px; }
.fine { color: #9aa093; font-size: 0.875rem; width: 100%; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; }
.wa-float:hover { background: var(--ink); color: var(--lime); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white);
  z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s ease;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-size: 1.6rem; }
.icon-btn { background: none; border: 2px solid var(--ink); border-radius: 50%; width: 40px; height: 40px; font-size: 1.3rem; line-height: 1; }
.icon-btn:hover { background: var(--ink); color: var(--white); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem; }
.drawer-foot { padding: 1.25rem; border-top: 2px solid var(--ink); display: grid; gap: 0.75rem; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 96px; object-fit: cover; background: #e2e6da; }
.line h3 { font-size: 1rem; }
.line .opts { color: var(--mute); font-size: 0.9rem; }
.line .price { font-weight: 700; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; margin-top: 0.5rem; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 1.1rem; border-radius: 50%; }
.qty button:hover { background: var(--lime); }
.qty span { min-width: 1.6rem; text-align: center; font-weight: 700; }
.line .rm { background: none; border: 0; padding: 0; margin-top: 0.5rem; color: var(--mute); font-size: 0.85rem; text-decoration: underline; display: block; margin-left: auto; }
.sum-row { display: flex; justify-content: space-between; font-weight: 600; }
.sum-row.total { font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: 1.35rem; }
.note { color: var(--mute); font-size: 0.9rem; }

/* ---------- quick add dialog ---------- */
dialog.pick { border: 0; padding: 0; width: min(780px, calc(100% - 24px)); max-height: calc(100vh - 24px); background: var(--white); color: var(--ink); overflow: auto; }
dialog.pick::backdrop { background: rgba(0, 0, 0, 0.6); }
.pick-grid { display: grid; grid-template-columns: 5fr 6fr; }
.pick-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; background: #e2e6da; }
.pick-body { padding: clamp(18px, 3vw, 32px); display: grid; gap: 1.2rem; align-content: start; position: relative; }
.pick-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); padding-right: 2.6rem; }
.pick-body .icon-btn { position: absolute; top: 14px; right: 14px; }
.pick .price { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.4rem; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem; font-weight: 600; background: var(--white); }
.chip input:checked + span { background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.4); display: inline-block; }
.chip input:checked + span .dot { border-color: var(--white); }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: clamp(40px, 7vw, 96px); }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field .lbl { font-weight: 700; }
.field .hint { color: var(--mute); font-size: 0.875rem; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=file], .field textarea, .field select {
  width: 100%; border: 2px solid var(--ink); background: var(--white); padding: 0.75rem 0.9rem; border-radius: 0; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--ink); outline-offset: 2px; background: #fbffe9; }
.field.bad input, .field.bad textarea { border-color: var(--pink); }
.err { color: #c20061; font-weight: 600; }
.ship { display: grid; gap: 0.6rem; }
.ship label { display: flex; justify-content: space-between; gap: 1rem; border: 2px solid var(--ink); background: var(--white); padding: 0.9rem 1rem; cursor: pointer; align-items: center; }
.ship label:has(input:checked) { background: var(--lime); }
.ship label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.ship input { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; margin-right: 0.7rem; }
.ship b { display: block; }
.ship small { color: var(--ink); opacity: 0.7; }
.summary { background: var(--white); border: 2px solid var(--ink); padding: clamp(18px, 3vw, 28px); display: grid; gap: 1rem; position: sticky; top: 84px; }
.summary h2 { font-size: 1.6rem; }
.summary .line { grid-template-columns: 60px 1fr auto; padding: 0.7rem 0; }
.summary .line img { width: 60px; height: 76px; }
.done { background: var(--lime); border: 2px solid var(--ink); padding: clamp(20px, 4vw, 40px); display: grid; gap: 1rem; justify-items: start; }
.done h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(40px, 7vw, 96px); }
.big-wa { background: var(--lime); border: 2px solid var(--ink); padding: clamp(20px, 3vw, 36px); display: grid; gap: 1rem; align-content: start; justify-items: start; }
.big-wa h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.flash { background: var(--ink); color: var(--lime); padding: 0.8rem 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- admin ---------- */
body.admin { background: var(--paper); }
.admin-bar { background: var(--ink); color: var(--white); }
.admin-bar .wrap { display: flex; gap: 1.2rem; align-items: center; height: 60px; flex-wrap: wrap; }
.admin-bar .brand { font-size: 1.15rem; }
.admin-bar nav { display: flex; gap: 1.2rem; margin-right: auto; }
.admin-bar nav a { text-decoration: none; font-weight: 600; }
.admin-bar nav a:hover { color: var(--lime); }
.admin-bar form { margin: 0; }
.admin-bar .btn { padding: 0.4rem 1rem; background: transparent; color: var(--white); border-color: var(--white); }
.admin-bar .btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.a-sec { padding: 2rem 0; scroll-margin-top: 1rem; }
.a-sec h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.panel { background: var(--white); border: 2px solid var(--ink); padding: 1.1rem; margin-bottom: 1rem; }
.order-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.order-top h3 { font-size: 1.2rem; }
.muted { color: var(--mute); }
.order-items { margin: 0.7rem 0; padding-left: 1.1rem; }
.order-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; }
.order-actions form { margin: 0; display: flex; gap: 0.5rem; }
.order-actions select { border: 2px solid var(--ink); padding: 0.4rem 0.6rem; background: var(--white); min-height: 40px; }
.btn.sm { padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn.danger { background: var(--white); color: #c20061; border-color: #c20061; }
.btn.danger:hover { background: #c20061; color: var(--white); }
.pill { display: inline-block; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 0 0.7rem; font-weight: 700; font-size: 0.85rem; }
.pill.Cancelled { background: var(--white); color: #c20061; border-color: #c20061; }
.pill.New { background: var(--pink); color: var(--white); }
.p-row { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; }
.p-row img { width: 90px; height: 112px; object-fit: cover; }
.p-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; align-items: end; }
.p-actions { grid-column: 1 / -1; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.login { max-width: 440px; margin: clamp(32px, 8vw, 96px) auto; }
.login .panel { display: grid; gap: 1rem; }
.warn { background: #fff3a8; border: 2px solid var(--ink); padding: 0.8rem 1rem; margin-bottom: 1rem; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid, .co, .contact-grid { grid-template-columns: 1fr; }
  .drop { grid-template-columns: repeat(2, 1fr); }
  .drop .card, .drop .card:first-child { grid-column: span 1; grid-row: auto; }
  .drop .card:first-child { grid-column: span 2; }
  .drop .card:first-child .card-media { display: flex; min-height: 0; }
  .drop .card:first-child .card-media img { position: static; aspect-ratio: 4 / 5; height: auto; }
  .steps { grid-template-columns: 1fr; }
  .summary { position: static; }
  .band-grid img { max-height: 420px; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .pick-grid { grid-template-columns: 1fr; }
  .pick-grid img { min-height: 0; height: 220px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card .add { right: 8px; bottom: 8px; padding: 0.4rem 0.8rem; font-size: 0.9rem; }
  .card-info { flex-direction: column; gap: 0; }
  .site-head .wrap { height: 58px; }
  .brand { font-size: 1.1rem; }
  .p-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
