/**
 * B2BPerfume storefront refinements.
 *
 * Loaded after legacy styles. This file owns the public header/navigation,
 * live-search presentation, homepage product collection layouts, compact brand
 * profile hero. Single-product styling lives in single-product.css.
 */

/* ========================================================================== */
/* Global button palette                                                       */
/* ========================================================================== */
.b2bp-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
  border-color: var(--b2bp-button-primary-bg) !important;
  background: var(--b2bp-button-primary-bg) !important;
  color: var(--b2bp-button-primary-text) !important;
}

.b2bp-button:hover,
.b2bp-button:focus-visible,
.woocommerce a.button:hover,
.woocommerce a.button:focus-visible,
.woocommerce button.button:hover,
.woocommerce button.button:focus-visible,
.woocommerce input.button:hover,
.woocommerce input.button:focus-visible,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:not(.is-link):hover {
  border-color: var(--b2bp-button-primary-hover-bg) !important;
  background: var(--b2bp-button-primary-hover-bg) !important;
  color: var(--b2bp-button-primary-hover-text) !important;
}

.b2bp-button--outline,
.b2bp-nav-actions .b2bp-header-extra-link,
.b2bp-mobile-account {
  border-color: var(--b2bp-button-outline-border) !important;
  background: var(--b2bp-button-outline-bg) !important;
  color: var(--b2bp-button-outline-text) !important;
}

.b2bp-button--outline:hover,
.b2bp-button--outline:focus-visible,
.b2bp-nav-actions .b2bp-header-extra-link:hover,
.b2bp-nav-actions .b2bp-header-extra-link:focus-visible,
.b2bp-mobile-account:hover,
.b2bp-mobile-account:focus-visible {
  border-color: var(--b2bp-button-outline-border) !important;
  background: var(--b2bp-button-outline-hover-bg) !important;
  color: var(--b2bp-button-outline-hover-text) !important;
}

/* ========================================================================== */
/* IBALG-parity header                                                         */
/* ========================================================================== */












.b2bp-brand { min-width: 0; }

















/* DOM order is generated from the Customizer. Neutralise old hardcoded order. */












.b2bp-search-icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}












/* Cart uses the same dark CTA shell as IBALG's desktop CTA. */









.b2bp-live-search-form .b2bp-live-search-submit {
  border-color: var(--b2bp-button-primary-bg) !important;
  background: var(--b2bp-button-primary-bg) !important;
  color: var(--b2bp-button-primary-text) !important;
}
.b2bp-live-search-form .b2bp-live-search-submit:hover,
.b2bp-live-search-form .b2bp-live-search-submit:focus-visible {
  border-color: var(--b2bp-button-primary-hover-bg) !important;
  background: var(--b2bp-button-primary-hover-bg) !important;
  color: var(--b2bp-button-primary-hover-text) !important;
}

/* Search popover: deliberately compact and integrated with the header. */



.b2bp-live-search { position: relative; width: 100%; min-width: 0; }
.b2bp-live-search-form {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 14%, transparent) !important;
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--b2bp-page) 28%, var(--b2bp-surface)) !important;
  box-shadow: none !important;
}
.b2bp-live-search-form:focus-within {
  border-color: color-mix(in srgb, var(--b2bp-primary) 44%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--b2bp-primary) 8%, transparent) !important;
}
.b2bp-live-search-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--b2bp-primary); }
.b2bp-live-search .b2bp-live-search-input,
.b2bp-live-search .b2bp-live-search-input[type="search"] {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 8px 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 40px;
}
.b2bp-live-search-form .b2bp-live-search-submit {
  min-width: 78px;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}
.b2bp-live-search--header .b2bp-live-search-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.b2bp-live-search-results {
  top: calc(100% + 7px);
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: 14px !important;
  background: var(--b2bp-surface) !important;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--b2bp-primary) 13%, transparent) !important;
}

/* Catalogue search remains compact and now also appears on populated brands. */
.b2bp-catalog-search {
  display: grid !important;
  grid-template-columns: minmax(190px, .55fr) minmax(320px, 1.45fr) !important;
  align-items: center;
  gap: clamp(18px, 3vw, 34px) !important;
  margin: 0 0 clamp(24px, 3vw, 34px) !important;
  padding: clamp(18px, 2.5vw, 24px) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-md) !important;
  background: color-mix(in srgb, var(--b2bp-surface) 86%, transparent) !important;
  box-shadow: none !important;
}
.b2bp-catalog-search-copy { display: grid; gap: 4px; min-width: 0; }
.b2bp-catalog-search-copy strong { font-size: 16px; line-height: 1.25; }
.b2bp-catalog-search > .b2bp-live-search { min-width: 0; }

/* ========================================================================== */
/* Responsive navigation — exact IBALG interaction model                      */
/* ========================================================================== */


@media (max-width: 980px) {
  
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  .b2bp-catalog-search { grid-template-columns: 1fr !important; gap: 14px !important; }
}



@media (max-width: 680px) {
  
  
  .b2bp-custom-logo { max-width: 155px; max-height: 34px; }
  
  
  
  
  .b2bp-live-search-form { grid-template-columns: 38px minmax(0, 1fr) auto !important; min-height: 52px; }
  .b2bp-live-search-form .b2bp-live-search-submit { min-width: 70px; padding-inline: 10px !important; }
}

/* ========================================================================== */
/* Homepage product section layouts                                            */
/* ========================================================================== */
.b2bp-home-product-collection { position: relative; margin-top: clamp(22px, 3vw, 32px); }
.b2bp-home-product-collection .woocommerce { width: 100%; }

.b2bp-home-product-collection--grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(var(--b2bp-home-columns), minmax(0, 1fr)) !important;
  gap: var(--b2bp-product-gap) !important;
  margin: 0 !important;
}
.b2bp-home-product-collection--grid ul.products::before,
.b2bp-home-product-collection--grid ul.products::after { display: none !important; }
.b2bp-home-product-collection--grid ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.b2bp-home-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}
.b2bp-home-carousel-controls button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 14%, transparent);
  border-radius: 14px;
  background: var(--b2bp-beige);
  color: var(--b2bp-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--b2bp-transition), background var(--b2bp-transition), color var(--b2bp-transition);
}
.b2bp-home-carousel-controls button:hover,
.b2bp-home-carousel-controls button:focus-visible {
  background: var(--b2bp-primary);
  color: #fff;
  transform: translateY(-2px);
}

.b2bp-home-product-collection--carousel .b2bp-home-product-track { overflow: hidden; }
.b2bp-home-product-collection--carousel ul.products {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  gap: var(--b2bp-product-gap) !important;
  margin: 0 !important;
  padding: 2px 2px 8px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.b2bp-home-product-collection--carousel ul.products::-webkit-scrollbar { display: none; }
.b2bp-home-product-collection--carousel ul.products::before,
.b2bp-home-product-collection--carousel ul.products::after { display: none !important; }
.b2bp-home-product-collection--carousel ul.products li.product {
  float: none !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  scroll-snap-align: start;
}

.b2bp-home-cols-2.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - var(--b2bp-product-gap)) / 2); }
.b2bp-home-cols-3.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 3); }
.b2bp-home-cols-4.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 4); }
.b2bp-home-cols-5.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 5); }
.b2bp-home-cols-6.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 6); }

@media (max-width: 980px) {
  .b2bp-home-product-collection--grid ul.products { grid-template-columns: repeat(var(--b2bp-home-columns-tablet), minmax(0, 1fr)) !important; }
  .b2bp-home-cols-tablet-2.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - var(--b2bp-product-gap)) / 2); }
  .b2bp-home-cols-tablet-3.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 3); }
  .b2bp-home-cols-tablet-4.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - (var(--b2bp-product-gap) + var(--b2bp-product-gap) + var(--b2bp-product-gap))) / 4); }
}

@media (max-width: 680px) {
  .b2bp-home-product-collection--grid ul.products { grid-template-columns: repeat(var(--b2bp-home-columns-mobile), minmax(0, 1fr)) !important; }
  .b2bp-home-cols-mobile-1.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: minmax(82%, 1fr); }
  .b2bp-home-cols-mobile-2.b2bp-home-product-collection--carousel ul.products { grid-auto-columns: calc((100% - var(--b2bp-product-gap)) / 2); }
  .b2bp-home-carousel-controls { justify-content: flex-start; }
  .b2bp-home-carousel-controls button { width: 42px; height: 42px; }
}

/* ========================================================================== */
/* Compact brand profile hero                                                  */
/* ========================================================================== */
.b2bp-brand-profile-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr) !important;
  min-height: 0 !important;
  margin: 0 0 clamp(30px, 4vw, 46px) !important;
  overflow: hidden;
  border-radius: var(--b2bp-radius-lg) !important;
}
.b2bp-brand-profile-copy {
  padding: clamp(30px, 4vw, 48px) !important;
}
.b2bp-brand-profile-copy .b2bp-heading-xl {
  margin: 8px 0 16px !important;
  font-size: clamp(38px, 4.5vw, 62px) !important;
}
.b2bp-brand-profile-copy .b2bp-lead {
  max-width: 650px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
}
.b2bp-brand-profile-actions { margin-top: 22px !important; }
.b2bp-brand-profile-logo-wrap {
  min-height: 260px !important;
  padding: clamp(26px, 3.5vw, 42px) !important;
}
.b2bp-brand-profile-logo {
  width: 100%;
  max-width: 360px !important;
  min-height: 180px !important;
  padding: 22px !important;
}
.b2bp-brand-profile-logo img {
  max-width: 100% !important;
  max-height: 190px !important;
  object-fit: contain;
}

@media (max-width: 820px) {
  .b2bp-brand-profile-hero { grid-template-columns: 1fr !important; }
  .b2bp-brand-profile-logo-wrap { min-height: 210px !important; }
  .b2bp-brand-profile-logo { max-width: 320px !important; min-height: 150px !important; }
  .b2bp-brand-profile-logo img { max-height: 155px !important; }
}

/* ========================================================================== */
/* Single product — balanced open layout                                       */
/* ========================================================================== */
