body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e0e0e0; /* gris clair */
  }
  
  .container {
    max-width: 1000px;
    margin: 40px auto;
    background-color: #d0d0d0; /* gris */
    border: 3px solid white; /* contour blanc plus épais */
    padding: 20px;
    text-align: left; /* contenu justifié à gauche */
  }
  
  .site-header {
    background-color: #323030; /* bande noire */
    padding: 16px 0;
    text-align: center;
    border-bottom: 2px solid #999; /* ligne séparatrice style rétro */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1); /* léger relief */
  }
  
  .site-logo {
    max-width: 100px;
    height: auto;
    filter: grayscale(100%) contrast(120%) brightness(95%);
    image-rendering: pixelated; /* effet rétro pixel si petite image */
    border: 2px solid #fff;
    padding: 4px;
    background-color: #625d5d;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #555; /* effet creux */
  }
  
  .main-image {
    border: 2px solid white;
    display: block;
    width: 80%;
    margin: 0 auto;
    background-color: white;
  }
  
  .thumbs {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
  }
  
  .thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .thumbs img:hover {
    transform: scale(1.05);
  }
  
  .title {
    font-size: 24px;
    margin: 20px 0 10px;
    text-align: left;
  }
  
  .price-quantity {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 3px;
    flex-wrap: wrap;
  }
  
  .price {
    font-size: 20px;
    color: #333;
  }
  
  .quantity-total-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quantity-selector {
    display: flex;
    height: 40px;
    border: 1px solid black;
    border-radius: 0; /* pas de coins arrondis */
    overflow: hidden;
    transition: box-shadow 0.2s ease;
  }
  
  .quantity-selector:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* ombre douce */
  }
  
  .quantity {
    font-size: 18px;
    background-color: #f5f5f5;
    border-right: 2px solid #999;
    width: 40px;
    text-align: center;
    line-height: 40px;
    color: #111;
  }
  
  
  .buttons {
    display: flex;
    height: 100%;
  }
  
  .buttons button {
    flex: 1;
    background-color: #ddd;
    color: #111;
    border: 2px solid #999;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #666;
    transition: all 0.1s ease;
  }
  
  .buttons button:hover {
    background-color: #ccc;
  }
  
  .buttons button:active {
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #666;
  }
  
  .total-price {
    font-size: 16px;
    margin-top: 8px;
    color: #222;
    font-weight: bold;
    text-align: left;
    margin-bottom: 2px
  }
  
  .cart-link {
    margin-top: 2px;
    display: inline-block;
  }
  
  .cart-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
  }
  
  .cart-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(3px 3px 4px rgba(0,0,0,0.5));
  }
  
  .description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    text-align: left;
    margin-top: 2px;
  }

  /* Récupère vos styles existants, et ajoutez ces styles pour le panier */

.cart-items {
    margin-bottom: 20px;
  }
  
  .cart-item {
    display: flex;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    margin-bottom: 10px;
  }
  
  .cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .cart-item-details {
    display: flex;
    flex-direction: column;
  }
  
  .cart-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .cart-item-price {
    font-size: 16px;
    color: #555;
  }
  
  .cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
  }
  
  .cart-item-quantity button {
    background-color: #ddd;
    border: 1px solid #bbb;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .cart-item-quantity button:hover {
    background-color: #ccc;
  }
  
  
  .cart-summary {
    text-align: right;
    margin-top: 20px;
  }
  
  .checkout-btn {
    background-color: #323030;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .checkout-btn:hover {
    background-color: #444;
  }
  
  .error-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* S'assurer que l'image est au-dessus de tout */
    text-align: center;
  }
  
  .error-image-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
  }
  
  .error-message {
    font-size: 24px;
    color: white;
    margin-top: 20px;
    font-weight: bold;
  }

  /* Style du bouton de fermeture */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: #333;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

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



.remove-item-btn {
  background-color: #e4e4e4;       /* fond clair mais pas blanc pur */
  border: 1px solid #333;          /* bordure plus épaisse et sombre */              /* arrondi plus marqué */
  padding: 5px 12px;               /* un peu plus large */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-left: 15px;
  height: 36px;
  width: 36px;
  box-shadow: 1px 1px 0 #aaa inset; /* effet d’ombre rétro à l’intérieur */
  font-weight: bold;
}

.remove-item-btn:hover {
  background-color: #eee;
  border-color: #555;
  box-shadow: -1px -1px 0 #888 inset;
}

.trash-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.checkout-btn {
  background-color: #ddd;
  color: #111;
  border: 2px solid #999;
  font-family: Arial, sans-serif;
  font-size: 18px;
  cursor: pointer;
  padding: 10px 20px;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #666;
  transition: all 0.1s ease;
  font-weight: bold;
}

.checkout-btn:hover {
  background-color: #ccc;
}

.checkout-btn:active {
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #666;
}
