* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

body {
  background: #ffffff;
}

/* ===== Topbar ===== */
.topbar {
  background: #000;
  color: #fff;
  font-size: 14px;
  padding: 5px 0;
}

/* ===== Header ===== */
header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
header .search-bar input {
  border-radius: 30px 0 0 30px;
  border: 1px solid #ddd;
  padding: 10px 15px;
}
header .search-bar button {
  border-radius: 0 30px 30px 0;
  border: 1px solid #ddd;
  background: #198754;
  color: #fff;
}
header .icons a {
  margin-left: 15px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
header .icons a:hover {
  color: #198754;
}

/* ===== Navbar ===== */
.navbar {
  background: #f8f9fa;
  font-weight: 500;
}
.navbar-nav .nav-link:hover {
  color: #198754;
}

/* ===== Sidebar ===== */
.sidebar {
  height: 100%;
  width: 280px;
  position: fixed;
  top: 0;
  left: -280px;
  background: #fff;
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 1050;
  padding-top: 20px;
}
.sidebar h5 {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}
.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sidebar ul li {
  border-bottom: 1px solid #f1f1f1;
}
.sidebar ul li a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  display: block;
  padding: 12px 20px;
  transition: all 0.3s;
}
.sidebar ul li a:hover {
  background: #198754;
  color: #fff;
  padding-left: 30px;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

/* Active Sidebar */
.sidebar.active {
  left: 0;
}
.overlay.active {
  display: block;
}

/* shop card and filter */

/* ===== Sidebar (Shop By + Filter) ===== */
.sidebar {
  height: 100%;
  width: 280px;
  position: fixed;
  top: 0;
  left: -280px;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 1050;
  padding: 20px;
  overflow-y: auto;
}
.sidebar.active {
  left: 0;
}
.filter-sidebar {
  right: -300px;
  left: auto;
  width: 300px;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
}
.filter-sidebar.active {
  right: 0;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}
.close-btn:hover {
  color: red;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1040;
}
.overlay.active {
  display: block;
}

/* ===== Product Card ===== */
.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  background: #fff;
}
.product-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}
.product-image {
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
/* Wishlist + Quick View */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-actions button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  text-decoration: none;
  border: none;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.product-actions button:hover {
  background: green;
  color: #fff;
  border: none;
}

/* Add to Cart hover button (desktop) */
.add-to-cart-hover {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: green;
  color: #fff;
  text-align: center;
  border: none;
  padding: 10px;
  font-weight: 500;
  transition: 0.3s;
  opacity: 0;
}
.product-card:hover .add-to-cart-hover {
  bottom: 0;
  opacity: 1;
}

/* Product Details */
.product-details {
  padding: 10px;
  text-align: left;
}
.product-details h6 {
  font-size: 14px;
  font-weight: 600;
}
.product-price {
  font-size: 18px;
  font-weight: bold;
  color: green;
  margin:8px 0;
}

/* Mobile Add to Cart button */
@media (max-width: 768px) {
  .add-to-cart-hover {
    display: none !important;
  }
  .add-to-cart-mobile {
    display: block;
    background: green;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 10px;
  }
}
@media (min-width: 769px) {
  .add-to-cart-mobile {
    display: none;
  }
}

/* footer css */
    footer {
      background: #f7f7f7;
      padding: 50px 20px 20px;
      color: #000000;
    }

    .footer-container {
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 30px;
    }

    .footer-col h3 {
      font-size: 20px;
      margin-bottom: 15px;
      color: #000000;
      font-weight: 700;
    }

    .footer-col p,
    .footer-col a {
      font-size: 14px;
      line-height: 24px;
      text-decoration: none;
      color: #000000;
      display: block;
      transition: color 0.3s ease;
    }

    .footer-col a:hover {
      color: #000000;
    }

   
    /* Bottom bar */
    .footer-bottom {
      border-top: 1px solid #ffffff;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      color: #ffffff;
      background-color: #000000;
      padding: 20px 15px 10px 15px;
    }

    .payments img {
      height: 30px;
      margin-left: 10px;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
    }

    /* price folter */
    /* CSS */
.price-filter {
  max-width: 250px;
  font-family: Arial, sans-serif;
}

#slider-range {
  margin-top: 10px;
}

.filter-btn {
  margin-top: 15px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.filter-btn:hover {
  background: #333;
}


.price-filter h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #000;
}

.range-slider {
  position: relative;
  height: 30px;
  margin-bottom: 15px;
}

.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none; /* allow overlap */
  -webkit-appearance: none;
  height: 3px;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  margin-top: -5.5px;
}

.range-slider input[type="range"]::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

.price-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-display input {
  border: 1px solid #ccc;
  padding: 5px 8px;
  font-size: 12px;
  width: 100px;
  text-align: center;
}

.filter-btn {
  background: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.filter-btn:hover {
  background: #333;
}
