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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg, #0d0d0d);
  color: var(--text, #f5f5f5);
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
}

.site-header {
  background-color: var(--bg-secondary, #1a1a1a);
  border-bottom: 3px solid var(--primary, #ff7518);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary, #ff7518);
  letter-spacing: 2px;
}

.theme-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  min-width: 200px;
}

.theme-btn {
  background: transparent;
  border: 2px solid var(--primary, #ff7518);
  color: var(--text, #f5f5f5);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.theme-btn:hover, .theme-btn.active {
  background-color: var(--primary, #ff7518);
  color: var(--bg, #0d0d0d);
}

.cart-icon {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary, #ff7518);
}

.category-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg, #0d0d0d);
  flex-wrap: wrap;
}

.category-btn {
  background: var(--card-bg, #1f1f1f);
  border: 1px solid var(--border, #ff7518);
  color: var(--text, #f5f5f5);
  padding: 8px 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
  background-color: var(--primary, #ff7518);
  color: var(--bg, #0d0d0d);
  font-weight: bold;
}

main {
  padding: 20px;
}

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: var(--card-bg, #1f1f1f);
  border: 1px solid var(--border, #ff7518);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: white;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-price {
  color: var(--primary, #ff7518);
  font-weight: bold;
  font-size: 18px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  background: var(--card-bg, #1f1f1f);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 20px;
}

.lightbox-content img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: var(--primary, #ff7518);
  z-index: 10;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  margin-top: -220px;
  margin-bottom: 180px;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: all;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-info {
  margin-top: 20px;
}

.lightbox-price {
  font-size: 22px;
  color: var(--primary, #ff7518);
  font-weight: bold;
  margin: 10px 0;
}

.btn-primary {
  background-color: var(--primary, #ff7518);
  color: var(--bg, #0d0d0d);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* PANIER */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90%;
  height: 100vh;
  background: var(--card-bg, #1f1f1f);
  z-index: 900;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
/* Dans ton style.css, ajoute à la section PANIER : */

#proceed-to-payment {
  margin-top: 15px;
  margin-bottom: 10px;
}

#paypal-button-container {
  margin-top: 15px;
}

.cgu-option {
  margin: 15px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cgu-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #ff7518);
  flex-shrink: 0;
  margin-top: 2px;
}

.cgu-option label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.cart-panel.hidden {
  display: none;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary, #ff7518);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.cart-header .lightbox-close {
  position: static;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 10px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
}

.cart-item-remove {
  cursor: pointer;
  color: var(--primary, #ff7518);
  font-weight: bold;
  flex-shrink: 0;
}

.cart-footer {
  margin-top: 20px;
  border-top: 2px solid var(--primary, #ff7518);
  padding-top: 15px;
}

.cart-total {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary, #ff7518);
}

.pickup-option,
.cgu-option {
  margin: 15px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pickup-option input[type="checkbox"],
.cgu-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #ff7518);
  flex-shrink: 0;
}

.pickup-option label,
.cgu-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.checkout-form input, .checkout-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #ff7518);
  background: var(--bg, #0d0d0d);
  color: var(--text, #f5f5f5);
  font-family: inherit;
  font-size: 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800;
}

.overlay.hidden {
  display: none;
}

.site-footer {
  text-align: center;
  padding: 30px;
  color: var(--text, #f5f5f5);
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

/* ========================
   📱 RESPONSIVE MOBILE
   ======================== */

@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 15px;
  }

  .logo {
    font-size: 24px;
  }

  .theme-nav {
    gap: 8px;
  }

  .theme-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .category-btn {
    padding: 6px 15px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .product-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px;
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .theme-nav {
    width: 100%;
    justify-content: space-around;
    gap: 6px;
  }

  .theme-btn {
    padding: 6px 10px;
    font-size: 11px;
    flex: 1;
    text-align: center;
  }

  .category-bar {
    padding: 15px 10px;
    gap: 10px;
  }

  .category-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }

  main {
    padding: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .product-card img {
    height: 140px;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price {
    font-size: 15px;
  }

  .cart-panel {
    width: 100%;
    max-width: 100%;
  }

  .checkout-form input, 
  .checkout-form textarea {
    font-size: 16px;
  }

  .lightbox-content {
    padding: 15px;
  }

  .lightbox-content img {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px;
  }

  .logo {
    font-size: 18px;
  }

  .theme-nav {
    gap: 4px;
  }

  .theme-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .category-bar {
    padding: 10px 5px;
    gap: 8px;
  }

  .category-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .product-card img {
    height: 100px;
  }

  .product-info {
    padding: 8px;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .product-price {
    font-size: 13px;
  }

  .cart-panel {
    width: 100%;
    padding: 15px;
  }

  .cart-item {
    flex-direction: row;
    gap: 8px;
  }

  .cart-item img {
    width: 40px;
    height: 40px;
  }

  .checkout-form {
    gap: 8px;
  }

  .checkout-form input, 
  .checkout-form textarea {
    font-size: 14px;
    padding: 8px;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .lightbox-content {
    padding: 12px;
    width: 95%;
  }

  .lightbox-content img {
    max-height: 250px;
  }

  .lightbox-nav {
    margin-top: -160px;
    margin-bottom: 120px;
  }

  .lightbox-close {
    font-size: 24px;
  }

  .site-footer {
    padding: 15px;
    font-size: 12px;
  }

  .pickup-option,
  .cgu-option {
    font-size: 12px;
    gap: 8px;
  }

  .pickup-option input[type="checkbox"],
  .cgu-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  
  /* ========================
   FORMULAIRE CHECKOUT
   ======================== */

.checkout-form {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.checkout-form h3 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary, #ff7518);
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text, #fff);
  font-family: inherit;
  box-sizing: border-box;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pickup-option,
.cgu-option {
  margin: 12px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pickup-option label,
.cgu-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.pickup-option input[type="checkbox"],
.cgu-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #ff7518);
  flex-shrink: 0;
  margin-top: 2px;

}

/* PAYPAL MODAL */
.paypal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.paypal-modal.hidden {
  display: none !important;
}

.paypal-modal-content {
  background: var(--card-bg, #1f1f1f);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.paypal-modal-content h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text, #f5f5f5);
}

.paypal-modal-content #paypal-button-container {
  margin-top: 20px;
}

#paypal-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text, #f5f5f5);
}

#paypal-modal-close:hover {
  opacity: 0.7;
}

/* CART ITEMS */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 117, 24, 0.2);
  gap: 10px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details strong {
  display: block;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary, #ff7518);
  font-weight: bold;
  margin: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 117, 24, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--primary, #ff7518);
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  padding: 0 4px;
}

.qty-display {
  min-width: 20px;
  text-align: center;
  color: var(--text, #f5f5f5);
}

.cart-remove {
  background: transparent;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
}

/* PAYPAL MODAL */
.paypal-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: var(--card-bg, #1f1f1f);
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  padding: 0;
}

.paypal-modal.hidden {
  display: none;
}

.paypal-modal-content {
  position: relative;
  padding: 20px;
}

.paypal-modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text, #f5f5f5);
}

#paypal-button-container {
  margin-top: 20px;
}

/* CHECKOUT FORM */
.checkout-form {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 117, 24, 0.05);
  border-radius: 8px;
}

.checkout-form h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary, #ff7518);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border, #ff7518);
  background: var(--bg, #0d0d0d);
  color: var(--text, #f5f5f5);
  border-radius: 6px;
  font-family: inherit;
  box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--primary, #ff7518);
  box-shadow: 0 0 5px rgba(255, 117, 24, 0.3);
}

.pickup-option,
.cgu-option {
  padding: 10px 0;
  margin: 10px 0;
}

.pickup-option label,
.cgu-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text, #f5f5f5);
}

.pickup-option input[type="checkbox"],
.cgu-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #ff7518);
}

/* BOUTON PAIEMENT - Mobile Fix */
#proceed-to-payment {
  background-color: var(--primary, #ff7518);
  color: var(--bg, #0d0d0d);
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block !important;
  z-index: 950;
}

#proceed-to-payment:hover {
  opacity: 0.85;
}

#proceed-to-payment.hidden {
  display: none !important;
}

//* MODAL PAYPAL */
.paypal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.paypal-modal.hidden {
  display: none;
}

.paypal-modal-content {
  background: var(--card-bg, #1f1f1f);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.paypal-modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text, #fff);
}

.lightbox-close:hover {
  opacity: 0.7;
}

#paypal-button-container {
  margin-top: 15px;
  min-height: 50px;
  width: 100%;
}

#paypal-button-container div {
  width: 100% !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .paypal-modal-content {
    width: 95%;
    max-height: 85vh;
    padding: 15px;
  }

  .paypal-modal-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  #paypal-button-container {
    min-height: 60px;
  }

  #paypal-button-container div {
    width: 100% !important;
    max-width: 100% !important;
  }

  #paypal-button-container iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}