.shop {
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shop-header h1 {
  color: #000;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.shop-header p {
  color: #666;
  font-size: 1.1rem;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-bar {
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #FFB400;
}

.category-filter {
  min-width: 200px;
}

.category-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.category-select:focus {
  outline: none;
  border-color: #FFB400;
}

.products-section {
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: fit-content;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.out-of-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #000;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  color: #FFB400;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-stock {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.view-product {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: white;
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.view-product:hover:not(.disabled)::before {
  left: 100%;
}

.view-product:hover:not(.disabled) {
  background: linear-gradient(135deg, #d4a574 0%, #e6b684 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.view-product:active:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.view-product.disabled {
  background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%);
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.no-products {
  text-align: center;
  padding: 4rem 2rem;
}

.no-products h3 {
  color: #666;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.no-products p {
  color: #999;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar,
  .category-filter {
    max-width: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-header h1 {
    font-size: 2rem;
  }
}
