/* V234 Customer Portal Home Professional */
.home-pro-hero{position:relative;overflow:hidden;border:1px solid rgba(219,234,254,.9);border-radius:32px;background:radial-gradient(circle at 88% 8%,rgba(255,255,255,.36) 0 130px,transparent 131px),linear-gradient(135deg,#0f766e 0%,#0f8f83 45%,#2563eb 100%);padding:30px;color:#fff;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:24px;margin-bottom:18px;box-shadow:0 22px 55px rgba(15,118,110,.23)}
.home-pro-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:270px}.home-pro-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.16);padding:9px 13px;border-radius:999px;font-weight:950;color:#fff;margin-bottom:14px;backdrop-filter:blur(8px)}
.home-pro-copy h1{font-size:clamp(32px,5vw,56px);line-height:1.02;letter-spacing:-.045em;margin:0 0 14px;font-weight:1000;max-width:760px}.home-pro-copy p{font-size:18px;line-height:1.65;margin:0 0 20px;color:#e0f2fe;font-weight:850;max-width:680px}.home-pro-actions{display:flex;flex-wrap:wrap;gap:12px}.home-btn{min-height:54px;border-radius:18px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-weight:1000;box-shadow:0 12px 28px rgba(15,23,42,.16)}.home-btn.primary{background:#fff;color:#0f172a}.home-btn.light{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);color:#fff;backdrop-filter:blur(9px)}
.home-pro-panel{position:relative;z-index:1;display:grid;gap:12px;align-content:center}.home-step{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:24px;padding:16px;display:flex;align-items:center;gap:14px;backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}.home-step .home-svg{width:50px;height:50px;border-radius:18px;background:#fff;color:#0f766e;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(15,23,42,.16)}.home-step b{display:block;font-size:17px;color:#fff}.home-step small{display:block;color:#dbeafe;font-weight:850;margin-top:3px}.home-svg svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}.home-pro-badge .home-svg,.home-btn .home-svg,.home-section-head a .home-svg{width:auto;height:auto;border-radius:0;background:transparent;box-shadow:none;color:currentColor;display:inline-flex}.home-pro-badge .home-svg svg,.home-btn .home-svg svg,.home-section-head a .home-svg svg{width:18px;height:18px}
.home-pro-search{background:#fff;border:1px solid #e5edf6;border-radius:28px;padding:16px;margin-bottom:18px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.home-search-form{display:grid!important;grid-template-columns:1fr 190px!important;gap:12px!important}.home-search-box{height:58px!important;border-radius:20px!important;background:#f8fafc!important;border:1px solid #dbe4ef!important}.home-search-box .home-svg{color:#0f766e}.home-search-box input{font-size:17px!important}.home-search-form select{height:58px!important;border-radius:20px!important;font-weight:950;background:#fff;border:1px solid #dbe4ef;color:#0f172a;padding:0 14px;outline:0}.home-pro-products{background:transparent}.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 14px}.home-section-head h2{margin:0;font-size:26px;letter-spacing:-.025em}.home-section-head p{margin:3px 0 0;color:#64748b;font-weight:850}.home-section-head a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;background:#fff;border:1px solid #dbeafe;color:#0f172a;border-radius:999px;padding:11px 15px;font-weight:950;box-shadow:0 10px 22px rgba(15,23,42,.05)}
.home-pro-products .product-card.global-product-card{border-radius:28px;border-color:#e2e8f0;box-shadow:0 16px 38px rgba(15,23,42,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.home-pro-products .product-card.global-product-card:hover{transform:translateY(-3px);box-shadow:0 22px 48px rgba(15,23,42,.11);border-color:#bfdbfe}.home-pro-products .product-media.global-media{border-radius:24px;background:linear-gradient(135deg,#f8fafc,#eef7ff)}.home-pro-products .product-body h3{font-size:18px}.home-pro-products .cart-mini.global-cart-mini .btn i{display:none!important}.home-pro-products .cart-mini.global-cart-mini .btn:before{content:'+';width:20px;height:20px;border-radius:8px;background:rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;font-weight:1000}
@media(max-width:900px){.home-pro-hero{grid-template-columns:1fr;padding:24px;border-radius:28px}.home-pro-copy{min-height:auto}.home-pro-panel{grid-template-columns:repeat(3,1fr)}.home-step{flex-direction:column;align-items:flex-start}.home-step .home-svg{width:46px;height:46px}.home-search-form{grid-template-columns:1fr!important}.home-section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.home-pro-hero{padding:20px;border-radius:26px;margin-top:2px}.home-pro-copy h1{font-size:32px}.home-pro-copy p{font-size:15px}.home-pro-actions{width:100%}.home-btn{flex:1;min-width:130px}.home-pro-panel{grid-template-columns:1fr;gap:9px}.home-step{flex-direction:row;padding:13px;border-radius:20px}.home-step .home-svg{width:42px;height:42px;border-radius:15px}.home-pro-search{padding:12px;border-radius:22px}.home-search-box,.home-search-form select{height:54px!important;border-radius:18px!important}.home-section-head h2{font-size:23px}.home-section-head p{display:none}.home-section-head a{width:100%;justify-content:center}.home-pro-products .product-card.global-product-card{border-radius:24px}}

/* V238 - Home products compact size only */
.home-pro-products #productsLiveGrid.global-products,
.home-pro-products .products-grid.global-products{
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;
  gap:12px!important;
}
.home-pro-products .product-card.global-product-card{
  border-radius:18px!important;
  padding:9px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
}
.home-pro-products .product-media.global-media{
  height:105px!important;
  border-radius:15px!important;
  margin:0 0 8px!important;
}
.home-pro-products .product-media strong{
  font-size:32px!important;
}
.home-pro-products .product-body{
  padding:0!important;
}
.home-pro-products .product-body h3,
.home-pro-products .product-card h3{
  font-size:14px!important;
  line-height:1.25!important;
  min-height:35px!important;
  margin:0 0 6px!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-pro-products .price-line.portal-price-line{
  margin:4px 0 8px!important;
}
.home-pro-products .price-line.portal-price-line b,
.home-pro-products .portal-price-line b{
  font-size:16px!important;
}
.home-pro-products .price-line.portal-price-line small{
  font-size:11px!important;
}
.home-pro-products .product-badges{
  margin:5px!important;
}
.home-pro-products .product-badges .stock{
  padding:5px 8px!important;
  font-size:10px!important;
}
.home-pro-products .cart-mini.global-cart-mini{
  grid-template-columns:58px 1fr!important;
  gap:6px!important;
  margin-top:6px!important;
}
.home-pro-products .cart-mini.global-cart-mini input{
  height:36px!important;
  border-radius:11px!important;
  font-size:13px!important;
}
.home-pro-products .cart-mini.global-cart-mini .btn{
  min-height:36px!important;
  height:36px!important;
  border-radius:11px!important;
  padding:0 10px!important;
  font-size:12px!important;
}
.home-pro-products .cart-mini.global-cart-mini .btn:before{
  width:16px!important;
  height:16px!important;
  border-radius:6px!important;
  font-size:12px!important;
}
@media(max-width:760px){
  .home-pro-products #productsLiveGrid.global-products,
  .home-pro-products .products-grid.global-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .home-pro-products .product-media.global-media{height:92px!important;}
}
@media(max-width:380px){
  .home-pro-products #productsLiveGrid.global-products,
  .home-pro-products .products-grid.global-products{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .home-pro-products .cart-mini.global-cart-mini{grid-template-columns:1fr!important;}
}

/* V240 - Mobile home products: 3 products in one row */
@media(max-width:760px){
  .home-pro-products #productsLiveGrid.global-products,
  .home-pro-products .products-grid.global-products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .home-pro-products .product-card.global-product-card{
    border-radius:12px!important;
    padding:5px!important;
    min-width:0!important;
  }
  .home-pro-products .product-media.global-media{
    height:48px!important;
    border-radius:10px!important;
    margin-bottom:4px!important;
  }
  .home-pro-products .product-media strong{
    font-size:18px!important;
  }
  .home-pro-products .product-body h3,
  .home-pro-products .product-card h3{
    font-size:10px!important;
    line-height:1.15!important;
    min-height:23px!important;
    margin-bottom:3px!important;
    -webkit-line-clamp:2;
  }
  .home-pro-products .price-line.portal-price-line{
    margin:2px 0 4px!important;
  }
  .home-pro-products .price-line.portal-price-line b,
  .home-pro-products .portal-price-line b{
    font-size:11px!important;
  }
  .home-pro-products .price-line.portal-price-line small,
  .home-pro-products .portal-price-line small{
    display:none!important;
  }
  .home-pro-products .product-badges,
  .home-pro-products .product-badges .stock{
    display:none!important;
  }
  .home-pro-products .cart-mini.global-cart-mini{
    grid-template-columns:1fr!important;
    gap:4px!important;
    margin-top:4px!important;
  }
  .home-pro-products .cart-mini.global-cart-mini input{
    height:26px!important;
    border-radius:8px!important;
    font-size:10px!important;
    padding:0 4px!important;
  }
  .home-pro-products .cart-mini.global-cart-mini .btn{
    min-height:26px!important;
    height:26px!important;
    border-radius:8px!important;
    padding:0 4px!important;
    font-size:0!important;
  }
  .home-pro-products .cart-mini.global-cart-mini .btn:before{
    content:'+'!important;
    width:16px!important;
    height:16px!important;
    border-radius:6px!important;
    font-size:12px!important;
    margin:0!important;
  }
}
@media(max-width:340px){
  .home-pro-products #productsLiveGrid.global-products,
  .home-pro-products .products-grid.global-products{
    gap:5px!important;
  }
  .home-pro-products .product-card.global-product-card{padding:4px!important;}
  .home-pro-products .product-media.global-media{height:42px!important;}
  .home-pro-products .product-body h3,
  .home-pro-products .product-card h3{font-size:9px!important;}
}

/* V241 Qty plus/minus professional controls */
.qty-stepper{height:46px;border:1px solid #dbe4ef;border-radius:16px;background:#fff;display:grid;grid-template-columns:34px 1fr 34px;align-items:center;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.qty-stepper input{width:100%;height:44px;border:0!important;background:transparent!important;text-align:center;font-weight:950;color:#0f172a;outline:0;padding:0!important;min-width:0}
.qty-stepper input::-webkit-outer-spin-button,.qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-stepper input[type=number]{-moz-appearance:textfield}
.qty-step{width:34px;height:44px;border:0;background:#f1f5f9;color:#0f766e;font-size:18px;font-weight:950;cursor:pointer;display:flex;align-items:center;justify-content:center}
.qty-step:hover{background:#e0f2fe;color:#075985}
.qty-step:active{transform:scale(.96)}
.cart-mini.global-cart-mini{grid-template-columns:96px 1fr!important}
.detail-cart{display:grid;grid-template-columns:130px auto;gap:10px;align-items:center}
.cart-row-stepper{max-width:110px}
.cart-row-stepper.cart-min-error{border-color:#fecaca!important;background:#fff1f2!important;box-shadow:0 0 0 4px rgba(239,68,68,.12)!important}
@media(max-width:640px){.cart-mini.global-cart-mini{grid-template-columns:1fr!important}.portal-qty-stepper{height:38px}.portal-qty-stepper input{height:36px;font-size:12px}.portal-qty-stepper .qty-step{height:36px;width:28px;font-size:16px}.detail-cart{grid-template-columns:1fr}.cart-row-stepper{max-width:94px;height:40px}.cart-row-stepper input{height:38px}.cart-row-stepper .qty-step{height:38px;width:28px}}

/* V242 - Home products: keep qty number visible inside plus/minus control */
.home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper,
.home-pro-products .cart-mini.global-cart-mini [data-qty-stepper]{
  display:grid!important;
  grid-template-columns:32px minmax(34px,1fr) 32px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
.home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper input,
.home-pro-products .cart-mini.global-cart-mini [data-qty-stepper] input[type="number"]{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  min-width:28px!important;
  color:#0f172a!important;
  background:#fff!important;
  text-align:center!important;
  font-weight:950!important;
  line-height:1!important;
  z-index:1!important;
}
.home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper .qty-step,
.home-pro-products .cart-mini.global-cart-mini [data-qty-stepper] .qty-step{
  flex:0 0 auto!important;
  z-index:2!important;
}
@media(max-width:760px){
  .home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper,
  .home-pro-products .cart-mini.global-cart-mini [data-qty-stepper]{
    height:26px!important;
    grid-template-columns:22px minmax(24px,1fr) 22px!important;
    border-radius:8px!important;
  }
  .home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper input,
  .home-pro-products .cart-mini.global-cart-mini [data-qty-stepper] input[type="number"]{
    height:24px!important;
    min-width:24px!important;
    font-size:11px!important;
    padding:0!important;
  }
  .home-pro-products .cart-mini.global-cart-mini .portal-qty-stepper .qty-step,
  .home-pro-products .cart-mini.global-cart-mini [data-qty-stepper] .qty-step{
    width:22px!important;
    height:24px!important;
    font-size:14px!important;
  }
}

/* V390 Customer portal product image compatibility */
.product-media.global-media{position:relative;overflow:hidden}
.product-media.global-media>img,.detail-main-image>img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.product-image-fallback{width:100%;height:100%;min-height:inherit;align-items:center;justify-content:center;font-size:34px;font-weight:900;color:#2563eb;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
