/* ============================================================
   Pitch Invasion — Shop Styles
   Extends main.css — do not import standalone.
   ============================================================ */

/* ── Shop hero banner ─────────────────────────────────────── */
.shop-hero {
  padding: calc(var(--nav-h) + var(--sp-16)) 0 var(--sp-16);
  background:
    linear-gradient(180deg, rgba(11,31,24,0) 60%, #0B1F18 100%),
    linear-gradient(0deg, rgba(11,31,24,.75), rgba(11,31,24,.75)),
    var(--pitch2);
  border-bottom: 1px solid var(--border);
}
.shop-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ── Category tabs ────────────────────────────────────────── */
.shop-tabs {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.shop-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--sp-4) var(--sp-6);
  font-family: 'Montserrat', Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,246,242,.55);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.shop-tab:hover { color: var(--chalk); }
.shop-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Product grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.product-grid--wide {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Product card ─────────────────────────────────────────── */
.product-card {
  background: rgba(15,46,36,.35);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.product-card:hover {
  border-color: rgba(159,232,112,.40);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.product-card--featured {
  grid-column: span 2;
}

/* Product image area */
.product-card__img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--pitch2);
  overflow: hidden;
}
.product-card--featured .product-card__img {
  aspect-ratio: 16/9;
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card__img img { transform: scale(1.04); }

/* Image placeholder */
.product-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: rgba(244,246,242,.20);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-card__placeholder-icon { font-size: 36px; opacity: .35; }

/* Badge */
.product-card__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
}

/* Body */
.product-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.product-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card__title {
  font-family: 'Montserrat', Inter, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--chalk);
  line-height: 1.2;
}
.product-card--featured .product-card__title { font-size: 22px; }
.product-card__desc {
  font-size: 13px;
  color: rgba(244,246,242,.55);
  line-height: 1.6;
  flex: 1;
}

/* Price row */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.product-card__price {
  font-family: 'Montserrat', Inter, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--chalk);
}
.product-card__price-sub {
  font-size: 12px;
  color: rgba(244,246,242,.40);
  font-weight: 500;
  margin-left: 4px;
}

/* ── Shopify Buy Button container ─────────────────────────── */
/* The Shopify SDK injects an iframe into .shopify-buy-btn-wrapper */
.shopify-buy-btn-wrapper {
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* Override Shopify button styles via CSS variables where possible */
/* Full override requires SDK config — see js/shopify.js */

/* ── Coming soon card overlay ─────────────────────────────── */
.product-card--soon {
  opacity: .6;
  pointer-events: none;
}
.product-card--soon .product-card__badge::after {
  content: 'Coming Soon';
}

/* ── Cart notice banner ───────────────────────────────────── */
.cart-notice {
  background: rgba(159,232,112,.08);
  border: 1px solid rgba(159,232,112,.20);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  font-size: 14px;
  color: rgba(244,246,242,.75);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.cart-notice__icon { font-size: 16px; flex-shrink: 0; }

/* ── Product detail panel (for future expansion) ──────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.product-detail__main-img {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: var(--pitch2);
}
.product-detail__thumbs {
  display: flex;
  gap: var(--sp-3);
}
.product-detail__thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--pitch2);
  flex-shrink: 0;
  transition: border-color .2s;
}
.product-detail__thumb:hover,
.product-detail__thumb.active { border-color: var(--accent); }

/* ── Responsive shop ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .product-grid--wide { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .product-card--featured { grid-column: span 2; }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-grid,
  .product-grid--wide { grid-template-columns: 1fr; }
  .product-card--featured { grid-column: span 1; }
  .product-card--featured .product-card__title { font-size: 18px; }
}
