@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root{
  --green:#234b38;
  --green2:#315f48;
  --cream:#f8f5ed;
  --gold:#c99532;
  --text:#253029;
  --muted:#69736c;
  --white:#fff;
  --shadow:0 10px 35px rgba(30,50,40,.10);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--text);
  font-family:Vazirmatn,Tahoma,sans-serif;
}

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

button{
  font-family:inherit;
}

.hero{
  min-height:430px;
  position:relative;
  background:
    linear-gradient(rgba(22,42,34,.30),rgba(22,42,34,.60)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=90")
    center/cover;
}

.hero-overlay{
  min-height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px 20px;
}

.hero-content{
  color:white;
  max-width:800px;
}

.brand{
  display:inline-block;
  border:1px solid rgba(255,255,255,.55);
  padding:8px 22px;
  border-radius:40px;
  margin-bottom:22px;
  backdrop-filter:blur(5px);
  font-weight:700;
}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(32px,6vw,58px);
  font-weight:800;
}

.hero p{
  font-size:18px;
  margin:0 auto 28px;
  opacity:.95;
}

.hero-btn{
  display:inline-block;
  background:white;
  color:var(--green);
  padding:13px 30px;
  border-radius:12px;
  font-weight:700;
  transition:.2s;
}

.hero-btn:hover{
  transform:translateY(-2px);
}

.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  box-shadow:0 2px 15px rgba(0,0,0,.07);
}

.nav-inner{
  max-width:1200px;
  margin:auto;
  min-height:70px;
  padding:10px 20px;
  display:flex;
  align-items:center;
  gap:25px;
}

.logo{
  color:var(--green);
  font-weight:800;
  font-size:20px;
  white-space:nowrap;
}

.nav-links{
  display:flex;
  gap:24px;
  flex:1;
}

.nav-links a{
  color:#4d5751;
  font-size:14px;
}

.nav-links a:hover{
  color:var(--green);
}

.cart-button{
  border:0;
  background:var(--green);
  color:white;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

.cart-button span{
  display:inline-flex;
  min-width:23px;
  height:23px;
  align-items:center;
  justify-content:center;
  background:white;
  color:var(--green);
  border-radius:50%;
  margin-right:5px;
  font-size:12px;
}

.intro{
  max-width:800px;
  margin:auto;
  text-align:center;
  padding:70px 20px 35px;
}

.intro span,
.about span{
  color:var(--gold);
  font-size:14px;
  font-weight:700;
}

.intro h2,
.about h2{
  margin:8px 0 12px;
  font-size:32px;
  color:var(--green);
}

.intro p,
.about p{
  color:var(--muted);
  line-height:2;
  margin:0;
}

.products-section{
  max-width:1200px;
  margin:auto;
  padding:20px 20px 80px;
}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.section-heading h2{
  margin:0;
  color:var(--green);
  font-size:27px;
}

.filters{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.filters button{
  border:1px solid #d9ded9;
  background:white;
  color:#59625c;
  padding:8px 13px;
  border-radius:30px;
  cursor:pointer;
}

.filters button.active{
  background:var(--green);
  color:white;
  border-color:var(--green);
}

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

.product-card{
  background:white;
  border-radius:17px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.25s;
}

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

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

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:.35s;
}

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

.category{
  position:absolute;
  top:12px;
  right:12px;
  background:rgba(255,255,255,.90);
  color:var(--green);
  border-radius:20px;
  padding:5px 10px;
  font-size:11px;
  font-weight:700;
}

.product-info{
  padding:17px;
}

.product-info h3{
  margin:0 0 5px;
  font-size:17px;
  color:#26342c;
}

.variant{
  color:var(--muted);
  font-size:13px;
  margin-bottom:16px;
}

.product-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.price{
  color:var(--green);
  font-size:15px;
}

.add-button{
  border:0;
  background:var(--green);
  color:white;
  padding:9px 11px;
  border-radius:9px;
  cursor:pointer;
  font-size:12px;
  white-space:nowrap;
}

.add-button:hover{
  background:var(--green2);
}

.about{
  background:white;
  padding:75px 20px;
  text-align:center;
}

.about > div{
  max-width:750px;
  margin:auto;
}

.contact{
  text-align:center;
  padding:65px 20px;
}

.contact h2{
  color:var(--green);
  margin-bottom:8px;
}

.contact p{
  color:var(--muted);
}

.phone{
  display:inline-block;
  margin-top:10px;
  background:var(--green);
  color:white;
  padding:12px 25px;
  border-radius:10px;
  direction:ltr;
}

footer{
  background:#193629;
  color:white;
  padding:45px 20px 20px;
}

.footer-content{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:40px;
}

.footer-content h3{
  margin-top:0;
}

.footer-content p{
  color:#c9d3cd;
  max-width:450px;
  line-height:2;
}

.trust{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
}

.trust img{
  max-width:110px;
  max-height:130px;
  background:white;
  padding:5px;
  border-radius:7px;
}

.copyright{
  max-width:1100px;
  margin:35px auto 0;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.15);
  color:#aebbb3;
  font-size:12px;
  text-align:center;
}

.cart-modal{
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:15px;
}

.cart-modal.open{
  display:flex;
}

.cart-box{
  width:min(650px,100%);
  max-height:90vh;
  overflow:auto;
  background:white;
  border-radius:18px;
  padding:20px;
}

.cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #eee;
  padding-bottom:15px;
  margin-bottom:10px;
}

.cart-header h2{
  margin:0;
  color:var(--green);
}

.cart-header button{
  border:0;
  background:#f1f1f1;
  width:35px;
  height:35px;
  border-radius:50%;
  font-size:25px;
  cursor:pointer;
}

.cart-item{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  align-items:center;
  gap:12px;
  padding:15px 0;
  border-bottom:1px solid #eee;
}

.cart-item small{
  display:block;
  color:var(--muted);
  margin-top:3px;
}

.qty{
  display:flex;
  align-items:center;
  gap:8px;
}

.qty button{
  width:27px;
  height:27px;
  border:1px solid #ddd;
  background:white;
  border-radius:7px;
  cursor:pointer;
}

.remove{
  border:0;
  background:none;
  color:#b33b3b;
  cursor:pointer;
}

.empty-cart{
  padding:45px 10px;
  text-align:center;
  color:var(--muted);
}

.cart-total{
  display:flex;
  justify-content:space-between;
  padding:20px 0;
  font-size:18px;
}

.cart-total strong{
  color:var(--green);
}

.checkout-button{
  width:100%;
  border:0;
  background:var(--green);
  color:white;
  padding:14px;
  border-radius:10px;
  font-size:15px;
  cursor:pointer;
  font-weight:700;
}

@media(max-width:900px){

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

}

@media(max-width:700px){

  .hero,
  .hero-overlay{
    min-height:380px;
  }

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

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

  .nav-inner{
    min-height:60px;
    padding:8px 12px;
  }

  .nav-links{
    display:none;
  }

  .logo{
    flex:1;
    font-size:17px;
  }

  .cart-button{
    padding:9px 11px;
    font-size:12px;
  }

  .intro{
    padding-top:50px;
  }

  .intro h2,
  .about h2{
    font-size:27px;
  }

  .section-heading{
    display:block;
  }

  .section-heading h2{
    margin-bottom:15px;
  }

  .filters{
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:5px;
  }

  .filters button{
    flex:0 0 auto;
  }

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

  .product-image{
    height:165px;
  }

  .product-info{
    padding:12px;
  }

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

  .variant{
    font-size:12px;
  }

  .product-bottom{
    display:block;
  }

  .price{
    display:block;
    margin-bottom:9px;
    font-size:13px;
  }

  .add-button{
    width:100%;
  }

  .footer-content{
    display:block;
    text-align:center;
  }

  .trust{
    margin-top:25px;
  }

  .cart-item{
    grid-template-columns:1fr auto;
  }

  .cart-item > strong{
    grid-column:1;
  }

  .remove{
    grid-column:2;
    grid-row:1;
  }

}

@media(max-width:390px){

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

  .product-image{
    height:220px;
  }

}
