/***********
  ** Override CSS goes here
  ** Typically added to live sites that aren't compiled anymore
************/

@media(min-width:991px) {
    .filter-navbar {
        border-bottom:0;
    }
    
    .filter-navbar-main {
        background: #5D3FD3;
    }
    
    .filter-navbar-categories-wrapper .filter-navbar-category-button {
        transition:all 250ms ease-in-out;
        font-size:18px;
        color:white;
    }
    
    .filter-navbar-categories-wrapper .filter-navbar-category-button:hover {
        color:#00CEC8;
    }
    
    .headless-openorclosed-wrapper .headless-oc-name {
        color:white;
    }
}

.headless-filter-pill {
    border:0!important;
}


@media (max-width: 768px) {
    .shop .headless-menu-navbar .headless-menu-navbar-searchbar-form.headless-menu-navbar-searchbar-form-menu {
        display:none!important;
    }
    
    .shop .headless-menu-navbar .headless-menu-navbar-cart {
        width:unset!important;
        margin-left:auto!important;
    }
}

.headless-location-modal-overlay {
	background-color: #000000 !important;
}

.headless-location-modal-content {
	height: 100vh;
	overflow-y: auto;
}

/*@media (max-width: 475px) {
	.hg-hero {
		min-height: calc(100vh - 138px);
    	overflow-y: auto !important;
	}
}*/

.menu-loading-spinner {
    stroke: white !important;
}

.menu-loading-text {
    color: white !important;
}
.range-headless .headless-pricing-type-special {
    color: black;
}

/* .headless-menu-navbar .headless-oc-option {
	display: none !important;
}

.filter-navbar .headless-openorclosed-wrapper {
	display: none !important;
} */

@media (min-width: 1400px) {
  .rpb-hero .hexLarge {
    max-width: 380px!important;
    width: 35%;
  }
}
.rpb-hero {
    min-height: auto;
}
.headless-menu-navbar .headless-menu-navbar-wrapper {
    flex-wrap:nowrap!important;
}
.headless-menu-navbar .headless-menu-navbar-select {
    flex-basis:unset;
    width:auto;
    flex-grow:1;
    
}
.headless-menu-navbar {
    padding: 8px 10px;
}
@media (min-width: 768px) {
  .range-headless .headless-menu-builder-section .headless-slider-wrap .headless-slider-prev {
    left: .5em;
  }
  .range-headless .headless-menu-builder-section .headless-slider-wrap .headless-slider-next {
    right: .5em;
  }
}

/* Logo fallback - show honeygrove by default */
.honeygrove-logo {
  display: block !important;
}

.honeystash-logo {
  display: none !important;
}

.location-metuchen-rec .honeystash-logo {
  display: block !important;
}

.location-metuchen-rec .honeygrove-logo {
  display: none !important;
}

/** CWV CSS **/

a.navbar-brand.me-0.py-0 {
  height: 45px; /* Match explicit height */
}
a.navbar-brand.me-0.py-0 {
  height: 65px;
  min-height: 65px;
  display: flex;
  align-items: center;
}

.header-default .navbar-brand,
.header-default .theme-logo {
  height: 65px;
  min-height: 65px;
}

#navbarNavDropdown {
  min-height: 56px;
}

@media (min-width:768px) {
    a.navbar-brand.me-0.py-0 {
    flex-shrink: 0; /* Prevent compression */
    }   
}
div#range-headless-root-6 {
    height: 35px;
}
@media (min-width:768px) {
    div#range-headless-root-6, 
    .headless-menu-navbar {
        height: 55px!important;
    }
}
section#topLevelNav {
    height:79px;
}
@media (min-width:768px) {
    section#topLevelNav {
        height:94px;
    }
}
#navbarNavDropdown {
  min-height: 56px; /* Reserve minimum space for collapsed state */
  transition: height 0.3s ease; /* Smooth resize to reduce jank perception */
}
div.wrap:nth-of-type(3) {
  contain: layout style paint;
  min-height: 100vh;
}
div.wrap:nth-of-type(3) > * {
  contain: content;
}
.container-fluid.headless-strain-card-wrap {
  min-height: 88px;
}
@media (min-width:768px) {
    .home .rpb-flex-card-image {
        width: 135px!important;
        height: 75px!important;
        aspect-ratio: attr(width) / attr(height, 1); /* Preserve image dimensions */
    }
    .home .hg-featured-products {
        height:265px;
    }
}
.headless-lns-icon svg {
    width:34px!important;
    height:34px!important;
}
@media (min-width:1200px) {
 .menu-primary-navigation-container {
    width:866px;
 }
}
.new-drops {
    min-height:159px!important;
}

/**MSO Homepage CLS **/
/* Apply this to the specific row shifting horizontally */
.row.cls-horizontal-fix {
  /* 1. Explicitly redefine the gutter variables right here so 
     the browser doesn't wait for inherited CSS */
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;

  /* 2. Explicitly lock the width calculation using standard Bootstrap math.
     This accommodates the negative margins safely without causing overflow. */
  width: calc(100% + var(--bs-gutter-x));
}
/* Target only cards inside the rpb slider to eliminate global conflicts */
.cls-horizontal-fix .rpb-cards .card.ratio {
  /* Enforce native modern aspect-ratio box sizing */
  aspect-ratio: 16 / 9;
  
  /* Safe fallback for older browsers that don't compute aspect-ratio */
  min-height: 200px; 
}

/* Ensure the layout holds structural dimensions even before Splide JS initializes */
@media (min-width: 768px) {
  .rpb-cards .splide__slide {
    min-height: 250px; 
  }
}

@media (max-width: 767px) {
  .rpb-cards .splide__slide {
    min-height: 180px; 
  }
}

/* Ensure the internal background image container expands safely */
.rpb-cards .rpb-flex-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
