/* ============================
   PRODUCT PAGE CSS
=============================== */

/* Fix body padding for fixed navbar */
body {
  margin: 0;
  padding: 0;
  padding-top: 120px; /* Space for fixed navbar */
  font-family: 'Montserrat', sans-serif;
  background: #000000; /* Black background */
  color: #b0b0b0; /* Grey text */
}

/* ===== BEST SELLER SECTION ===== */
.best-seller {
  padding: 30px 0 60px 0;
  text-align: center;
  background: #000000; /* Black background */
}

.best-seller .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION TITLE - CENTERED ===== */
.section-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 3rem;
  margin-top: 0;
  color: #FF681F; /* Orange heading */
  font-family: "Montserrat Underline", serif;
  text-align: center;
  letter-spacing: -0.5px;
  width: 100%;
  
  /* No pill shape styling */
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  display: block;
}

/* Remove any underline or other decorations */
.section-title::after,
.section-title::before {
  display: none;
}

/* ===== PRODUCT GRID - 2 COLUMNS ===== */
.product-grid {
  max-width: 1200px;
  margin: 0 auto 40px auto; /* Bottom margin between rows */
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 30px;
  padding: 0;
}

/* Second row grid */
.product-grid.second-row {
  margin-bottom: 0;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  text-align: center;
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0 0 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #333333; /* Subtle border */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PRODUCT TITLES - NO PILL SHAPE, GREY TEXT ===== */
.product-card h3 {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: #b0b0b0; /* Grey text */
  letter-spacing: 0.5px;
  text-transform: uppercase;

  /* No pill shape styling - flat text only */
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  min-width: 0;
  box-shadow: none;
  margin-bottom: 0;
}

/* ===== IMAGE POPUP ===== */
.img-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.img-popup.show {
  visibility: visible;
  opacity: 1;
}

.img-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  border: 2px solid #333333;
}

.close-popup {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #FF681F; /* Orange */
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}

/* ===== PAGINATION ===== */
.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0 30px;
  gap: 10px;
}

.pagination a {
  background: #FF681F; /* Orange background */
  color: #000000; /* Black text */
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(255, 104, 31, 0.2);
}

/* ===== VIEW BUTTON ===== */
.view-btn {
  text-decoration: none;
  background: transparent;
  color: #FF681F; /* Orange text */
  padding: 10px 25px;
  border-radius: 40px;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border: 2px solid #FF681F; /* Orange border */
  margin-top: 15px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
  .best-seller {
    padding: 40px 0 70px 0;
  }
  
  .section-title {
    font-size: 3.2rem;
    margin-bottom: 3.5rem;
  }
  
  .product-grid {
    gap: 35px;
  }
  
  .product-card img {
    height: 350px;
  }
  
  .product-card h3 {
    font-size: 1.1rem;
    margin-top: 18px;
  }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  body {
    padding-top: 110px;
  }
  
  .best-seller {
    padding: 30px 0 60px 0;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
  }

  .product-card img {
    height: 300px;
  }

  .product-card h3 {
    font-size: 0.95rem;
    margin-top: 15px;
  }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  body {
    padding-top: 100px;
  }
  
  .best-seller {
    padding: 25px 0 50px 0;
  }

  .section-title {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
  }

  .product-grid {
    gap: 25px;
  }

  .product-card img {
    height: 260px;
  }

  .product-card h3 {
    font-size: 0.9rem;
    margin-top: 15px;
  }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  body {
    padding-top: 90px;
  }
  
  .best-seller {
    padding: 20px 0 40px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .product-grid {
    gap: 20px;
  }

  .product-card img {
    height: 220px;
  }

  .product-card h3 {
    font-size: 0.85rem;
    margin-top: 12px;
  }
  
  .close-popup {
    top: 20px;
    right: 20px;
    font-size: 35px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  body {
    padding-top: 85px;
  }
  
  .best-seller {
    padding: 15px 0 30px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .product-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 25px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-card img {
    height: 280px;
  }

  .product-card h3 {
    font-size: 0.9rem;
    margin-top: 12px;
  }
  
  .close-popup {
    top: 15px;
    right: 15px;
    font-size: 30px;
  }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .product-card img {
    height: 240px;
  }
  
  .product-card h3 {
    font-size: 0.85rem;
    margin-top: 10px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .img-popup,
  .close-popup {
    transition: none !important;
  }
}