/* ============================================================
   RedSun — Products Page Styles
   ============================================================ */

/* ---------- Products Hero Banner ---------- */
.products-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #000000 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.products-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 0, 0,.15), transparent 65%);
  border-radius: 50%;
}
.products-hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(119, 119, 119,.08), transparent 65%);
  border-radius: 50%;
}
.products-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}
.products-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Category Filter Tabs ---------- */
.category-tabs {
  position: relative;
  z-index: 10;
  margin-top: -34px;
}
.tabs-container {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tab-btn {
  flex: 1;
  padding: 22px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  position: relative;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.tab-btn:last-child { border-right: none; }
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition);
}
.tab-btn:hover { color: var(--navy); background: rgba(0, 0, 0,.02); }
.tab-btn.active {
  color: var(--red);
  background: rgba(0, 0, 0,.04);
}
.tab-btn.active::after { width: 50px; }
.tab-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

/* ---------- Product Category Section ---------- */
.product-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.product-section:last-child { border-bottom: none; }
.product-section:nth-child(even) { background: var(--warm-white); }
.product-section:nth-child(odd) { background: #fff; }

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.section-intro.reversed { direction: rtl; }
.section-intro.reversed > * { direction: ltr; }

.section-intro-text .badge { margin-bottom: 14px; }
.section-intro-text h2 { margin-bottom: 16px; }
.section-intro-text p { font-size: 1.05rem; margin-bottom: 20px; }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.intro-learn-btn {
  margin-top: 20px;
  display: inline-flex;
  color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.intro-learn-btn:hover {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(0, 0, 0,.06);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
}

.section-intro-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-intro-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.section-intro-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 26, 26,.15));
  pointer-events: none;
}

/* ---------- Sub-Product Cards ---------- */
.sub-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sub-product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
}
.sub-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0,.2);
}
.sub-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.sub-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.sub-product-card:hover .sub-card-img img {
  transform: scale(1.08);
}
.sub-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  z-index: 2;
}
.sub-card-body {
  padding: 24px;
}
.sub-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.sub-card-body p {
  font-size: .88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.sub-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.spec-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--off-white);
  padding: 5px 12px;
  border-radius: 8px;
}
.spec-chip .icon { font-size: .8rem; }

.sub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-link {
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  position: relative;
  z-index: 1;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: -9999px;
}
.card-link:hover { gap: 12px; }
.card-price {
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Comparison Table ---------- */
.comparison-section {
  padding: 80px 0;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.comparison-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0,.1), transparent 65%);
  border-radius: 50%;
}
.comparison-header {
  text-align: center;
  margin-bottom: 50px;
}
.comparison-header h2 { color: #fff; margin-bottom: 14px; }
.comparison-header p { color: rgba(255,255,255,.55); max-width: 500px; margin: 0 auto; }

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.comparison-table thead th {
  background: rgba(255,255,255,.06);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}
.comparison-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  vertical-align: middle;
}
.comparison-table tbody tr:hover td {
  background: rgba(255,255,255,.03);
}
.comparison-table tbody td:first-child {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #fff;
}
.table-check {
  color: var(--red);
  font-size: 1.1rem;
}

/* ---------- Products CTA ---------- */
.products-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--red) 0%, #a82733 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.products-cta::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%;
  width: 140%; height: 220%;
  background: radial-gradient(ellipse, rgba(255,255,255,.07), transparent 55%);
  pointer-events: none;
}
.products-cta h2 {
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}
.products-cta p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sub-products-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs-container { flex-wrap: wrap; }
  .tab-btn { flex: 1 1 50%; border-bottom: 1px solid var(--gray-200); }
}

@media (max-width: 768px) {
  .section-intro { grid-template-columns: 1fr; gap: 30px; }
  .section-intro.reversed { direction: ltr; }
  .section-intro-visual img { height: 260px; }
  .sub-products-grid { grid-template-columns: 1fr; }
  .tab-btn { flex: 1 1 100%; }
  .products-hero { padding: 140px 0 80px; }
}
