* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.site-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 20px;
}

.main-header {
  background: linear-gradient(135deg, #0c5eff 0%, #0a4cc9 100%);
  padding: 48px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(12, 94, 255, 0.2);
  margin-bottom: 32px;
}

.title {
  text-align: center;
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
}

.catalog-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.catalog-section {
  flex: 1;
}

.budget-and-cart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  position: sticky;
  top: 20px;
  flex-shrink: 0;
}

.budget-panel,
.cart-section {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.budget-panel h2,
.cart-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #e2e8f0;
  font-weight: 600;
}

.budget-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.budget-buttons button {
  background-color: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: calc(50% - 4px);
  font-weight: 600;
}

.budget-buttons button:hover {
  background-color: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
}

.budget-buttons button.active {
  background-color: #0c5eff;
  color: #fff;
  border-color: #0c5eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 94, 255, 0.3);
}

.budget-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.budget-summary span {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.budget-summary strong {
  font-weight: 700;
  color: #f1f5f9;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-header h2 {
  color: #e2e8f0;
  font-weight: 600;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-controls button {
  background-color: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-controls button.active {
  background-color: #0c5eff;
  color: white;
  border-color: #0c5eff;
  box-shadow: 0 4px 12px rgba(12, 94, 255, 0.3);
}

.budget-warning {
  margin: 8px 0 0 0;
  padding: 8px 0;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.budget-warning.over-budget {
  color: #ff6b6b;
  font-weight: 600;
}

.budget-warning.within-budget {
  color: #51cf66;
  font-weight: 600;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 40px;
  justify-content: start;
}

.product-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(12, 94, 255, 0.5);
  box-shadow: 0 12px 32px rgba(12, 94, 255, 0.15);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 14px;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
  opacity: 1;
}

.product-card h3 {
  color: #e2e8f0;
  margin: 6px 0 4px 0;
  font-weight: 600;
}

.product-category,
.product-price {
  margin: 6px 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.product-price {
  color: #0c5eff;
  font-weight: 700;
}

.product-description {
  margin: 8px 0 14px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #0c5eff 0%, #0a4cc9 100%);
  border: 1px solid #0c5eff;
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(12, 94, 255, 0.2);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 94, 255, 0.35);
}

.cart-items {
  min-height: 140px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 0.95rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 12px;
}

.cart-total {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1.05rem;
}

.remove-button,
#clear-cart {
  background-color: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.remove-button:hover,
#clear-cart:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff6b6b;
}

button {
  text-align: center;
  background: linear-gradient(135deg, #0c5eff 0%, #0a4cc9 100%);
  border: 1px solid #0c5eff;
  padding: 0 10px;
  height: 40px;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 94, 255, 0.2);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 94, 255, 0.35);
}

.price-dropdown{
  background-color:rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.price-dropdown option{
  background-color: #1e293b;
  color: #e2e8f0
}