/*OFFER PAGE
/* === Custom Product Grid Styling for Hanna Sale Products === */
.custom-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 16px;
}

.custom-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease-in-out;
    overflow: hidden;
    position: relative;
}

.custom-product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-align: left;
    line-height: 1.4;
    min-height: 45px; /* Forces consistent spacing */
}

.product-price {
    font-size: 16px;
    color: #007cba;
    font-weight: 700;
    text-align: left;
    margin-top: auto; /* Pushes price + button to bottom */
    margin-bottom: 8px;
}

.product-button {
    text-align: left;
}

.product-button a.button {
    background-color: #007cba;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;

    /* Add border */
    border: 2px solid #007cba; /* Same as background color */
}

.product-button a.button:hover {
    background-color: #fff;            /* Invert background */
    color: #005e99;                    /* New text color */
    border-color: #005e99;             /* New border color */
}

/* Sold Out badge styling */
.sold-out-badge {
  display: inline-block;
  background: #d6d8db;
  color: #fff;
  font-size: 12px;
  padding: 0px 4px;
  border-radius: 37px;
  font-weight: 600;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.inquire-button {
  background-color: #25d366;
  border: 2px solid #25d366;
  color: #fff;
}

.inquire-button:hover {
  background-color: #fff;
  color: #128c7e;
  border-color: #128c7e;
}


/* Mobile optimization */
@media screen and (max-width: 767px) {
  .custom-product-grid {
    grid-template-columns: 1fr;
  }

  .product-title,
  .product-short-desc,
  .product-price {
    text-align: left;
  }
}
/*search and sort*/
.product-toolbar {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-toolbar input,
.product-toolbar select {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s ease-in-out;
  background-color: #f9f9f9;
}

.product-toolbar input:focus,
.product-toolbar select:focus {
  border-color: #007cba;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

/* Stack nicely on small screens */
@media (max-width: 600px) {
  .product-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
  }

  .product-toolbar input {
    flex: 1 1 auto;         /* allow growing */
    min-width: 140px;
  }

  .product-toolbar select {
    flex: 0 0 100px;        /* fixed smaller width */
    min-width: 100px;
  }
}

/* ==== Swiper Slider Fixes ==== */
.swiper-container {
  position: relative;
  padding-bottom: 50px;
  overflow: hidden; /* Let arrows overflow out */
  max-width: 1200px;
  margin: 0 auto;
}

.swiper-wrapper {
  padding-bottom: 10px;
}

.swiper-slide {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 16px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px; /* Always 10px from bottom of swiper-container */
  left: 0;
  width: 100%;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  margin: 0 4px;
  border-radius: 50%;
  opacity: 1;
  transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #007cba;
}

.swiper-slide:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Base arrows styling */
.swiper-button-next,
.swiper-button-prev {
  width: 42px;
  height: 42px;
  background-color: #007cba; /* Blue background */
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: white;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Perfect centering */
  opacity: 0; /* Hidden by default */
  visibility: hidden; /* Actually removes from render tree */
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Show arrows when ANY slide or container hovered */
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
  opacity: 1;
  visibility: visible;
}

/* Next arrow on the right */
.swiper-button-next {
  right: 10px; /* Slightly outside container for better look */
}

/* Prev arrow on the left */
.swiper-button-prev {
  left: 10px; /* Slightly outside container for better look */
}

/* Optional: make the arrow icons bigger */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show arrow icons on hover */
.swiper-container:hover .swiper-button-next::after,
.swiper-container:hover .swiper-button-prev::after {
  opacity: 1;
}

/* Hide arrows on mobile */
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .swiper-container::after {
    content: "← Swipe →";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
  }
}

/*PAGE STYLE*/
/* Offers Page Styling */
#chem-offer-hero {
  background: linear-gradient(135deg, #005a9c, #28c7fa);
  color: #fff !important;
  padding: 60px 20px;
  text-align: center;

  width: 100vw;             /* Force full viewport width */
  margin-left: calc(-50vw + 50%);  /* Pull it outside of container */
  position: relative;
  left: 0;
  right: 0;
  margin-top: -21px !important;
}

.chem-offer-content h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #fff !important;
}

.chem-offer-btn {
  background: #ffc107;
  color: #111;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none !important;
}

/* Ensure the button text stays above the pseudo-element */
.chem-offer-btn span {
  position: relative;
  z-index: 2;
}

.chem-offer-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #ffdd57;
  z-index: 1;
  transition: width 0.4s ease;
  border-radius: 8px;
}

/* On hover, the background slides in */
.chem-offer-btn:hover::after {
  width: 100%;
}

.chem-offer-btn:hover {
  color: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
}

.chem-product-tabs {
  padding: 40px 20px;
  background: #f7f7f7;
}

.chem-tab-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.chem-tab-btn {
  background: #e0e0e0;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
}

.chem-tab-btn.active {
  background: #1ca5dd;
  color: #fff;
}

.chem-tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.chem-tab-content.active {
  display: block;
}

.chem-offer-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.chem-why-us {
  background: #ffffff;
  padding: 50px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.chem-why-us h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 40px;
}

.chem-why-us-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.why-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 15px;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.why-item .icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

.why-item p {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .chem-why-us-grid {
    flex-direction: column;
    align-items: center;
  }

  .why-item {
    width: 90%;
    max-width: 320px;
  }
}


.chem-cta {
  background: #1ca5dd;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media screen and (max-width: 768px) {
  .chem-tab-controls {
    flex-direction: column;
  }

  .chem-tab-btn {
    width: 100%;
  }
}
