* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
}

.site-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 30px 80px repeat(20, auto);
  position: relative;
}

.header-top {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  place-items: center;
  width: 100%;
  position: relative;
  z-index: 100;
  height: 30px;
  transition: background 0.3s ease;
}

.header-top .txt {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

header {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: 200px auto 200px;
  align-items: center;
  height: 80px;
  background-color: #000000;
  top: 0;
  position: relative;
  width: 100%;
  z-index: 1100;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Sticky look (always black) */
header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000; /* stays black */
  color: #fff;
  z-index: 999;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

/* Slide out when hiding */
header.hide,
.header-top.hide {
  transform: translateY(-100%);
}

.close-btn {
  display: none;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.menu-icon i {
  font-size: 22px;
  cursor: pointer;
  color: #f8f8f8;
}

/* --- Logo --- */
.header-logo,
.logo-img {
  display: flex;
  align-items: center;
  height: 100%;
  margin-bottom: 5px;
}

.logo-img img {
  position: absolute;
  margin-left: 20px;
  max-height: 220px;
  width: auto;
}

.header-tags,
.header-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-tags ul,
.header-icons ul {
  display: flex;
  list-style: none;
}

.header-tags a {
  text-decoration: none;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Karla", sans-serif;
  text-transform: uppercase;
  color: #ffffff;
}

.header-tags .nav-link.active,
.header-tags a:hover {
  color: #fc7753;
  text-decoration: underline 2px;
}

.header-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 6px;
}

.header-icons i {
  font-size: 22px;
  cursor: pointer;
  color: #ffffff;
}

.header-icons li:hover a {
  color: #fc7753;
}

#cart-count {
  background: red;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -50%);
}

.shop-container {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding: 20px;
  background-color: white;
}

/* Sidebar Filter Styles */
/* Sidebar base */
.sidebar-filter {
  background-color: rgba(0, 168, 120, 0.08);
  border-radius: 8px;
  padding: 20px;
  font-family: "Karla", sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.sidebar-filter {
  transform: translateX(-100%);
  transition: 0.3s ease;
}
.sidebar-filter.active {
  transform: translateX(0);
}

/* Close Button */
.filter-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  display: none; /* desktop par hide */
}

.filter-close i {
  pointer-events: none;
}

.sidebar-filter h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 18px;
}

.sidebar-filter label {
  font-size: 14px;
  color: var(--text-color);
}

.sidebar-filter input[type="number"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  border: none;
  outline: none;
  border: 1px solid #3333;
}

.sidebar-filter button {
  background-color: #00a878;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.sidebar-filter button:hover {
  background-color: #00996a;
}

.stock-filter {
  margin-top: 15px;
}

.stock-filter label {
  margin-left: 8px;
  font-size: 14px;
}

.categories-section,
.event-tags-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.categories,
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categories button,
.event-tags button {
  padding: 6px 14px;
  border: 1px solid #323639;
  border-radius: 6px;
  background-color: #fff;
  color: #323639;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.categories button:hover,
.event-tags button:hover {
  background-color: #323639;
  color: #fff;
}

.categories button.active,
.event-tags button.active {
  background-color: #00a878;
  color: #fff;
  border-color: #00a878;
}

.section-heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  margin-top: 20px;
  text-align: left;
  font-family: "Montserrat", sans-serif;
}

/* ✅ Product Card */
.product-card {
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 300px;
  border-radius: 15px;
  border: 1px solid #ddd;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  font-family: "Montserrat", sans-serif;
  background: #fff;
  padding-bottom: 12px; /* slightly smaller since no .product-info */
  text-align: center;
}

/* ✅ Image Section */
.image-container {
  width: 100%;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .discount-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ffaa2c;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 10px 0 10px 0;
  z-index: 1;
}

.product-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-card:hover .hover-img {
  opacity: 1;
}
.product-card:hover .default-img {
  opacity: 0;
}

/* ✅ Card Icons */
.card-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0; /* hidden by default */
  transform: translateY(-10px); /* thoda upar hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .card-icons {
  opacity: 1; /* visible on hover */
  transform: translateY(0); /* slide down smooth */
}

.card-icons i {
  background: #101010;
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.3s;
  cursor: pointer;
}

.card-icons i:hover {
  background: #333;
}

/* ==================== TEXT ELEMENTS (Compact) ==================== */
.product-card .product-name,
.product-card .product-stock,
.product-card .product-price {
  text-align: left; /* left-align */
  padding: 2px 12px; /* minimal top/bottom padding, keep left/right */
  margin: 0; /* remove extra margin between elements */
}

/* Product Name */
.product-card .product-name {
  font-size: 16px;
  font-weight: 700; /* bold */
  color: #333;
  margin-top: 4px; /* small gap from image */
}

/* Stock Status */
.product-card .product-stock {
  font-size: 13px;
  font-weight: 600;
}

.product-card .product-stock .in-stock {
  color: #00a878;
}
.product-card .product-stock .low-stock {
  color: #ff8c00;
}
.product-card .product-stock .out-of-stock {
  color: #d32f2f;
}

/* Price Section */
.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 700;
  margin-bottom: 2px;
}

.product-card .product-price .price {
  font-size: 15px;
  color: #252525;
  font-weight: 700;
}

.product-card .product-price .old-price {
  font-size: 14px;
  color: #777;
  text-decoration: line-through;
  font-weight: 600;
}

.product-card .product-price .discount {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 700;
}

/* ✅ Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  gap: 15px;
  justify-content: center; /* ✅ center kar diya grid ko */
  background-color: white;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ------------------------
   Coming Soon / No Products Card
------------------------ */
.product-card.no-products {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background-color: #fafafa;
  min-height: 300px; /* same as other product cards */
  text-align: center;
  color: #555;
  transition: transform 0.2s ease;
}

.product-card.no-products:hover {
  transform: scale(1.02);
}

.product-card.no-products .image-container {
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
}

.product-card.no-products .image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
}

.footer {
  grid-column: 1 / -1;
  grid-row: 4 / 5;
  background-color: #1c1c1c;
  color: #eee;
  padding: 50px 30px 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-logo img {
  width: 200px;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.footer-tagline {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.footer-links h4,
.footer-newsletter h4,
.footer-social h4 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffaa2c;
}

.footer-newsletter p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-newsletter form {
  display: flex;
  background: #333;
  border-radius: 30px;
  overflow: hidden;
}

.footer-newsletter input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.footer-newsletter input::placeholder {
  color: #aaa;
}

.footer-newsletter button {
  background-color: #ffaa2c;
  border: none;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-newsletter button:hover {
  background-color: #f57f17;
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
}

.footer-social .social-icons a {
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #ffaa2c;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #333;
}

.nav-icons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  z-index: 1;
  display: none;
}
.nav-icons a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  transition: color 0.3s ease;
}
.nav-icons a span {
  margin: 0;
  line-height: 1.2;
}
.nav-icons a .material-icons,
.nav-icons a .material-icons-outlined {
  font-size: 30px;
  margin-bottom: 2px;
}
.nav-icons a:hover,
.nav-icons a.active {
  color: #00a878;
}
.nav-icons a .material-icons {
  display: none;
}
.nav-icons a.active .material-icons {
  display: inline-block;
}
.nav-icons a.active .material-icons-outlined {
  display: none;
}

/* Mobile Filter Button */
.filter-toggle {
  display: none;
  position: fixed;
  bottom: 70px; /* above nav icons */
  right: 20px;
  background-color: #00a878;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 16px;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Floating Filter Button */
.filter-toggle {
  display: none;
}

/* Extra small devices (phones, portrait) */
@media screen and (max-width: 576px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  /* menu + icons hide normal state */
  .header-tags {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  /* ✅ Product Card */
  .product-card {
    width: 170px;
    height: 230px;
    border-radius: 13px;
  }

  /* ✅ Image Section */
  .image-container {
    width: 100%;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .product-card .discount-tag {
    font-size: 10px;
    padding: 6px 8px;
  }

  .product-card:hover .card-icons {
    opacity: 1; /* visible on hover */
    transform: translateY(0); /* slide down smooth */
  }

  /* Product Name */
  .product-card .product-name {
    font-size: 13px;
  }

  /* Stock Status */
  .product-card .product-stock {
    font-size: 10px;
  }

  .product-card .product-price .price {
    font-size: 11px;
    color: #252525;
    font-weight: 700;
  }

  .product-card .product-price .old-price {
    font-size: 10px;
    color: #777;
    text-decoration: line-through;
    font-weight: 600;
  }

  .product-card .product-price .discount {
    font-size: 9px;
    color: #d32f2f;
    font-weight: 700;
  }

  /* Product grid 1 card per row for very small screens */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .sidebar-filter {
    position: fixed;
    top: 0;
    left: -100%; /* hidden */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
  }

  .sidebar-filter.active {
    left: 0;
  }

  /* Add a close button inside */
  .sidebar-filter::before {
    content: "×";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
  }

  /* Shop container ek column ban jaye */
  .shop-container {
    grid-template-columns: 1fr !important;
  }

  .filter-toggle {
    display: block;
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #00a878;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 16px;
    z-index: 1100;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
}

/* Small devices (phones landscape, small tablets portrait) */
@media (min-width: 576px) and (max-width: 768px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  .header-tags {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }
  .sidebar-filter {
    position: fixed;
    top: 0;
    left: -100%; /* hidden */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
  }

  .sidebar-filter.active {
    left: 0;
  }

  /* Add a close button inside */
  .sidebar-filter::before {
    content: "×";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
  }

  /* Shop container ek column ban jaye */
  .shop-container {
    grid-template-columns: 1fr !important;
  }

  .filter-toggle {
    display: block;
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #00a878;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 16px;
    z-index: 1100;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* Medium devices (tablets portrait) */
@media (min-width: 768px) and (max-width: 992px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  /* menu + icons hide normal state */
  .header-tags {
    position: fixed;
    top: 0;
    right: -100%; /* hidden initially */
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: block;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  /* when active */
  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .sidebar-filter {
    position: relative; /* behave like a normal sidebar */
    transform: translateX(0); /* always visible */
    width: 250px;
    height: auto;
    box-shadow: none;
  }

  /* Hide close button and toggle on desktop */
  .filter-toggle,
  .sidebar-filter::before,
  .filter-close {
    display: none !important;
  }

  /* Shop container: sidebar + products */
  .shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}
/* Large screens 1200px and above: sidebar always visible */
@media (min-width: 1200px) {
  .sidebar-filter {
    position: relative; /* normal sidebar */
    transform: translateX(0); /* always visible */
    width: 280px; /* wider sidebar */
    height: auto;
    box-shadow: none;
  }

  /* Hide toggle & close buttons on big screens */
  .filter-toggle,
  .sidebar-filter .close-btn {
    display: none !important;
  }

  /* Sidebar + products side by side */
  .shop-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* sidebar + content */
    gap: 20px;
  }

  /* Adjust product grid for large screens */
  .product-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 products per row */
    gap: 24px;
  }
}

/* Extra large 1400px+ */
@media (min-width: 1400px) {
  .shop-container {
    grid-template-columns: 300px 1fr;
  }

  .sidebar-filter {
    width: 300px;
  }

  .product-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 products per row */
  }
}

/* Ultra wide 1600px+ */
@media (min-width: 1600px) {
  .shop-container {
    grid-template-columns: 320px 1fr;
  }

  .sidebar-filter {
    width: 320px;
  }

  .product-grid {
    grid-template-columns: repeat(6, 1fr); /* 6 products per row */
  }
}
