/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

 /* Make header row a flexbox so everything aligns horizontally */
.header-top > .container > .row {
    display: flex;
    align-items: center;
}

/* makes the profile & cart move to top right of screen */
.header-top > .container > .row > #_desktop_user_info{
    margin-left:auto;   
}



.header-top > .container > .row > #_desktop_cart{
    margin-left:0;
    padding:0;
}

.header-top > .header-nav-fullwidth > .container  > .row > #_desktop_top_menu{
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
}

/* Split slider layout - scoped to mainslider only */
.mainslider-container .slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  background: #f5f0e1;
  padding: 20px;
}

.mainslider-container .slide-content {
  flex: 0 0 35%;
}

.mainslider-container .slide-image {
  flex: 0 0 60%;
}

.mainslider-container .slide-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.mainslider-container .slide-title {
  font-size: 25px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.mainslider-container .slide-description {
  font-size: 12px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.mainslider-container .slide-btn {
  display: inline-block;
  background: #c9a84c;
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.mainslider-container .slide-btn:hover {
  background: #a8873a;
  color: #fff;
}

/* Carousel visibility - scoped to mainslider */
.mainslider-container .mainslides {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.mainslider-container .slide {
  display: none;
}

.mainslider-container .slide.active {
  display: flex;
}

.mainslider-container .mainslider-prev,
.mainslider-container .mainslider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 40px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
}

.mainslider-container {
  position: relative;
}

.mainslider-container .mainslider-prev {
  left: 15px;
}

.mainslider-container .mainslider-next {
  right: 15px;
}

/* Product images in menu dropdown - scoped to mainmenu */
#_desktop_top_menu .menu-banners {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid #eee;
}

#_desktop_top_menu .menu-banner {
  flex: 0 0 120px;
  text-align: center;
}

#_desktop_top_menu .menu-banner img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

#_desktop_top_menu .menu-banner span {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: #333;
  white-space: normal;
  word-break: break-word;
}

/* Make the dropdown wide enough to show products horizontally */
#_desktop_top_menu .popover.sub-menu {
  min-width: 600px;
}

/* Center dropdown relative to full menu width */
#_desktop_top_menu {
  position: relative;
}

#_desktop_top_menu .popover.sub-menu {
  min-width: 600px;
  max-width: 90vw;
}

#_desktop_top_menu .category {
  position: static !important;
}

#_desktop_top_menu ul#top-menu {
  position: relative !important;
}

#_desktop_top_menu .popover.sub-menu {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  min-width: 600px;
}

/* Scroll banner */
.advc-scroll-banner {
  background-color: #1a3a2a;
  overflow: hidden;
  padding: 15px 0;
  width: 100%;
}

.advc-scroll-banner__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.advc-scroll-banner__item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding-right: 60px;
  white-space: nowrap;
}

.advc-scroll-banner--text {
  display: inline !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 0 !important;
  white-space: nowrap;
}

.advc-scroll-banner--icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

#index #footer {
  margin: 0;
}

#index #wrapper {
  margin-bottom: 0;
}

@media (min-width:768px) and (max-width: 991px){
  .header-top > .container > .row > #_desktop_cart{
      width: 20%;
  }
}

#_desktop_logo {
  max-width: 200px;
}

@media (max-width: 767px) {

  #header .header-nav .top-logo {
    float: none;
    padding: 12px 0;
    line-height: normal;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  #header .header-nav .top-logo img {
    width: clamp(90px, 22vw, 160px);
    height: auto;
    display: block;
  }
}

#subcategories ul li .subcategory-image {
    text-align: center;
}

#subcategories ul li .subcategory-image a {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#subcategories ul li .subcategory-image a img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}