/* ========================================================================== 
   BEIRUT LEBANESE FOODS
   PRODUCTS PAGE - CLEAN ORGANIZED CSS
   ========================================================================== */


/* ========================================================================== 
   01. PRODUCTS PAGE BASE
   ========================================================================== */

html,
body,
main{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}

.products-page-template{
  overflow:hidden;
  background:#fff;
  color:var(--blf-text);
  font-family:var(--font-body);
}

.products-page-template *,
.products-page-template *::before,
.products-page-template *::after{
  box-sizing:border-box;
}

.products-page-template img{
  max-width:100%;
  height:auto;
}

.products-page-template .container{
  width:min(100% - 32px, 1400px);
  max-width:1400px;
  margin:0 auto;
}


/* ========================================================================== 
   02. PRODUCTS HERO SECTION
   ========================================================================== */

.products-hero-template{
  position:relative;
  min-height:580px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12)),
    url("../images/hero/hero-products.webp") center/cover no-repeat;
}

.products-hero-template::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
  linear-gradient(
    to bottom,
    rgba(0,0,0,.80) 0px,
    rgba(0,0,0,.20) 130px,
    rgba(0,0,0,.12) 180px,
    rgba(0,0,0,.12) 100%
),
  animation:productsHeroZoom 18s ease-in-out infinite alternate;
}

.products-hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(0,0,0,.08);
}

.products-hero-content{
  position:relative;
  z-index:2;
  max-width:860px;
  margin:0 auto;
  padding-top:120px;
  text-align:center;
  transform:translateY(40px);
}

.products-kicker{
  display:inline-block;
  margin-bottom:20px;
  padding:8px 20px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}

.products-hero-content h1{
  margin:0 0 20px;
  color:#fff;
  font-family:var(--font-heading);
  font-size:60px;
  line-height:1.08;
  font-weight:700;
  text-shadow:0 15px 40px rgba(0,0,0,.35);
}

.products-line{
  width:300px;
  height:3px;
  margin:0 auto 26px;
  background:var(--blf-green);
}

.products-hero-content p{
  max-width:720px;
  margin:0 auto 30px;
  color:#eef3e3;
  font-size:17px;
  line-height:1.8;
}

.products-hero-content .btn{
  min-height:28px;
  padding:13px 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50px;
  background:var(--blf-green);
  color:#fff;
  font-weight:800;
  letter-spacing:1px;
  text-decoration:none;
  animation:floatProductsBtn 3s ease-in-out infinite;
}

.products-hero-content .btn:hover{
  background:#fff;
  color:#222;
}


/* ========================================================================== 
   03. PRODUCTS CONFIGURATOR SECTION
   ========================================================================== */

.products-configurator-section{
  position:relative;
  width:100%;
  padding:95px 0;
  overflow:visible;
  background:#fff;
}

.products-configurator-section::before{
  content:"";
  position:absolute;
  inset:0;

}

.products-configurator-section > .container,
.products-page-layout{
  position:relative;
  z-index:2;
}


/* ========================================================================== 
   04. MAIN PRODUCTS LAYOUT
   ========================================================================== */

.products-page-layout{
  width:min(100% - 32px, 1800px);
  max-width:1800px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:220px minmax(700px, 1fr) 360px;
  gap:24px;
  align-items:start;
  box-sizing:border-box;
}

.catalog-section,
.configurator-section,
.product-category-tabs,
.products-section,
.productGrid,
#productGrid{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.catalog-section,
.products-section{
  overflow:visible;
}


/* ========================================================================== 
   05. MOBILE ACTION BAR
   ========================================================================== */

.mobile-products-toolbar{
  display:none;
  width:min(100% - 32px, 1400px);
  max-width:1400px;
  margin:0 auto 18px;
  justify-content:flex-end;
}

.mobile-config-open{
  min-height:44px;
  padding:0 20px;
  border:0;
  border-radius:50px;
  background:var(--blf-green-dark);
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(120,145,49,.25);
}


/* ========================================================================== 
   06. PRODUCT CATEGORY NAVIGATION
   ========================================================================== */

.product-category-tabs{
  position:sticky;
  top:100px;
  align-self:start;
  height:auto;
  max-height:none;
  overflow:visible;
  z-index:20;
  padding:18px;
  border:1px solid var(--blf-border);
  border-left:5px solid var(--blf-green-dark);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--blf-shadow-soft);
  box-sizing:border-box;
  animation:productsFadeUp .75s ease both;
}

.product-category-tabs::-webkit-scrollbar{
  width:5px;
  height:4px;
}

.product-category-tabs::-webkit-scrollbar-thumb{
  background:var(--blf-gold);
  border-radius:20px;
}

.product-category-tabs .tab-button,
.tab-button{
  width:100%;
  min-height:44px;
  margin:0 0 9px;
  padding:10px 12px;
  border:1px solid rgba(120,145,49,.14);
  border-radius:10px;
  background:var(--blf-white,#fff);
  color:var(--blf-dark);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  text-align:left;
  cursor:pointer;
  transition:transform .32s ease, background .32s ease, border-color .32s ease, box-shadow .32s ease, color .32s ease;
    text-transform: capitalize;

}

.product-category-tabs .tab-button i,
.tab-button i{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:50%;
  background:rgba(169,205,46,.14);
  color:var(--blf-green-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}

.product-category-tabs .tab-button strong,
.tab-button strong{
  font-family:var(--font-body);
  font-size:13px;
  font-weight:900;
  letter-spacing:.3px;
}

.product-category-tabs .tab-button:hover,
.tab-button:hover{
  transform:translateX(3px) translateY(-1px);
  background:#fcfdf8;
  border-color:rgba(169,205,46,.38);
  box-shadow:
    0 10px 26px rgba(0,0,0,.06),
    0 4px 12px rgba(169,205,46,.10);
}
.product-category-tabs .tab-button:hover::before,
.tab-button:hover::before{
  opacity:1;
}

.product-category-tabs .tab-button:hover i,
.tab-button:hover i{
  transform:scale(1.08);
  background:rgba(169,205,46,.20);
}
.product-category-tabs .tab-button.active,
.tab-button.active{
  background:linear-gradient(135deg, var(--blf-green-dark), var(--blf-green));
  color:var(--blf-white,#fff);
  border-color:transparent;
  box-shadow:0 16px 34px rgba(120,145,49,.24);
}

.product-category-tabs .tab-button.active i,
.tab-button.active i{
  background:rgba(255,255,255,.18);
  color:#fff;
}


/* ========================================================================== 
   07. PRODUCT CATALOG AREA
   ========================================================================== */

.catalog-section{
  padding:0px;
  border-radius:28px;
  animation:productsFadeUp .85s ease both;
}

.products-section{
  width:100%;
}


/* ========================================================================== 
   08. PRODUCT GRID
   --------------------------------------------------------------------------
   Required grid behavior:
   - Large desktop: 4 cards
   - Small desktop / laptop: 3 cards
   - Tablet: 2 cards
   - Mobile: 1 card
   ========================================================================== */

.productGrid,
#productGrid{
  width:100%;
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:22px;
  transition:opacity .25s ease, transform .25s ease;
}

#productGrid.products-switching,
.productGrid.products-switching{
  opacity:.25;
  transform:translateY(12px);
}

.product-card-col{
  min-width:0;
}


/* ========================================================================== 
   09. PRODUCT CARD
   ========================================================================== */

.product-card{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--blf-white,#e7f9e1);
  border:2px solid rgba(120,145,49,.12);
border-radius:28px 0px 28px 28px;
box-shadow:0 16px 35px rgba(0,0,0,.07);
  transition:transform .38s ease, box-shadow .38s ease, border-color .38s ease;
}

.product-card:hover{
  transform:translateY(-10px);
  border-color:rgba(169,205,46,.42);
  box-shadow:var(--blf-shadow-hover);
}

.product-card-image{
  position:relative;
  height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0px;
  background:
    radial-gradient(circle at 50% 45%, rgba(169,205,46,.10), transparent 38%),
    #fafafa;
}

.product-card-image::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.12;
}

.product-card-image img{
  position:relative;
  z-index:2;
  max-width:100%;
  max-height:160px;
  object-fit:contain;
  filter:drop-shadow(0 12px 22px rgba(0,0,0,.10));
  transition:transform .45s ease, filter .45s ease;
}

.product-card:hover .product-card-image img{
  transform:scale(1.08) translateY(-3px);
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.13));
}

.product-card-body{
  padding:0px 10px 10px;
  text-align:center;
}

.product-card-body h5{
  min-height:42px;

  margin:0px;
  color:var(--text-main);
  font-size:16px;
  font-weight:700;
  line-height:1.2;
}

.heritage-label,
.heritage-label-inline{
  display:inline-block;
  margin-top:0px;
  color:var(--blf-gold) !important;
  font-size:14px;
  font-weight:300;
  opacity:.95;
}


/* ========================================================================== 
   10. PRODUCT CARD FOOTER BUTTONS
   ========================================================================== */

.product-card-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-top:auto;
}

.product-card-footer .btn,
.product-card-footer .btn-details-outline,
.product-card-footer .btn-beirut-olive{
  width:100%;
  max-width:165px; /* Adjustable button width */
  height:35px;
  min-height:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}


/* ========================================================================== 
   11. ALTERNATE CARD SUPPORT
   ========================================================================== */

.product-item,
.catalog-card{
  overflow:hidden;
  background:var(--blf-white,#fff);
  border:1px solid rgba(120,145,49,.12);
  border-radius:24px;
  box-shadow:0 16px 45px rgba(0,0,0,.07);
  transition:transform .38s ease, box-shadow .38s ease, border-color .38s ease;
}

.product-item:hover,
.catalog-card:hover{
  transform:translateY(-8px);
  border-color:rgba(169,205,46,.42);
  box-shadow:var(--blf-shadow-hover);
}

.product-item img,
.catalog-card img{
  transition:transform .45s ease, filter .45s ease;
}

.product-item:hover img,
.catalog-card:hover img{
  transform:scale(1.045);
}


/* ========================================================================== 
   12. EXPORT CONFIGURATOR - DESKTOP SIDEBAR
   ========================================================================== */

.configurator-section,
.configurator-section.sticky-sidebar{
  position:sticky;
  top:100px;
  align-self:start;
  height:auto;
  max-height:none;
  overflow:visible;
  z-index:20;
  padding:24px;
  background:var(--blf-white,#fff);
  border:1px solid var(--blf-border);
  border-radius:28px;
  box-shadow:var(--blf-shadow-soft);
  box-sizing:border-box;
  animation:productsFadeUp .95s ease both;
}


.configurator-close,
.configurator-backdrop{
  display:none;
}


/* ========================================================================== 
   13. CONFIGURATOR TEXT & FORM
   ========================================================================== */

.section-title,
.config-main-title,
.sticky-sidebar h2,
.configurator-section h2{
  color:var(--text-main);
  font-family:var(--font-heading);
  font-weight:700;
  line-height:1.15;
}

.config-main-title{
  margin:14px 0 12px;
  font-size:22px;
}

.section-subtitle,
.lead-text{
  margin-bottom:25px;
  color:var(--text-muted);
  line-height:1.8;
}

.manufacturer-tag{
  display:inline-block;
  padding:8px 18px;
  border-radius:50px;
  background:rgba(169,205,46,.14);
  color:var(--blf-green-dark);
  font-size:12px;
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
  box-shadow:0 10px 28px rgba(169,205,46,.12);
}

.configurator-form .form-group{
  margin-bottom:16px;
}

.configurator-form label,
.config-label{
  display:block;
  margin-bottom:8px;
  color:var(--text-main);
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
}

.configurator-form .form-control,
.form-control{
  width:100%;
  min-height:48px;
  padding:0 42px 0 14px;
  border:1px solid #d9dee5;
  border-radius:14px;
  background-color:#fff;
  color:var(--blf-dark);
  font-size:14px;
  font-weight:500;
  outline:none;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;

  /* Bigger custom arrow */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

.configurator-form .form-control:hover,
.form-control:hover{
  border-color:#b8bec7;
}

.configurator-form .form-control:focus,
.form-control:focus{
  border-color:var(--blf-green-dark);
  box-shadow:0 0 0 4px rgba(120,145,49,.14);
}
.configurator-form select:valid,
select.form-control:valid{
  border-color:#b5aa28;
  background-color:#f7f3e8;
}


/* ========================================================================== 
   14. BUTTONS
   ========================================================================== */

.btn-primary,
.btn-beirut-olive,
.btn-details-outline{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 24px;
  border:0;
  border-radius:50px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:transform .32s ease, background .32s ease, box-shadow .32s ease;
}

.btn-primary,
.btn-beirut-olive{
  position:relative;
  overflow:hidden;
  background:var(--blf-green-dark);
  color:var(--blf-white,#fff);
  gap:10px;
}

.btn-details-outline{
  background:var(--text-main,#25221d);
  color:var(--blf-white,#fff);
  gap:10px;
}

.btn-primary::before,
.btn-beirut-olive::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:75%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform:skewX(-22deg);
  transition:.65s ease;
}

.btn-primary:hover::before,
.btn-beirut-olive:hover::before{
  left:130%;
}

.btn-primary:hover,
.btn-beirut-olive:hover{
  transform:translateY(-3px);
  background:var(--blf-green);
  color:var(--blf-white,#fff);
  box-shadow:0 18px 42px rgba(120,145,49,.24);
}

.btn-details-outline:hover{
  transform:translateY(-3px);
  background:var(--blf-green-dark);
  color:var(--blf-white,#fff);
  box-shadow:0 12px 28px rgba(120,145,49,.22);
}


/* ========================================================================== 
   15. LOADING STATE
   ========================================================================== */

#loading-container,
.loading-container{
  padding:80px 20px !important;
  text-align:center !important;
}

#loading-container .spinner-border,
.loading-container .spinner-border{
  width:34px !important;
  height:34px !important;
  border-width:3px !important;
  border-color:rgba(120,145,49,.18) !important;
  border-top-color:var(--blf-green-dark) !important;
  color:var(--blf-green-dark) !important;
  animation:productsSoftSpin .9s linear infinite !important;
}

.loading-message{
  margin-top:16px;
  color:var(--blf-green-dark);
  font-size:13px;
  font-weight:900;
  letter-spacing:1.1px;
  text-transform:uppercase;
}


/* ========================================================================== 
   16. LOGISTICS AREA
   ========================================================================== */

.logistics-focus-area{
  margin-top:16px;
  padding:14px;
  border:1px solid var(--blf-border);
  border-radius:16px;
  background:var(--blf-soft-bg);
}

.pallet-top-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:.85rem;
  font-weight:700;
  color:#333;
}

.pallet-top-line i{
  color:var(--blf-green-dark);
}

.pallet-bar{
  width:100%;
  height:12px;
  margin-top:8px;
  overflow:hidden;
  border-radius:6px;
  background:#eee;
  border:1px solid #ddd;
}

#palletProgressBar{
  width:0%;
  height:100%;
  background:var(--blf-green-dark);
  transition:width .4s ease;
}

#palletMessage,
#qtyLogisticsHint{
  margin-top:8px;
  color:var(--text-muted);
  font-size:12px;
  line-height:1.5;
}

#qtyLogisticsHint{
  color:var(--blf-green-dark);
  font-weight:800;
}


/* ========================================================================== 
   17. CONFIGURATOR SUMMARY & MINI CART
   ========================================================================== */

.configurator-summary,
.mini-cart-summary{
  margin-top:22px;
  padding:20px;
  background:var(--blf-soft-bg);
  border:1px solid var(--blf-border);
  border-radius:20px;
  box-shadow:0 10px 28px rgba(0,0,0,.04);
}

.configurator-summary h3,
.mini-cart-summary h4{
  margin:0 0 14px;
  color:var(--text-main);
  font-family:var(--font-heading);
  font-size:22px;
  line-height:1.2;
}

.configurator-summary p{
  margin:0 0 9px;
  color:var(--text-muted);
  font-size:14px;
}

.mini-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  padding:12px;
  border-left:4px solid var(--blf-green-dark);
  border-radius:10px;
  background:var(--blf-white,#fff);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.btn-view-full-quote{
  display:block;
  margin-top:15px;
  text-align:center;
  color:var(--blf-green-dark);
  font-weight:900;
  text-decoration:none;
}


/* ========================================================================== 
   18. ANIMATIONS
   ========================================================================== */

.product-animate{
  opacity:0;
  transform:translateY(26px) scale(.97);
  animation:productFadeUp .55s ease forwards;
}

.config-active-pulse{
  animation:productsConfigPulse 1.5s ease both;
}

@keyframes productsHeroZoom{
  from{transform:scale(1);}
  to{transform:scale(1.07);}
}

@keyframes floatProductsBtn{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}

@keyframes productsSoftSpin{
  to{transform:rotate(360deg);}
}

@keyframes productFadeUp{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes productsFadeUp{
  from{
    opacity:0;
    transform:translateY(34px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes productsConfigPulse{
  0%{
    box-shadow:0 0 0 0 rgba(169,205,46,.38);
  }

  70%{
    box-shadow:0 0 0 18px rgba(169,205,46,0);
  }

  100%{
    box-shadow:var(--blf-shadow-soft);
  }
}


/* ========================================================================== 
   19. DESKTOP RESPONSIVE
   ========================================================================== */

/* Large desktop: 4 product cards */
@media(min-width:1400px){

  .products-page-layout{
    grid-template-columns:200px minmax(0,1fr) 320px;
    gap:24px;
  }

  #productGrid,
  .productGrid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:20px !important;
  }
}

/* Small desktop / laptop: 3 product cards */
@media(min-width:992px) and (max-width:1399px){

  .products-page-layout{
    grid-template-columns:180px minmax(0,1fr) 280px;
    gap:18px;
    padding:0 14px;
  }

  .catalog-section{
    padding:16px;
  }

  #productGrid,
  .productGrid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:16px !important;
  }

  .configurator-section,
  .configurator-section.sticky-sidebar{
    top:96px;
    max-height:none;
    overflow:visible;
  }

  .product-category-tabs{
    top:96px;
    max-height:calc(100vh - 116px);
  }
}


/* ========================================================================== 
   20. TABLET RESPONSIVE
   ========================================================================== */

/* Tablet: 2 product cards, horizontal category tabs, configurator drawer */
@media(min-width:768px) and (max-width:991px){

  .products-configurator-section{
    padding:56px 0;
  }

  .products-page-layout{
    display:block;
    width:calc(100% - 28px);
    padding:0;
  }

  .mobile-products-toolbar{
    display:flex !important;
    justify-content:center;
    width:calc(100% - 28px);
    margin:0 auto 16px;
  }

  .mobile-config-open{
    width:auto;
    min-width:230px;
    max-width:100%;
  }

  .product-category-tabs{
    position:sticky;
    top:76px;
    z-index:25;
    width:100%;
    max-height:none;
    margin:0 0 18px;
    padding:10px;
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    border-left:0;
    border-radius:20px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .product-category-tabs .tab-button,
  .tab-button{
    flex:0 0 88px;
    width:88px;
    min-width:88px;
    min-height:72px;
    margin:0;
    padding:8px 7px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:7px;
    border-radius:16px;
    scroll-snap-align:start;
    transform:none;
  }

  .product-category-tabs .tab-button i,
  .tab-button i{
    width:32px;
    height:32px;
    flex:0 0 32px;
    font-size:14px;
  }

  .product-category-tabs .tab-button strong,
  .tab-button strong{
    font-size:10.5px;
    line-height:1.15;
  }

  .catalog-section{
    width:100%;
    padding:16px;
    border-radius:22px;
  }

  #productGrid,
  .productGrid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:18px !important;
  }
}


/* ========================================================================== 
   21. MOBILE RESPONSIVE
   ========================================================================== */

/* Mobile: 1 product card */
@media(max-width:767px){

  .products-hero-template{
    min-height:470px;
  }

  .products-hero-content{
    padding-top:78px;
    transform:none;
  }

  .products-hero-content h1{
    font-size:clamp(32px,8vw,42px);
  }

  .products-hero-content p{
    font-size:15px;
    line-height:1.7;
  }

  .products-configurator-section{
    padding:50px 0;
  }

  .products-page-layout{
    display:block;
    width:calc(100% - 20px);
    padding:0;
  }

  .mobile-products-toolbar{
    display:flex !important;
    justify-content:center;
    width:calc(100% - 20px);
    margin:0 auto 16px;
  }

  .mobile-config-open{
    width:100%;
    min-width:0;
    justify-content:center;
  }

  .product-category-tabs{
    position:sticky;
    top:66px;
    z-index:25;
    width:100%;
    max-height:none;
    margin:0 0 16px;
    padding:9px;
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    border-left:0;
    border-radius:18px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .product-category-tabs .tab-button,
  .tab-button{
    flex:0 0 74px;
    width:74px;
    min-width:74px;
    min-height:66px;
    margin:0;
    padding:7px 6px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    border-radius:15px;
    scroll-snap-align:start;
    transform:none;
  }

  .product-category-tabs .tab-button i,
  .tab-button i{
    width:31px;
    height:31px;
    flex:0 0 31px;
    font-size:13px;
  }

  .product-category-tabs .tab-button strong,
  .tab-button strong{
    font-size:10px;
    line-height:1.1;
  }

  .catalog-section{
    padding:12px;
    border-radius:18px;
  }

  #productGrid,
  .productGrid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .product-card-image{
    height:170px;
    padding:12px;
  }

  .product-card-image img{
    max-height:130px;
  }

  .product-card-body{
    padding:13px 10px 6px;
  }

  .product-card-body h5{
    min-height:38px;
    font-size:17px;
    line-height:1.3;
  }

  .heritage-label,
  .heritage-label-inline{
    font-size:13px;
  }

  .product-card-footer{
    gap:8px;
  }

  .product-card-footer .btn,
  .product-card-footer .btn-details-outline,
  .product-card-footer .btn-beirut-olive{
    height:40px;
    min-height:40px;
    padding:0 8px;
    font-size:10px;
    letter-spacing:.25px;
    white-space:nowrap;
  }
}

/* ========================================================================== 
   22. CONFIGURATOR DRAWER RESPONSIVE
   ========================================================================== */

/* Desktop: keep configurator inside the third column without internal scroll */
@media(min-width:1201px){

  .products-page-layout{
    display:grid !important;
    grid-template-columns:210px minmax(0,1fr) 340px !important;
    gap:24px !important;
    align-items:start !important;
  }

  .mobile-products-toolbar,
  .configurator-backdrop,
  .configurator-close{
    display:none !important;
  }

  .configurator-section,
  .configurator-section.sticky-sidebar{
    position:sticky !important;
    top:100px !important;
    right:auto !important;
    left:auto !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    z-index:20 !important;
    margin:0 !important;
    padding:24px !important;
    transform:none !important;
    animation:none !important;
    border-radius:26px !important;
    box-shadow:var(--blf-shadow-soft) !important;
  }
}

/* Laptop / tablet / mobile: configurator becomes offcanvas drawer below header */
@media(max-width:1200px){

  .mobile-products-toolbar{
    display:flex !important;
    width:94% !important;
    max-width:1400px !important;
    margin:0 auto 18px !important;
    justify-content:center !important;
    position:relative !important;
    z-index:30 !important;
  }

  .mobile-config-open{
    min-height:44px !important;
    padding:0 20px !important;
    border:0 !important;
    border-radius:50px !important;
    background:var(--blf-green-dark) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    letter-spacing:.7px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    cursor:pointer !important;
    box-shadow:0 14px 34px rgba(120,145,49,.25) !important;
  }

  .products-page-layout{
    display:block !important;
  }

  .product-category-tabs{
    position:sticky !important;
    top:70px !important;
    z-index:25 !important;
    width:100% !important;
    max-height:none !important;
    margin-bottom:18px !important;
    padding:12px !important;
    display:flex !important;
    gap:10px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    border-left:0 !important;
    border-radius:22px !important;
    scroll-snap-type:x mandatory !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .product-category-tabs .tab-button,
  .tab-button{
    flex:0 0 84px !important;
    width:84px !important;
    min-width:84px !important;
    min-height:72px !important;
    margin:0 !important;
    padding:9px 8px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    gap:7px !important;
    scroll-snap-align:start !important;
    border-radius:18px !important;
    transform:none !important;
  }

  .product-category-tabs .tab-button i,
  .tab-button i{
    width:32px !important;
    height:32px !important;
    flex:0 0 32px !important;
    font-size:14px !important;
  }

  .product-category-tabs .tab-button strong,
  .tab-button strong{
    font-size:10.5px !important;
    line-height:1.15 !important;
  }

  .catalog-section{
    padding:14px !important;
    border-radius:20px !important;
  }

  #productGrid,
  .productGrid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:18px !important;
  }

  .configurator-backdrop{
    position:fixed !important;
    inset:0 !important;
    display:block !important;
    z-index:2147483646 !important;
    background:rgba(0,0,0,.58) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:.35s ease !important;
  }

  .configurator-backdrop.is-open{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  .configurator-section,
  .configurator-section.sticky-sidebar{
    position:fixed !important;
    top:86px !important;
    right:14px !important;
    left:auto !important;
    bottom:auto !important;
    width:360px !important;
    max-width:calc(100vw - 28px) !important;
    height:calc(100dvh - 106px) !important;
    max-height:calc(100dvh - 106px) !important;
    overflow-y:auto !important;
    z-index:2147483647 !important;
    margin:0 !important;
    padding:22px 18px !important;
    background:#fff !important;
    border-radius:24px !important;
    transform:translateX(125%) !important;
    transition:transform .38s ease !important;
    box-shadow:0 25px 80px rgba(0,0,0,.32) !important;
    animation:none !important;
  }

  .configurator-section.is-open,
  .configurator-section.sticky-sidebar.is-open{
    transform:translateX(0) !important;
  }

  .configurator-close{
    position:absolute !important;
    top:12px !important;
    right:12px !important;
    width:38px !important;
    height:38px !important;
    border:0 !important;
    border-radius:50% !important;
    background:var(--blf-green-dark) !important;
    color:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
    z-index:5 !important;
  }

  body.configurator-open{
    overflow:hidden !important;
  }
}

@media(max-width:767px){

  #productGrid,
  .productGrid{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:575px){

  .mobile-config-open{
    width:94% !important;
  }

  .configurator-section,
  .configurator-section.sticky-sidebar{
    top:82px !important;
    right:8px !important;
    width:calc(100vw - 16px) !important;
    max-width:calc(100vw - 16px) !important;
    height:calc(100dvh - 98px) !important;
    max-height:calc(100dvh - 98px) !important;
    padding:22px 14px !important;
    border-radius:20px !important;
  }

  .config-main-title{
    padding-right:44px !important;
    font-size:21px !important;
  }
}


/* ========================================================================== 
   23. VERY SMALL MOBILE
   ========================================================================== */

@media(max-width:380px){

  .products-page-layout,
  .mobile-products-toolbar{
    width:calc(100% - 16px);
  }

  .product-card-footer{
    grid-template-columns:1fr;
  }

  .product-card-footer .btn,
  .product-card-footer .btn-details-outline,
  .product-card-footer .btn-beirut-olive{
    width:100%;
  }
}


/* ========================================================================== 
   24. REDUCED MOTION SUPPORT
   ========================================================================== */

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}
/* Hide mobile configurator button when drawer is open */
body.configurator-open .mobile-products-toolbar{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Keep configurator above everything on mobile */
#productsConfigurator.is-open{
  z-index:99999 !important;
}

#configuratorBackdrop.is-open{
  z-index:99998 !important;
}
