* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ensure all slides take full height */
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide.active .hero-text h1 {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide.active .hero-text p {
  animation: slideInFromLeft 1.0s ease-out 0.3s forwards;
}

.slide.active .hero-image {
  animation: slideInFromRight 1.2s ease-out 0.5s forwards;
}

.slide.active .hero-cta-btn {
  animation: slideInFromLeft 1.0s ease-out 0.5s forwards;
}

/* Keyframe animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 130px;
  height: 100%; /* All hero sections take full slide height */
  /* Remove the background from here since each slide will have its own */
}

/* Individual slide backgrounds and text colors */
.slide:nth-child(1) .hero {
  background: linear-gradient(130deg, #333333, #131313);
  --text-color: #ffffff;
  --span-color: #ff6b35;
}

.slide:nth-child(2) .hero {
  background: linear-gradient(130deg, #F9ED73, #F1BA39);
  --text-color: #333333;
  --span-color: #487500;
}

.slide:nth-child(3) .hero {
  background: 
    url('images/Solar-panel-field.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1% 10% 25% 10%;
  --text-color: #ffffff;
  --span-color: #FFD700;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Remove height and max-height to match other slides */
}

.slide:nth-child(4) .hero{
  background: linear-gradient(160deg, #F5F5F5, #DFDFDF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px 130px 0 130px;
  /* height: 80%; */
  text-align: center;
  justify-items: center;
}
  
.hero-text {
  flex: 1;
  max-width: 50%;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color, #ffffff);
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0; /* Initially hidden for animation */
  transform: translateX(-100px); /* Initially positioned off-screen */
}

.hero-text h1 span {
  color: var(--span-color, #ff6b35);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-color, #ffffff);
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0; /* Initially hidden for animation */
  transform: translateX(-100px); /* Initially positioned off-screen */
}

.slide:nth-child(4) .hero-text h1 {
    color: #272727;
    padding: 0 150px;
    font-size: 2.5em;
  }

.slide:nth-child(4) .hero-cta-btn{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.2px solid #000000;
  color: #000000;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateX(-100px);
}

.slide:nth-child(4) .hero-cta-btn:hover{
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.slide:nth-child(4) .hero-cta-btn:active{
  transform: translateY(0);
}

.hero-image {
  flex: 1;
  max-width: 50%;
  text-align: center;
  opacity: 0; /* Initially hidden for animation */
  transform: translateX(100px); /* Initially positioned off-screen */
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Special animation for 3rd slide (centered text) */
.slide:nth-child(3).active .hero-text h1 {
  animation: slideInFromBottom 0.8s ease-out forwards;
}

.slide:nth-child(3).active .hero-text p {
  animation: slideInFromBottom 1.0s ease-out 0.3s forwards;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.slider-nav:active{
  transform: translateY(-50%) scale(0.98);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #ff6b35;
}

/* Tablet styles */
@media (max-width: 1024px) {
  .header {
    padding: 20px 30px;
  }
  
  .search-container {
    width: 150px;
  }
  
  .search-container input {
    width: 120px;
  }
  
  .nav ul li {
    margin: 0 10px;
  }

  nav {
    display: none;
  }

  .hero{
    padding: 20px 90px;
    gap: 90px;
  }

  .hero-text h1 {
  font-size: 200%;
  margin: 0;
  }

  .hero-text span {
    font-weight: 700;
    }

  .hero-text p {
    margin-top: 0.3em;
    }

  .hero-image img {
    max-width: 100%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 40px;
    /* gap: 20px; */
  }
  
  .hero-text,
  .hero-image {
    max-width: 100%;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
  }
  
  
  
  /* Mobile animation adjustments */
  .slide.active .hero-text h1 {
    animation: slideInFromBottom 0.6s ease-out forwards;
  }

  .slide.active .hero-text p {
    animation: slideInFromBottom 0.8s ease-out 0.2s forwards;
  }

  .slide.active .hero-image {
    animation: slideInFromBottom 1.0s ease-out 0.4s forwards;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .slider-nav.prev {
    left: 15px;
  }
  
  .slider-nav.next {
    right: 15px;
  }
  
  .slider-dots {
    bottom: 50px;
  }

  .dot{
    width: 9px;
    height: 9px;
  }

  .slide:nth-child(4) .hero{
    padding: 15px 0 0 0;
    /* max-height: fit-content; */
    gap: 160px;
  }
 
  .slide:nth-child(4) .hero-text h1 {
    padding: 95px 50px 0 50px;
    font-size: 1.4em;
  }

  /* 1st slide specific mobile styles - Make it longer */
  .slide:nth-child(1) .hero {
    padding: 15% 0px 20px;
    /* max-height: 100%; */
    gap: 40px;
  }

  .slide:nth-child(1) .hero-text {
    max-width: 90%;
    /* margin-bottom: 30px; */
  }

  .slide:nth-child(1) .hero-image {
    max-width: 90%;
    /* margin-top: 20px; */
  }

  /* 3rd slide specific mobile styles */
  .slide:nth-child(3) .hero {
    padding: 15% 0% 90% 0%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Remove height and max-height */
  }

  
  .slide:nth-child(2) .hero-image {
    max-width: 80%;
  }

  .slide:nth-child(3) .hero-text {
    max-width: 90%;
  }

  .slide:nth-child(3) .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .slide:nth-child(2) .hero-text h1{
    font-size: 1.5rem;
  }

  .slide:nth-child(3) .hero-text p {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .slide:nth-child(2) .hero-text p {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .slide:nth-child(1) .hero-text p {
    font-size: 0.8rem;
    padding: 0 30px;
  }
}



/* Tablet styles for 3rd slide */
@media (max-width: 1024px) and (min-width: 769px) {
  .slide:nth-child(3) .hero {
    padding: 12% 8%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Remove height and max-height */
  }

  .slide:nth-child(3) .hero-text {
    max-width: 80%;
  }

  .slide:nth-child(3) .hero-text h1 {
    font-size: 2.8rem;
  }

  .slide:nth-child(3) .hero-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 40px;
    gap: 20px;
  }

  .hero-slider{
    height: 70vh;
  }
  
  .hero-text,
  .hero-image {
    max-width: 100%;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }
  
  /* Mobile animation adjustments */
  .slide.active .hero-text h1 {
    animation: slideInFromBottom 0.6s ease-out forwards;
  }

  .slide.active .hero-text p {
    animation: slideInFromBottom 0.8s ease-out 0.2s forwards;
  }

  .slide.active .hero-image {
    animation: slideInFromBottom 1.0s ease-out 0.4s forwards;
  }
  
  /* ...existing mobile code... */
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 0.8rem;
  }

  /* Faster animations for small mobile */
  .slide.active .hero-text h1 {
    animation: slideInFromBottom 0.5s ease-out forwards;
  }

  .slide.active .hero-text p {
    animation: slideInFromBottom 0.7s ease-out 0.1s forwards;
  }

  .slide.active .hero-image {
    animation: slideInFromBottom 0.9s ease-out 0.2s forwards;
  }

  /* ...existing small mobile code... */
}

/* Catalog section */
.catalog-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px; /* Reduced from 20px to 10px */
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  position: relative;
  background: #f0f0f075;
  border-bottom: 3px solid #e0e0e0;
}

.catalog-container {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  gap: 10px; /* Reduced from 20px to 10px */
}

.catalog-container div {
  padding: 20px 0;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 150px;
  align-content: center;
}

.catalog-container div:hover {
  border-color: #ff6b35;
}

.catalog-container a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: .8em;
  font-family: "Barlow Condensed", sans-serif;
}

.catalog-container div:hover a {
  color: #ff6b35;
}

/* Hide catalog navigation arrows by default */
.catalog-nav {
  display: none;
}

/* Mobile styles for catalog slider */
@media (max-width: 768px) {
  .catalog-slider {
    padding: 10px 60px;
    margin: 0 0px;
    overflow-x: hidden;
    position: relative;
    gap: 5px; /* Reduced gap for mobile */
  }

  .catalog-container {
    min-width: 100%;
    justify-content: space-between;
    gap: 5px; /* Reduced gap for mobile */
  }

  .catalog-container div {
    flex: 1;
    min-width: calc(33.333% - 5px); /* Adjusted for smaller gap */
    max-width: calc(33.333% - 5px); /* Adjusted for smaller gap */
    /* padding: 15px 10px; */
    
  }

  .catalog-container a{
    font-size: 0.7rem;
  }

  /* Show catalog navigation arrows on mobile - Remove circular styling */
  .catalog-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    align-items: center;
    justify-content: center;
  }

  .catalog-nav:hover {
    color: #ff6b35;
    transform: translateY(-50%) scale(1.1);
  }

  .catalog-nav.catalog-prev {
    left: 10px;
  }

  .catalog-nav.catalog-next {
    right: 10px;
  }
}

/* catalog section */

.solar-gen-header{
  justify-items: center;
  padding: 50px 10px 10px 10px;
}

.solar-gen-header i{
  font-size: 0.8em;
}

.solar-generator{
  display: flex;
  flex-direction: row;
  font-family: "Roboto", sans-serif;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.solar-gen-image img{
  width: 470px;
  border-radius: 10px;
}

.gen-card-container{
  display: flex;
  flex-direction: row;
  gap: 20px;
  /* padding: 40px 130px; */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.gen-card{
  background-color: #27272718;
  border-radius: 10px;
  padding: 20px;
  width: fit-content;
  height: fit-content;
  position: relative; /* Add relative positioning for absolute badge */
}

/* Discount badge styling */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  z-index: 5;
}

.device-image img{
  width: 250px;
}

.brand{
  font-size: 0.8em;
  color: #666;
}

.star-ratings{
  display: flex;
  gap: 3px;
}

.solar-gen-price{
  font-size: 1.2em;
  font-weight: 700;
}

.device-name{
  font-size: 0.9em;
}

.btn-group{
  display: flex;
  gap: 10px;
}

.btn-group form {
  flex: 1;
  margin: 0;
}

.add-cart-btn, .buy-now-btn{
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 10px;
  width: 100%;
}

.add-cart-btn{
  background-color: #313131;
  color: #ffffff;
}

.buy-now-btn{
  background-color: #05aa0ab6;
  color: white;
}

.device-info{
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-info p{
  font-size: 0.9em;
}

@media (max-width: 768px){
  .solar-generator{
    display: flex;
    flex-direction: column;
    padding: 0 0;
  }

  .gen-card-container{
    gap: 10px;
    padding: 0 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gen-card{
    flex: 0 0 calc(50% - 7.5px); /* Show exactly 2 cards (50% each minus half the gap) */
    min-width: calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    padding: 15px;
    scroll-snap-align: start;
    position: relative; /* Ensure relative positioning on mobile */
  }

  /* Mobile discount badge styling */
  .discount-badge {
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 0.7em;
    border-radius: 3px;
  }

  /* Hide the 3rd solar generator card in mobile view */
  .gen-card:nth-child(3) {
    display: none;
  }

  .star-ratings{
    font-size: 0.7em
  }

  .device-image img{
    width: 100%;
    max-width: 180px;
  }

  .device-name{
    font-size: 0.8em;
  }

  .device-info{
    padding: 5px 0;
  }

  .brand{
    font-size: 0.7em;
  }

  .solar-gen-price{
    font-size: 1em;
  }

  .btn-group{
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
  }

  .add-cart-btn, .buy-now-btn{
    width: 100%;
    padding: 10px 15px;
    font-size: 0.8em;
  }

  .device-info p{
    font-size: 0.8em;
  }

  .solar-gen-image{
    width: 90%;
    text-align: center;
    /* padding: 0 20px; */
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .solar-gen-image img{
    width: 100%;
    max-width: 90%; /* Adjusted to account for the 20px padding on each side */
    border-radius: 10px;
  }
}

/* Product section */
.product-section{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ads slider on home page: match Need Help Choosing width on desktop only */
@media (min-width: 76px){
    .home-ads{
        max-width: 1400px;
        margin: 10px auto;
        padding: 0 10px;
    }
}

@media (min-width: 769px){
    .home-ads{
    padding: 0 20px;}
}

.product-section-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 50px 0 10px 0;
}

.view-all-desktop{
  margin-left: auto;
}

.view-all-mobile-row{
  display: none;
  text-align: center;
  width: 100%;
  padding: 0 0px;
}

.product-header{
  text-align: left;
  padding: 0;
}

.product-header h2 {
  margin: 0;
}

.product-header i{
  font-size: 0.8em;
}

/* View All Button Styles */
.view-all-btn {
  color: black;
  border: 1.2px solid #000000;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 25px;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  font-family: "montserrat", sans-serif;
  font-weight: 400;
}

.view-all-btn:hover {
  background: #ebebebb4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 211, 211, 0.3);
}

/* Desktop View All Button Container */
.desktop-view-all-container {
  display: block;
  text-align: center;
  padding: 20px 10px;
  /* margin-top: 10px; */
}

/* Mobile View All Button Container */
.mobile-view-all {
  display: none;
  text-align: center;
  padding: 0 10px;
  /* margin-top: 10px; */
}

.product-showcase{
  display: flex;
  flex-direction: row;
  font-family: "Roboto", sans-serif;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
}

.product-banner{
  flex: 0 0 auto; /* Don't grow or shrink */
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-banner img{
  width: 480px;
  height: 444px;
  object-fit: cover;
  border-radius: 10px;
}

.product-grid{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* No wrapping on desktop */
  gap: 20px;
  justify-content: center; /* Center the grid */
  align-items: flex-start;
  flex: 1; /* Allow grid to take remaining space */
}

.product-card{
  background-color: #27272718;
  border-radius: 10px;
  padding: 16px;
  width: fit-content;
  min-width: 270px;
  max-width: 290px;
  height: fit-content;
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 700;
  z-index: 5;
}

/* Hide the 4th product card on desktop */
.product-card:nth-child(4) {
  display: none;
}

/* Discount badge styling */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  z-index: 5;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.product-image img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand{
  font-size: 0.8em;
  color: #666;
}

.star-ratings{
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 0.82em;
}

.product-price{
  font-size: 1.15em;
  font-weight: 700;
}

.product-name{
  font-size: 0.88em;
  line-height: 1.3;
}

.btn-group{
  display: flex;
  gap: 5px;
  margin-top: 8px;
  align-items: stretch;
}

.btn-group form {
  flex: 1;
  margin: 0;
}

.add-cart-btn, .buy-now-btn{
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78em;
  height: auto;
  line-height: 1.2;
}

.add-cart-btn:disabled,
.buy-now-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.add-cart-btn{
  background-color: #1a1a1a;
  color: #ffffff;
  width: 100%;
}

.buy-now-btn{
  background-color: #048a08;
  color: white;
  flex: 1;
  display: block;
  text-align: center;
}

.product-info{
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info p{
  font-size: 0.9em;
}

@media (max-width: 768px){
  .product-section{
    padding: 0 10px;
  }

  .product-section-top{
    padding: 30px 0 10px 0;
  }

  .product-header,
  .product-header h2{
    text-align: left;
    font-size: 1.2em;
    font-weight: 700;
  }

  .view-all-desktop{
    display: none;
  }

  .view-all-mobile-row{
    display: block;
    padding: 0 0px;
  }

  .product-showcase{
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    align-items: center;
    margin: 0 auto; /* Keep centering on mobile */
    max-width: 100%; /* Full width on mobile */
    gap: 0px;
  }

  .product-grid{
    gap: 10px;
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    flex-wrap: wrap; /* Enable wrapping on mobile */
    overflow-x: visible; /* Remove horizontal scroll */
  }

  .product-card{
    flex: 0 0 calc(50% - 5px); /* 2 cards per row, accounting for gap */
    width: calc(50% - 5px) !important;
    min-width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    padding: 12px;
    scroll-snap-align: none;
    box-sizing: border-box;
  }

  /* Show the 4th product card on mobile (override desktop hiding) */
  .product-card:nth-child(4) {
    display: block;
  }

  /* Mobile discount badge styling */
  .discount-badge {
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 0.7em;
    border-radius: 3px;
  }

  /* Center product image in mobile view */
  .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .star-ratings{
    font-size: 0.65em;
    gap: 2px;
  }

  .product-image {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }

  .product-image img{
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .product-name{
    font-size: 0.75em;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .product-info{
    padding: 6px 0;
    gap: 5px;
  }

  .brand{
    font-size: 0.65em;
  }

  .product-price{
    font-size: 0.95em;
  }

  .btn-group{
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
  }

  .add-cart-btn, .buy-now-btn{
    width: 100%;
    padding: 7px 10px;
    font-size: 0.75em;
    margin-top: 0;
  }

  .product-info p{
    font-size: 0.8em;
  }

  /* Make product banner full size in mobile view */
  .product-banner{
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .product-banner img{
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: auto;
  }

  .view-all-btn {
    width: 99%;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .product-section{
    padding: 0 10px;
  }

  .product-section-top{
    padding: 20px 0 10px 0;
  }

  .view-all-mobile-row{
    padding: 0 0px;
  }

  .view-all-btn {
    padding: 15px 0px;
    font-size: 0.9em;
    width: 100%;
    border-radius: 8px;
  }

  /* ...existing small mobile styles... */
}



/* Become a distributor section */

.distributor-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  padding: 40px 20px;
  background: linear-gradient(to right, #004a75, #007bb8); 
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.distributor-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1500px;
}

.distributor-content{
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
  padding: 30px 20px;
  color: white;
  background: linear-gradient(to right, #007bb8, #005281); 
  transition: transform 0.3s ease;
  box-shadow: 0 4px 70px rgba(49, 49, 49, 0.301);
}

.distributor-content:hover {
  transform: translateY(-5px);
}

.distributor-content h2{
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #fffffffb;
  line-height: 1.3;
}

.distributor-content p{
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #fffffffb;
}

.distributor-content i{
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ff8635fb;
}

.become-distributor-btn {
  margin-top: 20px;
}

.become-distributor-btn a{
  color: #fffffffb;
  border: 1.2px solid #fffffffb;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  font-family: "montserrat", sans-serif;
  font-weight: 400;
}

.become-distributor-btn a:hover {
  background-color: #fffffffb;
  color: #007bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 49, 49, 0.3);
}

/* Laptop/Desktop View (1024px and above) */
@media (min-width: 1024px) {
  .distributor-section{
    padding: 60px 40px;
  }

  .distributor-container{
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .distributor-content{
    padding: 40px 25px;
  }

  .distributor-content h2{
    font-size: 1.1em;
  }

  .distributor-content p{
    font-size: 0.9em;
  }

  .distributor-content i{
    font-size: 3em;
  }
}

/* Tablet View (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .distributor-section{
    padding: 50px 30px;
  }

  .distributor-container{
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .distributor-content{
    padding: 25px 15px;
  }

  .distributor-content h2{
    font-size: 1.05em;
  }

  .distributor-content p{
    font-size: 0.85em;
  }

  .distributor-content i{
    font-size: 2.2em;
  }
}

/* Mobile View (767px and below) */
@media (max-width: 767px) {
  .distributor-section{
    margin: 20px auto;
    padding: 30px 15px;
    gap: 15px;
  }

  .distributor-container{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .distributor-content{
    padding: 25px 15px;
    margin: 0 auto;
    max-width: 350px;
  }

  .distributor-content h2{
    font-size: 1em;
    margin-bottom: 15px;
  }

  .distributor-content p{
    font-size: 0.8em;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .distributor-content i{
    font-size: 2em;
    margin-bottom: 15px;
  }

  .become-distributor-btn {
    margin-top: 15px;
  }

  .become-distributor-btn a{
    padding: 15px 28px;
    font-size: 0.9em;
  }
}

/* Small Mobile View (480px and below) */
@media (max-width: 480px) {
  .distributor-section{
    padding: 25px 10px;
    margin: 15px auto;
  }

  .distributor-container{
    gap: 15px;
  }

  .distributor-content{
    padding: 20px 20px;
    max-width: 300px;
  }

  .distributor-content h2{
    font-size: 0.9em;
    margin-bottom: 12px;
  }

  .distributor-content p{
    font-size: 0.75em;
    margin-bottom: 15px;
  }

  .distributor-content i{
    font-size: 1.8em;
    margin-bottom: 12px;
  }

  .become-distributor-btn a{
    padding: 13px 25px;
    font-size: 0.85em;
  }
}

/* bio-section */

.bio{
  justify-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 50%;
  padding: 50px 0;
}

.bio h2{
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #3d3d3d;
}

.bio p{
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #3d3d3d;
}

.bio-line{
  width: 80px;
  height: 4px;
  background-color: #ff6b35;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

@media (max-width: 767px){
  .bio{
    max-width: 90%;
    padding: 30px 10px;
  }

  .bio h2{
    font-size: 1.2em;
    margin-bottom: 8px;
  }

  .bio p{
    font-size: 0.85em;
    margin-bottom: 15px;
  }
}

/* Partnering Brand Section */
.brands{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  max-width: 100%;
  margin: 0 200px;
  overflow: hidden; /* Hide logos outside viewport */
  position: relative;
}

.brands-title {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: 30px;
  color: #979797;
  text-align: center;
}

.brand-logos{
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollLogosSeamless 40s linear infinite;
  white-space: nowrap;
  position: relative;
  /* Ensure container is wide enough for seamless loop */
  width: calc(200% + 60px);
  padding: 10px 0;
}

.brand-logos img{
  width: 120px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  flex-shrink: 0; /* Prevent logos from shrinking */
}

.brand-logos img:hover {
  opacity: 1;
}

/* Seamless infinite scroll animation */
@keyframes scrollLogosSeamless {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move exactly half the width for seamless loop */
  }
}

/* Pause animation on hover */
.brands:hover .brand-logos {
  animation-play-state: paused;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .brands {
    padding: 15px 0 40px 0;
    margin: 0 30px;
  }
  
  .brands-title {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .brand-logos {
    gap: 40px;
    animation: scrollLogosSeamlessMobile 30s linear infinite;
    width: calc(200% + 40px);
  }

  .brand-logos img {
    width: 80px;
  }

  @keyframes scrollLogosSeamlessMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 480px) {
  .brands-title {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .brand-logos {
    gap: 30px;
    animation: scrollLogosSeamlessSmall 25s linear infinite;
    width: calc(200% + 30px);
  }

  .brand-logos img {
    width: 60px;
  }

  @keyframes scrollLogosSeamlessSmall {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

/* Make View Product links look like buttons */
a.buy-now-btn,
a.product-card-buy-btn {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  padding: 10px;
}

a.buy-now-btn:hover,
a.product-card-buy-btn:hover {
  background-color: #048a08;
}


