/* ============================================================
   BLACK TERMINAL SOCIETY — PRODUCTS PAGE STYLES
   ============================================================ */

/* ---------- Products Hero ---------- */
.products-hero {
  padding-top: calc(var(--nav-height) + var(--sp-3xl));
  padding-bottom: var(--sp-xl);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.products-hero .section-title {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: var(--sp-sm);
}

.products-hero .section-subtitle {
  margin: 0 auto var(--sp-lg);
  max-width: 600px;
}

/* ---------- Category Filter ---------- */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-xl);
  position: relative;
  z-index: 1;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding: 10px 22px;
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover {
  color: var(--clr-text);
  border-color: rgba(0, 255, 65, 0.3);
  background: var(--clr-surface-2);
}

.filter-btn.active {
  color: #000;
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.25);
}

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: rgba(0, 255, 65, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 65, 0.08);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary-r);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.product-card:hover::before {
  opacity: 1;
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-badge.new {
  background: var(--clr-primary);
  color: #000;
}

.product-badge.bestseller {
  background: var(--clr-secondary);
  color: #fff;
}

.product-badge.limited {
  background: transparent;
  color: var(--clr-warning);
  border: 1px solid var(--clr-warning);
}

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-surface-0);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--sp-md);
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

.quick-view-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 255, 65, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  transform: translateY(10px);
  opacity: 0;
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
  opacity: 1;
}

.quick-view-btn:hover {
  background: var(--clr-primary);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Product Info */
.product-info {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 6px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-sm);
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--clr-border);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price .current {
  font-size: 22px;
  font-weight: 800;
  color: var(--clr-text);
}

.product-price .original {
  font-size: 14px;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.product-price .discount {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--clr-success);
  letter-spacing: 0.1em;
}

.add-to-cart-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: var(--clr-primary);
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.add-to-cart-btn:hover {
  background: var(--clr-primary-light);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  transform: translateY(-1px);
}

/* ---------- Product Rating ---------- */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-xs);
}

.product-stars {
  display: flex;
  gap: 2px;
}

.product-stars .star {
  color: var(--clr-warning);
  font-size: 14px;
}

.product-stars .star.empty {
  color: var(--clr-border);
}

.product-reviews {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-text-muted);
}

/* ---------- Size/Color Swatches ---------- */
.product-sizes {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-sm);
}

.size-swatch {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--clr-text-muted);
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-swatch:hover,
.size-swatch.active {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* ---------- Featured Product Banner ---------- */
.featured-product {
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-xl);
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.featured-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--clr-surface-1) 100%);
}

.featured-content {
  padding: var(--sp-xl);
}

.featured-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-sm);
}

.featured-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-secondary);
  animation: pulse-glow 2s infinite;
  color: var(--clr-secondary);
}

.featured-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
}

.featured-desc {
  font-size: 16px;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.featured-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.featured-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--clr-text);
}

.featured-original {
  font-size: 18px;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.featured-discount {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-success);
  padding: 4px 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.featured-ctas {
  display: flex;
  gap: var(--sp-sm);
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid var(--clr-border);
  padding: var(--sp-xl);
  text-align: center;
  margin-top: var(--sp-xl);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary-r);
}

.promo-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-xs);
}

.promo-desc {
  font-size: 16px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-primary);
  padding: 12px 24px;
  background: var(--clr-surface-1);
  border: 1px dashed var(--clr-primary);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-md);
}

.promo-code .copy-icon {
  font-size: 18px;
  cursor: pointer;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.promo-code .copy-icon:hover {
  color: var(--clr-primary);
}

/* ---------- Products Responsive ---------- */
/* ---- iPad Landscape / Small Desktops ---- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .featured-image::after {
    background: linear-gradient(180deg, transparent 60%, var(--clr-surface-1) 100%);
  }

  .featured-content {
    padding: var(--sp-xl);
  }
}

/* ---- iPad Portrait / Tablets ---- */
@media (max-width: 768px) {
  .products-hero {
    padding-top: calc(var(--nav-height) + var(--sp-2xl));
    padding-bottom: var(--sp-lg);
  }

  .category-filter {
    gap: 8px;
    margin-bottom: var(--sp-lg);
  }

  .filter-btn {
    font-size: 11px;
    padding: 10px 16px;
    flex-grow: 1;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
  }

  .product-name {
    font-size: 16px;
  }

  .product-info {
    padding: var(--sp-sm);
  }

  .product-price .current {
    font-size: 18px;
  }
  
  .product-price .original {
    font-size: 12px;
  }

  .add-to-cart-btn {
    font-size: 11px;
    padding: 10px 14px;
  }

  .featured-ctas {
    flex-direction: column;
    gap: var(--sp-sm);
  }
  
  .featured-ctas button {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .promo-banner {
    padding: var(--sp-lg);
  }

  .promo-code {
    font-size: 14px;
    padding: 10px 18px;
    width: 100%;
    justify-content: center;
  }
  
  .promo-banner .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ---- Large Phones ---- */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .featured-content {
    padding: var(--sp-md);
  }

  .featured-title {
    font-size: 28px;
  }

  .featured-price {
    font-size: 28px;
  }
  
  .featured-desc {
    font-size: 14px;
  }

  .promo-title {
    font-size: 24px;
  }
  
  .promo-desc {
    font-size: 13px;
  }

  .filter-btn {
    font-size: 10px;
    padding: 8px 12px;
  }
}

/* ---- Ultra-small Phones ---- */
@media (max-width: 360px) {
  .products-hero .section-title {
    font-size: 28px;
  }
  
  .products-hero .section-subtitle {
    font-size: 13px;
  }

  .product-name {
    font-size: 14px;
  }

  .add-to-cart-btn {
    font-size: 9px;
    padding: 8px 10px;
  }
  
  .product-price .current {
    font-size: 16px;
  }
  
  .size-swatch {
    width: 28px;
    height: 24px;
    font-size: 9px;
  }
}

