/* ===== GENERAL ===== */
:root {
  --red: #DF1024;
  --gray-soft: #DCD6D7;
  --gray-mauve: #625A67;
  --charcoal: #302B31;
  --white: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background-color: var(--gray-soft);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== LAYOUT ===== */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===== PRODUCT HIGHLIGHT ===== */
.product-highlight {
  background: linear-gradient(180deg, #fff 0%, #f4f7f9 100%);
  padding: 6rem 0;
}

/* Layout */
.product-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

/* --- Image Gallery --- */
.product-gallery {
  flex: 1 1 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px; /* subtle 3D depth */
}

.product-gallery {
  width: 100%;
  max-width: 600px; /* adjust size as needed */
  margin: 0 auto;
  position: relative;
}

.swiper-main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff; /* optional: background for clean look */
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7; /* light gray bg looks professional */
  height: 400px; /* fixed height for uniform slides */
}

.swiper-slide img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain; /* keeps image inside properly */
  display: block;
}


.product-gallery .swiper-main:hover {
  transform: scale(1.02) rotateX(3deg);
}

/* Slides */
.product-gallery .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fdfdfd;
}

.product-gallery .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-gallery .swiper-slide img:hover {
  transform: scale(1.08);
  filter: brightness(1.05) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Swiper controls */
.product-gallery .swiper-button-next,
.product-gallery .swiper-button-prev {
  color: var(--red);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  transition: 0.3s ease;
}

.product-gallery .swiper-button-next:hover,
.product-gallery .swiper-button-prev:hover {
  color: #b00e1f;
  transform: scale(1.2);
}

.product-gallery .swiper-pagination-bullet {
  background: var(--red);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.product-gallery .swiper-pagination-bullet-active {
  opacity: 1;
}

/* --- Product Info --- */
.product-info {
  flex: 1 1 38%;
}

.product-info h2 {
  font-size: 2.6rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-info p {
  color: var(--charcoal);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.product-specs li {
  margin-bottom: 0.6rem;
  color: var(--gray-mauve);
  font-weight: 500;
}

/* Button refinement */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(223, 16, 36, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #b00e1f;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(223, 16, 36, 0.4);
}

/* ===== FEATURES ===== */
.features {
  background: var(--white);
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 3rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--gray-soft);
  padding: 1.8rem 1.5rem; /* smaller padding */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin: 0.75rem 0 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.feature-card ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  text-align: left;
}

.feature-card ul li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}



/* ===== DATASHEET ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.styled-table thead {
  background: var(--red);
  color: var(--white);
}

.styled-table th, .styled-table td {
  padding: 0.9rem 1.2rem;
  border: 1px solid #ccc;
  text-align: left;
}

.styled-table tbody tr:nth-child(even) {
  background: var(--gray-soft);
}

/* ===================== TABLET (max-width: 992px) ===================== */
@media (max-width: 992px) {
  .product-layout {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .product-gallery {
    flex: 1 1 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .product-gallery .swiper-main {
    height: 350px;
  }

  .product-info {
    flex: 1 1 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .product-info h2 {
    font-size: 2rem;
  }

  .product-info p {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .feature-card {
    padding: 1.5rem 1.2rem;
  }

  .styled-table th, .styled-table td {
    font-size: 0.9rem;
  }
}

/* ===================== MOBILE (max-width: 600px) ===================== */
@media (max-width: 600px) {
  .container {
    width: 92%;
    padding: 1.5rem 0;
  }

  .product-highlight {
    padding: 3.5rem 0;
  }

  .product-info h2 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
  }

  .product-info p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn-primary {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Image gallery */
  .product-gallery .swiper-main {
    height: 280px;
  }

  .swiper-slide img {
    height: auto;
    max-height: 250px;
  }

  /* Features section */
  .section-title {
    font-size: 1.8rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  /* Datasheet table scroll */
  .styled-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .styled-table th,
  .styled-table td {
    padding: 0.7rem 0.9rem;
  }
}
/* Hide Swiper arrows and pagination */
  .product-gallery .swiper-button-next,
  .product-gallery .swiper-button-prev,
  .product-gallery .swiper-pagination {
    display: none !important;
  }

  /* Show only first image (hide the rest) */
  .product-gallery .swiper-slide:not(:first-child) {
    display: none !important;
  }

  /* Disable swipe interaction */
  .swiper-main {
    pointer-events: none;
  }
/* ===================== SMALL MOBILE (max-width: 400px) ===================== */
@media (max-width: 400px) {
  .product-info h2 {
    font-size: 1.5rem;
  }

  .btn-primary {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }

  .swiper-slide img {
    max-height: 200px;
  }

  .feature-card {
    padding: 1.2rem 1rem;
  }
}

