* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: url("/img/cart-bg.jpg");
  color: #1e1e1e;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #667eea;
}

#cartModal {
  display: none;
}

#cartModal {
  display: none;
  position: fixed;
  inset: 0;
  background: url('img/cart-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.cart-content {
  background: rgba(255, 255, 255, 0.9); /* Прозорий білий */
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  animation: slideIn 0.3s ease-out;
}



#cartModalContent {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  animation: slideIn 0.4s ease-out;
}

.cart-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-cart:hover {
  color: #ff4757;
}

#cartItems {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

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

.cart-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-item p {
  font-size: 0.9rem;
  color: #666;
}

.cart-item button {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.cart-item button:first-child {
  background: #ff6b6b;
  color: white;
}

.cart-item button:last-child {
  background: #28a745;
  color: white;
  margin-left: 10px;
}

.cart-total {
  text-align: center;
  font-weight: bold;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.checkout-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0 0 16px 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #5a65e0;
}


.cart-btn {
  background: #eef1f8;
  border: none;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.cart-btn:hover {
  background: #dfe4f0;
}

.cart-count {
  background: #667eea;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  text-align: center;
  padding: 9rem 1rem 5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out both;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.cta-btn {
  background: #fff;
  color: #333;
  border: none;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* Products */
.products {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #2c3e50;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: white;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

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

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  background: #f0f2f5;
  font-size: 2.5rem;
  color: #aaa;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.add-to-cart {
  background-color: #667eea;
  color: white;
  border: none;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: #5a65e0;
}

/* Footer */
footer {
  background: #1e1e2f;
  color: #ccc;
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .nav {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
