*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#f5f0ea;
  color:#222;
  overflow-x:hidden;
}

/* HEADER */

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 8%;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  width:180px;
}

nav{
  display:flex;
  align-items:center;
  gap:25px;
}

nav a{
  text-decoration:none;
  color:#5b3a29;
  font-weight:bold;
}

.menu-toggle{
  display:none;
  font-size:32px;
  cursor:pointer;
  color:#333;
  font-weight:bold;
}

/* HERO */

.hero{
  min-height:90vh;
  height:auto;
  background:url('images/bed2.jpg');
  background-size:cover;
  background-position:center;
  position:relative;

  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
}

.hero-content{
  position:relative;
  z-index:2;
  color:white;
  padding:20px;
}

.hero-content h1{
  font-size:70px;
  font-weight:bold;
  line-height:1.2;
  text-shadow:0 5px 15px rgba(0,0,0,0.5);
}

.hero-content p{
  font-size:22px;
  margin:25px 0;
  line-height:1.6;
}

.btn{
  background:#8b5e3c;
  color:white;
  padding:15px 35px;
  text-decoration:none;
  border-radius:8px;
  font-size:18px;
  transition:0.3s;
  display:inline-block;
}

.btn:hover{
  background:#5b3a29;
  transform:scale(1.05);
}

/* PRODUCTS */

.products{
  padding:80px 8%;
}

.products h2{
  text-align:center;
  margin-bottom:50px;
  font-size:40px;
  color:#4a2c1d;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.card{
  background:white;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-10px);
}

.card img{
  width:100%;
  height:220px;
  object-fit:contain;
  background:white;
  padding:10px;
  transition:0.4s;
  cursor:pointer;
}

.card:hover img{
  transform:scale(1.05);
}

.card h3{
  padding:20px;
  text-align:center;
  font-size:22px;
}

a{
  text-decoration:none;
  color:black;
}

/* SEARCH BOX */

.search-box{
  width:100%;
  max-width:500px;
  padding:15px 20px;
  margin:40px auto;
  display:block;

  border:2px solid #c5a880;
  border-radius:12px;

  font-size:18px;
  background:#fff;

  box-shadow:0 5px 15px rgba(0,0,0,0.1);

  outline:none;

  transition:0.3s;
}

.search-box:focus{
  border-color:#8b6b4a;
  box-shadow:0 5px 20px rgba(0,0,0,0.2);
}

/* CONTACT */

.contact{
  background:#4a2c1d;
  color:white;
  text-align:center;
  padding:80px 20px;
}

.contact h2{
  font-size:40px;
  margin-bottom:20px;
}

.contact p{
  margin-bottom:30px;
  font-size:20px;
  line-height:1.7;
}

/* FACTORY */

.factory{
  padding:60px 20px;
  text-align:center;
  background:#f8f8f8;
}

.factory h2{
  font-size:40px;
  margin-bottom:20px;
  color:#333;
}

.factory p{
  font-size:20px;
  color:#555;
  margin:10px 0;
  line-height:1.7;
}

/* INQUIRY */

.inquiry{
  padding:80px 20px;
  background:#fff;
  text-align:center;
}

.inquiry h2{
  font-size:42px;
  margin-bottom:40px;
  color:#4a2c1d;
}

.inquiry form{
  max-width:600px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.inquiry input,
.inquiry textarea{
  width:100%;
  padding:15px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:16px;
  outline:none;
}

.inquiry textarea{
  height:150px;
  resize:none;
}

.inquiry button{
  background:#8b5e3c;
  color:white;
  padding:15px;
  border:none;
  border-radius:8px;
  font-size:18px;
  cursor:pointer;
  transition:0.3s;
}

.inquiry button:hover{
  background:#5b3a29;
  transform:scale(1.03);
}

/* PRODUCT PAGE */

.product-page{
  padding:50px;
  display:flex;
  gap:50px;
  align-items:center;
  flex-wrap:wrap;
}

.product-page img{
  transition:0.4s;
}

.product-page img:hover{
  transform:scale(1.03);
}

.product-details{
  max-width:500px;
}

.product-details h1{
  font-size:40px;
  margin-bottom:20px;
}

.product-details p{
  font-size:18px;
  line-height:1.7;
  margin-bottom:20px;
}

.price{
  font-size:28px;
  font-weight:bold;
  color:#8b5e3c;
  margin-bottom:20px;
}

/* SLIDER */

.slider{
  position:relative;
}

.slider img{
  width:450px;
  max-width:100%;
  border-radius:15px;
}

.slider-buttons{
  position:absolute;
  width:100%;
  top:50%;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
}

.slider-buttons button{
  background:rgba(0,0,0,0.5);
  color:white;
  border:none;
  padding:10px 15px;
  cursor:pointer;
  font-size:20px;
  border-radius:50%;
}

.slider-buttons button:hover{
  background:black;
}

/* FOOTER */

footer{
  background:#2b1d14;
  color:white;
  text-align:center;
  padding:40px 20px;
}

footer h3{
  margin-bottom:15px;
  font-size:30px;
}

footer p{
  margin:10px 0;
  line-height:1.7;
}

/* WHATSAPP FLOAT */

.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  width:65px;
  height:65px;
  background:#25d366;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow:0 5px 15px rgba(0,0,0,0.3);
  z-index:999;
  animation:float 2s infinite;
}

.whatsapp-float img{
  width:38px;
}

@keyframes float{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-8px);
  }

  100%{
    transform:translateY(0px);
  }
}

/* POPUP */

.popup{
  display:none;
  position:fixed;
  z-index:9999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
}

.popup img{
  max-width:90%;
  max-height:90%;
  border-radius:10px;
}

.close-popup{
  position:absolute;
  top:20px;
  right:40px;
  color:white;
  font-size:40px;
  cursor:pointer;
}

/* MOBILE */

@media(max-width:768px){

  header{
    padding:20px;
    flex-wrap:wrap;
  }

  .logo{
    width:120px;
  }

  .menu-toggle{
    display:block;
  }

  nav{
    width:100%;
    display:none;
    flex-direction:column;
    gap:20px;
    margin-top:20px;
    text-align:center;
  }

  nav.active{
    display:flex;
  }

  nav a{
    font-size:18px;
  }

  .hero{
    min-height:80vh;
    padding:20px;
  }

  .hero-content h1{
    font-size:42px;
  }

  .hero-content p{
    font-size:18px;
  }

  .btn{
    padding:12px 25px;
    font-size:16px;
  }

  .products,
  .contact,
  .factory,
  .inquiry{
    padding:60px 20px;
  }

  .products h2,
  .contact h2,
  .factory h2,
  .inquiry h2{
    font-size:34px;
  }

  .product-grid{
   display:grid;
   grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
   gap:30px;
}

  .card img{
    height:250px;
  }

  .product-page{
    flex-direction:column;
    gap:40px;
    padding:30px 20px;
    text-align:center;
  }

  .slider img{
    width:100%;
    height:300px;
    object-fit:contain;
  }

  .product-details h1{
    font-size:38px;
  }

  .product-details p{
    font-size:17px;
  }

  .contact p,
  .factory p{
    font-size:17px;
  }

  .search-box{
    font-size:16px;
    padding:14px 18px;
  }

  .whatsapp-float{
    width:55px;
    height:55px;
    right:15px;
    bottom:15px;
  }

  .whatsapp-float img{
    width:30px;
  }

  .popup img{
    width:95%;
    max-height:80vh;
  }

  .close-popup{
    font-size:35px;
    right:20px;
  }
}

/* EXTRA SMALL MOBILE */

@media(max-width:320px){

  header{
    padding:15px 10px;
    flex-direction:column;
  }

  .logo{
    width:90px;
  }

  .menu-toggle{
    font-size:28px;
    margin-top:10px;
  }

  nav{
    width:100%;
    text-align:center;
  }

  nav a{
    display:block;
    margin:10px 0;
    font-size:15px;
  }

  .hero{
    min-height:85vh;
    padding:20px 10px;
  }

  .hero-content{
    padding:10px;
  }

  .hero-content h1{
    font-size:34px;
    line-height:1.2;
    word-break:break-word;
  }

  .hero-content p{
    font-size:15px;
    line-height:1.5;
    margin-top:15px;
  }

  .btn{
    padding:12px 18px;
    font-size:14px;
  }

  .products,
  .contact,
  .factory,
  .inquiry{
    padding:40px 12px;
  }

  .products h2,
  .contact h2,
  .factory h2,
  .inquiry h2{
    font-size:26px;
    line-height:1.3;
  }

  .contact p,
  .factory p,
  footer p{
    font-size:14px;
  }

  .search-box{
    width:100%;
    font-size:14px;
    padding:12px;
  }

  .card img{
    width:100%;
    height:auto;
  }

  .card h3{
    font-size:18px;
    padding:15px;
  }

  .inquiry input,
  .inquiry textarea{
    font-size:14px;
    padding:12px;
  }

  .inquiry button{
    width:100%;
    font-size:15px;
    padding:14px;
  }

  footer{
    padding:30px 12px;
  }

  footer h3{
    font-size:24px;
  }

  .whatsapp-float{
    width:50px;
    height:50px;
  }

  .whatsapp-float img{
    width:28px;
  }
}

/* ===== LOADER ===== */

#loader{
   position:fixed;
   width:100%;
   height:100%;
   background:#f5f0ea;
   top:0;
   left:0;

   display:flex;
   flex-direction:column;
   justify-content:center;
   align-items:center;

   z-index:99999;

   transition:0.5s;
}

.spinner{
   width:70px;
   height:70px;

   border:6px solid #ddd;
   border-top:6px solid #8b5e3c;

   border-radius:50%;

   animation:spin 1s linear infinite;
}

#loader h2{
   margin-top:20px;
   color:#5b3a29;
   font-size:28px;
   letter-spacing:2px;
}

@keyframes spin{

   0%{
      transform:rotate(0deg);
   }

   100%{
      transform:rotate(360deg);
   }

}

/* ===== GALLERY ===== */

.gallery{
   padding:80px 20px;
   background:#fff;
   text-align:center;
}

.gallery h2{
   font-size:42px;
   margin-bottom:40px;
   color:#4a2c1d;
}

.gallery-grid{
   display:grid;
   grid-template-columns:
   repeat(auto-fit,minmax(250px,1fr));
   align-items:stretch;
   gap:20px;
}

.gallery-grid img{
   width:100%;
   height:280px;

   object-fit:contain;

   border-radius:12px;

   cursor:pointer;

   transition:0.4s;

   box-shadow:0 5px 15px rgba(0,0,0,0.1);

   background:white;
}

.gallery-grid img:hover{
   transform:scale(1.05);
}

/* BED COLLECTION FIX */

.bed-card img,
.product-card img{
   width:100%;
   height:200px;
   object-fit:contain;
   background:#fff;
   padding:10px;
}

.product-card{
   background:white;
   padding:20px;
   border-radius:15px;
   box-shadow:0 5px 15px rgba(0,0,0,0.1);
   text-align:center;
   transition:0.3s;
}

.product-card:hover{
   transform:translateY(-5px);
}

/* LATEST PRODUCTS */

.latest-products{
   padding:80px 8%;
   background:#fff;
}

.latest-products h2{
   text-align:center;
   margin-bottom:50px;
   font-size:40px;
   color:#4a2c1d;
}


#topBtn{
   display:none;
   position:fixed;
   bottom:110px;
   right:25px;
   z-index:9999;

   width:55px;
   height:55px;

   background:#8b5e3c;
   color:white;

   border:none;
   border-radius:50%;

   font-size:24px;
   font-weight:bold;

   cursor:pointer;

   box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

#topBtn:hover{
   background:#6f472d;
}