/* Jerry's Artarama checkout — concept prototype. Tokens follow the Claude Design mock. */
:root {
  --red: #B0101F;
  --red-dark: #8A0C19;
  --brand: #E0142C;
  --teal: #12333A;
  --teal-soft: #CFE0E4;
  --text: #1A1A1A;
  --body: #333333;
  --muted: #595959;
  --faint: #6B6B6B;
  --line: #E2E2E2;
  --line-strong: #BDBDBD;
  --panel: #F4F4F4;
  --green: #1E7A34;
  --green-soft: #E6F4EA;
  --error-bg: #FDECEA;
  --error-line: #F3C2BD;
  --error-text: #7A1420;
  --gold: #C98A00;
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --gutter: 40px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: var(--text); font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; color: #fff; }
.noscript { margin: 0; padding: 16px var(--gutter); background: #FEF3C7; color: #92400E; font-weight: 700; }

/* ---------- Portfolio bar (not part of the store) ---------- */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 10px var(--gutter); background: #0B1F23; color: #fff; font-size: 13px;
}
.demo-bar a { color: #fff; font-weight: 700; }
.demo-bar__back { text-decoration: none; }
.demo-bar__back:hover { color: #fff; text-decoration: underline; }
.demo-bar__label { color: #C9D6D8; }
.demo-bar :focus-visible { outline-color: #fff; }
.demo-guide { margin-left: auto; }
.demo-guide summary { cursor: pointer; font-weight: 800; color: #F2D58A; min-height: 24px; }
.demo-guide__body { margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: #16343A; max-width: 720px; }
.demo-guide__body p { margin: 0 0 6px; line-height: 1.6; }
.demo-guide__body p:last-child { margin-bottom: 0; }
.demo-guide__body code { background: #0B1F23; padding: 1px 5px; border-radius: 4px; color: #fff; }
.demo-guide__body button { background: none; border: 0; padding: 0; color: #F2D58A; font-weight: 800; text-decoration: underline; min-height: 24px; }

/* ---------- Headers ---------- */
.promo-bar { margin: 0; background: var(--teal); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shop-header__inner, .checkout-header__inner {
  max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.shop-header, .checkout-header { border-bottom: 1px solid var(--line); background: #fff; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; color: var(--brand); letter-spacing: .01em; }
.logo__tag { font-size: 12px; font-style: italic; color: var(--muted); border-top: 1px solid var(--line-strong); margin-top: 4px; padding-top: 2px; }
.logo--small .logo__name { font-size: 24px; }
.main-nav { display: flex; gap: 8px 30px; flex-wrap: wrap; font-weight: 800; font-size: 15px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.main-nav a:hover { color: var(--red); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--text); border-radius: 8px; }
.cart-link:hover { background: var(--panel); color: var(--text); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.steps { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; font-weight: 800; font-size: 15px; }
.steps li:not(.steps__sep) { padding: 6px 14px; border-radius: 20px; background: var(--panel); color: var(--muted); }
.steps li[aria-current="step"] { background: var(--teal); color: #fff; }
.steps__sep { color: var(--faint); }
.secure { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; }

/* ---------- Layout ---------- */
.view { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.view:focus { outline: none; }
.view--narrow { max-width: 1200px; }
.page-title { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.2; margin-bottom: 6px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 680px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px var(--gutter); color: var(--muted); font-size: 13px; text-align: center; }
.site-footer p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: #0B1F23; color: #fff; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--panel); color: var(--text); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--red); font-weight: 800; text-decoration: underline; }
.link-btn:hover { color: var(--red-dark); }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--panel); font-size: 20px; font-weight: 800; line-height: 1; color: var(--text); }
.stepper button:hover:not([disabled]) { background: var(--line); }
.stepper button[disabled] { color: #9A9A9A; cursor: not-allowed; }
.stepper output { min-width: 48px; text-align: center; font-weight: 800; font-size: 17px; }
.stepper--lg button { height: 52px; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery__main { position: relative; display: flex; align-items: center; justify-content: center; height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #F7F7F5; }
.gallery__badge { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.gallery__badge span { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.gallery__thumbs { display: flex; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.gallery__thumbs li { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #F7F7F5; display: flex; align-items: center; justify-content: center; }
.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.stars span { color: #D0D0D0; }
.product h1 { font-family: var(--font-head); font-weight: 800; font-size: 36px; line-height: 1.15; margin-bottom: 6px; }
.product__cat { color: var(--muted); font-weight: 800; font-size: 14px; margin: 0 0 18px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; }
.price { font-family: var(--font-head); font-size: 32px; font-weight: 800; }
.list-price { color: var(--faint); font-size: 18px; }
.in-stock { color: var(--green); font-weight: 800; font-size: 15px; }
.out-stock { color: var(--red); font-weight: 800; font-size: 15px; }
.product__desc { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 540px; margin: 0 0 24px; }
.secondary-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.buy-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 220px; min-height: 54px; }
.limit-msg { margin: 10px 0 0; font-size: 14px; font-weight: 800; color: var(--error-text); }
.meta { margin: 22px 0 0; font-size: 14px; color: var(--body); line-height: 1.9; }
.meta div { display: flex; gap: 6px; }
.meta dt { font-weight: 800; }
.meta dd { margin: 0; }

.tabs { margin-top: 56px; border-top: 1px solid var(--line); }
.tabs__list { display: flex; gap: 32px; padding-top: 18px; flex-wrap: wrap; }
.tabs__list [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 0; min-height: 44px; font-weight: 800; color: var(--muted); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tabs__panel { max-width: 760px; padding: 24px 0 8px; }
.tabs__panel h2 { font-family: var(--font-head); font-size: 26px; margin-bottom: 10px; }
.tabs__panel p { line-height: 1.7; color: var(--body); margin: 0 0 12px; }
.info-table { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 40%; font-weight: 800; }

.bulk-band { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 40px; padding: 32px 36px; border-radius: 8px; background: var(--teal); color: #fff; }
.bulk-band h2 { font-family: var(--font-head); font-size: 22px; margin-bottom: 4px; }
.bulk-band p { margin: 0; color: var(--teal-soft); }
.bulk-band .btn { background: #fff; color: var(--teal); }
.bulk-band .btn:hover { background: var(--teal-soft); color: var(--teal); }

/* ---------- Bulk table ---------- */
.bulk-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bulk { width: 100%; border-collapse: collapse; font-size: 15px; }
.bulk th, .bulk td { padding: 14px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.bulk thead th { border-top: 0; background: var(--panel); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--body); }
.bulk tbody th { font-weight: 800; }
.swatch { display: inline-block; width: 40px; height: 40px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); vertical-align: middle; }
.bulk .list-price { font-size: 15px; }
.bulk .row-note { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--error-text); }
.notify-btn { margin-top: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--text); color: #fff; font-size: 14px; font-weight: 800; }
.notify-btn[disabled] { background: var(--green-soft); color: var(--green); cursor: default; }
.bulk-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-top: 24px; }
.bulk-foot p { margin: 0; font-weight: 800; color: var(--muted); }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.lines { margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 90px 1fr auto 90px 44px; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 90px; height: 90px; border-radius: 8px; border: 1px solid var(--line); background: #F7F7F5; display: flex; align-items: center; justify-content: center; }
.line__name { font-weight: 800; }
.line__color, .line__each { margin: 0; font-size: 14px; color: var(--muted); }
.line__each { font-weight: 700; color: var(--body); }
.line__total { margin: 0; text-align: right; font-weight: 800; }
.line__soldout { margin: 4px 0 0; font-size: 14px; font-weight: 800; color: var(--error-text); }
.remove-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.remove-btn:hover { background: var(--error-bg); color: var(--red); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: 8px; border: 1px solid var(--error-line); background: var(--error-bg); color: var(--error-text); font-weight: 700; font-size: 15px; }
.alert:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.alert p { margin: 0; }
.alert strong { display: block; font-weight: 800; margin-bottom: 2px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 24px; }
.cart .panel { position: sticky; top: 24px; }
.ship-progress { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 800; }
.ship-progress__bar { height: 6px; margin-top: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; background: var(--green); }
.ship-progress--done { background: var(--green-soft); color: #155724; }
.promo label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.promo__row { display: flex; gap: 8px; }
.promo__row input { flex: 1; min-width: 0; }
.promo__msg { min-height: 20px; margin: 6px 0 14px; font-size: 14px; font-weight: 800; }
.promo__msg--ok { color: var(--green); }
.promo__msg--err { color: var(--error-text); }
.totals { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-weight: 800; }
.totals .discount { color: var(--green); }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.panel .btn-block { margin-top: 18px; }
.empty { text-align: center; padding: 72px 0; color: var(--muted); }
.empty svg { color: #C4C4C4; margin-bottom: 14px; }
.empty h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty p { margin: 0 0 20px; }

/* ---------- Forms ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.card-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card-block h2, .card-block legend { font-size: 18px; font-weight: 800; margin: 0 0 14px; padding: 0; }
fieldset.card-block { min-width: 0; }
fieldset.card-block > legend { float: left; width: 100%; }
fieldset.card-block > legend + * { clear: both; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field .hint { margin: -2px 0 6px; font-size: 13px; color: var(--muted); }
.input, .field input, .field select, .promo__row input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font-size: 16px;
}
.field input::placeholder, .promo__row input::placeholder { color: #707070; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid var(--red); }
.field__error { margin: 6px 0 0; color: var(--error-text); font-size: 14px; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 16px; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; cursor: pointer; }
.radio-row input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.signin-panel { margin-top: 12px; padding: 16px; border-radius: 8px; background: var(--panel); }
.signin-panel .grid-2 { align-items: start; }
.form-status { margin: 16px 0 0; font-weight: 800; color: var(--error-text); }
.form-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 8px; }
.form-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }

/* Order summary: always open on wide screens, collapsible on phones */
.summary { background: var(--panel); border-radius: var(--radius); position: sticky; top: 24px; }
.summary > summary { display: none; }
.summary__body { padding: 24px; }
.summary h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.summary__items { margin: 0 0 12px; padding: 0; list-style: none; }
.summary__items li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.summary__items .swatch { width: 44px; height: 44px; flex: none; }
.summary__items div { flex: 1; }
.summary__items p { margin: 0; }
.summary__items .muted { color: var(--muted); }

/* Review */
.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.review-block__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-block__head h2 { font-size: 17px; font-weight: 800; }
.review-block p { margin: 6px 0 0; color: var(--body); line-height: 1.6; }
.review-block form { margin-top: 12px; }
.edit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.edit-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Confirmation */
.confirm { max-width: 760px; margin: 0 auto; text-align: center; }
.confirm svg { color: var(--green); margin-bottom: 14px; }
.confirm .lead { margin-left: auto; margin-right: auto; }
.confirm .panel { text-align: left; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 96px; right: var(--gutter); z-index: 150; width: min(340px, calc(100vw - 32px)); }
.toast__card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.toast__card svg { flex: none; margin-top: 2px; color: var(--green); }
.toast__card p { margin: 0; font-weight: 800; }
.toast__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.toast__actions a, .toast__actions button { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font-weight: 800; font-size: 15px; }
.toast__actions a { color: var(--red); }
.toast__actions button { color: var(--muted); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product { gap: 36px; }
  .gallery__main { height: 420px; }
  .checkout, .cart { grid-template-columns: 1fr 320px; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .view { padding-top: 24px; }
  .demo-guide { margin-left: 0; }
  .logo__name { font-size: 22px; }
  .main-nav { order: 3; width: 100%; gap: 4px 20px; overflow-x: auto; }
  .product, .cart, .checkout { grid-template-columns: 1fr; }
  .gallery__main { height: 320px; }
  .gallery__main svg { width: 150px; height: auto; }
  .gallery__thumbs li { width: 30%; height: 90px; }
  .product h1, .page-title { font-size: 28px; }
  .price { font-size: 28px; }
  .tabs__list { gap: 20px; }
  .bulk-band { padding: 24px; }
  .cart .panel, .summary { position: static; }
  .summary { order: -1; }
  .summary > summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 48px; font-weight: 800; cursor: pointer; list-style: none; }
  .summary > summary::-webkit-details-marker { display: none; }
  .summary > summary::after { content: "▾"; }
  .summary[open] > summary::after { content: "▴"; }
  .summary__body { padding: 0 18px 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-block { padding: 18px; }
  .checkout-header__inner { justify-content: center; }
  .secure { display: none; }
  .toast { top: auto; bottom: 16px; right: 16px; }

  /* Bulk table becomes one card per color */
  .bulk thead { display: none; }
  .bulk, .bulk tbody, .bulk tr, .bulk th, .bulk td { display: block; width: 100%; }
  .bulk tr { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; padding: 16px; border-top: 1px solid var(--line); }
  .bulk tbody tr:first-child { border-top: 0; }
  .bulk th, .bulk td { border: 0; padding: 0; }
  .bulk td.bulk__swatch { grid-row: 1 / 4; }
  .bulk td.bulk__size, .bulk td.bulk__list { display: none; }
  .bulk td.bulk__qty { grid-column: 2; margin-top: 8px; }
  .bulk-foot { justify-content: stretch; }
  .bulk-foot .btn { width: 100%; }

  .line { grid-template-columns: 64px 1fr auto; gap: 8px 12px; }
  .line__img { width: 64px; height: 64px; grid-row: 1 / 3; align-self: start; }
  .line .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
  .line__total { grid-column: 3; grid-row: 2; align-self: center; }
  .line .remove-btn { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
