/* Store Category Products Page Styles */
*{
  text-decoration: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* .store-category-products-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
} */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.store-category-products {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  background: white;
  min-height: 100vh;
}

.page-header {
  padding-top: 2rem;
  margin-bottom: 3rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #5a6fd8;
}

.breadcrumb-separator {
  color: #999;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
}

.category-nav {
  margin-bottom: 3rem;
}

.category-nav h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.category-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-nav-item {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  color: #667eea;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
}

.category-nav-item:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
}

.products-section {
  padding-bottom: 2rem;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.products-header h2 {
  font-size: 1.8rem;
  color: #333;
  font-weight: 600;
}

.products-count {
  color: #666;
  font-size: 0.9rem;
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.product-card * {
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.12);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f5f6fa;
}

.product-thumb img,
.product-thumb .no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #99a0b0;
  font-weight: 500;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  width: 100%;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 700;
  margin: 0;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.add-to-cart-btn {
  flex: 1 1 auto;
  padding: 0.65rem 0.9rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.add-to-cart-btn:hover {
  background: #5a6fd8;
}

.add-to-cart-btn .cart-icon {
  stroke: currentColor;
}

.wishlist-btn {
  width: 44px;
  border: none;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
}

.wishlist-icon {
  stroke: currentColor;
  fill: none;
}

.wishlist-btn.is-active .wishlist-icon,
.wishlist-btn.active .wishlist-icon {
  fill: #ef4444;
  stroke: #ef4444;
}

.no-products {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-products-content {
  text-align: center;
  max-width: 500px;
}

.no-products-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-products-content h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.no-products-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.no-products-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  /* .store-category-products-container {
    max-width: 1200px;
    padding: 0 3rem;
  } */

  .store-category-products {
    max-width: 1200px;
    padding: 0 1.25rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* .store-category-products-container {
    padding: 0 1.25rem;
  } */

  .store-category-products {
    padding: 0 1.25rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-nav-grid {
    flex-direction: column;
  }

  .category-nav-item {
    text-align: center;
  }

  .no-products-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-thumb {
    height: 150px;
  }

  .product-info {
    padding: 0.75rem 0.85rem 1rem;
    gap: 0;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-actions {
    gap: 0.45rem;
  }

  .add-to-cart-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .store-category-products {
    padding: 0 1.25rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-thumb {
    height: 125px;
  }

  .product-info {
    padding: 0.5rem;
  }

  .product-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .add-to-cart-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
  }
}
