/* Storefront layout v3 (loaded after styles.css): whole garment visible in each box,
   split hero, feature strip, product gallery with hover zoom + color thumbnails. */
:root {
  --box: #f2f2ef;
  --accent: #4f2683;
  --accent-bg: #f1ebf8;
}
.site-header {
  background: rgba(255, 255, 255, 0.96);
}
.cart-link {
  background: var(--ink);
  color: #fff !important;
  padding: 7px 12px !important;
  border-radius: 999px;
  gap: 6px;
}
.cart-link:hover {
  background: #2b2b33 !important;
}
.cart-count,
.cart-count.has {
  background: transparent;
  color: #fff;
  min-width: 0;
  height: auto;
  padding: 0;
  font-size: 0.85rem;
}
.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #f7f7f5 0%, #fff 100%);
  border-bottom: 0;
}
.hero-inner {
  grid-template-columns: 1.05fr 1fr;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-copy {
  grid-column: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.pill .icon {
  width: 14px;
  height: 14px;
}
.hero h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .lede {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-art {
  grid-column: 2;
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  justify-self: center;
  width: 100%;
}
.hero-img {
  position: absolute;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-img.a {
  width: 68%;
  height: 85%;
  left: 0;
  top: 0;
}
.hero-img.b {
  width: 58%;
  height: 72%;
  right: 0;
  bottom: 0;
}

/* Feature strip */
.features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: center;
}
.feature div {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
}
.feature div span {
  color: var(--muted);
  font-size: 0.85rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  flex: none;
}
.feature-icon .icon {
  width: 18px;
  height: 18px;
}

/* Shop grid */
.shop {
  padding-top: 48px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.shop > .muted {
  margin: 0 0 18px;
}
.grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 22px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-img {
  position: relative;
  background: var(--box);
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 7%;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}
.card:hover .card-img img {
  transform: scale(1.04);
}
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.tag-tigers {
  color: #c4500f;
}
.tag-panthers {
  color: var(--accent);
}
.card-body {
  padding: 14px 2px 0;
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.card-row h3 {
  font-size: 1rem;
  margin: 0;
}
.card-row .price {
  margin: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
}
.card-sub {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Product page */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin: 18px 0 16px;
}
.back:hover {
  color: var(--ink);
}
.product-grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
}
.gallery {
  background: none;
  border-radius: 0;
  overflow: visible;
}
.zoom {
  position: relative;
  background: var(--box);
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 6%;
  cursor: zoom-in;
}
.gallery .zoom img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.zoom.zooming img {
  transition: none;
}
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.2s;
}
.zoom.zooming .zoom-hint {
  opacity: 0;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.thumb {
  background: var(--box);
  border: 2px solid transparent;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  padding: 10%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery .thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumb:hover {
  border-color: #cfcec9;
}
.thumb.on {
  border-color: var(--ink);
}
.buybox h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.buybox .sub {
  margin: 0 0 10px;
}
.buybox .price-lg {
  margin-bottom: 10px;
}
.segmented {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
}
.segmented a {
  padding: 7px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.segmented a.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.size {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  line-height: 1.15;
}
.size small {
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.7;
}
.fit {
  margin: 10px 0 0;
}
.buy-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.buy-row .btn {
  flex: 1;
  padding: 13px 18px;
}
.related {
  margin-top: 72px;
}
.related .section-title {
  margin-bottom: 18px;
}

/* Cart + checkout thumbnails: whole garment visible */
.cart-thumb {
  background: var(--box);
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 8%;
}
.cart-thumb img {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-lines img {
  aspect-ratio: auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--box);
  padding: 3px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.footer-inner b {
  color: var(--ink);
  font-size: 0.9rem;
}
.footer-inner p {
  margin: 6px 0 0;
  line-height: 1.8;
}
.footer-inner a {
  text-decoration: none;
}
.footer-inner a:hover {
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}
.footer-brand img {
  height: 30px;
  width: auto;
}

.nav a {
  white-space: nowrap;
}
@media (hover: none) {
  .zoom-hint {
    font-size: 0;
  }
  .zoom-hint::after {
    content: "Tap to zoom";
    font-size: 0.72rem;
  }
}
@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .hero-art {
    grid-column: 1;
    max-width: 420px;
  }
  .features-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 560px) {
  .nav {
    gap: 0;
  }
  .nav a {
    font-size: 0.86rem;
    padding: 7px 8px;
  }
  .card-row {
    flex-direction: column;
    gap: 2px;
  }
  .card-row h3 {
    font-size: 0.92rem;
  }
  .card-sub {
    font-size: 0.8rem;
  }
  .tag {
    font-size: 0.6rem;
    top: 8px;
    left: 8px;
  }
  .thumbs {
    gap: 8px;
  }
}
