/* SHOP STYLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at top, #0d0d0d 0%, #000 100%);
  color: #fff;
  min-height: 100vh;
}

/* Navbar Premium */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar:hover {
  border-bottom-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.2);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.8rem;
  color: #d4af37;
  font-weight: 900;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar .logo:hover {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.nav-links a:active {
  transform: translateY(0);
}

.nav-links a.active {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 1rem 1rem;
  }
  
  .navbar .logo {
    font-size: 1.4rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
}

.cart-btn {
  background: #FFD700;
  color: #000 !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#cart-count {
  background: #000;
  color: #FFD700;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.9rem;
}

/* Hero */
.hero-shop {
  margin-top: 80px;
  padding: 4rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #000);
  border-bottom: 2px solid #FFD700;
}

.hero-shop h1 {
  font-size: 3rem;
  color: #FFD700;
  margin-bottom: 1rem;
}

.hero-shop p {
  font-size: 1.2rem;
  color: #ccc;
}

/* Filtres */
.filters {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: #FFD700;
}

/* Grille produits */
.products-grid {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.product-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  background: #FFD700;
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.product-info h3 {
  color: #FFD700;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.product-info p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 40px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700;
}

.btn-add-cart {
  background: #FFD700;
  color: #000;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background: #e6c200;
  transform: scale(1.05);
}

.out-of-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Panier Sidebar */
.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: #1a1a1a;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #333;
}

.cart-header h2 {
  color: #FFD700;
  font-size: 1.5rem;
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-cart:hover {
  color: #FFD700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  background: #222;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #333;
}

.cart-item-info h4 {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.cart-item-info p {
  color: #ccc;
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.8rem;
}

.btn-qty {
  background: #FFD700;
  color: #000;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  background: #e6c200;
  transform: scale(1.1);
}

.btn-remove {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  margin-left: auto;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #333;
  background: #111;
}

.cart-total {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.cart-total strong {
  color: #FFD700;
  font-size: 1.5rem;
}

.btn-checkout {
  width: 100%;
  background: #FFD700;
  color: #000;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  background: #e6c200;
  transform: scale(1.02);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  border: 1px solid #FFD700;
}

.modal-content h2 {
  color: #FFD700;
  margin-bottom: 1.5rem;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #FFD700;
}

.btn-submit,
.btn-cancel {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.btn-submit {
  background: #FFD700;
  color: #000;
}

.btn-submit:hover {
  background: #e6c200;
}

.btn-cancel {
  background: #666;
  color: #fff;
}

.btn-cancel:hover {
  background: #555;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  background: #111;
  color: #aaa;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .hero-shop h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }
}
