/* ===== SHOP — matches theme.css design tokens ===== */

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-cart:hover {
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* SHOP HEADER */
.shop-header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,217,102,0.05) 0%, transparent 70%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.shop-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.shop-header-sub {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.niche-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.niche-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--bg-elevated);
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.niche-tab:hover,
.niche-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* CATALOG */
.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.niche-section {
  margin-bottom: 4rem;
}

.niche-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.niche-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.see-all {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.see-all:hover {
  opacity: 0.75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,217,102,0.2);
}

.product-card-img-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #000;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.product-badge-lg {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}

.product-card-body {
  padding: 1.1rem;
}

.product-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card-name:hover {
  color: var(--accent);
}

.product-card-pricing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.product-compare {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: line-through;
}

.product-save {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.btn-add-cart {
  width: 100%;
  padding: 0.65rem;
  background: var(--accent-dim);
  border: 1px solid rgba(34,217,102,0.3);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-add-cart:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* PRODUCT DETAIL */
.product-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-detail-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
}

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

.product-niche-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.product-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.product-price-lg {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.product-compare-lg {
  font-size: 1.1rem;
  color: var(--fg-muted);
  text-decoration: line-through;
}

.product-save-lg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

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

.product-trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-badge {
  font-size: 0.8rem;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.qty-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.qty-select {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--fg);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-add-cart-lg {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(34,217,102,0.3);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
  display: block;
  text-align: center;
}

.btn-add-cart-lg:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-buy-now {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-buy-now:hover {
  opacity: 0.88;
}

/* CART */
.cart-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cart-empty p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.cart-item-name:hover {
  color: var(--accent);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: #ff4d4d;
}

.cart-item-total {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-summary {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

.cart-summary-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.cart-summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 1rem 0;
}

.cart-summary-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.btn-checkout {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.btn-checkout:hover {
  opacity: 0.88;
}

.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cart-continue:hover {
  color: var(--fg);
}

/* SUCCESS */
.success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 1.5rem;
}

.success-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(34,217,102,0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.success-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.success-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
}

/* ERROR */
.error-container {
  max-width: 500px;
  margin: 6rem auto;
  padding: 2rem;
  text-align: center;
}

.error-container h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-msg {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* LANDING PAGE — Shop CTA button */
.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 2rem;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}
