:root {
  /* Extend */
  --primary-color: #fd0d01;
  --primary-dark: #ba0404;
  --primary-light: #9a0404;
  --text-color: #333;
  --light-bg: #ffffff;
  --white: #efefef;
  --gray: #6c757d;
  --dark-gray: #343a40;
}


body, html {
  overflow-x: hidden; /* Prevents horizontal scroll */
  width: 100%;
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0px;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  padding: 0px;

}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Header Styles */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Compact Carousel Styles */
.compact-carousel {
  background-color: #f39c12;
  margin-top: 8.1rem;
  max-height: 1000px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 15px;
  left: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.8rem;
  max-width: 60%;
  border-radius: 4px;
}

.carousel-caption h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.carousel-caption p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: white;
  width: 20px;
  border-radius: 5px;
}

/* Parent and Child Categories */
.parent-categories {
  max-width: 100%;
  background-color: #eeeeee;
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 15px;
}

.child-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Default: 6 columns (desktop/laptop) */
  gap: 6px;
  margin-bottom: 2px;
  width: 100%;
  padding: 0px;
  box-sizing: border-box;
}

/* Laptop (if you want consistency with desktop) */
@media (max-width: 1366px) {
  .child-categories-grid {
    grid-template-columns: repeat(6, 1fr); /* Still 6 columns */
  }
}

/* Tablet (e.g., iPad) */
@media (max-width: 1024px) {
  .child-categories-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }
}

/* Mobile (e.g., smartphones) */
@media (max-width: 768px) {
  .child-categories-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

.child-category-card {
  background: rgb(255, 255, 255);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.child-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.child-category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.child-category-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.child-category-placeholder {
  width: 100%;
  height: 150px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 2rem;
}

.child-category-name {
  padding: 1rem;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
  color: #333;
}

/* View All Link */
.view-all-container {
  text-align: right;
  margin-top: 2px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  color: #f90303;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.view-all-link i {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.view-all-link:hover {
  color: #21a11c;
}

.view-all-link:hover i {
  transform: translateX(3px);
}




/* Features Section   why choose us start */
.features {
  padding: 2rem 1rem;
  background-color: var(--light-bg);
  margin-bottom: 0rem;
}
.section-title {
  text-align: center;
}
.section-title h2 {
  text-align: center;
  font-size: 32px;
}
.section-title p {
  text-align: center;
  font-size: 25px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Features Section   why choose us ends */

/* Newsletter Section */
.newsletter {
  margin-top: 0px;
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.9rem;
}



/* Responsive Adjustments */

  .plp-product-grid {
    grid-template-columns: repeat(5, 1fr);
  
  }




  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .compact-carousel {
    max-height: 300px;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-caption {
    max-width: 80%;
    padding: 0.5rem;
  }

  .carousel-caption h3 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }


@media (max-width: 576px) {

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parent-category-title {
    font-size: 1.1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 2px;
  }

  .newsletter-form button {
    margin-top: 0.5rem;
    padding: 0.6rem;
  }
  .carousel-caption {
    display: none;
  }
}