/* CSS spécifique page cart */
#cart_summary {
  border-radius: 15px;
  overflow-x: hidden;
}

#cart_summary .card-title {
	font-weight: 700;
}

.row:has(> div #cart_summary) {
	position: sticky;
	top: 10px;
}

a.btn.btn-secondary,
a.btn.btn-secondary:hover {
  border-radius: 25px;
}

section#cart_summary .btn-primary,
section#cart_summary .btn-primary:hover {
  border-radius: 25px;
  box-shadow: unset;
}

.cart-items img {
  border-radius: 15px;
}

.product_attributes {
  display: grid;
  grid-template-columns: max-content 1fr; /* libellé | valeur */
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin: 0;
}

.product_attributes dt,
.product_attributes dd {
  margin: 0;
}

.product_attributes dt {
  text-align: left; /* aligne les “:” sur la même colonne */
  white-space: nowrap; /* évite le retour à la ligne du libellé */
}

.product_attributes dd {
  min-width: 0; /* permet au texte long de se casser */
  overflow-wrap: anywhere; /* gère les mots longs si besoin */
}

.cart-detailed-actions .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-detailed-actions svg {
  margin-right: 10px;
}

.cart-detailed-actions svg path {
  stroke: white;
}

@media (max-width: 1200px) {
  .bootstrap-touchspin .bootstrap-touchspin-vertical-button-wrapper {
    display: none;
  }
  .input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label, .input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after, .input-group:not(.has-validation)>.custom-select:not(:last-child), .input-group:not(.has-validation)>.form-control:not(:last-child) {
    border-top-right-radius: .25em;
    border-bottom-right-radius: .25em;
}
}


.cart-item > .col-6 > .row > .col.text-center:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-item > .col-6 > .row > .col.text-center:first-child .product-discount {
    order: 1;
    margin: 0;
}

.cart-item > .col-6 > .row > .col.text-center:first-child .current-price {
    order: 2;
    margin: 0;
}

.cart-item > .col-6 > .row > .col.text-center:first-child .discount-percentage {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c62828;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.cart-item > .col-6 > .row > .col.text-center:first-child .regular-price {
    text-decoration: line-through;
    color: #777;
}

.cart-item > .col-6 > .row > .col.text-center:first-child .current-price .price {
    font-weight: 700;
    color: #000;
}

.btn-primary {
	background-color: #CD2E25!important;
	border-color: #CD2E25!important;
}

.btn-primary:hover{
	background-color: #c32a22!important;
	border-color: #c32a22!important;
}



.btn-secondary:hover {
	background-color:  #CD2E25!important;
	border-color:  #CD2E25!important;
  color: white!important;
}

.btn-secondary {
	color:  #CD2E25!important;
	border-color:  #CD2E25!important;
  background-color: white!important;
}

.bootstrap-touchspin-up.btn-secondary, .bootstrap-touchspin-up.btn-secondary:hover, .bootstrap-touchspin-down.btn-secondary, .bootstrap-touchspin-down.btn-secondary:hover {
  	background-color:  #CD2E25!important;
	border-color:  #CD2E25!important;
  color: white!important;
}

.cart-item .form-control {
	padding: .1rem .2rem;
}