/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }

/* ---- Layout: main column + sticky conveyor ---- */
.layout {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: flex-start;
}
.main { flex: 1 1 auto; min-width: 0; }

/* ---- Header / wordmark ---- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 12px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #111;
  text-decoration: none;
}
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 500; } /* "Chrome" — a touch thicker than the original regular */
.nav {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}
.flag {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 95;
  width: 34px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 60px 0 40px;
  font-size: 12px;
}
.site-footer .copyright { opacity: 0.5; }

/* ---- Products (editorial split) ---- */
.product {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid #eee;
  scroll-margin-top: 24px; /* so conveyor scroll-to lands nicely */
}
.products .product:first-child { border-top: none; padding-top: 16px; }
.product__image { flex: 0 0 36%; }
.product__image img {
  width: 100%;
  aspect-ratio: 4 / 5;     /* uniform flat-lay box for every shirt */
  object-fit: contain;     /* show the whole mockup, never cropped */
  background: #fff;         /* flat white backdrop */
  border: 1px solid #eee;
  border-radius: 12px;
}
.product__name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.product__price { opacity: 0.7; margin: 0 0 14px; }
.product__desc { opacity: 0.6; max-width: 42ch; margin: 0 0 20px; line-height: 1.6; }
.buy-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font: 600 14px 'Inter', sans-serif;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.buy-btn:hover { opacity: 0.85; }

@media (max-width: 720px) {
  .product { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product__image { flex: none; width: 100%; }
}

/* ---- Slideshow conveyor (desktop) ---- */
.conveyor {
  flex: 0 0 250px;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
}
.conveyor__follow {
  position: sticky;
  top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.conveyor__label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
}
.conveyor__viewport {
  width: 210px;
  height: 78vh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.conveyor__track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: conveyorScroll 20s linear infinite;
}
.conveyor__viewport:hover .conveyor__track,
.conveyor__viewport:active .conveyor__track { animation-play-state: paused; }
@keyframes conveyorScroll {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
.conveyor__item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.conveyor__item:hover { transform: scale(1.04); }
.conveyor__item img {
  width: 190px;
  height: 226px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
}
.conveyor__item span { font-size: 10px; font-weight: 600; }

/* ---- Cursor cat (desktop only) ---- */
#cat {
  position: fixed;
  left: 0; top: 0;
  width: 48px; height: 48px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-200px, -200px);
  will-change: transform;
}
#catRot { width: 100%; height: 100%; transition: transform 0.12s linear; }
.cat-hidden { display: none !important; }
#catRun.go .cat-tail { animation: catTail 0.4s ease-in-out infinite alternate; transform-origin: 26px 40px; }
#catSit .cat-tail   { animation: catTail 0.55s ease-in-out infinite alternate; transform-origin: 25px 46px; }
@keyframes catTail { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }

/* ---- Conveyor on mobile: horizontal strip pinned to the bottom ---- */
@media (max-width: 720px) {
  .layout { display: block; padding: 0 16px; }
  .main { padding-right: 0; padding-bottom: 156px; } /* room for the bottom strip */

  /* Less cramped header on small screens */
  .site-header { padding: 20px 0 10px; }
  .wordmark { font-size: 24px; }
  .header-actions { gap: 10px; }
  span.nav { display: none; } /* hide the non-link "Shop" label on the storefront only */

  .conveyor {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; height: 144px;
    flex: none;
    padding: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    z-index: 50;
  }
  .conveyor__follow { position: static; width: 100%; height: 100%; }
  .conveyor__label { display: none; }
  .conveyor__viewport {
    width: 100%; height: 144px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  .conveyor__track {
    flex-direction: row;
    gap: 10px;
    height: 100%;
    align-items: center;
    animation: conveyorScrollX 22s linear infinite;
  }
  @keyframes conveyorScrollX {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }
  .conveyor__item img { width: 96px; height: 116px; }
  .conveyor__item span { display: none; }
  .flag { bottom: 156px; } /* sit just above the bottom strip */
}

/* ---- Respect reduced motion: stop the conveyor glide ---- */
@media (prefers-reduced-motion: reduce) {
  .conveyor__track { animation: none; }
}

/* ---- Product detail page ---- */
.product-page .site-header { max-width: 1100px; margin: 0 auto; padding: 24px; }
.product-page .nav { color: #111; text-decoration: none; }
.detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.detail__media { flex: 0 0 46%; }
.detail__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}
.detail__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.detail__thumb {
  width: 64px; height: 80px;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.detail__thumb.is-active { border-color: #111; }
.detail__thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail__info { flex: 1 1 auto; padding-top: 6px; }
.detail__name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.detail__price { font-size: 18px; opacity: 0.7; margin: 0 0 18px; }
.detail__desc { opacity: 0.65; max-width: 46ch; line-height: 1.6; margin: 0 0 28px; }
.opt { margin-bottom: 22px; }
.opt__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; margin-bottom: 10px; }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 46px;
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 8px;
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
}
.chip.is-active { border-color: #111; background: #111; color: #fff; }
.chip:disabled, .chip.is-soldout { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.buy-btn--lg { font-size: 15px; padding: 14px 34px; margin-top: 8px; }

@media (max-width: 720px) {
  .detail { flex-direction: column; gap: 24px; padding-bottom: 60px; }
  .detail__media { flex: none; width: 100%; }
}

/* ---- Cart ---- */
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-btn { position: relative; background: none; border: none; cursor: pointer; color: #111; padding: 4px; display: inline-flex; line-height: 0; }
.cart-btn--floating { position: fixed; top: 16px; right: 16px; z-index: 9998; background: #fff; border-radius: 50%; padding: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.cart-count { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; background: #111; color: #fff; font: 600 10px 'Inter', sans-serif; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 10000; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 90vw; background: #fff; z-index: 10010; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 14px; border-bottom: 1px solid #f0f0f0; }
.cart-drawer__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cart-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #111; }
.cart-items { flex: 1 1 auto; overflow-y: auto; padding: 4px 22px; }
.cart-empty { opacity: .55; padding: 30px 0; text-align: center; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f3f3f3; }
.cart-item__img { width: 54px; height: 66px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 6px; flex: 0 0 auto; }
.cart-item__info { flex: 1 1 auto; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 14px; }
.cart-item__opts { font-size: 12px; opacity: .55; margin-top: 2px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.cart-item__qty button { width: 24px; height: 24px; border: 1px solid #d8d8d8; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.cart-item__rm { width: auto !important; padding: 0 8px !important; margin-left: 6px; opacity: .6; font-size: 12px !important; }
.cart-item__price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid #f0f0f0; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.cart-checkout { width: 100%; text-align: center; }
.cart-note { font-size: 11px; opacity: .5; margin: 12px 0 0; line-height: 1.5; }

/* ---------- Auto-loaded grid: loading + empty/error states ---------- */
.products__msg { padding: 60px 0; opacity: .6; font-size: 16px; }
.product--loading { pointer-events: none; }
.skeleton {
  background: linear-gradient(90deg, #f2f2f2 25%, #e9e9e9 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: ac-shimmer 1.3s ease-in-out infinite;
  border-radius: 12px;
}
.product--loading .product__image.skeleton { width: 100%; aspect-ratio: 4 / 5; }
.skeleton--line { display: block; height: 20px; margin: 0 0 12px; border-radius: 6px; }
.skeleton--short { width: 40%; height: 14px; }
@keyframes ac-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Ship-to control + region picker ---------- */
.shipto {
  background: none; border: 1px solid #ddd; border-radius: 999px;
  font: 600 12px 'Inter', sans-serif; letter-spacing: .02em;
  padding: 7px 12px; cursor: pointer; color: #111; margin-right: 4px;
}
.shipto:hover { border-color: #111; }
.region-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.82);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 10005;
}
.region-overlay.is-open { display: flex; }
.region-modal {
  background: #fff; border: 1px solid #eee; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18); padding: 32px; width: min(440px, 92vw);
}
.region-modal__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.region-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-quick__btn {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 12px;
  font: 600 14px 'Inter', sans-serif; padding: 12px 14px; cursor: pointer; color: #111;
}
.region-quick__btn:hover { border-color: #111; }
.region-quick__flag { font-size: 18px; }
.region-more-label { display: block; margin-top: 16px; font-size: 12px; opacity: .6; }
.region-more {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid #e6e6e6; border-radius: 12px; font: 500 14px 'Inter', sans-serif; background: #fff;
}

/* ---------- Store policies: footer links + modal ---------- */
.policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; }
.policy-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 600 12px 'Inter', sans-serif; letter-spacing: .02em;
  color: #111; opacity: .55; text-decoration: underline; text-underline-offset: 2px;
}
.policy-link:hover { opacity: 1; }
.policy-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: center; justify-content: center; z-index: 10005; padding: 20px;
}
.policy-overlay.is-open { display: flex; }
.policy-modal {
  position: relative; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22); padding: 32px;
  width: min(640px, 94vw); max-height: 84vh; display: flex; flex-direction: column;
}
.policy-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #111; opacity: .5;
}
.policy-close:hover { opacity: 1; }
.policy-modal__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; padding-right: 28px; }
.policy-modal__body { overflow: auto; line-height: 1.65; font-size: 14px; color: #222; }
.policy-modal__body p { margin: 0 0 12px; }
.policy-modal__body h1, .policy-modal__body h2, .policy-modal__body h3 { font-size: 16px; margin: 18px 0 8px; }
.policy-modal__body a { color: #111; }
