/* Page boutique */
.boutique-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    align-items: start;
}

.grille-produits {
    grid-column: 1 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-right: 20px;
}

/* Cartes produit */
.colonne-produit {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
    display: flex;
}

.carte-produit {
    width: 100%;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 5px rgba(0,0,0,.5);
}

.carte-produit img {
    width: 100%;
    height: 200px !important;
    object-fit: scale-down;
    padding: 5px;
}

.carte-produit .elementor-widget-wrap {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.carte-produit h3 { margin: 0 0 15px; font-size: 20px; }
.carte-produit p  { margin-bottom: 20px; line-height: 1.5; }

.carte-produit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.carte-produit-footer a {
    font-weight: 700;
    font-size: 14px;
    color: #c389ce;
}

.carte-produit-footer button {
    transition: scale 0.3s ease !important;
}

.carte-produit-footer button:hover {
    scale: 1.03;
}
/* Panier desktop (3ème colonne) */
.panier-sticky {
    position: sticky;
    top: 80px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.panier-header {
    background: #c389ce;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.panier-footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #eaeaea;
    border-radius: 0 0 10px 10px;
}

.panier-titre    { font-weight: 700; font-size: 16px; color: white; }
.panier-compteur { font-size: 12px; color: white; }
.panier-total    { font-size: 15px; font-weight: 700; color: black; margin-bottom: 4px; }

.panier-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panier-vide { color: black; font-size: 14px; text-align: center; margin: 20px 0; }

.panier-ligne {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.panier-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    flex-shrink: 0;
}

.panier-ligne-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.panier-ligne-titre {
    font-size: 13px;
    font-weight: 700;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panier-ligne-ref { font-size: 11px; color: #6c757d; }

.panier-qte-controle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
}

.panier-qte-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.panier-qte-btn:hover { background: #e9ecef; }

.panier-ligne-prix {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: black;
    white-space: nowrap;
    flex-shrink: 0;
}

.panier-suppr {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: black !important;
    font-size: 11px;
    padding: 5px;
}

.panier-suppr:hover { color: red !important; }

/* Panier mobile */
#panier-mobile {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 0;
    z-index: 1000;
    border-radius: 10px 0 0 10px !important;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,.5);
    align-items: center;
    gap: 8px;
}

#panier-mobile-compteur {
    background: white;
    color: #c389ce;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Popup panier mobile */
.panier-overlay, .order_popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1100;
    align-items: flex-end;
    justify-content: center;
}

.arospen-cart-options {
    border-radius: 6px;
    margin: 20px 0;
}

.arospen-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #222;
    font-size: 16px;
}

.arospen-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #c389ce;
}

.arospen-cart-help {
    margin: 6px 0 0 32px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.panier-overlay.is-open, .order_popup.is-open { display: flex; }

.panier-popup, .order_popup_card {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .25s ease;
    z-index: 100;
}

.title_popup {
    text-align: center;
    font-size: 36px;
    color: black;
    padding: 5px;
}

.message_popup {
    text-align: center;
    font-size: 28px;
    color: black;
    padding: 5px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.panier-popup-close {
    align-self: flex-end;
    background: none !important;
    border: none !important;
    font-size: 20px;
    cursor: pointer;
    color: black !important;
    padding: 14px 18px 0;
}
.panier-popup-close:hover { color: red !important; }

#panier-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 18px 18px;
}

/* Pagination */
.pagination-produit {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 20px;
}

.pagination-produit a,
.pagination-produit span {
    padding: 8px 16px;
    border: 1px solid #c389ce;
    border-radius: 5px;
    text-decoration: none;
    color: #c389ce;
    font-weight: 700;
}
.pagination-produit a:hover, .pagination-produit span.current { background: #c389ce; color: white; }

/* Liens catalogue */
.arospen-catalogue-link-wrapper {
    display: block;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1;
}
.arospen-catalogue-link       { color: black; }
.arospen-catalogue-link:hover { color: #c389ce; }

/* Responsive */
@media (max-width: 992px) {
    .boutique-wrapper { display: block; }
    .grille-produits  { display: flex; flex-wrap: wrap; gap: 30px; }
    .colonne-produit  { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
    .panier-sticky    { display: none; }
    #panier-mobile    { display: flex; }
}

@media (max-width: 768px) {
    .colonne-produit               { flex: 0 0 100%; max-width: 100%; }
    .carte-produit-footer          { flex-direction: column; gap: 15px; align-items: flex-start; }
    .arospen-product-header        { flex-direction: column; gap: 20px; }
    .arospen-product-image-wrapper { max-width: 100%; }
}