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

:root{
  --black:#090909;
  --dark:#111;
  --white:#fff;
  --cream:#f5f3ef;
  --gray:#777;
  --border:#dedbd5;
  --transition:.4s cubic-bezier(.2,.8,.2,1);
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Inter,sans-serif;
  background:var(--white);
  color:var(--black);
  overflow-x:hidden;
}

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
  border:0;
}

a{
  color:inherit;
  text-decoration:none;
}

/* HEADER */

.header{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5%;
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  font-size:20px;
  font-weight:800;
  letter-spacing:1.5px;
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-icon{
  font-size:26px;
}

.desktop-nav{
  display:flex;
  gap:42px;
}

.desktop-nav a{
  font-size:12px;
  font-weight:600;
  letter-spacing:1px;
  transition:var(--transition);
}

.desktop-nav a:hover{
  opacity:.5;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:15px;
}

.header-actions button{
  background:none;
  font-size:23px;
  position:relative;
}

.header-actions button:hover{
  transform:scale(1.12);
}

#languageBtn{
  font-size:11px;
  font-weight:700;
  border:1px solid #ddd;
  padding:8px 10px;
}

#cartCount{
  position:absolute;
  right:-7px;
  top:-8px;
  background:#000;
  color:#fff;
  border-radius:50%;
  font-size:9px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
}

.mobile-menu-btn{
  display:none;
}

/* MOBILE MENU */

.mobile-menu{
  display:none;
  position:fixed;
  top:82px;
  left:0;
  width:100%;
  background:#fff;
  z-index:999;
  padding:25px;
  border-bottom:1px solid #ddd;
}

.mobile-menu a{
  display:block;
  padding:15px 0;
  border-bottom:1px solid #eee;
  font-weight:600;
}

/* SEARCH */

.search-panel{
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:#fff;
  padding:25px 5%;
  z-index:2000;
  transform:translateY(-120%);
  transition:.4s;
  box-shadow:0 5px 30px #0001;
}

.search-panel.open{
  transform:translateY(0);
}

.search-inner{
  display:flex;
  align-items:center;
  gap:20px;
}

.search-inner input{
  width:100%;
  border:0;
  border-bottom:1px solid #111;
  outline:none;
  padding:15px 0;
  font-size:22px;
}

.search-inner button{
  background:none;
  font-size:30px;
}

/* HERO */

.hero{
  height:calc(100vh - 82px);
  min-height:620px;
  position:relative;
  overflow:hidden;
  background:#eee;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transform:scale(1.04);
  transition:opacity .8s ease,transform 1.1s ease;
  background-size:cover;
  background-position:center;
}

.hero-slide.active{
  opacity:1;
  visibility:visible;
  transform:scale(1);
}

.women-slide{
  background:
    linear-gradient(90deg,#fff 0%,#fff9 38%,transparent 70%),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=2000&q=85")
    center/cover;
}

.men-slide{
  background:
    linear-gradient(90deg,#fff 0%,#fff8 38%,transparent 72%),
    url("https://images.unsplash.com/photo-1617127365659-c47fa864d8bc?auto=format&fit=crop&w=2000&q=85")
    center/cover;
}

.sports-slide{
  background:
    linear-gradient(90deg,#fff 0%,#fff8 38%,transparent 72%),
    url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=2000&q=85")
    center/cover;
}

.hero-content{
  position:absolute;
  left:8%;
  top:50%;
  transform:translateY(-50%);
  max-width:600px;
}

.hero-small{
  font-size:12px;
  letter-spacing:4px;
  font-weight:700;
}

.hero h1{
  font-family:"Playfair Display",serif;
  font-size:clamp(55px,7vw,105px);
  line-height:.95;
  margin:20px 0;
  letter-spacing:-3px;
}

.hero p{
  font-size:16px;
  margin-bottom:30px;
  color:#444;
}

.primary-btn{
  background:#090909;
  color:#fff;
  padding:16px 30px;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
  transition:var(--transition);
}

.primary-btn:hover{
  background:#333;
  transform:translateY(-3px);
}

.hero-dots{
  position:absolute;
  bottom:35px;
  left:8%;
  display:flex;
  gap:10px;
  z-index:5;
}

.hero-dot{
  width:35px;
  height:2px;
  background:#aaa;
  cursor:pointer;
}

.hero-dot.active{
  background:#000;
}

/* FEATURES */

.features{
  margin:0 4%;
  transform:translateY(-45px);
  background:#fff;
  position:relative;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid #eee;
  box-shadow:0 20px 50px #0000000b;
}

.features div{
  padding:35px 30px;
  border-right:1px solid #eee;
}

.features div:last-child{
  border-right:0;
}

.features strong{
  font-size:12px;
  color:#999;
}

.features h3{
  margin:12px 0 8px;
  font-size:13px;
  letter-spacing:1px;
}

.features p{
  color:#777;
  font-size:12px;
  line-height:1.6;
}

/* SECTIONS */

.section{
  padding:100px 5%;
}

.section-heading{
  text-align:center;
  margin-bottom:55px;
}

.section-heading span{
  font-size:10px;
  letter-spacing:4px;
  color:#888;
}

.section-heading h2{
  font-family:"Playfair Display",serif;
  font-size:50px;
  margin-top:12px;
}

/* CATEGORIES */

.category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.category-card{
  min-height:430px;
  text-align:left;
  position:relative;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  color:#fff;
  padding:35px;
}

.category-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#000b,transparent 65%);
}

.category-card div{
  position:absolute;
  z-index:2;
  bottom:35px;
}

.category-card span{
  font-size:11px;
}

.category-card h3{
  font-size:34px;
  letter-spacing:2px;
  margin:10px 0;
}

.category-card p{
  font-size:11px;
  letter-spacing:1px;
}

.men-category{
  background-image:url("https://images.unsplash.com/photo-1488161628813-04466f872be2?auto=format&fit=crop&w=1000&q=85");
}

.women-category{
  background-image:url("https://images.unsplash.com/photo-1485968579580-b6d095142e6e?auto=format&fit=crop&w=1000&q=85");
}

.sports-category{
  background-image:url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1000&q=85");
}

.category-card:hover{
  transform:translateY(-8px);
}

/* PRODUCTS */

.products-section{
  background:#f6f5f2;
}

.products-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  text-align:left;
}

.products-heading h2{
  margin-top:10px;
}

.filter-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.filter{
  background:transparent;
  border-bottom:1px solid transparent;
  padding:8px 10px;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
}

.filter.active{
  border-color:#000;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px 18px;
}

.product-card{
  background:#fff;
  position:relative;
  overflow:hidden;
  transition:var(--transition);
  cursor:pointer;
}

.product-card:hover{
  transform:translateY(-8px);
}

.product-image{
  height:360px;
  position:relative;
  overflow:hidden;
  background:#eee;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.7s ease;
}

.product-card:hover .product-image img{
  transform:scale(1.06);
}

.product-badge{
  position:absolute;
  top:15px;
  left:15px;
  background:#000;
  color:#fff;
  padding:7px 10px;
  font-size:9px;
  letter-spacing:1px;
  z-index:2;
}

.wishlist{
  position:absolute;
  right:15px;
  top:15px;
  background:#fff;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:20px;
  z-index:2;
}

.product-info{
  padding:18px 5px 5px;
}

.product-category{
  color:#999;
  font-size:9px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.product-info h3{
  font-size:14px;
  margin:8px 0;
}

.price{
  font-weight:700;
  font-size:14px;
}

.old-price{
  color:#999;
  text-decoration:line-through;
  margin-left:8px;
  font-size:12px;
  font-weight:400;
}

.loading{
  grid-column:1/-1;
  text-align:center;
  padding:70px;
  color:#777;
}

/* SOCIAL */

.social-section{
  padding:130px 20px;
  text-align:center;
  background:#0b0b0b;
  color:#fff;
}

.social-section>span{
  font-size:10px;
  letter-spacing:4px;
  color:#999;
}

.social-section h2{
  font-family:"Playfair Display",serif;
  font-size:55px;
  margin:20px 0 45px;
}

.social-section h2 i{
  font-weight:400;
}

.social-links{
  display:flex;
  justify-content:center;
  gap:45px;
}

.social-links a{
  font-size:11px;
  letter-spacing:2px;
  border-bottom:1px solid #555;
  padding-bottom:8px;
}

/* FOOTER */

.footer{
  background:#111;
  color:#fff;
  padding:80px 5% 25px;
}

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

.footer-brand p{
  color:#888;
  line-height:1.8;
  margin-top:20px;
  font-size:12px;
}

.footer h4{
  font-size:10px;
  letter-spacing:2px;
  margin-bottom:20px;
}

.footer-grid>div:not(.footer-brand) a{
  display:block;
  color:#888;
  font-size:11px;
  margin:12px 0;
}

.footer-grid a:hover{
  color:#fff;
}

.footer-bottom{
  border-top:1px solid #292929;
  margin-top:60px;
  padding-top:25px;
  color:#666;
  font-size:9px;
  letter-spacing:1px;
}

/* CART */

.overlay{
  position:fixed;
  inset:0;
  background:#0008;
  z-index:2500;
  opacity:0;
  visibility:hidden;
  transition:.3s;
}

.overlay.open{
  opacity:1;
  visibility:visible;
}

.cart-drawer{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(450px,100%);
  background:#fff;
  z-index:3000;
  transform:translateX(100%);
  transition:.5s;
  display:flex;
  flex-direction:column;
}

.cart-drawer.open{
  transform:translateX(0);
}

.drawer-header{
  padding:25px;
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #eee;
}

.drawer-header button{
  background:none;
  font-size:28px;
}

#cartItems{
  flex:1;
  overflow:auto;
  padding:20px;
}

.cart-item{
  display:flex;
  gap:15px;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px solid #eee;
}

.cart-item img{
  width:80px;
  height:100px;
  object-fit:cover;
}

.cart-item-info{
  flex:1;
}

.cart-item-info h4{
  font-size:13px;
  margin-bottom:8px;
}

.cart-item-info p{
  color:#777;
  font-size:11px;
}

.qty{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.qty button{
  width:25px;
  height:25px;
  border:1px solid #ddd;
  background:#fff;
}

.remove-cart{
  background:none;
  color:#999;
  font-size:11px;
}

.cart-bottom{
  padding:25px;
  border-top:1px solid #eee;
}

.cart-bottom>div{
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;
  background:#0009;
  z-index:4000;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  transition:.3s;
}

.modal.open{
  opacity:1;
  visibility:visible;
}

.modal-box{
  width:min(1000px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  position:relative;
  padding:35px;
  transform:translateY(30px);
  transition:.4s;
}

.modal.open .modal-box{
  transform:translateY(0);
}

.modal-close{
  position:absolute;
  right:20px;
  top:15px;
  background:none;
  font-size:30px;
  z-index:5;
}

.product-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.detail-gallery{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.detail-gallery img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
}

.detail-content{
  padding:20px;
}

.detail-content .product-category{
  margin-bottom:10px;
}

.detail-content h2{
  font-family:"Playfair Display",serif;
  font-size:40px;
  margin:10px 0 20px;
}

.detail-price{
  font-size:20px;
  font-weight:700;
  margin-bottom:25px;
}

.detail-description{
  color:#666;
  line-height:1.8;
  font-size:13px;
  margin-bottom:25px;
}

.option-title{
  font-size:11px;
  font-weight:700;
  margin:18px 0 10px;
}

.option-list{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.option-btn{
  border:1px solid #ddd;
  background:#fff;
  padding:10px 15px;
  font-size:11px;
}

.option-btn.selected{
  background:#000;
  color:#fff;
  border-color:#000;
}

/* CHECKOUT */

.checkout-box{
  width:min(550px,100%);
}

.checkout-box h2{
  font-family:"Playfair Display",serif;
  font-size:35px;
  margin-bottom:30px;
}

#checkoutForm{
  display:grid;
  gap:15px;
}

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select{
  width:100%;
  padding:15px;
  border:1px solid #ddd;
  outline:none;
  background:#fff;
}

#checkoutForm textarea{
  min-height:110px;
  resize:vertical;
}

.checkout-total{
  display:flex;
  justify-content:space-between;
  padding:20px 0;
  border-top:1px solid #eee;
}

/* TOAST */

.toast{
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translate(-50%,100px);
  background:#000;
  color:#fff;
  padding:14px 22px;
  font-size:12px;
  z-index:6000;
  opacity:0;
  transition:.4s;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* RESPONSIVE */

@media(max-width:1000px){

  .desktop-nav{
    display:none;
  }

  .mobile-menu-btn{
    display:block;
  }

  .mobile-menu.open{
    display:block;
  }

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

  .features div:nth-child(2){
    border-right:0;
  }

  .category-grid{
    grid-template-columns:1fr;
  }

  .category-card{
    min-height:350px;
  }

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

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

  .footer-brand{
    grid-column:1/-1;
  }
}

@media(max-width:600px){

  .header{
    height:68px;
    padding:0 18px;
  }

  .logo{
    font-size:16px;
  }

  .logo-icon{
    font-size:20px;
  }

  .header-actions{
    gap:9px;
  }

  .header-actions button{
    font-size:19px;
  }

  .mobile-menu{
    top:68px;
  }

  .hero{
    height:650px;
    min-height:650px;
  }

  .hero-content{
    left:25px;
    right:25px;
    top:50%;
  }

  .hero h1{
    font-size:55px;
  }

  .hero p{
    font-size:13px;
  }

  .features{
    margin:-20px 15px 0;
    transform:none;
    grid-template-columns:1fr 1fr;
  }

  .features div{
    padding:22px 15px;
  }

  .features h3{
    font-size:10px;
  }

  .features p{
    font-size:10px;
  }

  .section{
    padding:70px 18px;
  }

  .section-heading h2{
    font-size:38px;
  }

  .products-heading{
    display:block;
  }

  .filter-buttons{
    margin-top:25px;
  }

  .products-grid{
    grid-template-columns:1fr 1fr;
    gap:25px 10px;
  }

  .product-image{
    height:250px;
  }

  .product-info h3{
    font-size:12px;
  }

  .product-details{
    grid-template-columns:1fr;
  }

  .detail-content h2{
    font-size:30px;
  }

  .social-section{
    padding:90px 20px;
  }

  .social-section h2{
    font-size:38px;
  }

  .social-links{
    flex-direction:column;
    gap:20px;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:35px 20px;
  }
}
