/* NetPlus product quotation catalog */
.catalog-section{
  background:#f5f8fc;
  position:relative;
}
.catalog-intro-note{
  margin:18px 0 0;
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#526781;
  font-size:13px;
}
.catalog-intro-note strong{color:#063b8e}
.catalog-toolbar{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:30px;
  position:sticky;
  top:92px;
  z-index:16;
  background:rgba(245,248,252,.94);
  backdrop-filter:blur(14px);
  padding:14px 0 16px;
}
.product-search-wrap{
  position:relative;
  max-width:620px;
}
.product-search-wrap svg{
  width:20px;
  height:20px;
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#73839a;
  pointer-events:none;
}
.product-search{
  width:100%;
  min-height:50px;
  border:1px solid #d5dfed;
  border-radius:15px;
  background:#fff;
  padding:12px 18px 12px 48px;
  color:#10213f;
  font:inherit;
  outline:none;
  box-shadow:0 8px 24px rgba(6,29,74,.05);
}
.product-search:focus{
  border-color:#0a58c6;
  box-shadow:0 0 0 4px rgba(10,88,198,.10);
}
.catalog-filters{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
}
.catalog-filter{
  border:1px solid #d9e3ef;
  border-radius:999px;
  background:#fff;
  color:#314762;
  padding:9px 14px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  transition:.2s;
}
.catalog-filter:hover{
  border-color:#8eabd1;
  transform:translateY(-1px);
}
.catalog-filter.active{
  background:#063b8e;
  border-color:#063b8e;
  color:#fff;
  box-shadow:0 7px 20px rgba(6,59,142,.18);
}
.catalog-filter span{
  opacity:.72;
  margin-left:4px;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.product-card{
  background:#fff;
  border:1px solid #e0e8f3;
  border-radius:23px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(6,29,74,.07);
  display:flex;
  flex-direction:column;
  min-width:0;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 42px rgba(6,29,74,.12);
  border-color:#ccd9e9;
}
.product-card[hidden]{display:none!important}
.product-image{
  aspect-ratio:4/3;
  background:#eaf0f8;
  overflow:hidden;
  position:relative;
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
.product-card:hover .product-image img{transform:scale(1.035)}
.product-category-badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  background:rgba(4,23,53,.88);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px);
  padding:7px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.product-body{
  padding:21px 21px 20px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.product-body h3{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.25;
  color:#10213f;
}
.product-description{
  margin:0 0 14px;
  color:#64748b;
  font-size:13px;
  line-height:1.58;
}
.product-specs{
  margin:0 0 19px;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}
.product-specs li{
  color:#3e536e;
  font-size:12px;
  line-height:1.45;
  display:flex;
  gap:8px;
}
.product-specs li::before{
  content:"✓";
  color:#ff7a00;
  font-weight:900;
}
.product-bottom{
  margin-top:auto;
  border-top:1px solid #edf1f6;
  padding-top:16px;
}
.price-request{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.price-request strong{
  color:#063b8e;
  font-size:13px;
}
.price-request span{
  color:#7a899c;
  font-size:11px;
}
.add-quote-btn{
  width:100%;
  border:0;
  border-radius:13px;
  min-height:46px;
  padding:11px 15px;
  background:linear-gradient(135deg,#063b8e,#0a58c6);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:.2s;
}
.add-quote-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 9px 22px rgba(6,59,142,.20);
}
.add-quote-btn.added{
  background:#137b44;
}
.catalog-empty{
  text-align:center;
  background:#fff;
  border:1px dashed #cbd7e7;
  border-radius:20px;
  padding:38px;
  color:#667991;
}
.catalog-empty[hidden]{display:none}
.catalog-photo-note{
  text-align:center;
  color:#8390a2;
  font-size:11px;
  margin:25px auto 0;
}

/* Quote cart floating button */
.quote-cart-fab{
  position:fixed;
  right:92px;
  bottom:22px;
  z-index:82;
  min-height:58px;
  border:0;
  border-radius:999px;
  padding:0 20px;
  background:#063b8e;
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  box-shadow:0 14px 35px rgba(6,59,142,.32);
  font-weight:900;
}
.quote-cart-fab svg{width:21px;height:21px}
.quote-cart-count{
  min-width:26px;
  height:26px;
  border-radius:999px;
  padding:0 7px;
  display:grid;
  place-items:center;
  background:#ff7a00;
  color:#fff;
  font-size:12px;
}
.quote-cart-fab.pulse{animation:cartPulse .35s ease}
@keyframes cartPulse{
  50%{transform:scale(1.055)}
}

/* Cart drawer */
.quote-cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,16,42,.48);
  opacity:0;
  visibility:hidden;
  transition:.25s;
  z-index:90;
}
.quote-cart-overlay.open{
  opacity:1;
  visibility:visible;
}
.quote-cart-drawer{
  position:fixed;
  top:0;
  right:0;
  height:100dvh;
  width:min(470px,100%);
  background:#fff;
  z-index:91;
  transform:translateX(102%);
  transition:transform .3s ease;
  box-shadow:-24px 0 70px rgba(2,16,42,.22);
  display:flex;
  flex-direction:column;
}
.quote-cart-drawer.open{transform:translateX(0)}
.cart-header{
  padding:22px 22px 18px;
  border-bottom:1px solid #e7edf5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.cart-header h3{
  margin:0;
  font-size:22px;
  color:#10213f;
}
.cart-header p{
  margin:4px 0 0;
  color:#75859a;
  font-size:12px;
}
.cart-close{
  border:0;
  background:#eef3f8;
  color:#10213f;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.cart-items{
  padding:16px 20px 8px;
  overflow:auto;
  flex:1;
}
.cart-empty{
  text-align:center;
  padding:55px 20px;
  color:#708197;
}
.cart-empty strong{
  display:block;
  color:#10213f;
  margin-bottom:7px;
  font-size:18px;
}
.cart-item{
  padding:15px 0 17px;
  border-bottom:1px solid #edf1f6;
}
.cart-item-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
}
.cart-item-name{
  font-weight:900;
  color:#10213f;
  font-size:14px;
}
.cart-item-category{
  color:#7c8a9c;
  font-size:11px;
  margin-top:3px;
}
.cart-remove{
  border:0;
  background:none;
  color:#b42318;
  font-weight:800;
  cursor:pointer;
  padding:0;
  font-size:11px;
}
.cart-item-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  margin-top:12px;
}
.qty-control{
  display:inline-flex;
  align-items:center;
  border:1px solid #d8e1ec;
  border-radius:10px;
  overflow:hidden;
}
.qty-control button{
  width:34px;
  height:34px;
  border:0;
  background:#f5f8fc;
  cursor:pointer;
  color:#063b8e;
  font-weight:900;
}
.qty-control span{
  min-width:36px;
  text-align:center;
  font-size:13px;
  font-weight:900;
}
.cart-item-controls small{color:#7c8b9d}
.cart-spec-input{
  width:100%;
  border:1px solid #d7e1ed;
  border-radius:10px;
  padding:9px 10px;
  margin-top:10px;
  font:inherit;
  font-size:12px;
  color:#223750;
  outline:none;
}
.cart-spec-input:focus{
  border-color:#0a58c6;
  box-shadow:0 0 0 3px rgba(10,88,198,.08);
}
.cart-footer{
  padding:18px 20px 22px;
  border-top:1px solid #e7edf5;
  background:#fbfdff;
}
.cart-footer label{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#314861;
  margin-bottom:7px;
}
.cart-note{
  width:100%;
  min-height:68px;
  resize:vertical;
  border:1px solid #d7e1ed;
  border-radius:11px;
  padding:10px 11px;
  font:inherit;
  font-size:12px;
  outline:none;
}
.cart-note:focus{
  border-color:#0a58c6;
  box-shadow:0 0 0 3px rgba(10,88,198,.08);
}
.send-whatsapp-cart{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:13px;
  background:#25d366;
  color:#fff;
  font-weight:900;
  margin-top:12px;
  cursor:pointer;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
}
.send-whatsapp-cart:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.send-whatsapp-cart svg{width:19px;height:19px}
.cart-helper{
  color:#7d8c9e;
  font-size:10px;
  line-height:1.45;
  text-align:center;
  margin:9px 0 0;
}
.cart-toast{
  position:fixed;
  bottom:92px;
  left:50%;
  transform:translate(-50%,12px);
  background:#10213f;
  color:#fff;
  padding:11px 16px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  z-index:95;
  opacity:0;
  visibility:hidden;
  transition:.2s;
  box-shadow:0 14px 35px rgba(0,0,0,.2);
}
.cart-toast.show{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}

@media(max-width:980px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-toolbar{top:80px}
}
@media(max-width:680px){
  .catalog-toolbar{
    position:static;
    padding:0;
    background:transparent;
    backdrop-filter:none;
  }
  .product-grid{grid-template-columns:1fr}
  .product-card{border-radius:20px}
  .catalog-filters{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:5px;
    scrollbar-width:thin;
  }
  .catalog-filter{flex:0 0 auto}
  .quote-cart-fab{
    right:18px;
    bottom:88px;
    min-height:52px;
    padding:0 16px;
  }
  .quote-cart-fab .cart-label{display:none}
  .quote-cart-drawer{width:100%}
}
/* =========================================================
   NetPlus compact two-row product slider
   ========================================================= */
.catalog-toolbar{
  position:relative;
  top:auto;
  z-index:5;
  backdrop-filter:none;
  background:transparent;
  padding:0;
  margin-bottom:20px;
}

.catalog-slider-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
}
.catalog-slider-bar p{
  margin:0;
  color:#6b7d92;
  font-size:12px;
  line-height:1.5;
}
.catalog-slider-bar p strong{
  color:#063b8e;
}
.catalog-slider-controls{
  display:flex;
  gap:8px;
  flex:0 0 auto;
}
.catalog-slide-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid #d5e0ed;
  background:#fff;
  color:#063b8e;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.2s ease;
  box-shadow:0 7px 20px rgba(6,29,74,.06);
}
.catalog-slide-btn:hover{
  background:#063b8e;
  border-color:#063b8e;
  color:#fff;
  transform:translateY(-1px);
}
.catalog-slide-btn:focus-visible{
  outline:3px solid rgba(10,88,198,.20);
  outline-offset:2px;
}

/* Exactly two rows. Three columns are visible on a normal desktop. */
.product-grid{
  --catalog-gap:18px;
  display:grid;
  grid-template-rows:repeat(2,minmax(0,1fr));
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--catalog-gap) * 2)) / 3);
  gap:var(--catalog-gap);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  padding:5px 3px 18px;
  scrollbar-width:thin;
  scrollbar-color:#aebed2 transparent;
}
.product-grid::-webkit-scrollbar{
  height:7px;
}
.product-grid::-webkit-scrollbar-track{
  background:transparent;
}
.product-grid::-webkit-scrollbar-thumb{
  background:#b9c8d9;
  border-radius:999px;
}
.product-card{
  scroll-snap-align:start;
  min-width:0;
  height:100%;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(6,29,74,.065);
}

/* Keep cards visually compact so the catalogue does not dominate the homepage. */
.product-image{
  aspect-ratio:16/10;
}
.product-body{
  padding:15px 16px 16px;
}
.product-body h3{
  font-size:17px;
  margin-bottom:6px;
}
.product-description{
  font-size:12px;
  line-height:1.45;
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-specs{
  gap:5px;
  margin-bottom:12px;
}
.product-specs li{
  font-size:11px;
  line-height:1.35;
}
.product-specs li:nth-child(n+3){
  display:none;
}
.product-bottom{
  padding-top:11px;
}
.price-request{
  margin-bottom:9px;
}
.price-request strong{
  font-size:12px;
}
.price-request span{
  display:none;
}
.add-quote-btn{
  min-height:40px;
  font-size:12px;
}
.catalog-photo-note{
  margin-top:12px;
}

@media(max-width:980px){
  .product-grid{
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-columns:calc((100% - var(--catalog-gap)) / 2);
  }
}

@media(max-width:680px){
  .catalog-slider-bar{
    align-items:flex-end;
  }
  .catalog-slider-bar p{
    max-width:230px;
  }
  .catalog-slide-btn{
    width:38px;
    height:38px;
    font-size:25px;
  }
  /* Still two rows on phones; one column is visible at a time. */
  .product-grid{
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-columns:88%;
    gap:14px;
    padding-right:12%;
  }
  .product-body{
    padding:14px;
  }
}

@media(prefers-reduced-motion:reduce){
  .product-grid{
    scroll-behavior:auto;
  }
  .product-card,
  .catalog-slide-btn{
    transition:none;
  }
}

/* =========================================================
   NETPLUS PRODUCT SLIDER HARD FIX V2
   This block intentionally overrides all earlier product-grid
   declarations, including the original 3-column grid.
   ========================================================= */

.product-grid,
.product-grid.all-products-active{
  --catalog-gap:18px;

  display:grid !important;

  /* CRITICAL: remove the original explicit column template.
     Without this reset, All Products mixes the old 3-column
     grid with the horizontal carousel. */
  grid-template-columns:none !important;

  /* Exactly TWO rows at every screen size. */
  grid-template-rows:repeat(2, minmax(0, auto)) !important;

  /* Fill the two rows, then create the next horizontal column. */
  grid-auto-flow:column !important;

  /* Desktop = 3 visible columns x 2 rows = 6 visible products. */
  grid-auto-columns:calc((100% - (var(--catalog-gap) * 2)) / 3) !important;

  gap:var(--catalog-gap) !important;

  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;

  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;

  padding:5px 3px 18px !important;
  margin:0;
  align-items:stretch;

  scrollbar-width:thin;
  scrollbar-color:#afbecf transparent;
}

.product-grid > .product-card{
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  height:100%;
  scroll-snap-align:start;
}

.product-grid > .product-card[hidden]{
  display:none !important;
}

/* Tablet: 2 visible columns x 2 rows = 4 products. */
@media (max-width:980px){
  .product-grid,
  .product-grid.all-products-active{
    grid-template-columns:none !important;
    grid-template-rows:repeat(2, minmax(0, auto)) !important;
    grid-auto-flow:column !important;
    grid-auto-columns:calc((100% - var(--catalog-gap)) / 2) !important;
  }
}

/* Mobile: 1 visible column x 2 rows = 2 products,
   with a small preview of the next column. */
@media (max-width:680px){
  .product-grid,
  .product-grid.all-products-active{
    --catalog-gap:14px;
    grid-template-columns:none !important;
    grid-template-rows:repeat(2, minmax(0, auto)) !important;
    grid-auto-flow:column !important;
    grid-auto-columns:88% !important;
    padding-right:12% !important;
  }
}
