/* =========================================
           ROOT VARIABLES & GLOBAL STYLES
           ========================================= */
:root {
  --rs-primary-red: #a51c24;
  --rs-dark-red: #7a131a;
  --rs-steel-silver: #d1d6db;
  --rs-bg-light: #ffffff;
  --rs-bg-offwhite: #f8f9fa;
  --rs-bg-luxury-dark: #121416;
  --rs-bg-card-dark: #1c1f22;
  --rs-text-light: #ffffff;
  --rs-text-dark: #1a1d20;
  --rs-text-muted: #5a6268;
  --rs-text-gray: #a0aab2;
  --rs-font-heading: "Oswald", sans-serif;
  --rs-font-body: "Poppins", sans-serif;
  --rs-transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--rs-font-body);
  background-color: var(--rs-bg-light);
  color: var(--rs-text-dark);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--rs-font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rs-header-wrap {
  background: rgba(255, 255, 255, 0.98);
}

/* Unique Global Classes for Product Page */
.rs-prod-subtitle {
  color: var(--rs-primary-red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
  padding-left: 45px;
}

.rs-prod-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--rs-primary-red);
}

.rs-prod-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--rs-text-dark);
}

.rs-prod-title span {
  color: var(--rs-primary-red);
}

.rs-prod-btn {
  background: var(--rs-primary-red);
  border: 2px solid var(--rs-primary-red);
  color: var(--rs-text-light);
  padding: 12px 35px;
  font-family: var(--rs-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--rs-transition-smooth);
  text-transform: uppercase;
  border-radius: 0;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.rs-prod-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--rs-text-dark);
  z-index: -1;
  transition: var(--rs-transition-smooth);
}

.rs-prod-btn:hover::before {
  left: 0;
}

.rs-prod-btn:hover {
  color: var(--rs-text-light) !important;
  border-color: var(--rs-text-dark);
}

/* =========================================
           1. PRODUCT HERO BANNER
           ========================================= */
.rs-prod-hero {
  position: relative;
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Background image of round steel tubes */
  background:
    linear-gradient(to bottom, rgba(18, 20, 22, 0.428), rgba(18, 20, 22, 0.95)),
    url("../images/banner/product-ban.jpg") center/cover no-repeat fixed;
  text-align: center;
  color: var(--rs-text-light);
}

.rs-prod-hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.rs-prod-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rs-prod-breadcrumb a {
  color: var(--rs-text-light);
  text-decoration: none;
  transition: var(--rs-transition-smooth);
}

.rs-prod-breadcrumb a:hover {
  color: var(--rs-primary-red);
}

.rs-prod-breadcrumb span {
  color: var(--rs-primary-red);
}

/* =========================================
           2. PRODUCT OVERVIEW SECTION
           ========================================= */
.rs-prod-overview-sec {
  padding: 120px 0;
  background-color: var(--rs-bg-light);
}

.rs-prod-img-wrapper {
  position: relative;
  padding-right: 30px;
  padding-bottom: 30px;
  z-index: 1;
}

.rs-prod-img-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 80%;
  background: var(--rs-bg-offwhite);
  border-left: 5px solid var(--rs-primary-red);
  z-index: -1;
  transition: var(--rs-transition-smooth);
}

.rs-prod-img-wrapper:hover::after {
  transform: translate(10px, 10px);
}

.rs-prod-main-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: var(--rs-transition-smooth);
}

.rs-prod-img-wrapper:hover .rs-prod-main-img {
  transform: scale(1.02);
}

.rs-prod-text {
  font-size: 1.05rem;
  color: var(--rs-text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.rs-prod-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.rs-prod-feature-item {
  background: var(--rs-bg-offwhite);
  padding: 20px;
  border-radius: 4px;
  border-left: 3px solid var(--rs-primary-red);
  transition: var(--rs-transition-smooth);
}

.rs-prod-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  background: var(--rs-bg-light);
}

.rs-prod-feature-item h4 {
  font-size: 1.1rem;
  color: var(--rs-text-dark);
  margin-bottom: 10px;
}

.rs-prod-feature-item p {
  font-size: 0.9rem;
  color: var(--rs-text-muted);
  margin: 0;
}

/* =========================================
           3. TECHNICAL SPECIFICATIONS (Dark Premium Table)
           ========================================= */
.rs-prod-specs-sec {
  padding: 120px 0;
  /* Added Background Image with Fixed Parallax Effect and Dark Overlay */
  background:
    linear-gradient(
      135deg,
      rgba(18, 20, 22, 0.92) 0%,
      rgba(18, 20, 22, 0.85) 100%
    ),
    url("../images/backgrounds/abt-pg-bg.jpeg") center/cover fixed;
  color: var(--rs-text-light);
}

.rs-prod-specs-sec .rs-prod-title {
  color: var(--rs-text-light);
}

.rs-prod-table-wrapper {
  /* Added Glassmorphism effect so the background image subtly shows through */
  background: rgba(28, 31, 34, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.rs-prod-table {
  width: 100%;
  border-collapse: collapse;
}

.rs-prod-table th {
  background: var(--rs-primary-red);
  color: var(--rs-text-light);
  font-family: var(--rs-font-heading);
  font-size: 1.2rem;
  padding: 20px 30px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rs-prod-table td {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  color: var(--rs-text-gray);
  transition: var(--rs-transition-smooth);
}

.rs-prod-table tr:last-child td {
  border-bottom: none;
}

.rs-prod-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--rs-text-light);
}

.rs-prod-table td strong {
  color: var(--rs-text-light);
  font-weight: 500;
  display: inline-block;
  width: 150px; /* Aligns the labels */
}

/* =========================================
           4. PRODUCT APPLICATIONS CARDS (Redesigned)
           ========================================= */
.rs-prod-apps-sec {
  padding: 100px 0;
  background-color: var(--rs-bg-offwhite);
}

.rs-prod-app-card {
  border-radius: 8px;
  height: 400px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: var(--rs-transition-smooth);
  display: block;
  text-decoration: none;
}

.rs-prod-app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(165, 28, 36, 0.3);
}

.rs-prod-app-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.rs-prod-app-card:hover .rs-prod-app-bg {
  transform: scale(1.15);
}

/* Dark overlay that turns Red on hover */
.rs-prod-app-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 20, 22, 0.95) 0%,
    rgba(18, 20, 22, 0.4) 50%,
    transparent 100%
  );
  z-index: 2;
  transition: var(--rs-transition-smooth);
}

.rs-prod-app-card:hover .rs-prod-app-overlay {
  background: linear-gradient(
    to top,
    rgba(165, 28, 36, 0.95) 0%,
    rgba(165, 28, 36, 0.6) 60%,
    rgba(18, 20, 22, 0.2) 100%
  );
}

.rs-prod-app-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px 25px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.rs-prod-app-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(35px); /* Pushed down initially */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-prod-app-card:hover .rs-prod-app-title-wrap {
  transform: translateY(0); /* Slides up on hover */
}

.rs-prod-app-icon {
  font-size: 1.8rem;
  color: var(--rs-primary-red);
  transition: var(--rs-transition-smooth);
}

.rs-prod-app-card:hover .rs-prod-app-icon {
  color: var(--rs-text-light);
  transform: scale(1.1);
}

.rs-prod-app-title {
  font-family: var(--rs-font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--rs-text-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rs-prod-app-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 15px 0 0 0;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px); /* Hidden further down */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-prod-app-card:hover .rs-prod-app-desc {
  opacity: 1;
  transform: translateY(0); /* Slides up and fades in */
  transition-delay: 0.1s;
}

/* =========================================
           5. CTA STRIP
           ========================================= */
.rs-prod-cta-sec {
  padding: 60px 0;
  background:
    linear-gradient(
      90deg,
      rgba(165, 28, 36, 0.95) 0%,
      rgba(122, 19, 26, 0.95) 100%
    ),
    url("../images/backgrounds/abt-pg-bg.jpeg") center/cover fixed;
  color: var(--rs-text-light);
  text-align: center;
}

.rs-prod-cta-sec h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.rs-prod-cta-sec p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.rs-prod-cta-btn {
  background: transparent;
  color: var(--rs-text-light);
  border-color: var(--rs-text-light);
}

.rs-prod-cta-btn::before {
  background: var(--rs-text-light);
}

.rs-prod-cta-btn:hover {
  color: var(--rs-primary-red) !important;
  border-color: var(--rs-text-light);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .rs-prod-hero-title {
    font-size: 3rem;
  }
  .rs-prod-overview-sec {
    padding: 80px 0;
  }
  .rs-prod-img-wrapper {
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 40px;
  }
  .rs-prod-img-wrapper::after {
    display: none;
  }
  .rs-prod-features-list {
    grid-template-columns: 1fr;
  }

  .rs-prod-table th,
  .rs-prod-table td {
    padding: 15px;
  }
  .rs-prod-table td strong {
    display: block;
    margin-bottom: 5px;
  }
}
