/* QLII — styles communs de la boutique */
.app-shop-page {
    --shop-pink: var(--qlii-accentstrong, #C03A78);
    --shop-pink-dark: #A52D65;
    --shop-ink: #28232A;
    --shop-muted: #77717A;
    --shop-border: #EEE7E6;
    --shop-cream: #FFF9F4;
}

/* En-tête et navigation */
.app-shop-page .app-shop-header {
    align-items: center;
    gap: 20px;
    margin: 4px 0 26px;
}

.app-shop-page .app-shop-header h1 {
    color: var(--shop-ink);
    font-weight: 750;
    letter-spacing: -.035em;
}

.app-shop-page .app-shop-header p {
    color: var(--shop-muted);
    line-height: 1.5;
}

.app-shop-page .app-shop-cart-indicator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.app-shop-page .app-shop-orders-link,
.app-shop-page .app-shop-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    font-weight: 650;
    font-size: .93rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.app-shop-page .app-shop-orders-link {
    background: #FFF;
    color: var(--shop-ink);
}

.app-shop-page .app-shop-cart-link {
    gap: 10px;
    padding: 7px 8px 7px 14px;
    background: var(--shop-ink);
    color: #FFF;
    border-color: var(--shop-ink);
}

.app-shop-page .app-shop-cart-link svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.app-shop-page .app-shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    background: var(--shop-pink);
    color: #FFF;
    border-radius: 50%;
    font-weight: 750;
    font-size: .84rem;
    font-variant-numeric: tabular-nums;
}

.app-shop-page .app-shop-orders-link:hover {
    color: var(--shop-pink);
    border-color: #EBC5D8;
    background: #FFF8FB;
}

.app-shop-page .app-shop-cart-link:hover {
    color: #FFF;
    background: #40343C;
    transform: translateY(-1px);
}

/* Un seul encadré blanc pour les sélecteurs et le catalogue */
.app-shop-page .app-shop-catalog-shell {
    padding: 30px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 6px 26px rgba(42, 29, 32, .025);
}

.app-shop-page .app-shop-selection {
    margin: 0 0 28px;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid #EEEBE9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.app-shop-page .app-shop-selection > .app-shop-muted {
    margin: 0 0 22px;
    color: var(--shop-muted);
    font-size: .92rem;
    line-height: 1.55;
    text-align: center;
}

.app-shop-page .app-shop-selectors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.app-shop-page .app-shop-selectors > div {
    min-width: 0;
}

.app-shop-page .app-shop-label {
    display: block;
    margin-bottom: 8px;
    color: var(--shop-ink);
    font-size: .91rem;
    font-weight: 600;
}

.app-shop-page .app-shop-selectors .app-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #E9E4E2;
    border-radius: 8px;
    color: var(--shop-ink);
    background: #FAF9F8;
    cursor: pointer;
}

.app-shop-page .app-shop-selectors .app-input:focus {
    border-color: var(--shop-pink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(192, 58, 120, .10);
}

/* Catalogue : deux fiches horizontales par ligne sur ordinateur */
.app-shop-page .app-shop-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.app-shop-page .app-shop-product-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 270px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #EEEBE9;
    border-radius: 0;
    background: #FFF;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
    .app-shop-page .app-shop-product-card:hover {
        border-color: #D7C9D0;
        box-shadow: 0 5px 18px rgba(42, 29, 32, .045);
    }
}

.app-shop-page .app-shop-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 16px;
    overflow: hidden;
    box-sizing: border-box;
    background: #F5F5F3;
}

.app-shop-page .app-shop-product-visual img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-shop-page .app-shop-product-visual img:not(.app-shop-product-preview) {
    width: 65%;
    height: 65%;
}

.app-shop-page .app-shop-product-visual .app-shop-product-preview {
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
}

.app-shop-page .app-shop-product-card--service .app-shop-product-visual {
    background: #F5F5F3;
}

.app-shop-page .app-shop-product-card--service .app-shop-product-visual img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(27%) saturate(1100%) hue-rotate(332deg) brightness(94%) contrast(88%);
}

.app-shop-page .app-shop-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 24px 22px 20px;
}

.app-shop-page .app-shop-product-info {
    min-width: 0;
    padding: 0;
}

.app-shop-page .app-shop-product-info h2 {
    margin: 0 0 14px;
    color: var(--shop-ink);
    font-size: 1.05rem;
    font-weight: 550;
    line-height: 1.38;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.app-shop-page .app-shop-product-description {
    color: #68636A;
    font-size: .87rem;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.app-shop-page .app-shop-product-description > :first-child,
.app-shop-page .app-shop-product-dialog-description > :first-child {
    margin-top: 0;
}

.app-shop-page .app-shop-product-description > :last-child,
.app-shop-page .app-shop-product-dialog-description > :last-child {
    margin-bottom: 0;
}

.app-shop-page .app-shop-product-description p + p {
    margin-top: .6em;
}

.app-shop-page .app-shop-product-order {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    margin-top: auto;
    padding: 0;
}

.app-shop-page .app-shop-price {
    display: block;
    margin: 0;
    color: var(--shop-ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.app-shop-page .app-shop-product-quantity {
    display: block;
    margin-top: 2px;
    color: var(--shop-muted);
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: right;
}

.app-shop-page .app-shop-muted {
    color: var(--shop-muted);
    font-size: .9rem;
    text-align: right;
}

/* La surface interactive couvre toute la carte, sans bouton visible. */
.app-shop-page .app-shop-product-open {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.app-shop-page .app-shop-product-open:focus-visible {
    outline: 3px solid var(--shop-pink);
    outline-offset: -4px;
}

/* Le formulaire d'achat n'apparaît que dans le dialogue. */
.app-shop-page .app-shop-add-form {
    width: 100%;
    margin: 0;
}

.app-shop-page .app-shop-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--shop-pink);
    border-radius: 9px;
    background: var(--shop-pink);
    color: #FFF;
    font: inherit;
    font-size: .92rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .18s ease;
}

.app-shop-page .app-shop-add-button:hover:not(:disabled) {
    background: var(--shop-pink-dark);
    border-color: var(--shop-pink-dark);
    color: #FFF;
}

.app-shop-page .app-shop-add-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.app-shop-page .app-shop-preview-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 30px;
    padding: 3px 5px;
    border: 0;
    background: transparent;
    color: #6D5665;
    font: inherit;
    font-size: .87rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.app-shop-page .app-shop-preview-link:hover:not(:disabled) {
    color: var(--shop-pink);
}

.app-shop-page .app-shop-preview-link:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.app-shop-page .app-shop-empty-caption {
    grid-column: 1 / -1;
    margin: 0;
    padding: 26px;
    border: 1px dashed #E8D8DE;
    border-radius: 0;
    color: var(--shop-muted);
    background: #FFF;
}

.app-shop-page a:focus-visible,
.app-shop-page button:focus-visible {
    outline: 3px solid rgba(192, 58, 120, .65);
    outline-offset: 3px;
}

.shop-product-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.shop-product-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.shop-product-icon--cards { background: #F9E9E2; }
.shop-product-icon--stickers { background: #FCE5EF; }
.shop-product-icon--window { background: #E2F0F0; }
.shop-product-icon--counter { background: #E8EDE5; }

/* Chargement du catalogue */

.app-shop-catalog-waiter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 40%;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

    .app-shop-catalog-waiter[hidden] {
        display: none;
    }

.app-shop-spinner {
    display: block;
    width: 36px;
    height: 36px;
    border: 3px solid #E8E8E8;
    border-top-color: #C85C8E;
    border-radius: 50%;
    animation: shop-spinner .8s linear infinite;
}

.app-shop-catalog.is-loading {
    opacity: .25;
    pointer-events: none;
    transition: opacity .15s ease;
}

@keyframes shop-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1150px) {
    .app-shop-page .app-shop-catalog {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .app-shop-page .app-shop-product-card {
        min-height: 250px;
    }

    .app-shop-page .app-shop-product-visual {
        flex-basis: 36%;
    }
}

@media (max-width: 720px) {
    .app-shop-page .app-shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .app-shop-page .app-shop-catalog-shell {
        padding: 20px;
    }

    .app-shop-page .app-shop-selectors {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .app-shop-page .app-shop-product-visual {
        flex-basis: 42%;
    }

    .app-shop-page .app-shop-product-content {
        padding: 20px 18px;
    }
}

@media (max-width: 520px) {
    .app-shop-page .app-shop-catalog-shell {
        padding: 14px;
        border-radius: 14px;
    }

    .app-shop-page .app-shop-selection {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .app-shop-page .app-shop-product-card {
        flex-direction: column;
    }

    .app-shop-page .app-shop-product-visual {
        flex: none;
        width: 100%;
        height: 210px;
        aspect-ratio: auto;
    }

    .app-shop-page .app-shop-product-content {
        min-height: 178px;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shop-page .app-shop-product-card,
    .app-shop-page .app-shop-cart-link,
    .app-shop-page .app-shop-add-button,
    .app-shop-page .app-shop-orders-link {
        transition: none;
    }
}

/* Confirmation d'ajout, présentée après POST réussi + redirection */
.app-shop-added-dialog {
    width: min(430px, calc(100% - 30px));
    max-width: 430px;
    padding: 28px;
    border: 1px solid #F0DDE5;
    border-radius: 22px;
    background: #FFF;
    color: #28232A;
    box-shadow: 0 24px 80px rgba(39, 19, 29, .20);
    text-align: center;
}

    .app-shop-added-dialog::backdrop {
        background: rgba(29, 23, 29, .35);
        backdrop-filter: blur(3px);
    }

.app-shop-added-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #FCE8F1;
    color: #C03A78;
    font-size: 1.5rem;
    font-weight: 800;
}

.app-shop-added-dialog h2 {
    margin: 0 0 22px;
    font-size: 1.2rem;
    font-weight: 750;
}

.app-shop-added-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .app-shop-added-actions form {
        margin: 0;
    }

.app-shop-continue-button,
.app-shop-view-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 46px;
    padding: 10px;
    border-radius: 12px;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.app-shop-continue-button {
    background: #FFF;
    color: #28232A;
    border: 1px solid #E5DCE1;
}

.app-shop-view-cart-button {
    background: #C03A78;
    color: #FFF;
    border: 1px solid #C03A78;
}

.app-shop-continue-button:hover {
    background: #FAF6F7;
}

.app-shop-view-cart-button:hover {
    background: #A52D65;
    color: #FFF;
}

.app-shop-continue-button:focus-visible,
.app-shop-view-cart-button:focus-visible {
    outline: 3px solid rgba(192, 58, 120, .65);
    outline-offset: 2px;
}

@media (max-width: 410px) {
    .app-shop-added-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   QLII SHOP — PANIER
   Les sélecteurs ci-dessous sont limités à .app-shop-cart-page.
   ========================================================== */

.app-shop-page.app-shop-cart-page .app-shop-header {
    margin-bottom: 24px;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
    align-items: start;
    gap: 20px;
}

/* Lignes du panier */
.app-shop-page.app-shop-cart-page .app-cart-list {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 5px 22px rgba(42, 29, 32, .025);
}

.app-shop-page.app-shop-cart-page .app-cart-list-header,
.app-shop-page.app-shop-cart-page .app-cart-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 115px 36px;
    align-items: center;
    column-gap: 12px;
}

.app-shop-page.app-shop-cart-page .app-cart-list-header {
    padding: 15px 20px;
    background: #FFFBF9;
    border-bottom: 1px solid var(--shop-border);
    color: #8A8085;
    font-size: .78rem;
    font-weight: 700;
}

    .app-shop-page.app-shop-cart-page .app-cart-list-header > :nth-child(2) {
        text-align: center;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-header > :nth-child(3) {
        text-align: right;
    }

.app-shop-page.app-shop-cart-page .app-cart-list-row {
    min-width: 0;
    padding: 22px 20px;
}

    .app-shop-page.app-shop-cart-page .app-cart-list-row + .app-cart-list-row {
        border-top: 1px solid #F0EBEA;
    }

.app-shop-page.app-shop-cart-page .app-cart-list-product {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}



.app-shop-page.app-shop-cart-page .app-shop-cart-product-info {
    min-width: 0;
}

.app-shop-page.app-shop-cart-page .app-cart-list-product strong {
    display: block;
    margin-bottom: 5px;
    color: var(--shop-ink);
    font-size: .97rem;
    font-weight: 750;
    line-height: 1.35;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--shop-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-business {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #FFF2F7;
    color: #9E3466;
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Quantité : commande compacte, sans modifier les formulaires POST */
.app-shop-page.app-shop-cart-page .app-cart-list-quantity form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid #E8DDDF;
    border-radius: 11px;
    background: #FFF;
    overflow: hidden;
}

.app-shop-page.app-shop-cart-page .app-cart-list-quantity {
    text-align: center;
}

.app-shop-page.app-shop-cart-page .app-cart-quantity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 36px;
    padding: 0;
    border: 0;
    background: #FFF;
    color: #463941;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .app-shop-page.app-shop-cart-page .app-cart-quantity-button:hover:not(:disabled) {
        background: #FFF0F6;
        color: var(--shop-pink);
    }

    .app-shop-page.app-shop-cart-page .app-cart-quantity-button:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

.app-shop-page.app-shop-cart-page .app-cart-quantity-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 0 4px;
    color: var(--shop-ink);
    font-size: .91rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.app-shop-page.app-shop-cart-page .app-cart-list-price {
    text-align: right;
}

    .app-shop-page.app-shop-cart-page .app-cart-list-price strong {
        color: var(--shop-ink);
        font-size: .96rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

.app-shop-page.app-shop-cart-page .app-cart-list-remove form {
    margin: 0;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #AAA0A6;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-remove-button svg {
        width: 18px;
        height: 18px;
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-remove-button:hover {
        background: #FFF0F3;
        color: #B3345A;
    }

/* Colonne récapitulatif */
.app-shop-page.app-shop-cart-page .app-shop-cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    position: sticky;
    top: 22px;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-summary,
.app-shop-page.app-shop-cart-page .app-shop-cart-address {
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 5px 22px rgba(42, 29, 32, .025);
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary h2,
    .app-shop-page.app-shop-cart-page .app-shop-cart-address h2 {
        margin: 0 0 20px;
        color: var(--shop-ink);
        font-size: 1.08rem;
        font-weight: 750;
        letter-spacing: -.015em;
    }

.app-shop-page.app-shop-cart-page .app-shop-cart-summary-row,
.app-shop-page.app-shop-cart-page .app-shop-cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-summary-row {
    margin: 13px 0;
    color: var(--shop-muted);
    font-size: .91rem;
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary-row strong {
        color: var(--shop-ink);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary-row .app-shop-muted {
        text-align: right;
        font-size: .83rem;
    }

.app-shop-page.app-shop-cart-page .app-shop-cart-summary-total {
    margin-top: 20px;
    padding-top: 19px;
    border-top: 1px solid var(--shop-border);
    color: var(--shop-ink);
    font-size: .99rem;
    line-height: 1.4;
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary-total strong:last-child {
        font-size: 1.32rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

.app-shop-page.app-shop-cart-page .app-shop-cart-checkout-form {
    margin: 22px 0 0;
}

.app-shop-page.app-shop-cart-page .app-shop-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--shop-pink);
    border-radius: 12px;
    background: var(--qlii-primary);
    border-color: var(--qlii-primary);
    color: #FFF;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

    .app-shop-page.app-shop-cart-page .app-shop-checkout-button:hover:not(:disabled) {
        background: var(--qlii-primary-dark);
        border-color: var(--qlii-primary-dark);
        color: #FFF;
        transform: translateY(-1px);
    }

    .app-shop-page.app-shop-cart-page .app-shop-checkout-button:disabled {
        opacity: .7;
        cursor: wait;
    }

/* Livraison */
.app-shop-page.app-shop-cart-page .app-shop-cart-address h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-address h2 svg {
        width: 19px;
        height: 19px;
        color: var(--shop-pink);
        flex-shrink: 0;
    }

.app-shop-page.app-shop-cart-page .app-shop-cart-address > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--shop-ink);
    font-size: .94rem;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-address .app-address-details {
    color: var(--shop-muted);
    font-size: .88rem;
    line-height: 1.65;
}

/* Panier vide */
.app-shop-page.app-shop-cart-page .app-shop-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    text-align: center;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #FCE7F1;
    color: var(--shop-pink);
}

    .app-shop-page.app-shop-cart-page .app-shop-cart-empty-icon svg {
        width: 30px;
        height: 30px;
    }

.app-shop-page.app-shop-cart-page .app-shop-cart-empty p {
    margin: 0;
    color: var(--shop-muted);
    line-height: 1.5;
}

.app-shop-page.app-shop-cart-page .app-shop-cart-empty .app-shop-view-cart-button {
    width: auto;
    min-width: 175px;
    margin-top: 8px;
    padding: 12px 20px;
}

@media (max-width: 1050px) {
    .app-shop-page.app-shop-cart-page .app-shop-cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary:only-child {
        grid-column: 1 / -1;
        max-width: 520px;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .app-shop-page.app-shop-cart-page .app-cart-list-header {
        display: none;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-row {
        grid-template-columns: minmax(0, 1fr) auto 36px;
        row-gap: 15px;
        padding: 18px;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-product {
        grid-column: 1 / -1;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-quantity {
        grid-column: 1;
        text-align: left;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-price {
        grid-column: 2;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-remove {
        grid-column: 3;
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-sidebar {
        display: flex;
        flex-direction: column;
    }

    .app-shop-page.app-shop-cart-page .app-shop-cart-summary,
    .app-shop-page.app-shop-cart-page .app-shop-cart-address {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .app-shop-page.app-shop-cart-page .app-cart-list-row {
        gap: 12px 8px;
        padding: 16px 12px;
    }


    .app-shop-page.app-shop-cart-page .app-cart-list-product {
        gap: 10px;
    }

    .app-shop-page.app-shop-cart-page .app-cart-list-price strong {
        font-size: .86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shop-page.app-shop-cart-page .app-cart-quantity-button,
    .app-shop-page.app-shop-cart-page .app-shop-cart-remove-button,
    .app-shop-page.app-shop-cart-page .app-shop-checkout-button {
        transition: none;
    }
}
/* ==========================================================
   SHOP — MES COMMANDES
   À placer à la fin du shop.css existant.
   Styles volontairement limités à .app-shop-orders-page.
   ========================================================== */

.app-shop-page.app-shop-orders-page .app-shop-header {
    margin-bottom: 25px;
}

.app-shop-page.app-shop-orders-page .app-shop-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-shop-page.app-shop-orders-page .app-shop-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin: 0;
    padding: 20px 24px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 5px 22px rgba(42, 29, 32, .025);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
    .app-shop-page.app-shop-orders-page .app-shop-order-card:hover {
        border-color: #E8CFDA;
        box-shadow: 0 10px 26px rgba(80, 37, 58, .055);
        transform: translateY(-1px);
    }
}


.app-shop-page.app-shop-orders-page .app-shop-order-details {
    min-width: 0;
}

.app-shop-page.app-shop-orders-page .app-shop-order-overline,
.app-shop-page.app-shop-orders-page .app-shop-order-amount > span {
    display: block;
    margin-bottom: 5px;
    color: var(--shop-muted);
    font-size: .78rem;
    font-weight: 600;
}

.app-shop-page.app-shop-orders-page .app-shop-order-reference-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

    .app-shop-page.app-shop-orders-page .app-shop-order-reference-line h2 {
        margin: 0;
        color: var(--shop-ink);
        font-size: 1.03rem;
        font-weight: 780;
        letter-spacing: .005em;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

.app-shop-page.app-shop-orders-page .app-shop-order-date {
    display: block;
    margin-top: 6px;
    color: var(--shop-muted);
    font-size: .87rem;
}

.app-shop-page.app-shop-orders-page .app-shop-order-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #F3F0F2;
    color: #695D66;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.app-shop-page.app-shop-orders-page .app-shop-order-status--pendingpayment {
    background: #FFF4E4;
    color: #99621F;
}

.app-shop-page.app-shop-orders-page .app-shop-order-status--paid {
    background: #EAF6EE;
    color: #2D7546;
}

.app-shop-page.app-shop-orders-page .app-shop-order-status--processing {
    background: #EEF0FC;
    color: #505FA0;
}

.app-shop-page.app-shop-orders-page .app-shop-order-status--completed {
    background: #E8F6F1;
    color: #26745B;
}

.app-shop-page.app-shop-orders-page .app-shop-order-amount {
    min-width: 0;
    text-align: right;
}

    .app-shop-page.app-shop-orders-page .app-shop-order-amount strong {
        display: block;
        color: var(--shop-ink);
        font-size: 1.14rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

.app-shop-page.app-shop-orders-page .app-shop-order-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

    .app-shop-page.app-shop-orders-page .app-shop-order-actions form {
        margin: 0;
    }

.app-shop-page.app-shop-orders-page .app-shop-order-invoice,
.app-shop-page.app-shop-orders-page .app-shop-order-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #E2E2E2;
    background: #FFF;
    color: var(--shop-ink);
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

    .app-shop-page.app-shop-orders-page .app-shop-order-invoice:hover {
        border: 1px solid #E2E2E2;
        background: #FFF;
        color: var(--shop-ink);
    }

.app-shop-page.app-shop-orders-page .app-shop-order-cancel {
    border: 1px solid #E2E2E2;
    background: #FFF;
    color: var(--shop-ink);
}


    .app-shop-page.app-shop-orders-page .app-shop-order-invoice svg,
    .app-shop-page.app-shop-orders-page .app-shop-order-cancel svg,
    .app-shop-page.app-shop-orders-page .app-shop-order-tracking svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

.app-shop-page.app-shop-orders-page .app-shop-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #FFF;
    text-align: center;
}

.app-shop-page.app-shop-orders-page .app-shop-orders-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #FCE7F1;
    color: var(--shop-pink);
}

    .app-shop-page.app-shop-orders-page .app-shop-orders-empty-icon svg {
        width: 30px;
        height: 30px;
    }

.app-shop-page.app-shop-orders-page .app-shop-orders-empty p {
    margin: 0;
    color: var(--shop-muted);
    line-height: 1.5;
}

.app-shop-page.app-shop-orders-page .app-shop-orders-empty .app-shop-view-cart-button {
    width: auto;
    min-width: 175px;
    margin-top: 8px;
    padding: 12px 20px;
}

@media (max-width: 600px) {

    .app-shop-page.app-shop-orders-page .app-shop-order-card {
        padding: 16px;
        gap: 12px;
    }

    .app-shop-page.app-shop-orders-page .app-shop-order-reference-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-shop-page.app-shop-orders-page .app-shop-order-item {
        grid-template-columns: minmax(0, 1fr) 48px 64px;
        gap: 8px;
    }

    .app-shop-page.app-shop-orders-page .app-shop-order-actions {
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shop-page.app-shop-orders-page .app-shop-order-card,
    .app-shop-page.app-shop-orders-page .app-shop-order-invoice,
    .app-shop-page.app-shop-orders-page .app-shop-order-cancel {
        transition: none;
    }
}

.app-shop-page.app-shop-orders-page .app-shop-order-items {
    grid-column: 1 / -1;
    border-top: 1px solid var(--shop-border);
}

.app-shop-page.app-shop-orders-page .app-shop-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 76px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: .9rem;
    color: var(--shop-ink);
}

    .app-shop-page.app-shop-orders-page .app-shop-order-item + .app-shop-order-item {
        border-top: 1px solid var(--shop-border);
    }

.app-shop-page.app-shop-orders-page .app-shop-order-item-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-shop-page.app-shop-orders-page .app-shop-order-item strong {
    text-align: right;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
}

.app-shop-page.app-shop-orders-page .app-shop-order-tracking {
    background: var(--shop-ink);
    border-color: var(--shop-ink);
    color: #FFF;
}

.app-shop-page.app-shop-orders-page .app-shop-order-pdf {
    justify-self: end;
    padding: 6px;
    font-size: 1.3rem;
    line-height: 1;
    text-decoration: none;
    transition: opacity .15s ease;
}

    .app-shop-page.app-shop-orders-page .app-shop-order-pdf:hover {
        opacity: .65;
    }
/* ==========================================================
   QLII SHOP — MES ADRESSES + CRÉER UNE ADRESSE
   ========================================================== */

.app-shop-page.app-shop-addresses-page .app-shop-addresses-header {
    align-items: center;
    margin-bottom: 25px;
}

.app-shop-page .app-shop-addresses-primary,
.app-shop-page .app-shop-addresses-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 12px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .17s ease, border-color .17s ease, color .17s ease, transform .17s ease;
}

.app-shop-page .app-shop-addresses-primary {
    border: 1px solid var(--shop-pink);
    background: var(--shop-pink);
    color: #fff;
}

    .app-shop-page .app-shop-addresses-primary:hover {
        background: var(--shop-pink-dark);
        border-color: var(--shop-pink-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.app-shop-page .app-shop-addresses-secondary {
    border: 1px solid #e8dddf;
    background: #fff;
    color: var(--shop-ink);
}

    .app-shop-page .app-shop-addresses-secondary:hover {
        border-color: #e4c3d2;
        background: #fff8fb;
        color: var(--shop-pink);
    }

    .app-shop-page .app-shop-addresses-primary svg,
    .app-shop-page .app-shop-addresses-secondary svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.app-shop-page .app-shop-addresses-disabled,
.app-shop-page .app-shop-addresses-disabled:hover {
    opacity: .45;
    cursor: not-allowed;
    background: #fff;
    border-color: #e8dddf;
    color: var(--shop-muted);
    pointer-events: none;
}

.app-shop-page .app-shop-addresses-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/* Liste d'adresses */
.app-shop-page.app-shop-addresses-page .app-shop-addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.app-shop-page.app-shop-addresses-page .app-shop-address-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 22px 24px 18px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(42, 29, 32, .025);
    transition: border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
    .app-shop-page.app-shop-addresses-page .app-shop-address-card:hover {
        border-color: #e8cfda;
        box-shadow: 0 10px 26px rgba(80, 37, 58, .055);
    }
}

.app-shop-page .app-shop-address-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.app-shop-page .app-shop-address-card-icon,
.app-shop-page .app-shop-address-section-icon,
.app-shop-page .app-shop-addresses-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: #fce8f1;
    color: var(--shop-pink);
}

.app-shop-page .app-shop-address-card-icon {
    width: 48px;
    height: 48px;
}

    .app-shop-page .app-shop-address-card-icon svg {
        width: 24px;
        height: 24px;
    }

.app-shop-page .app-shop-address-card-heading {
    min-width: 0;
}

    .app-shop-page .app-shop-address-card-heading h2 {
        margin: 0 0 3px;
        color: var(--shop-ink);
        font-size: 1.06rem;
        font-weight: 750;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .app-shop-page .app-shop-address-card-heading > span {
        display: block;
        color: var(--shop-muted);
        font-size: .86rem;
        overflow-wrap: anywhere;
    }

.app-shop-page .app-shop-address-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0 15px;
}

.app-shop-page .app-shop-address-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f7f0ec;
    color: #815d54;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.3;
}

.app-shop-page .app-shop-address-badge--billing {
    background: #f5eefb;
    color: #77518f;
}

.app-shop-page .app-shop-address-lines {
    color: #625b61;
    font-size: .92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.app-shop-page .app-shop-address-defaults {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
}

    .app-shop-page .app-shop-address-defaults > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #387655;
        font-size: .8rem;
        font-weight: 650;
    }

    .app-shop-page .app-shop-address-defaults svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.app-shop-page .app-shop-address-products {
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid var(--shop-border);
}

    .app-shop-page .app-shop-address-products h3 {
        margin: 0 0 11px;
        color: var(--shop-ink);
        font-size: .88rem;
        font-weight: 700;
    }

.app-shop-page .app-shop-address-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-shop-page .app-shop-address-product {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #f2ecea;
    border-radius: 12px;
    background: #fffcfa;
    color: var(--shop-ink);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

    .app-shop-page .app-shop-address-product:hover {
        background: #fff7fa;
        border-color: #eed8e2;
        color: var(--shop-ink);
    }

.app-shop-page .app-shop-address-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #f7f0ec;
}

    .app-shop-page .app-shop-address-product-icon img {
        width: 21px;
        height: 21px;
        object-fit: contain;
    }

.app-shop-page .app-shop-address-product-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

    .app-shop-page .app-shop-address-product-text strong {
        font-size: .84rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .app-shop-page .app-shop-address-product-text small {
        color: var(--shop-muted);
        font-size: .75rem;
        line-height: 1.35;
    }

.app-shop-page .app-shop-address-product-arrow {
    margin-left: auto;
    color: var(--shop-pink);
    font-size: 1.1rem;
}

.app-shop-page .app-shop-address-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 17px;
}

    .app-shop-page .app-shop-address-card-footer form {
        margin: 0;
    }

.app-shop-page .app-shop-address-delete {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #9e666b;
    font: inherit;
    font-size: .83rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

    .app-shop-page .app-shop-address-delete:hover {
        border-color: #edc9cd;
        background: #fff2f3;
        color: #ad3d4e;
    }

    .app-shop-page .app-shop-address-delete svg {
        width: 17px;
        height: 17px;
    }

.app-shop-page.app-shop-addresses-page .app-shop-addresses-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.app-shop-page .app-shop-addresses-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

    .app-shop-page .app-shop-addresses-empty-icon svg {
        width: 30px;
        height: 30px;
    }

.app-shop-page .app-shop-addresses-empty p {
    margin: 0;
    color: var(--shop-muted);
    line-height: 1.5;
}

/* Formulaire de création */
.app-shop-page.app-shop-address-create-page .app-shop-header {
    margin-bottom: 22px;
}

.app-shop-page.app-shop-address-create-page .app-shop-address-create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}

.app-shop-page.app-shop-address-create-page .app-shop-address-form-card {
    margin: 0;
    padding: 24px 28px 27px;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(42, 29, 32, .025);
}

.app-shop-page .app-shop-address-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.app-shop-page .app-shop-address-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

    .app-shop-page .app-shop-address-section-icon svg {
        width: 22px;
        height: 22px;
    }

.app-shop-page .app-shop-address-section-title h2 {
    margin: 0;
    color: var(--shop-ink);
    font-size: 1.08rem;
    font-weight: 750;
}

.app-shop-page .app-shop-address-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

    .app-shop-page .app-shop-address-fields .app-form-group {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        margin: 0;
    }

.app-shop-page .app-shop-address-field--wide {
    grid-column: 1 / -1;
}

.app-shop-page .app-shop-address-fields label {
    display: block;
    margin: 0;
    color: var(--shop-ink);
    font-size: .89rem;
    font-weight: 650;
}

.app-shop-page .app-shop-address-fields .app-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #e6dfdd;
    border-radius: 11px;
    background: #fffcfa;
    color: var(--shop-ink);
    font: inherit;
    box-sizing: border-box;
}

    .app-shop-page .app-shop-address-fields .app-input:focus {
        outline: 0;
        border-color: var(--shop-pink);
        box-shadow: 0 0 0 3px rgba(192, 58, 120, .10);
    }

.app-shop-page .app-shop-address-fields .input-validation-error {
    border-color: #cc7483;
}

.app-shop-page .app-shop-address-fields .text-danger,
.app-shop-page .app-shop-address-choice-group .text-danger {
    color: #ad3d4e;
    font-size: .81rem;
}

.app-shop-page .app-shop-address-validation:empty,
.app-shop-page .app-shop-address-validation.validation-summary-valid {
    display: none;
}

.app-shop-page .app-shop-address-validation.validation-summary-errors {
    padding: 12px 16px;
    border: 1px solid #edc9cd;
    border-radius: 12px;
    background: #fff2f3;
    color: #ad3d4e;
}

.app-shop-page .app-shop-address-validation ul {
    margin: 0;
    padding-left: 20px;
}

.app-shop-page .app-shop-address-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-shop-page .app-shop-address-choice-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.app-shop-page .app-shop-address-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #eee6e5;
    border-radius: 12px;
    background: #fffcfa;
    color: var(--shop-ink);
    font-size: .89rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

    .app-shop-page .app-shop-address-choice:has(input:checked) {
        border-color: #e8c3d4;
        background: #fff6fa;
    }

    .app-shop-page .app-shop-address-choice:focus-within {
        outline: 2px solid rgba(192, 58, 120, .55);
        outline-offset: 2px;
    }

    .app-shop-page .app-shop-address-choice input[type="checkbox"] {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--shop-pink);
        cursor: pointer;
    }

.app-shop-page .app-shop-address-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 11px;
    margin-top: 4px;
}

.app-shop-page .app-shop-addresses-primary:focus-visible,
.app-shop-page .app-shop-addresses-secondary:focus-visible,
.app-shop-page .app-shop-address-delete:focus-visible,
.app-shop-page .app-shop-address-product:focus-visible {
    outline: 3px solid rgba(192, 58, 120, .55);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .app-shop-page.app-shop-addresses-page .app-shop-addresses-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-shop-page .app-shop-addresses-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .app-shop-page.app-shop-addresses-page .app-shop-addresses-grid {
        grid-template-columns: 1fr;
    }

    .app-shop-page.app-shop-address-create-page .app-shop-address-form-card {
        padding: 21px 18px;
    }

    .app-shop-page .app-shop-address-fields,
    .app-shop-page .app-shop-address-choices {
        grid-template-columns: 1fr;
    }

    .app-shop-page .app-shop-address-field--wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .app-shop-page .app-shop-addresses-header-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

        .app-shop-page .app-shop-addresses-header-actions > * {
            width: 100%;
        }

    .app-shop-page.app-shop-addresses-page .app-shop-address-card {
        padding: 19px 17px 15px;
    }

    .app-shop-page .app-shop-address-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .app-shop-page .app-shop-address-form-actions > * {
            width: 100%;
        }
}


.app-address-availability {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #FFF3F8;
    color: #C03A78;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: background .2s ease;
}

    .app-address-availability:hover {
        background: #FCE5EF;
        color: #A82C66;
        text-decoration: none;
    }

    .app-address-availability img {
        width: 21px;
        height: 21px;
        object-fit: contain;
    }

.app-address-availability-arrow {
    margin-left: auto;
    font-size: 1.2rem;
}


@media (prefers-reduced-motion: reduce) {
    .app-shop-page .app-shop-addresses-primary,
    .app-shop-page .app-shop-addresses-secondary,
    .app-shop-page .app-shop-address-product,
    .app-shop-page .app-shop-address-delete,
    .app-shop-page .app-shop-address-card {
        transition: none;
    }
}



/* =========================================
   SHOP — Retour de paiement Stripe
   ========================================= */

.shop-checkout-notice {
    --notice-accent: #64748b;
    --notice-bg: #f8fafc;
    margin: 0 0 20px;
    padding: 17px 20px;
    background: var(--notice-bg);
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--notice-accent);
    border-radius: 12px;
    box-shadow: none;
}

    /* Titre */
    .shop-checkout-notice h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 8px;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
    }

        /* Petit indicateur visuel sans emoji */
        .shop-checkout-notice h2::before {
            content: "";
            display: block;
            flex: 0 0 9px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--notice-accent);
        }

    /* Textes */
    .shop-checkout-notice p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #475569;
    }

        .shop-checkout-notice p + p {
            margin-top: 5px;
        }

    /* Bouton secondaire */
    .shop-checkout-notice form {
        margin-top: 15px;
    }

.shop-checkout-notice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    min-height: 38px;
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .shop-checkout-notice__button:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #0f172a;
    }

    .shop-checkout-notice__button:focus-visible {
        outline: 2px solid #64748b;
        outline-offset: 3px;
    }

/* Annulation proposée */
.shop-checkout-notice--pending {
    --notice-accent: #d97706;
    --notice-bg: #fffbf5;
}

/* Annulation confirmée */
.shop-checkout-notice--success {
    --notice-accent: #16a34a;
    --notice-bg: #f4fbf6;
}

/* Annulation impossible */
.shop-checkout-notice--error {
    --notice-accent: #dc2626;
    --notice-bg: #fff7f7;
}

/* Messages courts succès / erreur */
.shop-checkout-notice--success,
.shop-checkout-notice--error {
    padding-top: 13px;
    padding-bottom: 13px;
}

/* Mobile */
@media (max-width: 600px) {
    .shop-checkout-notice {
        padding: 15px;
        margin-bottom: 16px;
    }

    .shop-checkout-notice__button {
        width: 100%;
    }
}


/* ==========================================================
   QLII SHOP — ICÔNES PRODUITS
   ========================================================== */

.app-shop-page .app-shop-cart-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 14px;
    background: #F7F0EC;
    overflow: hidden;
}

    /* SVG : icône centrée */
    .app-shop-page .app-shop-cart-product-icon img {
        display: block;
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

/* Services : fond rose QLII */
.app-shop-page .app-shop-cart-product-icon--service {
    background: #FCE7F1;
}

/* PNG : image occupant entièrement les 50px */
.app-shop-page .app-shop-cart-product-icon--image {
    background: transparent;
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

    /* PNG pleine taille */
    .app-shop-page .app-shop-cart-product-icon--image img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        border-radius: inherit;
    }




.app-cart-business-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
}

    .app-cart-business-preview .app-cart-preview-link {
        display: inline-flex;
        justify-content: flex-start;
        align-self: flex-start;
        width: auto;
        margin: 0;
        text-align: left;
    }

.app-shop-bat-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1rem 0;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
}

    .app-shop-bat-confirmation input {
        flex-shrink: 0;
        width: 17px;
        height: 17px;
        margin-top: 2px;
        accent-color: #d12870;
        cursor: pointer;
    }

.app-shop-checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Prix boutique et remises */

.app-shop-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
}

.app-shop-price-original {
    color: #929292;
    font-size: 0.8rem;
    text-decoration: line-through;
}

.app-shop-price-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.app-shop-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(209, 40, 112, 0.09);
    color: #d12870;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-shop-price-block .app-shop-price {
    color: #111 !important;
}


/* Fenêtre de détail : description, prix et achat */
.app-shop-product-dialog {
    position: fixed;
    width: min(520px, calc(100% - 32px));
    max-height: min(88vh, 850px);
    padding: 30px;
    border: 1px solid #ECE8E6;
    border-radius: 16px;
    background: #FFF;
    color: #28232A;
    box-shadow: 0 24px 76px rgba(0, 0, 0, .21);
    overflow-y: auto;
}

.app-shop-product-dialog::backdrop {
    background: rgba(22, 18, 23, .52);
    backdrop-filter: blur(3px);
}

.app-shop-product-dialog h2 {
    margin: 0 32px 20px 0;
    color: var(--shop-ink, #28232A);
    font-size: 1.27rem;
    font-weight: 600;
    line-height: 1.4;
}

.app-shop-product-dialog-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    background: transparent;
    color: #77717A;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.app-shop-product-dialog-close:hover {
    color: #28232A;
}

.app-shop-product-dialog-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 235px;
    margin-bottom: 22px;
    padding: 15px;
    box-sizing: border-box;
    background: #F5F5F3;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
}

.app-shop-product-dialog-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-shop-product-dialog-description {
    color: #68636A;
    font-size: .91rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.app-shop-product-dialog-purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #EFEBE9;
}

.app-shop-product-dialog-purchase .app-shop-price-block {
    width: 100%;
}

.app-shop-product-dialog-purchase .app-shop-add-form {
    width: 100%;
}

@media (max-width: 520px) {
    .app-shop-product-dialog {
        padding: 22px;
    }

    .app-shop-product-dialog-image {
        height: 190px;
    }
}

.shop-payment-trust {
    margin-top: 20px;
    text-align: center;
}

.shop-payment-secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #777;
}

    .shop-payment-secure svg {
        flex-shrink: 0;
    }


/* ==========================================================
   QLII SHOP — Zoom de prévisualisation
   ========================================================== */

.app-shop-product-dialog-image.is-zoomable {
    touch-action: none;
    cursor: zoom-in;
    overflow: hidden;
    clip-path: inset(0);
}

    .app-shop-product-dialog-image.is-zoomable img {
        transform-origin: center center;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }

.app-shop-product-dialog-image.is-zoomed {
    cursor: grab;
}

.app-shop-product-dialog-image.is-dragging {
    cursor: grabbing;
}

.app-shop-product-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -12px 0 20px;
}

    .app-shop-product-zoom button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border: 1px solid #E8DDDF;
        border-radius: 8px;
        background: #FFF;
        color: var(--shop-ink, #28232A);
        font: inherit;
        font-size: 1.1rem;
        cursor: pointer;
    }

        .app-shop-product-zoom button:hover:not(:disabled) {
            background: #FFF0F6;
            color: var(--shop-pink, #C03A78);
        }

        .app-shop-product-zoom button:disabled {
            opacity: .35;
            cursor: default;
        }

.app-shop-product-zoom-value {
    min-width: 58px;
    text-align: center;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.app-shop-bat-dialog {
    width: min(700px, calc(100% - 32px));
}

    .app-shop-bat-dialog .app-shop-product-dialog-image {
        height: min(55vh, 450px);
    }

    .app-shop-bat-dialog .app-shop-product-zoom {
        margin-bottom: 0;
    }

/* ==========================================================
   QLII SHOP — État de consultation du BAT
   ========================================================== */

.app-cart-bat-check {
    display: none;
    font-size: 1rem;
    font-weight: 750;
}

.app-cart-preview-link.is-viewed {
    color: #387655;
}

    .app-cart-preview-link.is-viewed .app-cart-bat-check {
        display: inline-block;
        margin-right: 5px;
    }

    .app-cart-preview-link.is-viewed:hover {
        color: #286044;
    }

.app-shop-bat-confirmation:has(input:disabled) {
    opacity: .45;
    cursor: not-allowed;
}

.app-shop-bat-confirmation input:disabled {
    cursor: not-allowed;
}

/* QLII SHOP — Avertissement de contenu imprimable */

.app-shop-preview-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #EAD18D;
    border-radius: 9px;
    background: #FFF8E5;
    color: #85611A;
    font-size: .85rem;
    line-height: 1.5;
}

    .app-shop-preview-warning[hidden] {
        display: none;
    }

    .app-shop-preview-warning > span {
        flex-shrink: 0;
        font-size: 1.2rem;
        line-height: 1.3;
    }