/* =========================
   MOBILE OPTIMIZATION
========================= */

@media(max-width:768px){

  body{
    overflow-x:hidden;
  }

  .container{
    width:94%;
  }

  /* TOPBAR */

  .topbar{
    text-align:center;
    font-size:13px;
    padding:10px 0;
  }

  .topbar-content{
    flex-direction:column;
    gap:8px;
  }

  /* NAVBAR */

  .navbar{
    flex-direction:column;
    align-items:stretch;
    padding:20px 0;
    gap:18px;
  }

  .logo{
    justify-content:center;
    font-size:28px;
  }

  .search-box{
    width:100%;
    max-width:100%;
    border-radius:16px;
  }

  .search-box input{
    padding:15px;
    font-size:15px;
  }

  .search-box button{
    width:60px;
  }

  .nav-icons{
    justify-content:center;
    gap:20px;
    font-size:22px;
  }

  /* MENU */

  .menu{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    margin-bottom:35px;
  }

  .menu ul{
    width:100%;
    gap:15px;
    flex-wrap:wrap;
  }

  .menu a{
    font-size:14px;
  }

  /* HERO */

  .hero{
    grid-template-columns:1fr;
    padding:30px 20px;
    gap:20px;
    border-radius:25px;
  }

  .hero-text{
    text-align:center;
  }

  .hero-text h1{
    font-size:34px;
    line-height:1.2;
    margin-bottom:18px;
  }

  .hero-text p{
    font-size:15px;
    line-height:1.7;
    margin-bottom:25px;
  }

  .hero-text button{
    width:100%;
    padding:16px;
    font-size:15px;
  }

  .hero-features{
    justify-content:center;
    gap:15px;
  }

  .hero-features span{
    font-size:14px;
  }

  .hero-image{
    height:320px;
  }

  .circle{
    width:280px;
    height:280px;
  }

  .main-product{
    width:220px;
  }

  .watch{
    width:100px;
    top:10px;
    right:0;
  }

  .shoes{
    width:110px;
    left:0;
    bottom:0;
  }

  /* TITLES */

  .section-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .section-header h2,
  .categories-section h2{
    font-size:28px;
  }

  /* PRODUCTS */

  .products-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .product-card{
    border-radius:24px;
  }

  .product-card img{
    height:220px;
  }

  .product-card h3{
    font-size:21px;
  }

  .price strong{
    font-size:24px;
  }

  .cart-btn{
    padding:15px;
  }

  /* OFFERS */

  .offers{
    grid-template-columns:1fr;
    gap:20px;
  }

  .offer-card{
    flex-direction:column;
    text-align:center;
    padding:30px 20px;
    gap:20px;
  }

  .offer-card h2{
    font-size:28px;
  }

  .offer-card img{
    width:120px;
  }

  .offer-card button{
    width:100%;
  }

  /* FEATURES */

  .features{
    grid-template-columns:1fr;
  }

  .feature-box{
    padding:22px;
  }

  /* FOOTER */

  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .newsletter{
    flex-direction:column;
    gap:10px;
  }

  .newsletter input,
  .newsletter button{
    width:100%;
    border-radius:14px;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
    gap:15px;
  }

  /* MODAL */

  .product-modal{
    grid-template-columns:1fr;
    border-radius:25px;
    max-height:90vh;
    overflow-y:auto;
  }

  .modal-image{
    padding:25px;
  }

  .modal-image img{
    max-width:220px;
  }

  .modal-content{
    padding:30px 22px;
  }

  .modal-content h2{
    font-size:30px;
  }

  .modal-price{
    font-size:38px;
  }

  .modal-description{
    font-size:15px;
  }

  .modal-buttons{
    flex-direction:column;
  }

  .buy-btn,
  .quote-modal-btn{
    width:100%;
  }

  .close-modal{
    width:42px;
    height:42px;
    font-size:18px;
  }

}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#f7f8fc;
  color:#111827;
}

.container{
  width:90%;
  max-width:1400px;
  margin:auto;
}

.topbar{
  background:#0d1733;
  color:#fff;
  padding:14px 0;
  font-size:14px;
}

.topbar-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.top-links{
  display:flex;
  gap:30px;
}

.top-links a{
  color:#fff;
  text-decoration:none;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:30px 0;
  gap:20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:#5b4cf3;
  font-size:32px;
  font-weight:800;
}

.logo i{
  font-size:30px;
}

.search-box{
  flex:1;
  max-width:700px;
  background:#fff;
  display:flex;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.search-box input{
  flex:1;
  border:none;
  outline:none;
  padding:18px 22px;
  font-size:16px;
}

.search-box button{
  width:70px;
  border:none;
  background:#5b4cf3;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.nav-icons{
  display:flex;
  align-items:center;
  gap:30px;
  font-size:24px;
}

.cart{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:700;
}

.menu{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.categories{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  color:#5b4cf3;
}

.menu ul{
  display:flex;
  list-style:none;
  gap:45px;
}

.menu a{
  text-decoration:none;
  color:#4b5563;
  font-weight:600;
}

.hero{
  background:#eef0ff;
  border-radius:35px;
  padding:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
  position:relative;
  gap:30px;
}

.hero-text{
  max-width:600px;
  z-index:2;
}

.hero h1{
  font-size:70px;
  line-height:1.05;
  margin-bottom:25px;
}

.hero p{
  font-size:22px;
  color:#4b5563;
  margin-bottom:35px;
  line-height:1.6;
}

.hero button{
  background:#5b4cf3;
  color:#fff;
  border:none;
  padding:18px 35px;
  border-radius:14px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}

.hero-features{
  margin-top:35px;
  display:flex;
  gap:30px;
  flex-wrap:wrap;
  color:#4b5563;
}

.hero-image{
  position:relative;
  width:500px;
  height:500px;
}

.circle{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background:#dedcff;
  top:-20px;
  right:-50px;
}

.main-product{
  position:absolute;
  width:320px;
  right:90px;
  top:30px;
  border-radius:25px;
  z-index:2;
}

.watch{
  position:absolute;
  width:150px;
  bottom:70px;
  right:30px;
  border-radius:25px;
  z-index:3;
}

.shoes{
  position:absolute;
  width:190px;
  left:40px;
  bottom:20px;
  border-radius:25px;
  z-index:3;
}

.categories-section{
  padding:90px 0 50px;
  text-align:center;
}

.categories-section h2,
.products h2{
  font-size:42px;
  margin-bottom:40px;
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:25px;
}

.category-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
}

.category-icon{
  width:95px;
  height:95px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
}

.orange{background:#ffe7dc;color:#ff7a40;}
.blue{background:#dfe9ff;color:#4b7cff;}
.pink{background:#ffe1ef;color:#ff5fa2;}
.green{background:#dfffe6;color:#25a55a;}
.yellow{background:#fff3d6;color:#e9a500;}
.purple{background:#efe3ff;color:#8856ff;}
.cyan{background:#dffbff;color:#27b6cc;}

.category-item span{
  font-weight:700;
}

.products{
  padding:40px 0 60px;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px;
}

.section-header a{
  color:#5b4cf3;
  text-decoration:none;
  font-weight:700;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.product-card{
  background:#fff;
  border-radius:28px;
  padding:25px;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:.3s;
}

.product-card:hover{
  transform:translateY(-8px);
}

.fav-btn{
  position:absolute;
  top:20px;
  right:20px;
  background:none;
  border:none;
  font-size:22px;
  color:#666;
}

.product-card img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:20px;
}

.product-card h3{
  font-size:24px;
  margin-bottom:8px;
}

.brand{
  color:#6b7280;
  margin-bottom:15px;
}

.rating{
  color:#ffb400;
  margin-bottom:18px;
}

.rating span{
  color:#6b7280;
}

.price{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}

.price strong{
  font-size:34px;
}

.price span{
  color:#9ca3af;
  text-decoration:line-through;
}

.cart-btn{
  width:100%;
  border:none;
  background:#5b4cf3;
  color:#fff;
  padding:16px;
  border-radius:14px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.offers{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
  gap:30px;
  padding-bottom:60px;
}

.offer-card{
  border-radius:30px;
  padding:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
}

.offer-card h2{
  font-size:46px;
  margin-bottom:20px;
}

.offer-card p{
  color:#4b5563;
  margin-bottom:25px;
  line-height:1.7;
}

.offer-card button{
  background:#f4a600;
  border:none;
  color:#fff;
  padding:15px 25px;
  border-radius:14px;
  font-weight:700;
}

.offer-card img{
  width:220px;
}

.yellow-card{
  background:#fff2cb;
}

.blue-card{
  background:#e6f1ff;
}

.blue-card button{
  background:#4b7cff;
}

.features{
  background:#fff;
  border-radius:30px;
  padding:35px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
  margin-bottom:70px;
}

.feature-box{
  display:flex;
  align-items:center;
  gap:20px;
}

.feature-box i{
  font-size:38px;
  color:#5b4cf3;
}

.feature-box h4{
  margin-bottom:8px;
}

.feature-box p{
  color:#6b7280;
}

.footer{
  background:#111827;
  padding:70px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:50px;
}

.footer h3,
.footer h4{
  margin-bottom:20px;
}

.footer p{
  color:#6b7280;
  margin-bottom:20px;
}

.footer a{
  display:block;
  text-decoration:none;
  color:#6b7280;
  margin-bottom:12px;
}

.newsletter{
  display:flex;
  background:#fff;
  border-radius:15px;
  overflow:hidden;
}

.newsletter input{
  flex:1;
  border:none;
  padding:18px;
  outline:none;
}

.newsletter button{
  border:none;
  background:#5b4cf3;
  color:#fff;
  padding:0 25px;
  font-weight:700;
}

.footer-bottom{
  border-top:1px solid #ddd;
  padding-top:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.socials{
  display:flex;
  gap:18px;
  font-size:22px;
  color:#5b4cf3;
}

@media(max-width:1200px){
  .hero{
    flex-direction:column;
    text-align:center;
  }

  .hero-features{
    justify-content:center;
  }

  .hero-image{
    width:100%;
    max-width:500px;
  }
}

@media(max-width:900px){
  .navbar,
  .menu,
  .topbar-content,
  .footer-bottom{
    flex-direction:column;
    gap:20px;
  }

  .menu ul{
    flex-wrap:wrap;
    justify-content:center;
  }

  .hero{
    padding:40px;
  }

  .hero h1{
    font-size:48px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .hero h1{
    font-size:38px;
  }

  .hero p{
    font-size:18px;
  }

  .search-box{
    width:100%;
  }

  .offer-card{
    flex-direction:column;
    text-align:center;
    gap:30px;
  }

  .offer-card h2{
    font-size:34px;
  }
}

/* MODAL */

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.75);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  transition:.35s;
  z-index:9999;
}

.modal-overlay.active{
  opacity:1;
  visibility:visible;
}

.product-modal{
  width:100%;
  max-width:1100px;
  background:#fff;
  border-radius:35px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative;
  transform:translateY(40px) scale(.95);
  transition:.35s;
}

.modal-overlay.active .product-modal{
  transform:translateY(0) scale(1);
}

.modal-image{
  background:#eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.modal-image img{
  width:100%;
  max-width:420px;
  border-radius:25px;
}

.modal-content{
  padding:55px;
}

.modal-tag{
  display:inline-block;
  background:#ede9fe;
  color:#5b4cf3;
  padding:10px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  margin-bottom:25px;
}

.modal-content h2{
  font-size:46px;
  margin-bottom:20px;
}

.modal-price{
  font-size:52px;
  font-weight:800;
  margin-bottom:25px;
}

.modal-description{
  color:#4b5563;
  line-height:1.8;
  margin-bottom:30px;
}

.modal-buttons{
    text-decoration: none;
  color: inherit;
  display:flex;
  gap:15px;
}

.buy-btn,
.quote-modal-btn{
  flex:1;
  border:none;
  padding:18px;
  border-radius:15px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.buy-btn{
  background:#5b4cf3;
  color:#fff;
}

.quote-modal-btn{
  background:#eef2ff;
  color:#5b4cf3;
}

.close-modal{
  position:absolute;
  top:20px;
  right:20px;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#fff;
  font-size:22px;
  cursor:pointer;
}


