/* Bibio Flyout Menu Styles */
#bibio-flyout-trigger {
    position: fixed; 
    top: 1.8rem;
    left: 2rem;
    z-index: 998;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

#bibio-flyout-trigger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #111111;
    border-radius: 3px;
    transition: 0.25s;
}

#bibio-flyout-trigger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#bibio-flyout-trigger.active span:nth-child(2) {
    opacity: 0;
}

#bibio-flyout-trigger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

#bibio-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}
.bibio-flyout-content .wd-nav-img, .mega-menu-list img { 
    max-height: 19px;
}
#bibio-primary-menu li:not(.wd-opened) .wd-dropdown-menu { display: none; }
#bibio-primary-menu li.wd-opened .wd-dropdown-menu { display: block; }
#bibio-primary-menu .wd-dropdown {
      margin: 0 !important;
        padding: 0 0 0 29px !important;
        box-shadow:none !important;display: none;
}
#bibio-primary-menu .wd-sub-menu li > a { font-size:16px !important;color:#3A1B6E !important;padding-top:13px;padding-bottom:13px;}
.wd-opened .wd-dropdown {
  display: block; position:relative;
}

#bibio-flyout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bibio-flyout-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
      font-family: Manrope, sans-serif;
}

#bibio-flyout-overlay.active .bibio-flyout-content {
    transform: translateX(0);
}

.bibio-close {
position: absolute;
  top: 15px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: #7769AE;
  z-index: 1001;
  line-height: 1;
  font-weight: 200;
}

.bibio-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bibio-menu-section li {
    margin-bottom: 0px;
}
#bibio-primary-menu { padding-top:10px; width:100%; }
#bibio-primary-menu > .menu-item { padding:13px 5px; }
#bibio-primary-menu > .menu-item a:hover{ color:#3A1B6E; }

/* 1. Prepare the parent link for positioning the arrow */
#bibio-primary-menu .wd-event-click > a {
  position: relative;
  /* Add some padding on the right to make space for the arrow */
  padding-right: 30px !important;
}

#bibio-primary-menu .wd-event-click > a::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  right: 10px;
  top: 50%;

  /* This is the SVG icon for a chevron-down */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%233A1B6E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  
  /* Smooth animation for the flip */
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}

/* 3. Flip the arrow when the menu is open */
#bibio-primary-menu .wd-event-click.wd-opened > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.bibio-menu-section a {
    display: flex;
    align-items: center;
    color: #3A1B6E;
    text-decoration: none;
    font-size: 16px;
    font-weight:600;
}

/* Ensure Elementor icons are displayed correctly */
.bibio-menu-section a .elementor-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}
/*
.bibio-products-section {
    margin: 20px 0;
    padding-top:20px;
}
*/

.bibio-products-section h3 {
    color: #3A1B6E;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 5px 0px 5px;
}

.bibio-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bibio-product-item {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.bibio-product-item>div.image-container { display:block; 
    border-radius: 4px;
    margin-bottom: 5px; padding:10px; }
.bibio-product-item>div>img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bibio-product-item h4 {
    font-size: 12px;
    color: #3A1B6E;
    font-weight:700;
    margin: 5px 0;
}

.bibio-product-item p {
    font-weight: bold;
    color: #3A1B6E;
    margin: 5px 0;
}

.bibio-product-item .button {
    background: #3A1B6E;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

.bibio-menu-section li:nth-child(2) a {
  color: #25BCBD;
}

.bibio-logo-section img {  
    max-width: 100% !important;
    height: 4rem !important;
    width: auto;
}
/* Style for product rating */
.bibio-product-rating {
    margin: 5px 0;
    font-size: 14px;
    color: #3A1B6E;
}

.bibio-product-rating .star-rating {
    display: inline-block;
    margin-right: 5px;
}

.bibio-product-rating .star-rating span {
    color: #ffb900; /* Gold color for stars */
}

.bibio-product-item h4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .bibio-flyout-content {
        width: 50%;
    }
}