/* CONTAINER */
.mpr-config-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.mpr-config-header {
    padding: 20px 30px;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mpr-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-right: 20px;
    overflow: hidden;
}

.mpr-progress-fill {
    height: 100%;
    background: var(--mpr-blue, #007cba);
    transition: width 0.3s ease;
}

.mpr-steps-indicator {
    font-weight: 600;
    color: #6b7280;
}

/* STEPS */
.mpr-step {
    padding: 40px;
    flex: 1;
    display: none;
    /* Managed by JS */
}

.mpr-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.mpr-step h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #1f2937;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GRID OPTIONS (Activité, Env, etc) */
.mpr-grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.mpr-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.mpr-option-card h3 {
    font-size: 16px;
}

.mpr-option-card:hover {
    border-color: var(--mpr-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mpr-option-card.selected {
    border-color: var(--mpr-blue);
    background: #fd319a0c;
}

.mpr-icon-placeholder {
    width: 50px;
    height: 50px;
    background: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #9ca3af;
}

/* PRODUCT CARDS (Screen, Support) */
.mpr-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.mpr-product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.mpr-product-card:hover,
.mpr-product-card.selected {
    border-color: var(--mpr-blue);
    box-shadow: 0 0 0 2px var(--mpr-blue);
}

.mpr-prod-img {
    height: 150px;
    background-size: contain;
    background-position: center;
    background-color: #f3f4f6;
    background-repeat: no-repeat;
}

.mpr-prod-body {
    padding: 15px;
}

.mpr-prod-body h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.mpr-specs {
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 5px;
}

.mpr-price {
    font-weight: bold;
    color: var(--mpr-blue);
}

.btn-en-savoir-plus {
    padding: 0;
    color: var(--mpr-blue);
    background-color: white;
    text-align: left;
    text-transform: capitalize;
}

.btn-en-savoir-plus:hover {
    color: var(--mpr-blue);
    background-color: white;
}

/* ACCORDION OPTIONS */
.mpr-accordion-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 6px;
}

.mpr-accordion-header {
    padding: 15px;
    background: #f9fafb;
    font-weight: 600;
}

.mpr-accordion-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpr-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
}

.mpr-checkbox-card:hover {
    background: #f9fafb;
}

.price {
    float: right;
    color: #059669;
    font-weight: 600;
}

/* SUMMARY */
.mpr-final-summary {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.mpr-total-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #1f2937;
    margin: 20px 0;
    text-align: right;
}

/* FOOTER */
.mpr-config-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

.mpr-btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

.mpr-loader {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    display: none;
}

/* --- SUMMARY STYLES --- */
#final-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpr-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mpr-sum-col-name {
    flex: 2;
    /* Prend le plus de place */
    font-size: 1.05em;
    color: #1f2937;
}

.mpr-sum-col-qty {
    flex: 0 0 80px;
    /* Largeur fixe pour la quantité */
    text-align: center;
    margin: 0 15px;
}

.mpr-qty-input {
    width: 60px !important;
    /* Force la largeur */
    padding: 5px !important;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
}

.mpr-sum-col-price {
    flex: 0 0 100px;
    /* Largeur fixe pour le prix */
    text-align: right;
    font-weight: 700;
    color: var(--mpr-blue);
}


/* TABLEAU LISTE DEVIS */
.mpr-table-list {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.mpr-table-list th {
    background: #f9fafb;
    padding: 15px 20px;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

.mpr-table-list td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #1f2937;
}

.mpr-table-list tr:last-child td {
    border-bottom: none;
}

.mpr-table-list tr:hover {
    background: #ffff;
}

.mpr-badge-status {
    background: #def7ec;
    color: #03543f;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.mpr-btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.mpr-btn-small:hover {
    border-color: #007cba;
    color: #007cba;
}

/* VIEW DETAILS DEVIS */
.mpr-quote-view-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.mpr-client-info {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.mpr-detail-table th {
    background: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.mpr-detail-table .text-right {
    text-align: right;
}

.mpr-detail-table .text-center {
    text-align: center;
}

.mpr-detail-table .text-muted {
    color: #999;
    font-size: 0.9em;
}

.mpr-total-row td {
    background: #fcfcfc;
    border-top: 2px solid #eee;
    font-weight: 600;
    font-size: 1.1em;
    padding: 20px;
}

.big-total {
    color: #007cba;
    font-size: 1.3em;
}

.mpr-back-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.mpr-back-link:hover {
    color: #007cba;
}

/* Print styles */
@media print {

    .mpr-sidebar,
    .mpr-header-title button,
    .mpr-back-link {
        display: none !important;
    }

    .mpr-dashboard-wrapper {
        box-shadow: none;
    }

    .mpr-content {
        padding: 0;
    }
}

/* STYLES IMAGES DANS DEVIS */
.mpr-item-flex {
    display: flex;
    align-items: center;
}

.mpr-quote-thumb {
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    background-size: cover;
    /* L'image remplit le carré */
    background-position: center;
    border-radius: 6px;
    margin-right: 15px;
    border: 1px solid #eee;
    flex-shrink: 0;
    /* Empêche l'image de s'écraser si le texte est long */
}

/* Ajustement pour l'impression */
@media print {
    .mpr-quote-thumb {
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        /* Force l'impression du background */
        print-color-adjust: exact;
    }
}

.mpr-btn-sign {
    border-color: #e11d48;
    color: #e11d48;
    margin-left: 5px;
}

.mpr-btn-sign:hover {
    background-color: #e11d48;
    color: #fff;
}


/* --- DOCUMENTS MANAGER (FRONTEND) --- */

.mpr-doc-toolbar {
    background: #f9fafb;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 6px;
}

.mpr-breadcrumbs {
    font-size: 0.95em;
    color: #6b7280;
}

.mpr-breadcrumbs .crumb {
    cursor: pointer;
    font-weight: 600;
    color: #007cba;
    transition: 0.2s;
}

.mpr-breadcrumbs .crumb:hover {
    color: #005a87;
    text-decoration: underline;
}

.mpr-breadcrumbs .sep {
    margin: 0 8px;
    color: #d1d5db;
}

/* Grid */
.mpr-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.mpr-doc-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.mpr-doc-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.mpr-doc-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: #9ca3af;
}

/* Couleurs spécifiques */
.mpr-folder .dashicons {
    color: #f59e0b;
}

/* Orange pour dossier */
.mpr-file .dashicons-pdf {
    color: #ef4444;
}

/* Rouge pour PDF */
.mpr-file .dashicons-format-image {
    color: #3b82f6;
}

/* Bleu pour Image */

.mpr-doc-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
}

.mpr-empty-folder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-style: italic;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


/* --- BOUTIQUE LAYOUT --- */
.mpr-shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.mpr-shop-main {
    flex: 1;
    /* Prend tout l'espace disponible à gauche */
}

.mpr-shop-sidebar {
    width: 280px;
    /* Fixe la largeur de la sidebar à droite */
    flex-shrink: 0;
}

/* Barre de recherche */
.mpr-shop-search-bar {
    position: relative;
    margin-bottom: 25px;
}

.mpr-shop-search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.mpr-shop-search-bar .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Grille */
.mpr-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Cartes Produits */
.mpr-shop-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mpr-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.mpr-shop-img {
    height: 160px;
    background-size: contain;
    background-position: center;
    background-color: #f9f9f9;
    position: relative;
    background-repeat: no-repeat;
}

.mpr-shop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-screen {
    background: #007cba;
}

.badge-support {
    background: #e11d48;
}

.badge-option {
    background: #10b981;
}

.mpr-shop-info {
    padding: 15px;
    text-align: left;
}

.mpr-shop-info h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
}

.mpr-shop-price {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

/* Filtres (Sidebar) */
.mpr-filter-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.mpr-filter-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.mpr-filter-group h4 {
    margin: 15px 0 10px 0;
    font-size: 14px;
}

.mpr-checkbox-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    color: #555;
}

.mpr-checkbox-label input {
    margin-right: 8px;
}

/* Pagination */
.mpr-shop-pagination {
    margin-top: 30px;
    text-align: center;
}

.mpr-page-btn {
    background: #e82b8918;
    color: var(--mpr-blue);
    border-color: #e82b8918;
}

.mpr-page-btn.active {
    background: var(--mpr-blue);
    color: #fff;
    border-color: var(--mpr-blue);
}

/* --- ACCORDÉONS FILTRES --- */
.mpr-acc-cpt {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.mpr-acc-cpt:last-child {
    border-bottom: none;
}

/* Niveau 1 : Types de produits */
.mpr-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mpr-acc-header .mpr-checkbox-label {
    margin: 0;
    font-size: 15px;
}

/* Niveau 2 : Taxonomies */
.mpr-acc-body {
    padding-left: 25px;
    /* Décalage pour hiérarchie */
    margin-top: 10px;
}

.mpr-acc-tax {
    margin-bottom: 8px;
}

.mpr-acc-tax-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.mpr-acc-tax-header:hover {
    color: #007cba;
}

/* Niveau 3 : Termes */
.mpr-acc-terms {
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid #f0f0f0;
}

/* Animation des flèches */
.mpr-toggle {
    cursor: pointer;
    color: #999;
}

.dashicons.mpr-toggle {
    transition: transform 0.3s ease;
}

.dashicons.open,
.mpr-toggle.open .dashicons {
    transform: rotate(180deg);
}

/* ==========================================
   ICÔNE INFO & PRIX DÉGRESSIFS (DESIGN ÉPURÉ)
   ========================================== */
.mpr-price-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mpr-info-icon {
    color: #94a3b8;
    /* Gris doux par défaut */
    cursor: help;
    font-size: 18px;
    margin-left: 8px;
    position: relative;
    transition: color 0.2s ease;
}

.mpr-info-icon:hover {
    color: var(--mpr-blue);
    /* Bleu clair au survol */
}

.mpr-tier-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    /* Légèrement plus haut pour l'animation */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    /* Fond blanc pro */
    color: #334155;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Noto Sans', sans-serif;
    width: 240px;
    z-index: 100;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    /* Ombre douce */
    border: 1px solid #e2e8f0;
    cursor: default;
}

/* La petite flèche pointant vers le bas (Bordure + Fond) */
.mpr-tier-tooltip::after,
.mpr-tier-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
}

.mpr-tier-tooltip::before {
    border-width: 7px;
    border-color: #e2e8f0 transparent transparent transparent;
    margin-top: 1px;
}

.mpr-tier-tooltip::after {
    border-width: 6px;
    border-color: #ffffff transparent transparent transparent;
}

/* Affichage avec animation fluide */
.mpr-info-icon:hover .mpr-tier-tooltip {
    display: block;
    animation: mprTooltipFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mprTooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 5px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Structure interne de l'infobulle */
.mpr-tooltip-header {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.mpr-tier-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.mpr-tier-table td {
    padding: 6px 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    color: #475569;
}

.mpr-tier-table tr:last-child td {
    border-bottom: none;
}

.mpr-tier-table td.mpr-tier-price {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================
   MODALE PRODUIT PREMIUM (EN SAVOIR PLUS)
   ========================================== */

.mpr-product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Fond sombre bleuté moderne */
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    /* Effet verre dépoli pro */
}

.mpr-modal-content {
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mpr-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.mpr-modal-close:hover {
    color: #e11d48;
}

/* Layout Grille (Gauche / Droite) */
.mpr-modal-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: start;
}

/* --- COLONNE GAUCHE (STICKY) --- */
.mpr-modal-left {
    position: sticky;
    top: 0;
    /* Garde l'image visible au scroll */
}

.mpr-modal-image-container {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mpr-gallery-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #fff;
}

.mpr-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 15px;
    padding-bottom: 5px;
}

.mpr-gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
    background: #fff;
}

.mpr-gallery-thumbs img:hover,
.mpr-gallery-thumbs img.active {
    border-color: #0ea5e9;
    opacity: 1;
}

/* --- COLONNE DROITE --- */
.mpr-modal-title {
    font-size: 28px;
    color: #0f172a;
    margin: 0 0 25px 0;
    font-weight: 700;
    line-height: 1.2;
    padding-right: 30px;
}

.mpr-modal-section {
    margin-bottom: 35px;
}

.mpr-section-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Liste des caractéristiques */
.mpr-specs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.mpr-specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mpr-specs-list li:last-child {
    border-bottom: none;
}

.mpr-specs-list strong {
    color: #475569;
    font-weight: 600;
}

.mpr-specs-list span {
    color: #0f172a;
    text-align: right;
    max-width: 60%;
}

.mpr-specs-list li.mpr-spec-divider {
    background: #f8fafc;
    padding: 8px 12px;
    margin-top: 15px;
    font-size: 13px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    border-radius: 6px;
    border: none;
    font-weight: bold;
}

/* Description */
.mpr-modal-description {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
}

.mpr-modal-description p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Bouton PDF */
.mpr-btn-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8fafc;
    color: #0f172a;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.mpr-btn-doc:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.mpr-btn-doc .dashicons {
    color: #e11d48;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .mpr-modal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mpr-modal-left {
        position: static;
    }
}

/* ==========================================
   WIDGET ET TIROIR PANIER (CART DRAWER)
   ========================================== */
.mpr-cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s;
}

.mpr-cart-widget:hover {
    transform: scale(1.05);
}

.mpr-cart-widget .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.mpr-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e11d48;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.mpr-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.mpr-cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mpr-cart-drawer.open {
    right: 0;
}

.mpr-cart-header {
    padding: 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.mpr-cart-header h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.mpr-close-cart {
    cursor: pointer;
    font-size: 24px;
    color: #64748b;
    transition: 0.2s;
}

.mpr-close-cart:hover {
    color: #e11d48;
}

.mpr-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.mpr-cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.mpr-cart-item-info {
    flex: 1;
    padding-right: 15px;
}

.mpr-cart-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #0f172a;
    line-height: 1.4;
}

.mpr-cart-item-price {
    color: var(--mpr-blue);
    font-weight: bold;
    font-size: 15px;
}

.mpr-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpr-cart-item-qty input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.mpr-cart-remove {
    color: #e11d48;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.mpr-cart-remove:hover {
    opacity: 1;
}

.mpr-cart-footer {
    padding: 25px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.mpr-cart-total {
    font-size: 18px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mpr-cart-total span {
    font-weight: 800;
    color: #0f172a;
    font-size: 22px;
}