.pz-sidecart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1090;
}

.pz-sidecart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.pz-sidecart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 700px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.pz-sidecart.is-open {
    transform: translateX(0);
}

.pz-sidecart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #232323;
    flex-shrink: 0;
}

.pz-sidecart-title {
  font-weight: 600;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #232323;
}

.pz-sidecart-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pz-sidecart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.pz-sidecart-products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pz-sidecart-product {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
}

.pz-sidecart-product-image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.pz-sidecart-product-infos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.pz-sidecart-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.pz-sidecart-product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #232323;
    text-decoration: none;
    line-height: 1.25;
}

.pz-sidecart-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #232323;
    padding: 0;
    flex-shrink: 0;
}

#header .pz-sidecart-remove .material-icons {
    font-size: 1.5rem;
}

.pz-sidecart-product-attributes {
    font-size: 0.85rem;
    color: #232323;
    line-height: 1.5;
}

.pz-sidecart-product-attributes strong {
    font-weight: 700;
}

.pz-sidecart-product-qty {
    font-size: 0.85rem;
    color: #232323;
}

.pz-sidecart-product-price {
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: #e0622f;
    white-space: nowrap;
}
/*
.pz-sidecart-product-qty-tag {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6c757d;
}
*/
.pz-sidecart-totals {
    border-top: 1px solid #232323;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

.pz-sidecart-total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
	color: #232323;
}
/*
.pz-sidecart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #232323;
    flex-shrink: 0;
}
*/
.pz-sidecart-actions {
  display: flex;
  padding: 1rem 1.25rem;
  border-top: 1px solid #232323;
  justify-content: center;
}
#header .pz-sidecart-actions a {
  color:#fff
}
#header .pz-sidecart-actions .material-icons {
  font-size: 25px;
}
/*
.pz-sidecart-btn {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.pz-sidecart-btn-view {
    background: #f2f2f2;
    color: #232323;
}

.pz-sidecart-btn-checkout {
    background: #2fb380;
    color: #fff;
}
*/
.pz-sidecart-empty {
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
}

/*
 * Neutralise la modale native du thème classic (#blockcart-modal), qui
 * s'ouvre elle aussi sur l'event updateCart. On ne veut que le sidecart.
 * Masquage CSS plutôt que unbind JS : plus robuste face aux variations
 * de thème/version (le JS natif continue de tourner sans erreur,
 * juste invisible).
 */
#blockcart-modal {
    display: none !important;
}

#blockcart-modal + .modal-backdrop {
    display: none !important;
}

body.modal-open {
    /* Le thème ajoute overflow:hidden au body à l'ouverture de sa modale */
    overflow: auto !important;
    padding-right: 0 !important;
}
