*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#05070b;
  color:#fff;
  overflow-x:hidden;
}

/* NAVBAR */

.navbar{
  position:sticky;
  top:0;
  z-index:1000;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:22px 7%;

  background:rgba(5,7,11,.78);
  backdrop-filter:blur(14px);

  border-bottom:1px solid rgba(255,255,255,.06);
}

.logo{
  color:#ff2b2b;
  text-decoration:none;
  font-size:34px;
  font-weight:900;
}

nav{
  display:flex;
  gap:36px;
}

nav a{
  color:#d1d5db;
  text-decoration:none;
  font-weight:500;
  transition:.25s;
}

nav a:hover,
nav a.active{
  color:#ff2b2b;
}

.cart{
  font-size:24px;
  cursor:pointer;
}

/* HERO */

.products-hero{
  min-height:300px;

  display:flex;
  align-items:center;

  padding:0 7%;

  background:
    linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 100%),
    url('images/products-hero.jpg');

  background-size:cover;
  background-position:center;
}

.hero-content h1{
  font-size:clamp(56px,7vw,100px);
  font-weight:900;
  line-height:1;
  letter-spacing:-3px;
  margin-bottom:16px;
}

.hero-content h1 span{
  color:#ff2b2b;
}

.hero-content p{
  color:#c4c8d0;
  font-size:22px;
}

/* FILTERS */

.filters{
  display:flex;
  gap:16px;
  flex-wrap:wrap;

  padding:34px 7%;
}

.filter{
  padding:14px 22px;

  border:none;
  border-radius:16px;

  background:#11141b;
  color:#fff;

  font-weight:600;
  cursor:pointer;

  transition:.25s;
}

.filter:hover{
  background:#181c24;
}

.filter.active{
  background:#ff2b2b;
  box-shadow:0 0 28px rgba(255,43,43,.35);
}

/* PRODUCTS GRID */

.products-grid{
  padding:10px 7% 80px;

  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

.product-card{
  background:linear-gradient(145deg,#10131a,#0b0d12);

  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;

  overflow:hidden;

  transition:.35s ease;

  position:relative;
}

.product-card::before{
  content:'';
  position:absolute;
  inset:0;

  background:radial-gradient(circle at top, rgba(255,43,43,.18), transparent 65%);

  opacity:0;
  transition:.35s;
}

.product-card:hover::before{
  opacity:1;
}

.product-card:hover{
  transform:translateY(-10px);
  border-color:rgba(255,43,43,.28);
  box-shadow:0 25px 55px rgba(255,0,0,.16);
}

.product-image{
  height:320px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:26px;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;

  filter:drop-shadow(0 14px 28px rgba(0,0,0,.45));

  transition:.35s;
}

.product-card:hover .product-image img{
  transform:scale(1.04);
}

.product-info{
  padding:24px;
}

.product-info h3{
  font-size:22px;
  margin-bottom:8px;
}

.product-info p{
  color:#9ca3af;
  margin-bottom:18px;
}

.product-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.price{
  color:#ff3b3b;
  font-size:26px;
  font-weight:800;
}

.buy-btn{
  width:48px;
  height:48px;

  border:none;
  border-radius:14px;

  background:#ff2b2b;
  color:#fff;

  cursor:pointer;

  transition:.25s;
}

.buy-btn:hover{
  transform:scale(1.08);
  box-shadow:0 10px 22px rgba(255,43,43,.38);
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);

  display:none;
  align-items:center;
  justify-content:center;

  z-index:2000;

  padding:24px;
}

.modal.active{
  display:flex;
}

.modal-content{
  width:min(960px,100%);
  background:#0b0d12;

  border:1px solid rgba(255,255,255,.08);
  border-radius:32px;

  display:grid;
  grid-template-columns:1fr 1fr;

  overflow:hidden;

  position:relative;
}

.close-btn{
  position:absolute;
  top:18px;
  right:18px;

  width:42px;
  height:42px;

  border:none;
  border-radius:12px;

  background:#161a22;
  color:#fff;

  cursor:pointer;
}

.modal-image{
  padding:36px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:radial-gradient(circle at center, rgba(255,43,43,.12), transparent 70%);
}

.modal-image img{
  width:100%;
  max-width:360px;
  object-fit:contain;
}

.modal-info{
  padding:42px;
}

.modal-info h2{
  font-size:38px;
  margin-bottom:12px;
}

.modal-price{
  color:#ff2b2b;
  font-size:34px;
  font-weight:800;
  margin-bottom:22px;
}

.modal-info p{
  color:#c7cbd3;
  line-height:1.7;
  margin-bottom:18px;
}

.modal-info ul{
  list-style:none;
  margin-bottom:28px;
}

.modal-info li{
  margin-bottom:12px;
  color:#e5e7eb;
}

.modal-info li::before{
  content:'✔';
  color:#22c55e;
  margin-right:10px;
}

.quantity{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:28px;
}

.quantity button{
  width:40px;
  height:40px;

  border:none;
  border-radius:10px;

  background:#171b23;
  color:#fff;

  cursor:pointer;
}

.quantity span{
  font-size:20px;
  font-weight:700;
}

.order-btn{
  width:100%;

  padding:18px;

  border:none;
  border-radius:16px;

  background:linear-gradient(135deg,#ff2b2b,#ff4d4d);
  color:#fff;

  font-size:18px;
  font-weight:800;

  cursor:pointer;

  transition:.3s;
}

.order-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(255,43,43,.32);
}

/* BENEFITS */

.benefits{
  padding:0 7% 70px;

  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}

.benefit{
  background:#0d1016;

  border:1px solid rgba(255,255,255,.05);
  border-radius:24px;

  padding:28px;
}

.benefit h4{
  font-size:22px;
  margin-bottom:12px;
}

.benefit p{
  color:#9ca3af;
  line-height:1.7;
}

/* FOOTER */

.footer{
  padding:30px 7%;
  text-align:center;

  color:#7f8692;

  border-top:1px solid rgba(255,255,255,.06);
}

/* RESPONSIVE */

@media (max-width:900px){

  .modal-content{
    grid-template-columns:1fr;
  }

  .modal-image{
    padding:24px 24px 0;
  }

  .modal-info{
    padding:28px;
  }

  .modal-info h2{
    font-size:30px;
  }
}

@media (max-width:768px){

  .navbar{
    padding:18px 6%;
  }

  nav{
    display:none;
  }

  .products-hero{
    min-height:240px;
    padding:0 6%;
  }

  .hero-content p{
    font-size:18px;
  }

  .filters{
    padding:24px 6%;
  }

  .products-grid{
    padding:10px 6% 60px;
    grid-template-columns:1fr;
  }

  .benefits{
    padding:0 6% 60px;
  }
}

/* Modal ascuns implicit */
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Când JavaScript adaugă clasa 'active', modalul devine vizibil */
.modal.active {
  display: flex !important;
}

/* Test direct în CSS */
.products-hero, .navbar {
  pointer-events: none; /* Ignoră click-urile pe hero/navbar pentru a vedea dacă restul paginii devine activă */
}

/* ===== PAYMENT POPUP ===== */

.payment-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:5000;
}

.payment-popup.active{
  display:flex;
}

.payment-box{
  width:90%;
  max-width:420px;
  background:linear-gradient(145deg,#0b0d12,#11141b);
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  padding:30px;
  position:relative;
  box-shadow:0 25px 70px rgba(255,0,0,.22);
  animation:popupIn .25s ease;
}

@keyframes popupIn{
  from{
    opacity:0;
    transform:scale(.92) translateY(10px);
  }
  to{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

.payment-close{
  position:absolute;
  top:16px;
  right:16px;
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#171b23;
  color:#fff;
  cursor:pointer;
  font-size:16px;
}

.payment-box h2{
  text-align:center;
  font-size:30px;
  margin-bottom:26px;
}

.payment-buttons{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pay-btn{
  padding:18px;
  border-radius:18px;
  text-align:center;
  text-decoration:none;
  color:#fff;
  font-size:20px;
  font-weight:800;
}

.pay-btn:hover{
  transform:translateY(-3px);
}

.olx{
  background:#00c8ff;
}

.vinted{
  background:#14b8a6;
}

.ebay{
  background:#232734;
}

.wa-wrapper{
  margin-top:22px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.wa-btn{
  padding:14px 18px;
  border-radius:16px;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  text-align:center;
}

.wa-number{
  text-align:center;
  color:#c4c8d0;
  font-size:15px;
}

.navbar{
  position: sticky;
  top: 0;
  z-index: 10000; /* foarte important */

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:22px 7%;

  background:rgba(5,7,11,.85);
  backdrop-filter:blur(14px);

  border-bottom:1px solid rgba(255,255,255,.06);
}

.navbar a,
.navbar nav,
.navbar nav a{
  position:relative;
  z-index:10001;
  pointer-events:auto;
}
.product-info h3{ font-size: 22px; font-weight: 800; line-height: 1.2; min-height: 56px; /* 2 randuri */ margin-bottom: 10px; }
.products-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 310px)); justify-content: start; gap: 20px; }