:root {
  --paper: #f7f7f7;
  --ink: #201e1c;
  --muted: #62605c;
  --line: #e2e2e2;
  --olive: #777600;
  --olive-dark: #585700;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 14px/1.45 system-ui, sans-serif; }
main { flex: 1; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--olive-dark); outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 52px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.bar, .identity, .cart-trigger { display: flex; align-items: center; }
.bar { min-height: 71px; justify-content: space-between; gap: 12px; }
.identity { gap: 12px; min-width: 0; text-decoration: none; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.identity small { color: var(--muted); font-size: 12px; }
.brand-mark { flex: none; display: grid; place-items: center; width: 49px; aspect-ratio: 1; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); border-radius: 12px; background: #f2f1c7; color: #505000; }
.brand-mark svg, .cart-trigger svg, .search svg, .social-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; border-radius: 8px; background: white; }
.brand-mark img:not([hidden]) + svg { display: none; }
.brand-mark.photo-logo { position: relative; overflow: hidden; background: #e5c891; }
.brand-mark.photo-logo img { position: absolute; width: 800%; height: 800%; max-width: none; left: -373%; top: -359%; transform: rotate(7deg); transform-origin: 53% 51%; }
.header-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--muted); font-size: 12px; }
.social-link:hover { color: var(--olive-dark); border-color: var(--olive); }
.social-link svg { width: 16px; }
.cart-trigger { gap: 7px; padding: 10px 14px; border: 0; border-radius: 24px; background: var(--olive); color: white; font-weight: 650; white-space: nowrap; box-shadow: 0 3px 9px #57550022; }
.cart-trigger:hover, .primary:hover { background: var(--olive-dark); }
.cart-trigger svg { width: 17px; }
#cart-count { min-width: 20px; padding: 1px 4px; border-radius: 20px; background: #fff3; text-align: center; font-size: 11px; }
.collection { padding-block: 32px 54px; min-height: 60vh; }
.contact-row { display: flex; justify-content: flex-end; margin: -32px 0 31px; }
.contact-row a { display: flex; justify-content: space-between; gap: 18px; width: min(100%, 585px); padding: 10px 15px; border: solid var(--line); border-width: 0 1px 1px; border-radius: 0 0 12px 12px; background: white; text-decoration: none; }
.contact-row strong { color: var(--olive-dark); }
.search { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid transparent; background: #efefef; border-radius: 12px; color: var(--muted); }
.search:focus-within { border-color: var(--olive); }
.search svg { flex: none; width: 16px; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 9px 0; outline: none; }
.search input:focus-visible { outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: white; color: #53504d; border-radius: 22px; padding: 8px 14px; font-weight: 600; font-size: 13px; box-shadow: 0 1px 2px #0001; }
.chip span { margin-left: 2px; font: 11px ui-monospace, monospace; opacity: .8; }
.chip[aria-pressed=true] { background: #1c1b19; border-color: #1c1b19; color: white; }
.demo-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.demo-note strong { color: var(--olive-dark); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 15px; color: var(--muted); font-size: 13px; }
.results-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { max-width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: 9px; border-radius: 10px; }
.status { padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--white); border-radius: 14px; overflow: hidden; scroll-margin-top: 16px; box-shadow: 0 1px 3px #0000000a; }
.product:target { outline: 2px solid var(--olive); outline-offset: 3px; }
.product-media { aspect-ratio: 4/5; background: #ededed; display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px; }
.product h3 { margin: 4px 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.product-category { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font: 10px ui-monospace, monospace; }
.photo-placeholder, .description, .hint { color: var(--muted); font-size: 12px; }
.description { margin: 2px 0 6px; overflow-wrap: anywhere; }
.price { font: 700 14px ui-monospace, monospace; margin: auto 0 10px; padding-top: 6px; }
.variant-label { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 4px 0; color: var(--muted); font-size: 11px; }
.variant-label select { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 3px 4px; }
.availability { align-self: flex-start; margin: 4px 0 6px; padding: 2px 6px; border-radius: 10px; background: #f3f2df; color: var(--olive-dark); font: 11px/1.45 ui-monospace, monospace; }
.availability::before { content: '●'; margin-right: 4px; font-size: 8px; }
.availability.sold { background: #eee; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 22px; padding: 6px 12px; text-decoration: none; font-weight: 620; }
.add { border: 1px solid #d1d1d1; background: white; }
.add:hover:not(:disabled) { border-color: var(--olive); background: #faf9e9; }
.primary { border: 1px solid transparent; color: #fff; background: var(--olive); }
button:disabled, a[aria-disabled=true] { opacity: .52; cursor: default; pointer-events: none; }
footer { border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; height: 100%; max-height: none; width: min(100%, 440px); max-width: 100%; border: 0; background: white; color: var(--ink); }
dialog::backdrop { background: #211f1a88; }
.drawer { height: 100%; display: flex; flex-direction: column; }
.drawer-head, .cart-footer { padding: 16px 20px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 21px; }
.drawer-head button, .qty button { border: 1px solid var(--line); background: var(--white); border-radius: 7px; min-width: 32px; min-height: 32px; }
.cart-items { flex: 1; overflow: auto; padding: 0 20px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row p { margin: 0; }
.cart-row small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.cart-footer { border-top: 1px solid var(--line); }
.cart-footer .button { width: 100%; }
.total { display: flex; justify-content: space-between; margin: 0 0 12px; }
.hint { margin: 8px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bar { min-height: 64px; }
  .brand-mark { width: 40px; }
  .identity { gap: 8px; }
  .identity strong { font-size: 15px; }
  .identity small { font-size: 10px; }
  .cart-trigger { padding: 8px; font-size: 12px; }
  .header-actions { gap: 6px; }
  .social-link { padding: 6px; }
  .social-link span { display: none; }
  .collection { padding-top: 22px; }
  .contact-row { margin: -22px 0 20px; }
  .product-body { padding: 9px; }
  .sort select { width: 123px; }
}
