*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.drawer[hidden],
.agent-fields[hidden],
.card-fields[hidden],
.form-errors[hidden] { display: none !important; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  border: 0;
  padding: 0;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  overflow: auto;
  padding: 24px;
}
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; }
.drawer-line img { width: 72px; height: 90px; object-fit: cover; }
.drawer-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.drawer-actions a, .btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.price-was {
  text-decoration: line-through;
  font-weight: 400;
  opacity: 0.55;
  margin-right: 0.35em;
}
.price-now.is-drop {
  animation: price-drop 0.8s ease;
  border-radius: 2px;
  padding: 0 0.2em;
}
@keyframes price-drop {
  0% { background: var(--drop, #f6e2c2); }
  100% { background: transparent; }
}

.form-errors {
  padding: 12px 14px;
  margin-bottom: 16px;
}
.form-errors li { margin: 4px 0; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
}
.qty button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
}
.qty span { min-width: 1.4em; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .price-now.is-drop { animation: none; }
  html { scroll-behavior: auto; }
}

/* Shared interaction and layout polish; each shop keeps its own visual identity. */
:focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px; }
#main:focus { outline: none; }
button, .btn, .btn-ghost, a { -webkit-tap-highlight-color: transparent; }
.btn, .btn-ghost, .swatch { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.btn:active, .btn-ghost:active { transform: translateY(1px); }
button:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
h1, h2, .lede { text-wrap: balance; }
.card-price, .pdp-price, .sum-price, .sum-totals, .cart-price { font-variant-numeric: tabular-nums; }
.pdp { max-width: 1280px; margin-inline: auto; padding: 32px clamp(16px, 3vw, 40px) 72px; }
.pdp .pdp-grid { margin-top: 24px; }
.pdp .excerpt { margin-block: 12px 20px; }
.pdp .offer-note + .offer-note { margin-top: 8px; }
.checkout-page .block .radio { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; text-transform: none; letter-spacing: normal; font-size: 15px; }
.checkout-page .block .radio input { width: 18px; height: 18px; margin: 4px 0 0; padding: 0; accent-color: var(--ink); }
.checkout-page .block .radio strong { display: block; font-weight: 600; }
.checkout-page .block .radio small { line-height: 1.5; margin-top: 3px; }
.checkout-page .block input, .checkout-page .block select { min-height: 44px; font-size: 16px; }
.checkout-page form > .fine { margin-top: 14px; }
.checkout-page .summary { min-width: 0; }
.sum-totals dd { margin: 0; text-align: right; }
.sum-totals .sum-total { flex-wrap: wrap; }
.agent-panel p + p { margin-top: 8px; }
.agent-panel .text-btn { margin-top: 12px; min-height: 40px; text-decoration: underline; }
.agent-panel .agent-hint { margin-top: 10px; font-size: 14px; }
.sum-gift::before { content: '+ '; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.search-large { margin-block: 20px; }
.search-large input { min-width: min(100%, 320px); font-size: 16px; }
.cart-line .text-btn { min-height: 40px; margin-left: 12px; text-decoration: underline; }
.qty button { min-width: 40px; min-height: 40px; }
.drawer-top .text-btn, .bag-btn, .nav-toggle { min-height: 44px; min-width: 44px; }
@media (max-width: 600px) {
  .pdp .pdp-info h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.12; }
  .pdp .pdp-grid { gap: 24px; }
  .page .cart-line { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .page .cart-price { grid-column: 2; }
  .card-meta { flex-wrap: wrap; gap: 4px 8px; }
  .section-head { gap: 16px; }
  .section-head a { flex-shrink: 0; }
  .checkout-page .summary { padding: 18px; }
  .hero-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav a[href$="/search"] { display: none; }
@media (max-width: 600px) {
  .site-header .search { display: none; }
  .site-header .nav.is-open a[href$="/search"] { display: block; }
  .site-header .tools { gap: 8px; }
}

/* The example-store notice stays visible across shop pages and scrolling. */
.example-store-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 24px;
  background: #fff8e9;
  color: #352d20;
  border-bottom: 1px solid #d9cbb0;
  font: 13px/1.4 system-ui, sans-serif;
}
.example-store-bar strong { font-weight: 650; }
.example-store-bar p { font-size: 12px; }
.example-store-bar a { font-weight: 600; text-underline-offset: 3px; }
.example-store-bar + #app .site-header { top: var(--demo-banner-height, 44px); }
.example-store-bar + #app .cart-side,
.example-store-bar + #app .summary { top: calc(var(--demo-banner-height, 0px) + var(--store-header-height, 0px) + 16px); }
@media (max-width: 700px) {
  .example-store-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; font-size: 11px; }
  .example-store-bar strong { grid-column: 1; }
  .example-store-bar a { grid-column: 2; grid-row: 1; }
  .example-store-bar p { grid-column: 1 / -1; grid-row: 2; font-size: 11px; }
}
