/* ================================================
   PRODUCTS PAGE — KULDEVI FORGE & FITTINGS
   ================================================ */

/* ── PRODUCTS HERO ── */
.products-hero {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
  text-align: center;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.products-hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.products-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.products-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ── PRODUCTS GRID ── */
.products-grid-section {
  max-width: 1280px;
  margin: 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── PRODUCT CARD (base) ── */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  border-color: var(--line-accent);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.12);
}

.prod-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--line-accent);
  position: relative;
  z-index: 2;
}
.prod-icon .element-badge {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent-soft);
  letter-spacing: 1px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  color: var(--text);
}
.product-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  z-index: 2;
}
.prod-link {
  font-size: 12px;
  color: var(--accent-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  transition: gap 0.3s;
}
.product-card:hover .prod-link { gap: 8px; }

/* ── PRODUCT CARD — PHOTO OVERLAY VARIANT ── */
.product-card--photo {
  padding: 0;
  gap: 0;
  min-height: 290px;
  justify-content: flex-end;
  background-color: rgba(8, 16, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Background photo layer */
.product-card--photo .prod-photo-bg {
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.75) saturate(0.85);
  transition: filter 0.45s ease, transform 0.45s ease;
  z-index: 1;
}
.product-card--photo:hover .prod-photo-bg {
  filter: brightness(0.9) saturate(1.0);
  transform: scale(1.05);
}

/* Gradient scrim so text stays readable */
.product-card--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 8, 20, 0.05) 0%,
    rgba(2, 8, 20, 0.3) 35%,
    rgba(2, 8, 20, 0.85) 100%
  );
  z-index: 2;
}

/* Content sits above scrim */
.product-card--photo .prod-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 20px;
  width: 100%;
}

/* Icon backdrop for photo cards — slightly translucent */
.product-card--photo .prod-icon {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
  backdrop-filter: blur(4px);
}

/* Stronger text contrast on photo cards */
.product-card--photo h3 {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  font-size: 15px;
}
.product-card--photo p {
  color: rgba(200, 215, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.product-card--photo .prod-link {
  color: #60a5fa;
}

/* Subtle blue accent border glow on hover */
.product-card--photo:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.2);
}

/* Disable the radial glow ::before for photo cards (already has scrim) */
.product-card--photo::before {
  display: none;
}

/* ── FEATURED PRODUCT ── */
.product-featured {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15), transparent 60%),
    var(--bg-card);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
.product-featured .feat-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  padding: 5px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-featured .feat-num {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}
.product-featured h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.product-featured .feat-img {
  width: min(100%, 240px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  animation: featFloat 5s ease-in-out infinite;
}
@keyframes featFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.product-featured .feat-details {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}
/* premium-title style for h3 in featured */
.product-featured .premium-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-featured { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-featured { grid-column: 1 / -1; padding: 48px 20px 32px; }
  .product-card { padding: 24px 20px; }
  .product-card--photo { padding: 0; min-height: 240px; }
}