:root{
  --ok: #22c55e;
  --brand: #dda0dd;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35 );
  --card:#15161a;
  --radius: 16px;
  --accent: #ffd166;
  --muted: #9aa0a6;
  --buttrans: background-color 0.2s ease,
  color 0.2s ease,
  border-color 0.3s ease,
  box-shadow 0.3s ease;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header{
  background-color:  rgba(54, 52, 52, 0.95);
  height: 60px;
  position: sticky;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  top: 0;
  z-index: 1000;
  transition: all 0.3 ease;
  backdrop-filter: blur(0px);
  gap: 20px;
}
header.scrolled{
  background-color: rgba(54, 52, 52, 0.95) ;
  backdrop-filter: blur(6px);
}

.header-left{
  display: block;
}

.header-left img{
  height: 100%;
  max-height: 50px ;
  width: auto;
  object-fit: contain;
  padding-left: 50px;
  border-radius: 20px;
  
}
.mobile-menu-wrapper{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.nav-links a{
    text-decoration: none;
    margin: 10px 10px;
    color: white;
    gap: 1rem;
  }
  
.nav-item.dropdown{
  position: relative;
}

.dropbtn{
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
  }
.submenu-wrapper{
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.submenu-toggle{
  display: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.dropdown-content{
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 100px;
  background-color:  rgba(54, 52, 52, 0.95);
  width: 700px;
  max-width: 120vw;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: .5rem;
  z-index: 1500;
}
.dropdown-content ul{
  justify-content: center;
  padding-top: 0.5rem;
}
.dropdown-content a{
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover{
  background-color: black;
}
.dropdown:hover .dropdown-content{
  display: block;
  background-color:  rgb(54, 52, 52);
  margin-top: 0;
  
}
.dropdown:hover .dropbtn{
  background-color: rgb(54, 52, 52);
  border-radius: 4px;
}
.menu-toggle{
  display: none;
  background: none;
  border: none;
  font: size 1.8rem;
  color: white;
  cursor: pointer;
}
 
nav ul{
  list-style: none;
  display: flex;
  padding: 0;
  gap: 1rem;
}
nav li{
  text-decoration: none;
  align-content: center;
}
nav a{
  text-decoration: none;
}
.header-right{
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 0.7rem 0.7rem;
}
.header-right button{
   background-color: #dda0dd;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: medium;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  
}
.header-right button:hover{
   border-color: #dda0dd;
  box-shadow: 0 0 8px #dda0dd;
}
.header-right a{
  color: black;
  font-size: 20px;
  text-decoration: none;
}
.shop-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 18px;
}
.shop-head h1{
  font-size: 28px;
  margin-left: 10px;
  letter-spacing: .2px;

}
.shop-toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-right: 5px;

}
.chip{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(54, 52, 52);
  border: 1px solid rgba(19, 21, 26, 0.9);
  font-weight: 600;
  font-size: 18px;
}
.chip .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 10px 20px;
}
.product-card{
  background: linear-gradient(180deg, rgba(162,119,255, .06), transparent 40%), var(--card);
  border: 1px solid black;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-c0lor .2s ease;
  max-height: 600px;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(162, 119, 255, .35) ;
}
.cart-media{
  aspect-ratio: 1/1;
  position:relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(180% 100% at 0% 0%, rgba(162,119,255, .18), transparent 55%),
  radial-gradient(120% 100% at 100% 0%, rgba(255, 209, 102, .12), transparent 45%),
  linear-gradient(160deg, #2a2e35, #1e2127);
}
.cart-media::after{
  content: "";
  position: absolute;
  inset: -10% -30% auto auto;
  height: 140%;
  width: 60%;
  background: linear-gradient(75deg, rgba(255, 255, 255, .08)) rgba(255, 255, 255, 0);
  transform: rotate(10deg);
  filter: blur(2px);
}
.cart-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge{
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f0f12;
  background: linear-gradient(180deg, var(--accent), #f6c14f);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.cart-body{
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9aa0a6;
}
.title{
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.price{
  font-weight: 800;
  font-size: 18px;
}
.meta{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.dot-sep{
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.swatches{
  display: flex;
  gap: 8px;
}
.swatch{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);

}
.swatch:focus{
  outline: 2px solid var(--brand);
}
.cart-actions{
  display: flex;
  gap: 8px;
}
.btn-product{
   text-align: center;
   padding: 8px 12px;
   text-decoration: none;
   background: #9aa0a6;
   border-radius: var(--radius);
   
}
.btn-product-ghost{
  align-self: center;
  border-color: rgba(255, 255, 255, .16);
  text-align: center;
  padding: 8px 12px;
  text-decoration: none;
  background: #9aa0a6;
  border-radius: var(--radius);
}
.btn-product-ghost:hover{
  background: #171a20;
  text-decoration: none;
  border-radius: var(--radius);
  
}
.swatch.selected{
  outline:  2px solid var(--brand);
  outline-offset: 2px;
  border-color: rgba(255,255,255,.9);
}
.main-footer{
  background: #222;
  padding: 2rem 1rem;
  color: #eee;
  align-items: center;
}
.main-footer a{
  color: white;
  justify-content: center;
  text-decoration: none;
}
.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}

.first-footer{
  justify-items: center;
  background-color: rgba(54, 52, 52, 0.8);
  padding: 40px 0;
  border-radius: 10px;
}
.social-icons a{
  font-size: 24px;
  color: #eee;
  margin: 1rem 1rem;
  transition: color 0.3s ease;
  
}
.social-icons a:hover{
  color: #dda0dd;

}
.second-footer{
  justify-items: center;
  background-color: rgba(54, 52, 52, 0.8);
  padding: 40px 0;
  border-radius: 10px;
}
.second-footer h4{
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  text-align: center;
}
.second-footer ul{
  list-style: none;
}
.second-footer li{
  padding: 0.8rem 0.8rem;
}
.third-footer{
  justify-items: center;
  background-color: rgba(54, 52, 52, 0.8);
  padding: 40px 0;
  border-radius: 10px;
}
.third-footer li{
  list-style: none;
  padding: 0.8rem 0.8rem;
}
.fourth-footer{
  justify-items: center;
  background-color: rgba(54, 52, 52, 0.8);
  padding: 40px 0;
  border-radius: 10px;
}
.fourth-footer li{
  justify-items:center ;
  padding: 0.8rem 0rem;
  list-style: none;
  
  

}
.fifth-footer{
justify-self: center;
  margin-top: 1.2rem;
  background-color: rgba(54, 52, 52, 0.8);
  color: antiquewhite;
  border-radius: 0.65rem;
  padding: 1rem 1rem;
  text-align: center;
  
}
.subscribe {
  width: 80%;
  margin: 0.8rem auto;
  text-align: center;
  align-items: center;
  background-color: white;
  border: none;
  border-radius: 10px;
  color: black;

}
.subscribe input {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  width: 200px;
  max-width: 70%;
  border: 1px solid rgb(10, 10, 10);
  border-radius: 99px;
}
.subscribe button {
  margin-bottom: 0.8rem;
  padding: 0.8rem 0.8rem;
  width: 100px;
  border: none;
  border-radius: 99px;
  background-color: black;
  color: white;
  cursor: pointer;

}





@media(max-width: 768px){
  
header{
    display: grid;
    grid-template-columns: auto 1fr auto;
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
  }
  .header-left{
    margin-right: auto; 
  }
  .menu-toggle{
    display: block ;
    border: none;
    position: relative;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    justify-self: end; 
  }
  .nav-links{
    background-color: rgba(54, 52, 52, 0.8);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    max-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.3s ease;
    gap: 0;
  }
  .nav-links.open {
    max-height: 500px;
  }
  .nav-links ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .nav-links a{
    display: block;
    text-decoration: none;
    z-index: 1100;
    padding: 0.7rem 1rem;
    justify-items: center;
    justify-self: center;
    justify-content: center;
    border-radius: 9px;
  }
  .dropdown{
    position: static;
    margin-left: 0.7rem;
  }
.dropdown-content{
    display: none;
    position: static;
    width: 100%;
    left: 0;
    right: 50%;
    height: 150px;
    text-align: center;
    padding: 0;
}
.dropdown-content ul{
  list-style: none;
  margin:  0 ;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}
.dropdown-content a{
  padding: 0;
  margin: 0.2rem 0;
  text-decoration: underline;
}
.dropdown-content.open{
    display: block;
  }
  
  .submenu-wrapper{
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
  }
  .submenu-toggle{
    display: block;
    font-size: 2rem;
    margin: 0;
  }
  .header-right{
    order: 2;
    justify-content: flex-start;
    margin-left: auto; 
  }
  .header-right button{
    padding-right: 2rem;
  }
  .mobile-menu-wrapper{
    order: 3;
  }
  
  .product-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

  }
  .footer-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 480px) {
  .mobile-menu-wrapper{
    margin-left: auto;
  }
  
  .bts{
    padding-right: 2rem;
  }
  .header-right button{
    display: none;
  }
  .shop-toolbar{
    display: none;
  }
  .product-grid{
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer-grid{
    display: grid;
    grid-template-columns: 1fr;
  }
  
}
