/* SHOP shared styles */

.shop-page, .product-page {
  min-height: 100vh;
}

/* Nav */
.shop-nav {
  padding: 20px 8vw;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.shop-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.shop-back {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.shop-back:hover { color: var(--accent); }

/* Main layout */
.shop-main {
  padding: 80px 8vw 120px;
  background: var(--bg);
}

.shop-hero {
  margin-bottom: 72px;
}

.shop-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}

.shop-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-raised);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.product-info {
  padding: 24px;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.btn-buy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  background: none;
}

.btn-buy:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

/* Product detail page */
.product-main {
  padding: 60px 8vw 120px;
  background: var(--bg);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  align-items: start;
}

.product-hero-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.product-detail-col {
  padding-top: 16px;
}

.product-detail-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.product-detail-tagline {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.product-detail-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-dim); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.product-soon-note {
  font-size: 0.8125rem;
  color: var(--fg-faint);
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: 1fr; }
}