.header{
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  background: #0F0F0F;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transition: all 0.3s ease;
}



.header::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,90,0,.6),
    transparent
  );
}

.header.scrolled{
   background: rgba(10, 10, 10, 0.65); /* NOT solid black */
  backdrop-filter: blur(18px);
}

.header.scrolled nav a{
  color:white;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

nav a{
   color:white;
  text-shadow:0 2px 6px rgba(0,0,0,.8);
}

.nav-close{
  display:none;
}
.nav-close span{
  position:absolute;
  width:100%;
  height:3px;
  background:white;
  top:50%;
  left:0;
  transition:.3s;
}


.nav-close span:first-child{
  transform:rotate(45deg);
}

.nav-close span:last-child{
  transform:rotate(-45deg);
}

.nav-close:hover span{
  background:#ff6a00;
  transform:scale(1.1) rotate(45deg);
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:white;
}

/* DESKTOP NAV (DEFAULT) */



.nav-list{
  display:flex;
  align-items:center;
  gap:25px;
  list-style:none;

  position:static;   /* ⭐ IMPORTANT */
  height:auto;
  width:auto;
  background:transparent;
}

.nav-list li{
  position:relative;
}

.arrow{
  font-size:18px;
  margin-left:-2px;
  transition:transform .3s ease;
}

.dropdown:hover .arrow{
  transform:rotate(180deg);
}

.dropdown-menu{
  position:absolute;
  top:55px;
  left:50%;
  transform:translateX(-50%) translateY(15px);

  min-width:240px;
  padding:12px 0;

  /* GLASS EFFECT */
  background:#151515;
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);

  border:1px solid rgba(255,255,255,0.08);
  border-radius: 8px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.45);

  opacity:0;
  visibility:hidden;

  transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s;

  z-index:999;
}

.dropdown-menu a {
   color: #EDEDED;   /* softer than pure white */
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 12px 22px;
  line-height: 1.5;
  display: block;
  transition: 0.3s ease;
}


.dropdown-menu a:hover {
    background: rgba(255, 106, 0, 0.12);
  color: #ffffff;
}


.dropdown-menu::before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);

  width:80%;
  height:8px;

  background:linear-gradient(
    to bottom,
    rgba(255,90,0,0.35),
    transparent
  );

  filter:blur(6px);
}

.dropdown-menu li{
  list-style:none;
}

.dropdown-menu li a{
  display:block;
  padding:12px 22px;

  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  font-weight:500;

  transition:all .25s ease;
}

.dropdown-menu li:hover{
  background:#f37602;
}

.dropdown-menu li a:hover{
  background:rgba(255,90,0,0.15);
  color:#ffffff;
  padding-left:28px;
}

.dropdown:hover .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

.dropdown:hover .arrow{
  transform:rotate(180deg);
}

nav a{
   color:white;
  text-decoration:none;
  margin:0 15px;
  position:relative;
  transition:.3s;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0%;
  height:2px;
  background:#ff6a00;
  transition:.3s;
}

nav a:hover::after{
  width:100%;
}

nav a:hover{
  color:#ff6a00;
}

.search-box{
  position:relative;
  display:flex;
  align-items:center;
}

.search-box input{
  width:260px;
  padding:12px 45px 12px 18px;

  background:rgba(0,0,0,0.55);
  border:1px solid rgba(255,90,0,0.7);
  border-radius:30px;

  color:#ffffff;
  font-size:14px;
  font-weight:500;

  backdrop-filter:blur(10px);

  outline:none;
  transition:all .3s ease;
}

.search-box input::placeholder{
  color:rgba(255,255,255,0.75);
  font-weight:400;
}

.search-box input:focus{
  background:rgba(0,0,0,0.75);
  border-color:#ff5a00;
  box-shadow:0 0 18px rgba(255,90,0,.6);
}

.search-btn{
  position:absolute;
  right:6px;

  width:34px;
  height:34px;

  border-radius:50%;
  border:none;
  background:#ff6a00;
  color:white;

  cursor:pointer;
  transition:.3s ease;

  display:flex;
  align-items:center;
  justify-content:center;
}

.search-btn:hover{
  background:#c04001;
  transform:scale(1.08);
}

.search-icon{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#ff6a00;
}












/* HERO SECTION */

.products-hero {
  background: #ff5a00;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.products-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}




/* PRODUCTS GRID */

.products-list {
  padding: 60px 0;
  background: #f7f7f7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 60px;
  justify-content: center;
}

.product-filters{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-bottom:50px;
  flex-wrap:wrap;
}

.filter-btn{
  padding:12px 25px;
  border:2px solid #ff6a00;
  background:transparent;
  color:#ff6a00;
  font-weight:600;
  border-radius:30px;
  cursor:pointer;
  transition:.3s ease;
}

.filter-btn:hover{
  background:#ff6a00;
  color:white;
}

.filter-btn.active{
  background:#ff6a00;
  color:white;
}




/* PRODUCT CARD */

.product-card {
  background: white;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.product-card h3 {
  font-size: 18px;
  margin: 15px 0;
  min-height: 50px;
}


/* PRICE */

.price {
  font-size: 22px;
  font-weight: 700;
  color: #ff6a00;
}

.footer{
  background:#111;
  color:#bbb;
  text-align:center;
  padding:25px;
  font-size:14px;
}








@media(max-width:768px){

.nav-list{
  position:fixed;
  top:0;
  right:-100%;
   width:100%;
  max-width:280px;
  height:100vh;
  background:#111;

  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:30px;

  transition:.4s ease;
  z-index:999;
}

.nav-list.active{
  right:0;
}

.hamburger{
  display:flex;
  margin-left: 15px;
}

.search-box{
  display:flex;
  margin-right: -10px;
}

nav a{
  font-size: 18px;
}

}





@media(max-width:768px){

.nav-close{
  display:block;
  position:absolute;
  top:25px;
  right:25px;
  width:30px;
  height:30px;
  cursor:pointer;
}

.nav-close span{
  position:absolute;
  width:100%;
  height:3px;
  background:white;
  top:50%;
  left:0;
}

.nav-close span:first-child{
  transform:rotate(45deg);
}

.nav-close span:last-child{
  transform:rotate(-45deg);
}


}



@media(max-width:768px){

  .dropdown-menu{
    position:static;
    transform:none;
    opacity:1;
    visibility:visible;
    display:none;        /* hidden by default */
    background:#1a1a1a;
    box-shadow:none;
    border:none;
    width:100%;
  }

  .dropdown.active .dropdown-menu{
    display:block;       /* show when active */
  }

  .dropdown.active .arrow{
    transform:rotate(180deg);
  }

  

}



/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  .products-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 product per row */
    gap: 20px;
    padding: 0 15px;
  }

  .product-card {
    width: 100%;
  }

}




@media (max-width: 768px) {

  .product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

}



.product-card img {
  width: 100%;
  height: auto;
}

