* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: Arial, sans-serif;
}

.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 10px 20px;
  position: relative;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo img {
  max-height: 40px;
}

.left,
.header-icons-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.left img,
.header-icons-right img {
  max-height: 28px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.left img:hover,
.header-icons-right img:hover {
  opacity: 0.7;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #fff;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

.close-btn:hover {
  color: #999;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  padding: 12px 24px;
  border-radius: 5px;
}

.menu-list li:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-list a {
  display: block;
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.filter-card {
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
}

.filter-card h6 {
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-filter:checked,
input[type="radio"]:checked {
  accent-color: #0d6efd;
}

.size-btn {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  background: #fff;
}

.size-btn.active {
  background: #0d6efd;
  color: #fff;
}

#productsGrid .product-card {
  border: 1px solid #f1f1f1;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

#productsGrid .product-card:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-info h6 {
  font-weight: 600;
  font-size: 15px;
  text-transform: capitalize;
  margin: 6px 0 4px;
}

.price {
  font-weight: 700;
  color: #d00;
}

.badge-stock,
.badge-stock-out,
.badge-stock-none {
  display: inline-block;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 6px;
}

.badge-stock {
  background: #eee;
  color: #333;
}

.badge-stock-out {
  background: #000;
  color: #fff;
}

.badge-stock-none {
  background: transparent;
}

.product-card.faded img {
  opacity: 0.3;
}

.product-card.faded h6,
.product-card.faded .price {
  opacity: 0.5;
}

.cart-item {
  position: relative;
  padding-right: 40px;
}

.cart-item .remove-item {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  font-size: 16px;
  border-radius: 50%;
  border: 1px solid #dc3545;
  background: #fff;
  color: #dc3545;
  cursor: pointer;
  transition: 0.2s;
}

.cart-item .remove-item:hover {
  background: #dc3545;
  color: #fff;
}

.carousel-indicators img {
  width: 70px;
  display: block;
}

.carousel-indicators button {
  width: max-content !important;
}

.carousel-indicators {
  position: unset;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  height: 900px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  box-sizing: border-box;
}

.grid img {
  width: 655px;
  height: 445px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.05);
}

.collections h1 {
  font-size: 24px;
  margin: 20px 0;
  color: rgb(0, 0, 0);
}

.collection-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}

.collection {
  position: relative;
  width: 120px;
  height: 120px;
  text-align: center;
  cursor: pointer;
}

.collection img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(0.5);
  transition: transform 0.4s ease;
}

.collection:hover img {
  transform: scale(1);
}

.collection p {
  margin-top: -10px;
  font-size: 14px;
  color: rgb(0, 0, 0);
}

.collections {
  margin-bottom: 20px;
}

.btn-cart,
.btn-buy-now,
.btn-love {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-cart {
  background-color: #fff;
  color: #212529;
  border-color: #dee2e6;
}

.btn-cart:hover {
  background-color: #212529;
  color: #fff;
  border-color: #212529;
}

.btn-buy-now {
  background-color: #212529;
  color: #fff;
}

.btn-buy-now:hover {
  background-color: #495057;
  transform: scale(1.02);
}

.btn-love {
  background-color: #f8f9fa;
  color: #dc3545;
  font-size: 1.2rem;
  padding: 8px 14px;
}

.btn-love:hover {
  background-color: #e9ecef;
  transform: scale(1.1);
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  transition: top 0.4s ease;
}
.search-overlay.active {
  top: 0;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #d33;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  max-width: 800px;
  margin: 0 auto 20px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 6px 8px;
}
.btn-search,
.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}
.btn-search:hover,
.btn-close:hover {
  color: #d33;
}

.search-dropdown {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dropdown-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.popular-tags span {
  display: inline-block;
  background: #e84c4c;
  color: #fff;
  padding: 5px 12px;
  margin: 4px 6px 4px 0;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
}
.popular-tags span:hover {
  background: #c33;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recent-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}
.recent-info p {
  margin: 0;
  font-size: 14px;
}
.badge-stock {
  display: inline-block;
  background: #d33;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.recent-price {
  color: #d33;
  font-weight: 600;
}

/* ===========================
   FOOTER
=========================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #c2c2c2;
  color: #fff;
}
