/* ==================================================
   CATALOGUE PAGE CSS
   Used on: catalogue.html
================================================== */


/* ==================================================
   CATEGORY BLOCK (SECTION WRAPPER)
================================================== */

.category-block {
  margin-top: 50px;
  padding: 90px 60px;
  scroll-margin-top: 140px; /* fixed header offset */
}

.category-block.dark {
  background: #111;
}

.category-block h2 {
  color: #C9A24D;
  font-size: 34px;
  margin-bottom: 10px;
}

.category-desc {
  max-width: 700px;
  margin-bottom: 40px;
  color: #bbb;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .category-block {
    padding: 40px 16px; /*  THIS FIXES GRID */
  }
}
/* ==================================================
   PRODUCT GRID
================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
 @media (max-width: 768px) {

      .product-grid {
        grid-template-columns: 1fr;
      }
      .product-carousel {
        max-width: 100%;
        width: 100%;
        position: relative;
  overflow: hidden;
  }

   .product-item {
    padding: 16px;

    width: 100%;
  }

  }


/* ==================================================
   PRODUCT ITEM (CARD)
================================================== */

.product-item {
  background: rgba(15,15,15,0.9);
  border: 1px solid rgba(201,162,77,0.25);
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  transition: border-color 0.35s ease;
}

.product-item:hover {
  border-color: #C9A24D;
}

.product-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-item h3 {
  margin-bottom: 8px;
}

.product-item p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: left;
}


/* ==================================================
   PRODUCT IMAGE CAROUSEL (MULTI IMAGE)
================================================== */

.product-carousel {
  position: relative;
  width: 100%;
  /* max-width: 260px; */
  margin: 0 auto 14px;
  overflow: hidden;
  background: #fff;
   max-width: 100%;
}

.product-carousel .carousel-track {
  display: flex;
  transition: transform 0.4s ease;
   width: 100%;
}

.product-carousel img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  padding: 10px;
  height: 500px;
}

/*@media (max-width: 768px) {
  .product-carousel {
    height: 300px;
  width: 100%;
    max-width: 100%;
    object-fit: cover;
  }
  .product-carousel {
     width: 100%;
    aspect-ratio: 16 / 9;
    background: #fff;
    overflow: hidden;
    height: 300px;
    max-width: 100%;
  }
   .product-specs {
    display: inline-block;
    min-width: 90px;        /
    text-align: left;
}
    h2{
      margin: 0;
      padding: 0;
    }
    .category-header{
      margin-top: 70px;

    }
}
 */


 @media (max-width: 768px) {

  .product-carousel {
    width: 100%;
    max-width: 100%;
    height: 300px;
    aspect-ratio: 16 / 9;
    background: #fff;
    overflow: hidden;
    position: relative;
  }

  .carousel-track {
    display: flex;
    height: 100%;
  }

  .carousel-track img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: contain; /* cover chahiye to cover */
    display: block;
  }

  .product-specs {
    display: inline-block;
    min-width: 90px;
    text-align: left;
  }

 h2 {
    font-size: 16px;   /* adjust: 14–18px as needed */
    line-height: 1.3;
  }

  .category-header {
    margin-top: 70px;
  }
}


/* ==================================================
   PRODUCT CAROUSEL BUTTONS
================================================== */

.product-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;

  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  z-index: 5;

  transition: background 0.3s ease;
}

.product-carousel .carousel-btn:hover {
  background: #C9A24D;
}

.product-carousel .carousel-btn.prev { left: 6px; }
.product-carousel .carousel-btn.next { right: 6px; }


/* ==================================================
   PRODUCT GALLERY (ALT VERSION – THUMBNAILS)
================================================== */

.product-gallery {
  text-align: center;
  margin-bottom: 14px;
}

.main-image {
  width: 100%;
  max-width: 260px;
  background: #fff;
  padding: 10px;
  margin: 0 auto 12px;
  display: block;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.thumbs img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumbs img:hover {
  transform: scale(1.1);
  border-color: #C9A24D;
}


/* ==================================================
   PRODUCT SPECS TEXT
================================================== */

.product-specs {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  text-align: left;
}


/* ==================================================
   MOBILE RESPONSIVE – CATALOGUE
================================================== */

@media (max-width: 768px) {

  .category-block {
    margin-top: 20px;        /* pehle 50px */
    padding: 32px 16px;      /* pehle 90px 60px */
  }

  .category-block h2 {
    margin-bottom: 6px;
  }

  .product-carousel {
    max-width: 220px;
  }

}
