/* Storefront / ecommerce styles */
.storefront {
  padding: 2rem 0;
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  background: white;
  color: #0c1116;
}

.search-input:focus {
  outline: none;
  border-color: #0c4466;
  box-shadow: 0 0 0 3px rgba(12, 68, 102, 0.1);
}

.search-btn {
  padding: 0.75rem 1.25rem;
  background: #0c4466;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #053555;
}

/* Storefront Layout */
.storefront-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Sidebar */
.sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5ecf1;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0c1116;
}

/* Category Filter */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.category-item input[type="radio"] {
  cursor: pointer;
  accent-color: #0c4466;
}

.category-item span {
  cursor: pointer;
}

.category-item:hover span {
  color: #0c4466;
}

/* Price Filter */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.price-filter input {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid #d0d7e0;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Products Section */
.products-section {
  display: flex;
  flex-direction: column;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-count {
  color: #586069;
  font-size: 0.95rem;
  margin: 0;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  color: #0c1116;
}

.sort-select:focus {
  outline: none;
  border-color: #0c4466;
  box-shadow: 0 0 0 3px rgba(12, 68, 102, 0.1);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Product Card */
.product-card {
  background: white;
  border: 1px solid #e5ecf1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #0c4466;
}

.product-image {
  position: relative;
  overflow: hidden;
  background: #f5f7fb;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-category {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #0c4466;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c1116;
  line-height: 1.3;
}

.product-description {
  color: #586069;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5ecf1;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0c4466;
}

/* View Details Button */
.view-details-btn {
  background: #0c4466;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.view-details-btn:hover {
  background: #0a3654;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 68, 102, 0.3);
}

.view-details-btn:focus {
  outline: 2px solid #0c4466;
  outline-offset: 2px;
}

.view-details-btn:active {
  transform: translateY(0);
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #586069;
}

.no-results p {
  margin: 0;
  font-size: 1.1rem;
}

/* Storefront responsive */
@media (max-width: 768px) {
  .storefront-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .products-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

  .search-bar {
    max-width: 100%;
  }
}
