/* === Hero Slider === */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Hide non-active slides */
.hero-slider .slide {
  display: none;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-slider .slide.active {
  display: block;
}

.hero-desktop .slide {
  padding-top: 35.05%;
}

.hero-mobile .slide {
  padding-top: 132.3%;
}

/* If using <img> inside .slide */
.hero-slider .slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slider .image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Navigation buttons */
.hero-slider .prev,
.hero-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}
.hero-slider .prev { left: 10px; }
.hero-slider .next { right: 10px; }

/* Smaller buttons for mobile */
.hero-mobile .prev,
.hero-mobile .next {
  padding: 6px 10px;
  font-size: 14px;
}


/* === Three Column Image Blocks === */
.three-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px 0;
}

.three-columns .block {
  position: relative;
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
  text-align: center;
  padding: 0;
  background-color: #f9f9f9;
  overflow: hidden;
}

.three-columns .block-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.three-columns .block img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.three-columns .block a.image-link:hover img {
  opacity: 0.8;
}

.three-columns .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */ */
}

.three-columns .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to the top */
  align-items: center;
  padding-top: 20px; /* Adjust as needed for top positioning */
  color: white;
}

.three-columns .block h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.5em;
  color: black;
}

.three-columns .block a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.three-columns .block a.image-link {
  display: block;
  margin-top: 0;
  padding: 0;
  background-color: transparent;
  position: relative;
  z-index: 3;
}

.three-columns .block a:hover {
  background-color: #e04e1f; /* A slightly darker shade for hover */
}

/* === Tabs for Featured Products === */
.product-tabs{
  text-align: center;
  margin-bottom: 100px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.tab {
  padding: 0.5rem 1rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: pointer;
}
.tab.active {
  background: #ddd;
}

/* === Product Tab Grid === */
.tab-contents {
  padding: 0 1rem;
}
.tab-content {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem; /* Increased gap to prevent overlapping */
  justify-content: center;
}
.tab-content.active {
  display: grid;
}
.tab-content .product-thumbnail {
  text-align: center;
  display: block; /* Changed to block */
  width: 100% !important; /* Force full width */
  margin: 0 auto; /* Center within grid cell */
  padding-bottom: 6rem; /* Increased general padding for title/price */
}
.product-thumbnail {
  text-align: center;
}
.tab-content .product-thumbnail .thumbnail-img-container {
}
.tab-content .product-thumbnail .thumbnail-img-container {
}
.tab-content .product-thumbnail img {
  width: 100%;
  object-fit: cover;
  max-height: none !important;
}

.product-thumbnail .thumbnail-img-container{
  border: none !important;
}

/* === Marketing Banner === */
.marketing-banner {
  background: #f2e6d9;
  padding: 2rem;
  text-align: center;
}
.marketing-banner .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* === Confidence Icons Section === */
.confidence-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem;
  background: #f8f8f8;
}
.confidence-icons .icon {
  text-align: center;
  margin: 1rem;
}
.confidence-icons img {
  width: 50px;
}
/* === Insta === */
/* === Insta === */
.insta-slider-container {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
  padding: 10px 0;
  position: relative;
}

#instaFeed {
  display: flex;
  gap: 16px;
  white-space: nowrap;
  overflow: hidden;
  width: fit-content; /* Allow content to define width */
}

#instaFeed.scrolling {
  animation: scroll-left var(--animation-duration) linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--scroll-width)));
  }
}

#instaFeed img {
  height: 300px;
  width: 300px;
  max-width: none;
  object-fit: cover;
  flex-shrink: 0;
  transition: none;
}

#instaFeed img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #instaFeed img {
    height: 140px;
    width: 140px;
  }
}

/* === Global Fixes === */
body {
  overflow-x: hidden;
}
.header-container.border-bottom {
  border-bottom: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .category-container li > a:hover,
  .links.pages li > a:hover,
  .footer-container .social-media a:hover svg,
  .category-container li > a:focus,
  .links.pages li > a:focus,
  .footer-container .social-media a:focus svg {
    color: #0899B2 !important;
    fill: #0899B2 !important;
    opacity: 0.7;
  }
}

/* Tablets (iPad portrait/landscape) */
@media (min-width: 768px) and (max-width: 1023px) {
  .category-container li > a:hover,
  .links.pages li > a:hover,
  .footer-container .social-media a:hover svg,
  .category-container li > a:focus,
  .links.pages li > a:focus,
  .footer-container .social-media a:focus svg {
    color: #0899B2 !important;
    fill: #0899B2 !important;
    opacity: 0.7;
  }
}

/* Laptops / small desktops */
@media (min-width: 1024px) and (max-width: 1440px) {
  .category-container li > a:hover,
  .links.pages li > a:hover,
  .footer-container .social-media a:hover svg,
  .category-container li > a:focus,
  .links.pages li > a:focus,
  .footer-container .social-media a:focus svg {
    color: #003b71;
    fill: #003b71;
    opacity: 0.7;
  }
}

/* === Responsive Adjustments === */
@media screen and (max-width: 1200px) {
  .tab-content {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
  }
}

@media screen and (max-width: 768px) {
  .tab-content {
    grid-template-columns: repeat(1, 1fr); /* 1 column for tablets and mobile */
  }
  .tabs {
    flex-wrap: wrap;
  }
  /*.three-columns .block {*/
  /*  flex: 1 1 100%; !* Ensure blocks stack on smaller screens *!*/
  /*}*/
  .three-columns .block {
    padding: 0px 10px;
  }
  #instaFeed img {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .tab-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .header-navbar {
    display: grid;
    grid-template-columns: 10px 1fr 10px;
    align-items: center;
    padding: 10px 0px;
  }

  #mobile-slider-button { grid-column: 1; justify-self: start; }
  .header-navbar .logo-container { grid-column: 2; justify-self: center; }
  .header-navbar .header-icons,
  .header-navbar [data-bs-target="#search-modal"] { grid-column: 3; justify-self: end; }

  .header-navbar .logo-container img {
    width: auto;
    height: auto;
    max-width: clamp(140px, 65vw, 320px);
  }
}

.category-container li > a:hover,
.links.pages li > a:hover,
.footer-container .social-media a:hover svg,
.category-container li > a:focus,
.links.pages li > a:focus,
.footer-container .social-media a:focus svg {
  color: #003b71;
  fill: #003b71;
  opacity: 0.7;
}

.navbar-brand.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-navbar {
  margin: 20px 0px;
}

.categories-nav {
  display: flex !important;
  flex-basis: auto;
  justify-content: center;
}

.footor-logo {
  background: #ffffff;
  padding: 5px;
}

.header-container {
  margin-top: 40px;
}

.product-page-main .main-img-container, .product-page-main .images-wrapper ul li {
  border: 0;
}
.footer-container .mobile-copyright-section {
  background-color: #ffffff;
}

.ratio .ratio-16x9 {
  background-color: transparent !important;
}
/* Wrapper: align checkbox + label in one row */
.checkbox-lg {
  display: flex;
  align-items: center;   /* vertically center them */
}

/* Large square checkbox */
.checkbox-lg .form-check-input {
  width: 55px;
  height: 24px;
  margin-right: 8px;     /* space between box and label */
  border-radius: 6px;    /* slightly rounded square */
  box-shadow: inset 0 0 6px rgba(0,0,0,.12);
}

/* Label styling */
.checkbox-lg .form-check-label {
  font-size: 1em;
  line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .checkbox-lg .form-check-input {
    width: 24px;
    height: 24px;
  }
  .checkbox-lg .form-check-label {
    font-size: 1em;
  }
}

/* Error state */
.checkbox-lg.is-invalid .form-check-input {
  border-color: #dc3545;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.25);
}

.cart-link {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 13px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1.25;
  min-width: 14px;
  text-align: center;
}

.product-thumbnail .thumbnail-img-container img {
  max-height: none !important;
}