*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

body{
  background:#f3f3f3;
  overflow-x:hidden;
}

/* ANIMATED BACKGROUND */

body::before{
  content:"";
  position:fixed;
  width:200%;
  height:200%;
  background:
  radial-gradient(circle,#d4a37311 10%,transparent 11%);
  background-size:120px 120px;
  animation:bgMove 18s linear infinite;
  z-index:-1;
}

@keyframes bgMove{
  from{
    transform:translate(0,0);
  }
  to{
    transform:translate(-120px,-120px);
  }
}

/* HEADER */

header{
  background:#131921;
  padding:0px 5%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  color:white;
  font-size:30px;
  font-weight:bold;
}

.menu{
  display:flex;
  list-style:none;
}

.menu li{
  position:relative;
}

.menu li a{
  color:white;
  text-decoration:none;
  padding:12px 16px;
  display:block;
  transition:.3s;
}

.menu li a:hover{
  color:#f0c14b;
}

/* SUB MENU */

.submenu{
  position:absolute;
  top:100%;
  left:0;
  background:white;
  min-width:220px;
  display:none;
  list-style:none;
  box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.submenu li a{
  color:#222;
  border-bottom:1px solid #eee;
}

.submenu li a:hover{
  background:#f5f5f5;
}

.dropdown:hover .submenu{
  display:block;
}

/* HERO SLIDER */

.hero-slider{
  position:relative;
  width:100%;
  height:80vh;
  overflow:hidden;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  opacity:0;
  animation:slideShow 15s infinite;
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.slide-content{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:rgba(0,0,0,0.6);
  padding:40px;
  border-radius:10px;
  text-align:center;
  color:white;
}

.slide-content h1{
  font-size:55px;
  margin-bottom:15px;
}

.slide-content p{
  font-size:22px;
  margin-bottom:20px;
}

.btn{
  background:#f0c14b;
  color:black;
  padding:14px 30px;
  text-decoration:none;
  border-radius:5px;
  font-weight:bold;
}

.slide:nth-child(1){
  animation-delay:0s;
}

.slide:nth-child(2){
  animation-delay:5s;
}

.slide:nth-child(3){
  animation-delay:10s;
}

@keyframes slideShow{

  0%{opacity:0;}
  10%{opacity:1;}
  30%{opacity:1;}
  40%{opacity:0;}
  100%{opacity:0;}

}

/* PRODUCT SLIDER */

.section-title{
  text-align:center;
  margin:50px 0 25px;
  font-size:38px;
}

.product-slider-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  padding:0 5%;
  margin-bottom:50px;
}

.product-slider{
  overflow:hidden;
  width:100%;
  scroll-behavior:smooth;
}

.product-track{
  display:flex;
  gap:20px;
}

.slider-card{
  min-width:250px;
  background:white;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.slider-card img{
  width:100%;
  height:300px;
  object-fit:cover;
}

.slider-info{
  padding:15px;
  text-align:center;
}

.slider-btn{
  width:50px;
  height:50px;
  border:none;
  background:#131921;
  color:white;
  border-radius:50%;
  font-size:25px;
  cursor:pointer;
}

.slider-btn:hover{
  background:#f0c14b;
  color:black;
}

/* AMAZON STYLE PRODUCT GRID */

.products-section{
  padding:20px 5% 60px;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:25px;
}

.product-card{
  background:white;
  border-radius:10px;
  overflow:hidden;
  transition:.3s;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.product-card:hover{
  transform:translateY(-5px);
}

.product-card img{
  width:100%;
  height:280px;
  object-fit:cover;
}

.product-info{
  padding:15px;
}

.product-info h3{
  font-size:18px;
  margin-bottom:10px;
}

.rating{
  color:#ff9900;
  margin-bottom:10px;
}

.price{
  font-size:24px;
  font-weight:bold;
  color:#B12704;
  margin-bottom:10px;
}

.old-price{
  color:gray;
  text-decoration:line-through;
  font-size:15px;
}

.add-cart{
  width:100%;
  background:#ffd814;
  border:none;
  padding:12px;
  border-radius:20px;
  cursor:pointer;
  font-weight:bold;
}

.add-cart:hover{
  background:#f7ca00;
}

/* FOOTER */

footer{
  background:#131921;
  color:white;
  padding-top:50px;
}

.footer-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
  padding:0 5% 40px;
}

.footer-box h3{
  margin-bottom:20px;
}

.footer-box ul{
  list-style:none;
}

.footer-box ul li{
  margin-bottom:10px;
}

.footer-box ul li a{
  color:#ddd;
  text-decoration:none;
}

.footer-box ul li a:hover{
  color:#f0c14b;
}

.footer-bottom{
  text-align:center;
  border-top:1px solid #333;
  padding:20px;
  color:#aaa;
}

/* MOBILE */

@media(max-width:768px){

  header{
    flex-direction:column;
    align-items:flex-start;
  }

  .menu{
    flex-direction:column;
    width:100%;
  }

  .slide-content h1{
    font-size:34px;
  }

  .slide-content p{
    font-size:18px;
  }

}