@media (min-width: 1400px) {
    .container {
        width: 1280px;
        max-width: 100%;
    }
    /* styles for row cols after changing content width 
    .col-md-6 {
      float: inline-end;
    }*/
}
/* fix dropdown offset position */
@media (min-width: 1600px) {
    .amenu-item .adropdown {
        left: 366.781px !important;
    }
}

.an_homeslider.owl-carousel.owl-drag .owl-item .an_homeslider-item img.owl-lazy:not(.anhs-img-loaded) {
    height: auto;
}
/* === Tweakable variables === */
:root {
  --menu-accent: #c79f4c;           /* accent line at active item */
  --menu-hover-bg: rgba(199, 159, 76, 0.08);
  --menu-active-bg: rgba(199, 159, 76, 0.12);
  --menu-radius: 8px;
}

/* Category links (column 1) */
.adropdown .dropdown-content.acontent-1 .category-item.level-2 a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--menu-radius);
  transition: background-color 160ms ease, transform 120ms ease;
  text-decoration: none;
}

.adropdown .dropdown-content.acontent-1 .category-item.level-2 a:hover,
.adropdown .dropdown-content.acontent-1 .category-item.level-2 a:focus-visible {
  background: var(--menu-hover-bg);
  outline: none;
}

/* Active state: add left accent + stronger bg */
.adropdown .dropdown-content.acontent-1 .category-item.level-2.is-active a {
  background: var(--menu-active-bg);
  position: relative;
}
.adropdown .dropdown-content.acontent-1 .category-item.level-2.is-active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--menu-accent);
}

/* Fade-in for product panels */
.adropdown .dropdown-content.acontent-4.fade-in {
  animation: menuFadeIn 160ms ease;
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide helper */
.is-hidden { display: none !important; }

/* Product image subtle zoom on hover */
.adropdown .products-grid .product-thumbnail a img {
  transition: transform 180ms ease;
}
.adropdown .products-grid .product-thumbnail a:hover img,
.adropdown .products-grid .product-thumbnail a:focus-visible img {
  transform: scale(1.03);
  outline: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adropdown .dropdown-content.acontent-3.fade-in,
  .adropdown .products-grid .product-thumbnail a img {
    animation: none !important;
    transition: none !important;
  }
}

/* Subtle shine sweep on product images (scoped to the dropdown) */
.adropdown .products-grid .product-thumbnail a {
  position: relative;
  display: block;
  overflow: hidden; /* keeps the shine inside the image */
}

.adropdown .products-grid .product-thumbnail a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg) translateX(0);
  opacity: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease;
}

.adropdown .products-grid .product-thumbnail a:hover::after,
.adropdown .products-grid .product-thumbnail a:focus-visible::after {
  transform: skewX(-20deg) translateX(300%);
  opacity: 1;
}

/* keep your existing image zoom — works fine with the shine */
.adropdown .products-grid .product-thumbnail a img {
  transition: transform 180ms ease;
}
.adropdown .products-grid .product-thumbnail a:hover img,
.adropdown .products-grid .product-thumbnail a:focus-visible img {
  transform: scale(1.03);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adropdown .products-grid .product-thumbnail a::after,
  .adropdown .products-grid .product-thumbnail a img {
    transition: none !important;
  }
}

/* row_banner custom styling to have the banner text under the image */
.an_banner .an_banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.an_banner .an_banner-img {
  order: 1;
}

.an_banner .an_banner-img img {
  border-radius: 15px;
  overflow: hidden;
  display: block;
}

.an_banner .an_banner-text {
  order: 2;
  position: static !important; /* remove overlay */
  transform: none !important;
  margin-top: 10px;
  text-align: center;
  color: #333; /* adjust as needed */
  font-weight: 600; /* optional: make it bold */
  background: transparent; /* ensure no background box */
  padding: 15px 4px !important;
}

.an_banner .an_banner-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.an_banner .an_banner-text,
.an_banner .an_banner-text p,
.an_banner .an_banner-title {
  color: #000 !important;
  font-size: 22px !important;
}

/* MAKE THE ROW BANNER AS CAROUSEL */
.an_banner-carousel {
  position: relative;
  padding: 20px 0;
  overflow: visible !important;
}

.an_banner-carousel .swiper-slide {
  display: flex;
  justify-content: center;
}

.an_banner-carousel .swiper-button-prev,
.an_banner-carousel .swiper-button-next {
  color: #000;
  width: 40px;
  height: 40px;
}

.an_banner-carousel .swiper-button-prev:hover,
.an_banner-carousel .swiper-button-next:hover {
  color: #555;
}

.an_banner .an_banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.an_banner .an_banner-img img {
  border-radius: 15px;
  overflow: hidden;
  display: block;
}

.an_banner .an_banner-text,
.an_banner .an_banner-text p,
.an_banner .an_banner-title {
  color: #000 !important;
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
}
/* === Swiper arrows custom style === */
.an_banner-carousel .swiper-button-next,
.an_banner-carousel .swiper-button-prev {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: #000; /* arrow color */
}

/* center the SVG arrow */
.an_banner-carousel .swiper-button-next::after,
.an_banner-carousel .swiper-button-prev::after {
  font-size: 18px;  /* size of arrow */
  font-weight: bold;
}

/* subtle fade & lift on hover */
.an_banner-carousel .swiper-button-next:hover,
.an_banner-carousel .swiper-button-prev:hover {
  background-color: #fff;
  transform: scale(1.05);
  opacity: 0.9;
}

/* optional: reposition arrows slightly outside carousel */
.an_banner-carousel .swiper-button-prev {
  left: -25px;
}
.an_banner-carousel .swiper-button-next {
  right: -25px;
}

/* For mobile screens, bring them inside */
@media (max-width: 768px) {
  .an_banner-carousel .swiper-button-prev {
    left: 10px;
  }
  .an_banner-carousel .swiper-button-next {
    right: 10px;
  }
}
.an_banner-carousel .swiper-button-prev,
.an_banner-carousel .swiper-button-next {
  z-index: 10;
}

/* css for set row banner title to center */
.an_banner-carousel > div:first-child p {
  text-align: center;
}
.an_banner-carousel > div:first-child {
  text-align: center;
  margin-bottom: 2rem;
}

/* custom footer block css */
.footer-company-info {
  font-size: 14px;
  color: #666;
}

.footer-company-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-company-list li {
  justify-content: space-between;
  margin-bottom: 6px;
}

.footer-company-list .label {
  margin-right: 6px;
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.footer-company-list .value {
  color: #777;
  font-size: 16px;
  line-height: 1.2;
}

/* custom css for products new arrivals etc*/
@media (max-width: 600px) {
    #index .featured-products .product-miniature.product-mobile-row:not(.col-lg-12) .thumbnail-container {
        margin-right: auto;
    }
}
@media (max-width: 580px) {
    .product-miniature:not(.col-lg-12) .thumbnail-container {
        padding: 10px 10px 0;
    }
}
@media (max-width: 600px) {
    .product-miniature.product-mobile-row:not(.col-lg-12), .tab-pane.active .product-miniature.product-mobile-row:not(.col-lg-12) {
        max-width: none;
        flex-basis: unset;
        padding: 0 15px;
        /* margin-left: 7px !important;
        margin-right: 7px !important; ??? to be confirmed (smaller screens may have issues) */
    }
}
@media (max-width: 600px) {
    #index .featured-products .products {
        margin-right: -15px;
        margin-left: -15px;
        width: calc(100% + 30px);
    }
}
@media (max-width: 992px) {
    #index .featured-products .products {
        margin-right: -15px;
        margin-left: -15px;
        width: calc(100% + 30px);
    }
  
  .adropdown-mobile .products-grid {
    display: none;
  }
}

#main #subcategories {
  display: none;
}

/* coming soon styles */
.coming-soon {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #2a210f;
  background: linear-gradient(
    270deg,
    #e6c77a,
    #c79f4c,
    #a8822f,
    #f0d992
  );
  background-size: 400% 400%;
  animation: gradientMove 4s ease infinite, pulse 1.8s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(199, 159, 76, 0.45);
  margin: 8px 9px 9px 18px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ================================
   Smooth sticky product image
   Takes into account sticky menu (70px)
   ================================ */

:root{
  --sticky-menu-height: 70px; /* your sticky menu height */
  --sticky-gap: 10px;         /* small space under menu */
}

/* Force sticky instead of fixed */
#product #content.sticky-product,
#product #content.sticky-product-fixed {
  position: sticky !important;
  top: calc(var(--sticky-menu-height) + var(--sticky-gap)) !important;
  align-self: flex-start;
  z-index: 5; /* keep it above page content, below menu usually */
}

/* Disable forced fixed positioning */
.sticky-product-fixed {
  position: sticky !important;
}

/* Sticky breaks if a parent has overflow hidden */
.sticky-product-row > .col-lg-5,
.sticky-product-row > .col-md-5,
.sticky-product-row > .productblock-image {
  overflow: visible !important;
}

/* Optional: subtle visual smoothness */
#product #content {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#product #content.sticky-product-fixed {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Reserve hero height to prevent Safari gap before lazy images load - Safari only issue */
.an_homeslider-block.an_homeslider-hide-mobile .an_homeslider-item {
  aspect-ratio: 1280 / 440;
  display: block;
}

.an_homeslider-block.an_homeslider-hide-mobile .an_homeslider-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* show sorting dropdown in category products */
@media (max-width: 767px) {
  /* keep sorter visible */
  #js-product-list-top .products-sort-order {
    display: block !important;
    width: auto !important;
    min-width: 140px;
    float: none !important;
  }

  /* toolbar row layout */
  #js-product-list-top .products-selection,
  #js-product-list-top .filters-toggler-block,
  #js-product-list-top .sort-by-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 10px;
  }

  /* prevent the sorter text from stacking vertically */
  #js-product-list-top .products-sort-order .select-title {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 140px;
  }

  /* hide only the label if it causes issues */
  #js-product-list-top .products-sort-order .hidden-sm-down {
    display: none !important;
  }

  /* keep dropdown text on one line */
  #js-product-list-top .products-sort-order,
  #js-product-list-top .products-sort-order a,
  #js-product-list-top .products-sort-order span {
    white-space: nowrap !important;
  }

  /* filter button alignment */
  #js-product-list-top #search_filter_toggler,
  #js-product-list-top .filter-button,
  #js-product-list-top .btn-secondary {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* optional: hide total products on mobile */
  #js-product-list-top .total-products {
    display: none !important;
  }
}

/* page per view custom css */
.products-per-page {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.products-per-page-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 767px) {
  .products-per-page {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 8px;
  }

  .products-per-page-select {
    width: auto;
    min-width: 110px;
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .products-per-page {
    margin-left: 10px;
  }
}