/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bogle&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #FFB900;
    --secondary-color: #970404;
    --light-background: #f2efef;
    --light-color: #fff;
    --text-color: #222;
    --lighter-color: #e9e5e5;
    --font_family2: "Raleway", sans-serif;
    --lato: 'Lato', sans-serif;
    --font_size1: 1.5rem;
    --font_size2: 1.3rem;
    --font_size3: 1.2rem;
    --font_size4: 1.125rem;
    --font_size5: 1rem;
    --font_size6: 0.875rem;
    --font_size7: 0.75rem;
    --font_size8: 0.625rem;
    --font_size9: 0.5rem;
    --border-radiusm: 8px;
    --border-radiuss: 4px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}


/* TOP BAR */
.topbar {
  background: #333;
  color: #fff;
  font-size: 14px;
  padding: 2px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  color: #ffd700;
  text-decoration: none;
}

.topbar .socials a {
  margin-left: 10px;
  color: #fff;
  font-size: 18px;
}

/* NAVBAR */
.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  top: 0;
  height: 100px;
  width: 62%;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #204E2A;
  text-decoration: none;
}
.logo span {
  color: #b8860b;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #204E2A;
}

.nav-icons i {
  font-size: 22px;
  margin-left: 15px;
  cursor: pointer;
  color: #333;
}

.nav-icons {
  width: 200px;
  display: flex;
}

.search-container {
  display: flex;
  margin-bottom: 20px;
  gap: 5px;
}

#searchBar {
  flex: 1;
  padding: 8px 24px;
  font-size: var(--font_size6);
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 10px;
  width: 500px;
}

#searchBtn {
  padding: 2px 15px;
  background: var(--primary-color);
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: var(--font_size6);
}

#searchBtn:hover {
  background: var(--secondary-color);
}


.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  width: 85%;
  margin: 0 100px;
  position: relative;
  justify-self: center;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  height: 70vh; 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding-left: 10%;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.btn {
  background: #204E2A;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background: #b8860b;
}

.category {
  margin: 24px 100px;
  display: flex;
  justify-content: space-between;
}

.category_product {
  display: flex;
  padding: 4px 16px;
  border: 1px solid silver;
  border-radius: 5px;
  width: 200px;
  justify-content: space-between;
  align-items: center;
}

.main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.main img {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

.main .content {
  display: block;
  align-items: center;
}

.main .content h4 {
  text-transform: uppercase;
  font-family: var(--font_family);
  font-size: var(--font_size7);
  padding: 0;
  line-height: 0.5;
}

.main .content p {
  font-family: var(--font_family);
  font-size: var(--font_size7);
  color: var(--primary-color);
}


 .category-item {
    margin-bottom: 10px; 
  }

  .category-label {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 5px;
   gap: 16px;
   background-color: transparent;
   font-size: var(--font_size6);
   
  }

  .subcategories {
    display: none;
    margin-left: 15px;
    margin-top: 5px;
    font-size: var(--font_size6);
  }

  .subcategories label {
    display: block;
  }

  .dropdown-toggle {
    font-size: 12px;
  }

  .category-item.active .subcategories {
    display: block;
  }

  .category-item.active .dropdown-toggle {
    transform: rotate(180deg);
  }

  .container {
    display: flex;
    gap: 24px;
    padding: 40px 100px;
    justify-content: space-between;
  }

.main-content {
        display: flex;
        gap: 24px;
    padding: 40px 100px;
  }

  /* Sidebar */
  .sidebar {
    width: 400px;
    border: 1px solid rgb(223, 221, 221);
    border-radius: 10px;
    padding: 24px;
  }

  

  .subcategories label {
    display: block;
    padding: 3px 0;
    cursor: pointer;
  }

  /* Product grid */
  .products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    width: 850px;
  }

  .products-section a {
    text-decoration: none;
  }

  .sidebar h4, .advert_container h4 {
    text-transform: uppercase;
    font-size: var(--font_size6);
    margin-bottom: 8px;
    color: #222;
    font-family: var(--font_family2);
  }

    .best_sellers {
    margin-top: 32px;
    line-height: 0;
   }

   .best_sellers .seller {
     display: flex;
     gap: 8px;
   }

   .best_sellers img {
    width: 50px;
    height: 50px;
   }

   .product-card img {
    width: 60%;
    height: 80px;
   }

    .product-card h3 {
     font-family: var(--font_family2);
      font-size: var(--font_size6);
      font-weight: 700;
      text-align: left;
      color: #000;
    padding: 0;
    
    }

    .category-box {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 0 24px;
      border: 1px solid silver;
      border-radius: 10px;
      width: 200px;
      justify-content: space-between
    }

    .content-box {
      line-height: 0.5;
    }


    
     .product-card h4 {
       font-family: black;
      font-size: 10px;
      font-weight: 300;
      text-align: left;
      color: green;
      text-transform: uppercase;
    }
.pagination-tabs {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination-tabs button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-tabs button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.products-header {
  margin-bottom: 32px;
  width: 100%;
  justify-content: space-between;
  display: flex;
  font-size: 18px;
  font-family: var(--font_family);
}

h1 {
  font-family: var(--font_family2);
  color: #970404;
}

    /* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}


     .product-card .price {
text-align: left;
font-weight: 600;
color: rgb(63, 63, 63);
font-family: var(--font_family);
font-size: var(--font_size6);
  }

  .ratings {
    text-align: left;
    color: var(--primary-color);
    font-size: 12px;
    line-height: 0;
  }


  .product-card button {
    margin-top: 10px;
    padding: 5px 10px;
    background: transparent;
    border: none;
    color: silver;
    border-radius: 3px;
    cursor: pointer;
  }

  .product-card button:hover {
    background: rgb(245, 245, 245);
  }

  .dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 130px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.footer {
    color: white;
    display: flex;
    gap: 120px;
    justify-content: center;
}

.footer .first {
    width: 30%;
}

.footer_desc {
    margin: 16px 0;
    font-family: var(--lato);
    font-weight: 300;
    line-height: 1.6;
    font-size: var(--font_size6);
}

.social_links .bx {
    font-size: 20px;
    margin-right: 8px;
}

.footer_logo {
  font-weight: bold;
  font-size: 22px;
  color: white;
}

.footer .second {
    display: flex;
    gap: 80px;
}

.footer .quick_links {
    font-family: var(--font_family2);
    font-size: var(--font_size5);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer .third {
    display: block;
}

.footer .third img {
   width: 50px;
   height: 50px;
   margin-right: 8px;
   border-radius: 5px;
}

.footer .links a {
    text-decoration: none;
    list-style: none;
    font-family: var(--lato);
    color: white;
}

.footer .links li {
    text-decoration: none;
    list-style: none;
    color: white;
    font-family: var(--lato);
    font-weight: 300;
    font-size: var(--font_size6);
}

.footer_section {
    background: #333;  padding: 60px 100px;
}

.copy_right {
    justify-self: center;
    color: white;
    font-weight: 200;
    font-family: var(--font_family2);
}



  /* Responsive */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
    }
    .products {
      justify-content: center;
    }
  }

#closeSidebar {
  display: none;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.products {
  flex: 1;
  padding: 0;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: 0.3s;
  width: 170px;
  border: 1px solid silver;
  height: 270px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.card-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
}

.like-btn.active i {
  color: red;
}

.cart-btn.added i {
  color: green;
}

.save-btn.active i {
  color: orange;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    padding-top: 50px; 
}
.modal-content {
    background: #fff; 
    margin: auto; 
    padding: 20px; 
    width: 90%; 
    max-width: 500px; 
    border-radius: 10px; 
    position: relative;
}

.advert_container {
  margin-top: 40px;
}

.advert {
  display: flex;
  gap: 8px;
  line-height: 0.2;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: 8px;
}

.advert_content h5 {
  line-height: 0.2;
}


/* === Mobile Styles === */
@media(max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 10;
    width: 250px;
    background: #fff;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
  }

  #closeSidebar {
    display: block;
  }

  .hamburger {
    display: block;
  }
}


/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
  color: #fff;
  transition: 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  color: #b8860b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-slide {
    height: 60vh;
    padding-left: 5%;
    justify-content: center;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 28px;
  }
}


/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    background: #fff;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .nav-icons {
    display: none;
  }

  .topbar .container {
    flex-direction: column;
    text-align: center;
  }
}
