/* ============================================
   VEPRIX - ALL PRODUCTS PAGE
   Premium Industrial B2B Redesign
   ============================================ */

*{margin:0;padding:0;box-sizing:border-box}

/* ---------- PAGE BACKGROUND ---------- */
body.all-products-page{
  background:#F5F8FC;
  background-image:
    radial-gradient(circle at 15% 5%, rgba(24,168,240,.06) 0%,transparent 40%),
    radial-gradient(circle at 85% 95%, rgba(6,59,112,.05) 0%,transparent 40%),
    linear-gradient(rgba(6,59,112,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,59,112,.025) 1px, transparent 1px);
  background-size:auto, auto, 60px 60px, 60px 60px;
  overflow-x:hidden;
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  color:#14213D;
  line-height:1.6;
}

/* ============================================
   PREMIUM HERO - WITH BANNER IMAGE
   ============================================ */
.ap-hero{
  position:relative;
  background-image:url('../images/all-products-banner.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#063B70;
  color:#fff;
  padding:60px 20px 65px;
  overflow:hidden;
  isolation:isolate;
  min-height:380px;
}

/* Dark overlay - left side darker for text readability */
.ap-hero-grid{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    rgba(6,59,112,.92) 0%,
    rgba(6,59,112,.78) 40%,
    rgba(6,59,112,.55) 70%,
    rgba(6,59,112,.4) 100%);
  z-index:1;
  pointer-events:none;
}

.ap-hero-glow{
  position:absolute;
  top:-100px;
  right:-100px;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(24,168,240,.25) 0%, transparent 70%);
  border-radius:50%;
  z-index:1;
  pointer-events:none;
}

.ap-hero-inner{
  max-width:1300px;
  margin:0 auto;
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:40px;
  align-items:center;
}

.ap-hero-left{padding:0}

.ap-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(24,168,240,.2);
  color:#18A8F0;
  padding:6px 15px;
  border-radius:20px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:12px;
  border:1px solid rgba(24,168,240,.4);
  backdrop-filter:blur(6px);
}

.ap-hero-badge-dot{
  width:6px;
  height:6px;
  background:#18A8F0;
  border-radius:50%;
  box-shadow:0 0 8px #18A8F0;
  animation:pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(1.3)}
}

.ap-hero-title{
  font-size:34px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.6px;
  margin-bottom:12px;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}
.ap-hero-title span{color:#18A8F0}

.ap-hero-sub{
  font-size:14px;
  line-height:1.65;
  opacity:.95;
  color:#e8f1fa;
  max-width:560px;
  margin:0;
  text-shadow:0 1px 4px rgba(0,0,0,.2);
}

/* Hero Stats */
.ap-hero-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:20px;
  padding:20px 26px;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:16px;
  box-shadow:0 15px 40px rgba(0,0,0,.2);
}

.ap-hero-stat{text-align:center}
.ap-hero-stat-num{
  font-size:26px;
  font-weight:800;
  color:#fff;
  line-height:1;
  letter-spacing:-.5px;
  margin-bottom:5px;
  text-shadow:0 2px 6px rgba(0,0,0,.25);
}
.ap-hero-stat-label{
  font-size:9.5px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:1.1px;
  color:#18A8F0;
  opacity:.95;
}
.ap-hero-divider{
  width:1px;
  height:32px;
  background:rgba(255,255,255,.25);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.ap-breadcrumb{
  max-width:1300px;
  margin:0 auto;
  padding:18px 20px 0;
  font-size:12.5px;
  color:#7a8a9e;
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
  z-index:2;
  flex-wrap:wrap;
}
.ap-breadcrumb a{
  color:#063B70;
  text-decoration:none;
  font-weight:600;
  transition:color .2s;
}
.ap-breadcrumb a:hover{color:#0A75D1}
.ap-breadcrumb-sep{color:#c0cfe0}

/* ============================================
   CATEGORY BAR
   ============================================ */
.ap-category-bar-wrap{
  position:sticky;
  top:80px;
  z-index:100;
  background:rgba(245,248,252,.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:14px 0;
  margin-top:6px;
  border-bottom:1px solid rgba(6,59,112,.06);
  box-shadow:0 4px 15px rgba(6,59,112,.04);
}
.ap-category-bar{
  max-width:1300px;
  margin:0 auto;
  padding:0 20px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:#c0cfe0 transparent;
}
.ap-category-bar::-webkit-scrollbar{height:4px}
.ap-category-bar::-webkit-scrollbar-thumb{background:#c0cfe0;border-radius:2px}
.ap-category-bar::-webkit-scrollbar-track{background:transparent}

.all-products-page .filter-bar{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  justify-content:flex-start;
  margin-bottom:0;
  padding:2px 0;
  min-width:max-content;
}

.all-products-page .chip{
  padding:9px 18px;
  background:#fff;
  border:1.5px solid #e0e8f1;
  border-radius:10px;
  font-size:12.5px;
  font-weight:600;
  color:#4a5568;
  cursor:pointer;
  transition:all .25s cubic-bezier(.2,.8,.3,1);
  font-family:inherit;
  white-space:nowrap;
  position:relative;
  letter-spacing:.2px;
  flex-shrink:0;
  box-shadow:0 1px 3px rgba(6,59,112,.04);
}

.all-products-page .chip:hover{
  border-color:#18A8F0;
  color:#063B70;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(24,168,240,.12);
}

.all-products-page .chip.active{
  background:linear-gradient(135deg,#063B70,#0A75D1);
  border-color:#063B70;
  color:#fff;
  font-weight:700;
  box-shadow:0 6px 18px rgba(6,59,112,.25);
  transform:translateY(-1px);
}

.all-products-page .chip.active::after{
  content:'';
  position:absolute;
  bottom:-2px;
  left:50%;
  transform:translateX(-50%);
  width:20px;
  height:2px;
  background:#18A8F0;
  border-radius:2px;
}

/* ============================================
   TOOLBAR
   ============================================ */
.ap-toolbar-wrap{
  max-width:1300px;
  margin:0 auto;
  padding:18px 20px 4px;
}
.ap-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.all-products-page .product-count{
  text-align:left;
  color:#6b7a8f;
  font-size:13px;
  margin-bottom:0;
  padding:0;
  font-weight:500;
  display:flex;
  align-items:center;
  gap:8px;
}
.all-products-page .product-count::before{
  content:'';
  width:6px;
  height:6px;
  background:#18A8F0;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 6px rgba(24,168,240,.6);
}
.all-products-page .product-count strong{
  color:#063B70;
  font-weight:800;
  font-size:14px;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.ap-grid-wrap{
  max-width:1300px;
  margin:0 auto;
  padding:12px 20px 60px;
}

.all-products-page .container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  padding:0;
  max-width:none;
}

/* ============================================
   PRODUCT CARD - PREMIUM
   ============================================ */
.all-products-page .product-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #e8eef6;
  box-shadow:
    0 1px 2px rgba(6,59,112,.04),
    0 4px 12px rgba(6,59,112,.05);
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  transition:all .3s cubic-bezier(.2,.8,.3,1);
  position:relative;
  isolation:isolate;
  will-change:transform;
}

.all-products-page .product-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,#063B70,#18A8F0);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .35s cubic-bezier(.2,.8,.3,1);
  z-index:3;
  border-radius:16px 16px 0 0;
}

.all-products-page .product-card:hover::before{transform:scaleX(1)}

.all-products-page .product-card:hover{
  transform:translateY(-8px);
  border-color:rgba(24,168,240,.5);
  box-shadow:
    0 2px 4px rgba(6,59,112,.06),
    0 20px 40px rgba(6,59,112,.14),
    0 0 0 3px rgba(24,168,240,.08);
}

.all-products-page .product-card::after{
  content:'';
  position:absolute;
  top:8px;
  right:8px;
  width:10px;
  height:10px;
  border-top:1.5px solid #18A8F0;
  border-right:1.5px solid #18A8F0;
  opacity:0;
  transition:opacity .3s ease;
  z-index:3;
  pointer-events:none;
}
.all-products-page .product-card:hover::after{opacity:.5}

.all-products-page .product-img{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #f7fafd 60%, #eff5fa 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  overflow:hidden;
  border-bottom:1px solid #eef2f7;
}

.all-products-page .product-img::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(6,59,112,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,59,112,.035) 1px, transparent 1px);
  background-size:22px 22px;
  opacity:.6;
  pointer-events:none;
  mask-image:radial-gradient(circle at 50% 50%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 75%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 75%);
}

.all-products-page .product-img img{
  position:relative;
  z-index:1;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  transition:transform .4s cubic-bezier(.2,.8,.3,1);
  filter:drop-shadow(0 6px 16px rgba(6,59,112,.08));
}

.all-products-page .product-card:hover .product-img img{
  transform:scale(1.06);
}

.all-products-page .product-img .badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  background:linear-gradient(135deg,#063B70,#0A75D1);
  color:#fff;
  font-size:9.5px;
  font-weight:700;
  padding:5px 11px;
  border-radius:8px;
  text-transform:uppercase;
  letter-spacing:.6px;
  max-width:75%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(6,59,112,.25);
  border:1px solid rgba(255,255,255,.15);
}

.all-products-page .product-img .img-count{
  position:absolute;
  bottom:12px;
  right:12px;
  z-index:2;
  background:rgba(6,59,112,.85);
  color:#fff;
  font-size:10px;
  font-weight:600;
  padding:4px 10px;
  border-radius:10px;
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
  letter-spacing:.3px;
}

.all-products-page .product-body{
  padding:18px 18px 20px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#fff;
}

.all-products-page .product-body h3{
  font-size:14px;
  color:#14213D;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.1px;
  margin:0;
  min-height:40px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.all-products-page .product-body .meta{
  font-size:11.5px;
  color:#7a8a9e;
  margin:0;
  font-weight:500;
  letter-spacing:.1px;
  display:flex;
  align-items:center;
  gap:6px;
}

.all-products-page .product-body .meta strong{
  color:#063B70;
  font-weight:700;
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.all-products-page .card-thumbs{
  display:flex;
  gap:5px;
  padding:10px 14px;
  background:#f8fafd;
  border-top:1px solid #eef2f7;
  overflow-x:auto;
  justify-content:center;
}
.all-products-page .card-thumbs img{
  width:32px;
  height:32px;
  object-fit:cover;
  border-radius:6px;
  cursor:pointer;
  border:1.5px solid #e0e8f1;
  flex-shrink:0;
  background:#fff;
  transition:all .2s;
}
.all-products-page .card-thumbs img:hover{
  border-color:#18A8F0;
  transform:scale(1.08);
}
.all-products-page .card-thumbs img.active{
  border-color:#063B70;
  box-shadow:0 0 0 2px rgba(6,59,112,.15);
}

.all-products-page .product-body .view-btn,
.all-products-page .product-body .cta-btn{
  margin-top:auto;
  padding-top:14px;
  color:#063B70;
  font-size:11.5px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:6px;
  text-transform:uppercase;
  letter-spacing:.8px;
  border-top:1px solid #eef2f7;
  padding-bottom:2px;
  transition:color .2s;
}
.all-products-page .product-card:hover .product-body .view-btn,
.all-products-page .product-card:hover .product-body .cta-btn{
  color:#0A75D1;
}
.all-products-page .product-body .view-btn::after,
.all-products-page .product-body .cta-btn::after{
  content:'→';
  font-size:14px;
  transition:transform .25s;
  display:inline-block;
}
.all-products-page .product-card:hover .product-body .view-btn::after,
.all-products-page .product-card:hover .product-body .cta-btn::after{
  transform:translateX(4px);
}

.all-products-page .add-cart-btn{
  margin-top:auto;
  background:linear-gradient(135deg,#063B70,#0A75D1);
  color:#fff;
  border:none;
  padding:11px 14px;
  border-radius:9px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  transition:all .25s;
  font-family:inherit;
  letter-spacing:.3px;
  box-shadow:0 4px 12px rgba(6,59,112,.18);
}
.all-products-page .add-cart-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(6,59,112,.3);
}

/* ============================================
   NO RESULTS
   ============================================ */
.all-products-page .no-results{
  text-align:center;
  padding:80px 20px;
  background:#fff;
  border-radius:18px;
  border:1px solid #e8eef6;
  box-shadow:0 4px 20px rgba(6,59,112,.05);
  max-width:500px;
  margin:40px auto;
}
.no-results-icon{
  font-size:56px;
  margin-bottom:18px;
  opacity:.5;
}
.all-products-page .no-results h3{
  font-size:20px;
  color:#063B70;
  margin-bottom:10px;
  font-weight:800;
}
.all-products-page .no-results p{
  color:#7a8a9e;
  font-size:14px;
  margin-bottom:24px;
}
.no-results-btn{
  display:inline-block;
  background:linear-gradient(135deg,#063B70,#0A75D1);
  color:#fff;
  padding:12px 28px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:13.5px;
  transition:all .3s;
  box-shadow:0 6px 18px rgba(6,59,112,.2);
}
.no-results-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(6,59,112,.3);
}

/* ============================================
   BOTTOM CTA STRIP
   ============================================ */
.ap-cta-strip{
  max-width:1300px;
  margin:0 auto 40px;
  padding:0 20px;
}
.ap-cta-inner{
  background:linear-gradient(120deg,#063B70 0%,#07549A 60%,#0A75D1 100%);
  border-radius:18px;
  padding:36px 40px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(6,59,112,.2);
}
.ap-cta-inner::before{
  content:'';
  position:absolute;
  top:-50%;
  right:10%;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(24,168,240,.25) 0%, transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.ap-cta-text{position:relative;z-index:2}
.ap-cta-text h3{
  font-size:22px;
  font-weight:800;
  margin-bottom:8px;
  letter-spacing:-.3px;
}
.ap-cta-text p{
  font-size:13.5px;
  opacity:.9;
  color:#dbe8f5;
  margin:0;
  max-width:620px;
}
.ap-cta-btn{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fff;
  color:#063B70;
  padding:14px 30px;
  border-radius:30px;
  text-decoration:none;
  font-weight:800;
  font-size:13.5px;
  transition:all .3s;
  letter-spacing:.3px;
  box-shadow:0 8px 25px rgba(0,0,0,.15);
  white-space:nowrap;
}
.ap-cta-btn:hover{
  background:#18A8F0;
  color:#fff;
  transform:translateY(-3px);
  box-shadow:0 12px 35px rgba(24,168,240,.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:1200px){
  .all-products-page .container{grid-template-columns:repeat(4,1fr);gap:18px}
  .ap-hero-title{font-size:30px}
}

@media (max-width:1024px){
  .all-products-page .container{grid-template-columns:repeat(3,1fr);gap:18px}
  .ap-hero-inner{grid-template-columns:1fr;gap:24px}
  .ap-hero-right{justify-content:flex-start}
  .ap-hero-title{font-size:28px}
  .ap-hero-sub{font-size:13.5px}
}

@media (max-width:768px){
  .all-products-page .container{grid-template-columns:repeat(2,1fr);gap:14px}
  .ap-hero{padding:45px 18px 50px;min-height:auto}
  .ap-hero-title{font-size:24px}
  .ap-hero-sub{font-size:13px}
  .ap-hero-right{padding:16px 20px;gap:16px;flex-wrap:wrap}
  .ap-hero-stat-num{font-size:22px}
  .ap-hero-stat-label{font-size:9px}
  .ap-hero-divider{height:28px}
  .ap-cta-inner{grid-template-columns:1fr;text-align:left;padding:28px 24px}
  .ap-cta-text h3{font-size:19px}
  .ap-cta-btn{justify-self:start}
}

@media (max-width:600px){
  .all-products-page .container{grid-template-columns:repeat(2,1fr);gap:12px}
  .ap-hero{padding:38px 16px 42px;min-height:auto}
  .ap-hero-title{font-size:22px}
  .ap-hero-badge{font-size:9.5px;padding:5px 12px}
  .ap-hero-sub{font-size:12.5px}
  .ap-hero-right{padding:14px 16px;gap:14px;flex-wrap:wrap}
  .ap-hero-stat-num{font-size:20px}
  .ap-hero-stat-label{font-size:8.5px}
  .ap-hero-divider{display:none}
  .ap-breadcrumb{padding:14px 16px 0;font-size:11.5px}
  .ap-category-bar-wrap{top:70px;padding:12px 0}
  .ap-category-bar{padding:0 16px}
  .all-products-page .chip{padding:8px 14px;font-size:12px}
  .ap-toolbar-wrap{padding:14px 16px 2px}
  .ap-grid-wrap{padding:12px 16px 40px}
  .all-products-page .product-body{padding:12px 12px 14px;gap:8px}
  .all-products-page .product-body h3{font-size:12px;min-height:34px}
  .all-products-page .product-body .meta{font-size:10.5px}
  .all-products-page .product-img{padding:12px}
  .all-products-page .product-img .badge{font-size:8.5px;padding:4px 8px;top:8px;left:8px}
  .all-products-page .card-thumbs{padding:6px 8px}
  .all-products-page .card-thumbs img{width:26px;height:26px}
  .ap-cta-strip{padding:0 16px;margin-bottom:30px}
  .ap-cta-inner{padding:24px 22px;border-radius:14px}
  .ap-cta-text h3{font-size:17px}
  .ap-cta-text p{font-size:12.5px}
  .ap-cta-btn{padding:11px 22px;font-size:12.5px}
}

@media (max-width:400px){
  .all-products-page .container{grid-template-columns:1fr}
  .ap-hero-title{font-size:20px}
  .ap-hero-stat-num{font-size:18px}
}