#panier {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

#panier_gauche {
  padding: 30px;
  border-radius: 3px;
  width: 60%;
  height: 60vh;
  overflow: hidden;
  overflow-y: auto;
}

.plus-dispo {
  background: #0000008f;
}

#panier_droit {
  width: 30%;
  padding: 20px;
  height: 60%;
  border-radius: 10px;
  border: 1px solid black;
}

h1 {
  font-size: 50px;
}

h2 {
  font-size: 20px;
}

#ligne {
  height: 3px;
  width: 140px;
  background-color: black;
}

.payment-method {
  margin: .5rem;
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #000000;
  font-size: 17px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

.button_top {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: 0.75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-0.2em);
  transition: transform 0.1s ease;
}

.payment-method:hover .button_top {
  transform: translateY(-0.33em);
}

.payment-method:active .button_top {
  transform: translateY(0);
}

#images img{
  margin: 10px;
}

#article_ajouté {
  padding: .5rem;
  border-radius: 15px;
  position: relative;
  display: flex;
  grid-row: 1;
}

#article_ajouté.plus-dispo * {
  opacity: .5;
}

#article_ajouté, #panier p {
  margin-left: 10px;
  margin-top: 10px;
}

#description {
  width: 100%;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 50%;
}

.plus-dispo::before {
  content: "Plus disponible";
  font-size: xx-large;
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.container svg {
  position: relative;
  top: 0;
  left: 0;
  height: 30px;
  width: 30px;
  transition: all 0.3s;
  fill: #666;
  margin-top: 1cm;
  margin-left: 1cm;
}

.container svg:hover {
  transform: scale(1.1);
}

.price {
  font-weight: 600;
}

.without-promo {
  text-decoration: line-through;
} 

.promo {
	font-weight: 600;
	color: #ff9500;
} 

.promo-price {
  width: min-content;
	font-weight: 600;
	color: #ff9500;
}

.promo-price ~ .price {
  text-decoration: line-through;
}

.product-name {
  flex: 1;
}

.ligne {
  height: 1px;
  background: gray;
  border-radius: 1px;
  width: 100%;
  margin-top: 15px;
}

#nom_prix {
  display: flex;
}

#prix {
  text-align: right;
}

.favoris-form, .remove-form {
  margin-left: 2.5rem;
  margin-top: 37px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  width: 50%;
}

.favoris-btn, .poubelle-btn {
  border: none;
  background: none;
  width: max-content;
  cursor: pointer;
}

form[action="/favorites/remove"] .favoris-btn svg {
  fill: #E3474F;
}

.favoris-btn svg {
  fill: gray;
}

.favoris-form label, .remove-form label {
  margin-top: 10px;
  width: 100%;
}

label {
  width: 50%;
}

#articles {
  margin-top: 7rem;
}

#best-sellers {
	display: flex;
	flex-direction: column;
}

#best-sellers h3 {
	margin: 2rem 5rem;
}

#best-sellers-container {
	overflow-x: auto;
	display: flex;
	flex-direction: row;
}

.best-seller-item:first-child {
	margin-left: 5rem;
}

.best-seller-item {
	text-decoration: none;
	color: #000;
	margin: 2vh 3vw;
	padding: 2rem;
	border-radius: 15px;
	min-width: 200px;
	display: inline-table;
	box-shadow: inset 4px 4px 5px #8a8a8a, 4px 4px 5px #8a8a8a;
}

.best-seller-item img {
	display: block;
	margin: auto;
	width: 20vw;
	min-width: 200px;
}

.best-seller-item hr {
	border: none;
	margin: 1rem auto;
	background: #000;
	height: 2px;
	width: 85%;
}

.best-seller-item p {
	margin: .5rem 0;
}

.promo, .promo-price {
	font-weight: 600;
	color: #ff9500;
}

.type {
	color: #6F6F6F;
}

.best-seller-item > .price {
	margin-bottom: calc(1lh + .5rem);
}

.best-seller-item .prices p {
	display: inline;
}

.prices .price {
	margin-left: 1rem;
	text-decoration: line-through
}

#payment-buttons {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

/* Responsive styles for tablets */
@media (max-width: 1024px) {
  #panier {
    flex-direction: column;
    align-items: center;
  }

  #panier_gauche,
  #panier_droit {
    width: 80%;
    margin: 10px 0;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 18px;
  }

  #ligne {
    width: 120px;
  }

  .container {
    width: 90%;
  }
}

/* Responsive styles for smaller tablets */
@media (max-width: 768px) {
  #panier {
    flex-direction: column;
    align-items: center;
  }

  #panier_gauche,
  #panier_droit {
    width: 90%;
    margin: 10px 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 16px;
  }

  #ligne {
    width: 100px;
  }

  .container {
    width: 80%;
  }
}

@media (max-width: 1800px) {
	#best-sellers h3 {
		margin: 2rem 3rem;
	}

	.best-seller-item:first-child {
		margin-left: 3rem;
	}

	.best-seller-item:last-child {
		margin-right: 3rem;
	}
}

@media (max-width: 670px) {
  #like-poubelle label {
    display: none;
  }

  #nom_prix {
    flex-direction: column;
  }
}

@media (max-width: 475px) {
  #article_ajouté {
    flex-direction: column-reverse;
  }
}