/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}



/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:  #ffffff;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
}

/* Nav Links */
.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-center a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-center a:hover,
.nav-center a.active {
  color:  #ff6f00;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #f0f0f0;
  top: 100%;
  left: 0;
  min-width: 140px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #222;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #ffecd1;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  color: #222;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .hamburger {
    display: block;
  }

  .nav-center {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background:  #ffffff;
    padding: 15px 0;
    text-align: center;
    transition: all 0.3s ease;
  }

  .nav-center.show {
    display: flex;
  }

  .nav-center a {
    margin: 10px 0;
  }


  
}

/* ========== CATEGORY BAR ========== */
.category-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 12px;
  background: #f7f7f7;
  padding: 10px 0;
  border-top: 1px solid #222;
 
  scroll-behavior: smooth;
  justify-content: flex-start;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  background:#fff;
  color: #222;
  text-decoration: none;
  transition: 0.3s;
}

.category-bar a.active,
.category-bar a:hover {
  background: #ffecd1;
  color: #222;
}

@media (min-width: 600px) {
  .category-bar {
    justify-content: center;
  }
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  width: 100%;
  overflow: hidden;
 
  height: 380px;
  position: relative;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
  padding: 40px 60px;
  background-color: #ffffff;
  color: #222;
}

.product-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ff6f00;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow:0 6px 15px rgba(73, 71, 69, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.product-info {
  margin-top: 10px;
}

.product-info h4 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}

.product-info p {
  color: #555;
  font-size: 0.9rem;
}

.price {
  color: #ff6f00;
  font-weight: 600;
  margin-top: 5px;
}

/* ========== FOOTER ========== */
.footer-top {
  background: #f5f5f5;
  color: #222;
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.footer-top {
  flex: 1 1 250px;
  margin-top: 20px;
}

.footer-top h3,
.footer-top h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-top p {
  max-width: 250px;
  opacity: 0.8;
}

.footer-top ul {
  list-style: none;
  padding: 0;
}

.footer-top ul li {
  margin: 8px 0;
}

.footer-top ul li a {
  color: #555;
  text-decoration: none;
}

.footer-top ul li a:hover {
  color: #222;
}
.footer-col{
  text-align: left;
}

.social-icons a img {
  width: 25px;
  margin-right: 12px;
  filter: brightness(40%);
  transition: 0.3s;
  color:black ;
}

.social-icons a img:hover {
  filter: brightness(10%);
}

footer {
  background: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #222;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.footer-bottom{
  background-color: #F5F5F5;
  margin: 0;
  display: flex;
 
  justify-content: center;
}



/* ========== RESPONSIVE OTHER SECTIONS ========== */
@media (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }

  .product-section {
    padding: 20px;
  }
}
@media(min-width: 320px) and (max-width: 767px) {
  .footer-col{
    text-align: center;
  }
   .hero-slider {
    height: 150px;
  }
  .slide{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.btn-load {
  display: block;
  margin: 30px auto;
  padding: 10px 25px;
  background: #ff6f00;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-load:hover {
  background: #e65c00;
}

/* CART SECTION */
.cart-section {
  padding: 40px 20px;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  margin: 10px auto;
  max-width: 600px;
  background: #fff;
}

.cart-item img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item button {
  background: #ff6f00;
  color: #fff;
  border: none;
  padding: 6px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #e65c00;
}

#cart-total {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
}

/* MOBILE FIXES (320px – 480px) */
@media (max-width: 480px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    padding: 30px 20px;
    text-align: center;
  }

  .social-icons a img {
    width: 22px;
  }
}

@media (max-width: 360px) {
  footer {
    padding: 24px 10px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 10px;
  }

  .dropdown-menu {
  display: none;
  flex-direction: column;
  background: #141414;
  border-radius: 6px;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 160px;
}

.dropdown-menu.show {
  display: flex;
}


/* ---------- dropdown hover (desktop) ---------- */
.dropdown {
  position: relative;
}

/* keep menu hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  color: #222;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  border-radius: 6px;
  min-width: 160px;
  z-index: 1200;
  flex-direction: column;
}

/* show on hover (desktop with pointer) */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* show when JS toggles .show (touch devices) */
.dropdown-menu.show {
  display: flex;
}

/* submenu item style */
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #000000;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #00bcd4;
  color: #000;
}
}

/* ========== FOOTER RESPONSIVE FIX (768px → 320px) ========== */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;    /* stack columns vertically */
    align-items: center;       /* center columns horizontally */
    text-align: center;        /* center text inside columns */
    gap: 25px;                 /* spacing between columns */
    padding: 30px 20px;
  }

  .footer-top .footer-col {
    max-width: 100%;           /* full width */
  }

  .footer-top ul {
    padding: 0;
  }

  .footer-top ul li {
    margin: 5px 0;
  }

  .social-icons {
    justify-content: center;   /* center social icons */
    gap: 12px;
  }
}

/* Extra small screens (480px → 320px) */
@media (max-width: 480px) {
  .footer-top {
    gap: 20px;
    padding: 25px 15px;
  }

  .footer-top h3,
  .footer-top h4 {
    font-size: 1.1rem;        /* slightly smaller headings */
  }

  .footer-top p {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .social-icons a img {
    width: 20px;
  }
}

@media (max-width: 360px) {
  .footer-top h3,
  .footer-top h4 {
    font-size: 1rem;
  }

  .footer-top p {
    font-size: 0.85rem;
  }

  .social-icons a img {
    width: 18px;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding: 10px 5px;
  }
  .hero-slider{
    height: 120px;
  }
  .slide{
    object-fit: cover;
  }
}

@media (max-width: 320px) {
  .footer-top {
    gap: 15px;
    padding: 20px 10px;
  }

  .footer-top h3,
  .footer-top h4 {
    font-size: 0.95rem;
  }

  .footer-top p {
    font-size: 0.8rem;
  }

  .social-icons a img {
    width: 16px;
  }

  .footer-bottom {
    font-size: 0.7rem;
    padding: 8px 5px;
  }
}

.footer-col img {
  height: 50px;
}






