/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap");



/* Global Reset and Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  list-style: none;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

/* Root Variables */
/* :root {
  --text-color: #000000;
  --main-color: #83b735;
} */
:root {
  --text-color: #ffffff;
  --main-color: #333333;
  --bg-color: #000000;
  --secondary-color: #444444;
}

/* Section Styles */
section {
  padding: 50px 10%;
}

/* Header Styles */
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 100px;
  /* background: #edecea; */
  background: var(--main-color);
}

/* Logo Styles */
/* .logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.logo span {
  color: var(--main-color);
} */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* Adjust this value based on your logo size */
  width: auto;
  filter: brightness(0) invert(1);
}

/* Navbar Styles */
.navbar {
  position: relative;
  display: flex;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-color);
}

.navbar a:hover {
  /* color: var(--main-color); */
  color: #ffffff;
  background: var(--secondary-color);
}

/* Menu Icon Styles */
#menu-icon {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

/* Home Styles */
/* .home {
  width: 100%;
  min-height: 100vh;
  background-image: url(../img/bg1.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  z-index: 1;
} */

.home {
  width: 100%;
  min-height: 100vh;
  background-image: url(../img/bg1.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;  /* Change back to absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  /* Use 100% instead of 100vh */
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .home {
    background-attachment: scroll;
    background-position: center;
  }

  .logo img {
    height: 30px; /* Reduced from 40px for mobile devices */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 25px; /* Even smaller for very small screens */
  }
}

.home * {
  z-index: 2;
}

.home-text h1 {
  font-size: 2.7rem;
  color:var(--text-color);
}

.home-text p {
  font-size: 0.938rem;
  color:var(--text-color);
  margin: 0.4rem 0 1.8rem;
}

.home-text span {
  color:var(--text-color);
}

/* Button Styles */
.btn {
  padding: 10px 14px;
  /* background: var(--main-color);
  color: #fff; */
  background: var(--secondary-color);
  color: var(--text-color);
  border-radius: 0.3rem;
  font-size: 14px;
}

.btn:hover {
  background: var(--main-color);
  /* background: #8fc53d; */
}

/* Heading Styles */
.heading {
  text-align: center;
}
.heading h2 {
  color: var(--secondary-colo);
}

.heading span {
  font-size: 14px;
  font-weight: 500;
  /* color: var(--main-color); */
  color: #888888;
  text-transform: uppercase;
}

/* Shop and New Container Styles */
.shop-container,
.new-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* Box Styles */
.box {
  position: relative;
  box-shadow: 1px 4px 4px rgb(0, 0, 0, 0.1);
  border-radius: 44px 4px 4px 4px;
  background: var(--main-color);
  border: 1px solid var(--secondary-color);
}

.box .box-img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 44px 4px 0 0;
}

.box .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.box .box-img img:hover {
  transform: scale(1.1);
  transition: 0.5s;
}

/* Title and Price Styles */
.title-price {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: var(--text-color);
}

.title-price h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Box Span Styles */
.box span {
  font-size: 1.1rem;
  font-weight: 500;
  padding-left: 12px;
  color: var(--main-color);
}

/* Stars Styles */
.stars .bx {
  color: var(--main-color);
}

/* Box Cart Styles */
.box .bx-cart {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 7px;
  font-size: 20px;
  color: #fff;
  border-radius: 4px 0 4px 0;
  background: var(--main-color);
}

.box .bx-cart:hover {
  background: #8fc53d;
}

/* New Container Box Styles */
.new-container .box {
  border-radius: 4px;
}

.new-container .box .box-img {
  border-radius: 4px;
}

/* About Container Styles */
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-img img {
  width: 80%;
  border-radius: 10px;
  object-fit: contain;
}

.about-text span {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  /* color: var(--main-color); */
  color: var(--text-color);
}

.about-text p {
  font-size: 0.938rem;
  margin: 0.5rem 0 1.4rem;
}

/* Brands Container Styles */
.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.brands-container img {
  width: 100px;
  filter: grayscale(1);
}

.brands-container img:hover {
  width: 100px;
  filter: grayscale(0);
}

/* Newsletter Styles */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(img/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background: var(--main-color);
}

.newsletter h2 {
  color: #fff;
}

/* News Box Styles */
.news-box {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.news-box input {
  width: 260px;
  height: 44px;
  border: none;
  outline: none;
  background: #fff;
  padding: 10px;
}

.news-box .btn {
  height: 44px;
  padding: 11px;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
}

/* Footer Styles */
.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1rem;
  background: var(--main-color);
}

/* Footer Box Styles */
.footer-box h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.footer-box span {
  /* color: var(--main-color); */
  color: var(--text-color);
}

.footer-box p {
  font-size: 00.938rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Social Styles */
.social {
  display: flex;
  align-items: center;
}

.social a {
  font-size: 24px;
  margin-right: 10px;
  color: var(--text-color);
}

.social a:hover {
  /* color: var(--main-color); */
  color: #888888;
}

/* Footer Box H3 Styles */
.footer-box h3 {
  font-weight: 500;
  margin-bottom: 10px;
}

/* Footer Box List Item Styles */
.footer-box li a {
  color: var(--text-color);
}

.footer-box li a:hover {
  color: var(--main-color);
}

/* Contact Info Styles */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info span {
  color: var(--text-color);
}

/* Copyright Styles */
.copyright {
  padding: 20px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
  header {
    padding: 18px 4%;
  }
  section {
    padding: 50px 4%;
  }
}

@media (max-width: 881px) {
  .home-text h1 {
    font-size: 2rem;
  }
  .shop-container,
  .new-container {
    grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  }
}

@media (max-width: 991px) {
  .shop-container {
      grid-template-columns: repeat(3, 1fr); /* 3 items per row for tablets */
      gap: 0.8rem;
  }
}
@media (max-width: 991px) {
  .shop-container {
      grid-template-columns: repeat(3, 1fr); /* 3 items per row for tablets */
      gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .shop-container {
      grid-template-columns: repeat(2, 1fr); /* 2 items per row for mobile */
      gap: 0.6rem;
  }
  
  .box .box-img {
      height: 200px; /* Reduce image height for mobile */
  }

  .title-price h3 {
      font-size: 0.9rem; /* Smaller font size for mobile */
  }
}

@media (max-width: 480px) {
  .shop-container {
      grid-template-columns: repeat(2, 1fr); /* Maintain 2 items per row for smaller devices */
      gap: 0.5rem;
      padding: 0 0.5rem;
  }
  
  .box {
      margin-bottom: 0.5rem;
  }
  
  .box .box-img {
      height: 150px; /* Further reduce image height for smaller devices */
  }
}

@media (max-width: 768px) {
  header {
    padding: 11px 4%;
  }
  #menu-icon {
    display: initial;
    color:var(--text-color);
  }
  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--main-color);
    /* background: #fff; */
    box-shadow: 0 4px 4px rgb(0 0 0 /10%);
    transition: 0.2s ease;
    text-align: center;
  }
  .navbar a {
    padding: 1.5rem;
    display: block;
  }
  .navbar.active {
    top: 100%;
  }
  .navbar a:hover {
    color: #fff;
    background: var(--secondary-color);
    /* background: var(--main-color); */
  }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img {
    padding-top: 1rem;
    order: 2;
  }
}

@media (max-width: 491px) {
  .home-text h1 {
    font-size: 1.7rem;
  }
  .shop-container,
  .new-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 2));
  }
  .box .box-img {
    height: 300px;
  }
  .news-box input {
    width: 180px;
  }
  .about-text h2 {
    font-size: 1.2rem;
  }
}

.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* .switch:hover */.sun svg {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
 
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
 
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

/* Category Filters */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background:#000000;
  /* background: transparent; */
  border: 2px solid var(--secondary-color);
  color: var(--text-color);
  /* border: 2px solid var(--main-color);
  color: var(--text-color); */
  border-radius: 0.3rem;
  cursor: pointer;
  font-size: 0.938rem;
  font-weight: 500;
  transition: 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  /* background: var(--secondary-color); */
  background: var(--main-color);
  color: #fff;
}

/* Hide filtered items */
.box.hidden {
  display: none;
}


/* Social Links Section */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  background: var(--secondary-color);
  /* background: var(--main-color); */
  color: #fff;
  border-radius: 0.3rem;
  font-size: 1rem;
  transition: 0.3s;
  min-width: 250px;
  justify-content: center;
}

.social-btn:hover {
  /* background: #8fc53d; */
  background: var(--main-color);
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 1.5rem;
}

.logo-icon {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .social-btn {
      min-width: 200px;
      font-size: 0.9rem;
  }
}


/* Video Box Styles */
.video-box {
  padding: 10px;
  background: var(--main-color);
  border-radius: 4px;
}

.video-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-box .title-price {
  padding: 5px;
  text-align: center;
}

.video-box .title-price h3 {
  color: var(--text-color);
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-container {
      height: 200px;
  }
}

.new-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 20px 0;
}
/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-whatsapp i {
  font-size: 35px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
  .floating-whatsapp {
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
  }
  
  .floating-whatsapp i {
      font-size: 30px;
  }
}