/* ============================================================
   Commerce Opus — Design System "Opus"
   Palette tirée du logo : violet #6C3FA4 / orange #F7941E
   Aucune dépendance (pas de Tailwind, pas de CDN).
   ============================================================ */

:root {
    /* Brand */
    --op-purple-900: #2a1653;
    --op-purple-800: #43217c;
    --op-purple-700: #56309c;
    --op-purple-600: #6c3fa4;
    --op-purple-500: #7c4dbe;
    --op-purple-400: #9b73d3;
    --op-purple-100: #ece4f8;
    --op-purple-50:  #f6f2fc;
    --op-orange-500: #f7941e;
    --op-orange-600: #e07f0a;
    --op-orange-50:  #fdf1e0;

    /* Neutrals */
    --op-ink:        #241a3e;
    --op-text:       #4b465c;
    --op-muted:      #8b8699;
    --op-border:     #e9e5f2;
    --op-bg:         #f7f5fc;
    --op-white:      #ffffff;

    /* Semantic */
    --op-like:       #10b981;
    --op-pass:       #f43f5e;
    --op-star:       #f5a623;

    /* Effects */
    --op-radius:     1rem;
    --op-radius-lg:  1.5rem;
    --op-shadow-sm:  0 1px 3px rgba(42, 22, 83, 0.07);
    --op-shadow-md:  0 6px 20px rgba(42, 22, 83, 0.10);
    --op-shadow-lg:  0 16px 44px rgba(42, 22, 83, 0.16);

    --op-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.opus {
    margin: 0;
    font-family: var(--op-font);
    background: var(--op-bg);
    color: var(--op-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

.opus h1, .opus h2, .opus h3, .opus h4 {
    color: var(--op-ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Les liens héritent de la couleur du texte, sauf les boutons : ceux-ci
   portent la leur, et cette règle-ci serait plus spécifique qu'elle. */
.opus a:not(.op-btn) { color: inherit; }
.opus a { text-decoration: none; }
.opus img { max-width: 100%; display: block; }
.opus button { font-family: inherit; cursor: pointer; }

.op-container {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .op-container { padding: 0 1.5rem; } }

/* ---------- Boutons ---------- */
.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .7rem 1.4rem;
    transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
    white-space: nowrap;
}
.op-btn:active { transform: scale(.97); }

.op-btn-primary {
    background: var(--op-purple-600);
    color: #fff;
    box-shadow: var(--op-shadow-sm);
}
.op-btn-primary:hover { background: var(--op-purple-700); }

.op-btn-outline {
    background: var(--op-white);
    color: var(--op-purple-700);
    border: 1.5px solid var(--op-border);
}
.op-btn-outline:hover { border-color: var(--op-purple-400); background: var(--op-purple-50); }

.op-btn-orange {
    background: var(--op-orange-500);
    color: #fff;
}
.op-btn-orange:hover { background: var(--op-orange-600); }

/* ---------- Badges & chips ---------- */
.op-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--op-purple-100);
    color: var(--op-purple-700);
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .2rem .65rem;
}

.op-verified {
    color: var(--op-purple-500);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.op-stars { color: var(--op-star); letter-spacing: .05em; font-size: .85rem; }
.op-rating-meta { color: var(--op-muted); font-size: .8rem; }

/* ============================================================
   Header
   ============================================================ */
.op-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--op-border);
}
.op-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 4.25rem;
}
.op-logo img { height: 2.4rem; width: auto; }

.op-nav { display: none; }
@media (min-width: 900px) {
    .op-nav { display: flex; gap: .25rem; margin-left: 1rem; }
}
.op-nav a {
    padding: .5rem .9rem;
    border-radius: .6rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--op-text);
    transition: color .15s ease, background .15s ease;
}
.op-nav a:hover { color: var(--op-purple-700); background: var(--op-purple-50); }
.op-nav a.active { color: var(--op-purple-700); box-shadow: inset 0 -3px 0 var(--op-purple-600); border-radius: .6rem .6rem 0 0; }

.op-header-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.op-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .8rem;
    border: 1.5px solid var(--op-border);
    background: var(--op-white);
    color: var(--op-ink);
    transition: border-color .15s ease;
}
.op-iconbtn:hover { border-color: var(--op-purple-400); }
.op-iconbtn .op-count {
    position: absolute;
    top: -.4rem;
    right: -.4rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: var(--op-purple-600);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.op-header .op-btn-connect { display: none; }
@media (min-width: 640px) { .op-header .op-btn-connect { display: inline-flex; } }

/* ============================================================
   Hero + deck de découverte
   ============================================================ */
.op-hero { padding: 2.2rem 0 1rem; text-align: center; overflow: hidden; }
.op-hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.op-hero p.op-sub {
    color: var(--op-text);
    max-width: 34rem;
    margin: 0 auto;
    font-size: 1.02rem;
}

/* Deck */
.op-deck-wrap { position: relative; margin: 1.8rem auto 0; }

.op-deck {
    position: relative;
    height: 30rem;
    max-width: 22rem;
    margin: 0 auto;
    touch-action: pan-y;
}
@media (min-width: 700px) {
    .op-deck { max-width: 24rem; height: 32rem; }
}

.op-card {
    position: absolute;
    inset: 0;
    background: var(--op-white);
    border-radius: var(--op-radius-lg);
    box-shadow: var(--op-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    will-change: transform, opacity;
    transition: transform .35s cubic-bezier(.22,.9,.35,1.1), opacity .3s ease;
}
.op-card.dragging { transition: none; cursor: grabbing; }

/* pile : positions derrière la carte du dessus */
.op-card[data-pos="1"] { transform: scale(.94) translateY(1.1rem); opacity: .85; z-index: 2; pointer-events: none; }
.op-card[data-pos="2"] { transform: scale(.88) translateY(2.2rem); opacity: .55; z-index: 1; pointer-events: none; }
.op-card[data-pos="0"] { z-index: 3; cursor: grab; }
.op-card[data-pos="gone"] { opacity: 0; pointer-events: none; }

/* aperçus latéraux (desktop) */
.op-side-card {
    display: none;
    position: absolute;
    top: 2.5rem;
    width: 15rem;
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    box-shadow: var(--op-shadow-md);
    background: var(--op-white);
    opacity: .8;
}
.op-side-card img { height: 13rem; width: 100%; object-fit: cover; }
.op-side-card .op-side-body { padding: .8rem .9rem 1rem; text-align: left; }
.op-side-card:hover { opacity: 1; }
.op-side-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--op-muted);
    margin-bottom: .25rem;
}
@keyframes op-side-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: .8; transform: translateY(0) scale(1); }
}
.op-side-card.op-side-anim { animation: op-side-in .45s ease both; }
@media (min-width: 1100px) {
    .op-side-card { display: block; }
    .op-side-card.left  { left: calc(50% - 33rem); }
    .op-side-card.right { right: calc(50% - 33rem); }
}

.op-card-img {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--op-purple-50);
}
.op-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.op-card-like-btn {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.95);
    color: var(--op-pass);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--op-shadow-sm);
}
.op-card-like-btn.liked { color: #fff; background: var(--op-like); }

.op-card-body { padding: 1rem 1.1rem 1.1rem; text-align: left; background: var(--op-white); }
.op-card-body .op-card-name { font-size: 1.25rem; font-weight: 800; color: var(--op-ink); margin: .35rem 0 .1rem; }
.op-card-store { font-weight: 600; color: var(--op-purple-600); font-size: .92rem; }
.op-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .55rem;
    gap: .75rem;
}
.op-price { font-size: 1.2rem; font-weight: 800; color: var(--op-ink); }

/* stamps LIKE / PASS pendant le drag */
.op-stamp {
    position: absolute;
    top: 1.4rem;
    padding: .35rem .9rem;
    border-radius: .6rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .08em;
    border: 3px solid;
    opacity: 0;
    transform: rotate(-12deg);
    pointer-events: none;
    background: rgba(255,255,255,.85);
}
.op-stamp.like { left: 1.2rem; color: var(--op-like); border-color: var(--op-like); }
.op-stamp.pass { right: 1.2rem; color: var(--op-pass); border-color: var(--op-pass); transform: rotate(12deg); }

/* carte fin de deck */
.op-deck-empty {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--op-white);
    border-radius: var(--op-radius-lg);
    box-shadow: var(--op-shadow-md);
    padding: 2rem;
    text-align: center;
}
.op-deck-empty.visible { display: flex; }

/* Contrôles swipe */
.op-swipe-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 1.4rem;
}
.op-swipe-hint {
    font-size: .8rem;
    font-weight: 700;
    color: var(--op-ink);
    max-width: 6.5rem;
    line-height: 1.25;
}
.op-swipe-hint span { display: block; font-weight: 400; color: var(--op-muted); }
.op-circle-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 0;
    background: var(--op-white);
    box-shadow: var(--op-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, box-shadow .15s ease;
}
.op-circle-btn:hover { transform: scale(1.07); box-shadow: var(--op-shadow-lg); }
.op-circle-btn.pass { color: var(--op-pass); }
.op-circle-btn.like { color: var(--op-like); }

/* ============================================================
   Recherche
   ============================================================ */
.op-search-section { margin: 2.4rem auto 0; max-width: 56rem; }
.op-search-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--op-white);
    border: 1.5px solid var(--op-border);
    border-radius: 999px;
    padding: .45rem .5rem .45rem 1.2rem;
    box-shadow: var(--op-shadow-sm);
}
.op-search-form:focus-within { border-color: var(--op-purple-400); }
.op-search-form svg { color: var(--op-muted); flex-shrink: 0; }
.op-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--op-ink);
    background: transparent;
}
.op-search-form input::placeholder { color: var(--op-muted); }
.op-search-form .op-btn { border-radius: 999px; padding: .65rem 1.5rem; }
.op-search-form .op-search-submit-icon { display: none; }
@media (max-width: 639px) {
    .op-search-form .op-search-submit-text { display: none; }
    .op-search-form .op-search-submit-icon {
        display: flex;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border-radius: 50%;
    }
}
.op-search-examples { color: var(--op-muted); font-size: .8rem; margin-top: .5rem; padding-left: 1.2rem; }

/* ============================================================
   Catégories
   ============================================================ */
.op-section { padding: 2.4rem 0 0; }
.op-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.op-section-head h2 { font-size: 1.35rem; margin: 0; }
.op-section-head .op-see-all {
    color: var(--op-purple-600);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
}
.op-section-head .op-see-all:hover { color: var(--op-purple-800); }

.op-cats {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding-bottom: .6rem;
    scrollbar-width: thin;
}
.op-cat {
    flex: 0 0 auto;
    width: 6.2rem;
    background: var(--op-white);
    border: 1.5px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: .9rem .5rem .7rem;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.op-cat:hover { border-color: var(--op-purple-400); box-shadow: var(--op-shadow-sm); transform: translateY(-2px); }
.op-cat .op-cat-icon { font-size: 1.7rem; line-height: 1; margin-bottom: .45rem; }
.op-cat .op-cat-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--op-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   Grille produits (recherche / favoris)
   ============================================================ */
.op-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}
@media (min-width: 700px)  { .op-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 1024px) { .op-grid { grid-template-columns: repeat(4, 1fr); } }

.op-product-card {
    background: var(--op-white);
    border-radius: var(--op-radius);
    overflow: hidden;
    box-shadow: var(--op-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease;
    position: relative;
}
.op-product-card:hover { box-shadow: var(--op-shadow-md); transform: translateY(-3px); }
.op-product-card .op-pc-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--op-purple-50);
}
.op-product-card .op-pc-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.op-product-card .op-pc-img .op-badge { position: absolute; top: .6rem; left: .6rem; background: rgba(255,255,255,.92); }
.op-product-card .op-pc-fav {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: var(--op-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--op-shadow-sm);
}
.op-product-card .op-pc-fav.liked { color: #fff; background: var(--op-like); }
.op-product-card .op-pc-body { padding: .75rem .85rem .95rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.op-product-card .op-pc-name {
    font-weight: 700;
    color: var(--op-ink);
    font-size: .95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.op-product-card .op-pc-store { font-size: .8rem; color: var(--op-purple-600); font-weight: 600; }
.op-product-card .op-pc-price { font-weight: 800; color: var(--op-ink); margin-top: .25rem; }

/* ============================================================
   Bloc commerçant
   ============================================================ */
.op-merchant {
    margin-top: 2.8rem;
    background: linear-gradient(115deg, var(--op-orange-50), var(--op-purple-50));
    border-radius: var(--op-radius-lg);
    padding: 1.8rem 1.4rem;
    display: grid;
    gap: 1.4rem;
    align-items: center;
}
@media (min-width: 800px) {
    .op-merchant { grid-template-columns: 1.2fr 1fr; padding: 2.4rem 2.6rem; }
}
.op-merchant h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.op-merchant .op-merchant-tag { color: var(--op-orange-600); font-weight: 700; margin: 0 0 .5rem; }
.op-merchant p { margin: 0 0 1.2rem; }
.op-merchant-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.op-merchant .op-merchant-note { font-size: .8rem; color: var(--op-muted); margin: .5rem 0 0; }
.op-merchant img { border-radius: var(--op-radius); }

/* ============================================================
   Badges de confiance
   ============================================================ */
.op-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.2rem 0;
}
@media (min-width: 700px) { .op-trust { grid-template-columns: repeat(3, 1fr); } }
.op-trust-item { display: flex; align-items: center; gap: .8rem; }
.op-trust-item .op-trust-icon {
    width: 2.9rem;
    height: 2.9rem;
    flex-shrink: 0;
    border-radius: .9rem;
    background: var(--op-purple-100);
    color: var(--op-purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.op-trust-item strong { display: block; color: var(--op-ink); font-size: .95rem; }
.op-trust-item span { color: var(--op-muted); font-size: .84rem; }

/* ============================================================
   Footer
   ============================================================ */
.op-footer {
    background: var(--op-white);
    border-top: 1px solid var(--op-border);
    margin-top: 2.5rem;
    padding: 2.2rem 0 6rem;
}
@media (min-width: 900px) { .op-footer { padding-bottom: 2.2rem; } }
.op-footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .op-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.op-footer h3 { font-size: .9rem; margin-bottom: .6rem; }
.op-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.op-footer ul a { color: var(--op-muted); font-size: .88rem; }
.op-footer ul a:hover { color: var(--op-purple-700); }
.op-footer .op-copy { color: var(--op-muted); font-size: .82rem; margin-top: .6rem; }

/* ============================================================
   Bottom nav mobile
   ============================================================ */
.op-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--op-white);
    border-top: 1px solid var(--op-border);
    display: flex;
    justify-content: space-around;
    padding: .45rem 0 calc(.45rem + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { .op-bottomnav { display: none; } }
.op-bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--op-muted);
    position: relative;
    padding: .1rem .6rem;
}
.op-bottomnav a.active { color: var(--op-purple-600); }
.op-bottomnav a .op-count {
    position: absolute;
    top: -.2rem;
    right: .1rem;
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--op-purple-600);
    color: #fff;
    font-size: .62rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .2rem;
}

/* ============================================================
   Pages recherche / favoris
   ============================================================ */
.op-page-head { padding: 2rem 0 1.2rem; }
.op-page-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.op-filter-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .8rem; }
.op-chip {
    flex: 0 0 auto;
    border: 1.5px solid var(--op-border);
    background: var(--op-white);
    color: var(--op-ink);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}
.op-chip:hover { border-color: var(--op-purple-400); }
.op-chip.active { background: var(--op-purple-600); border-color: var(--op-purple-600); color: #fff; }

/* Favoris groupés par boutique */
.op-fav-group { margin-bottom: 2.2rem; }
.op-fav-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    background: var(--op-white);
    border: 1.5px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
}
.op-fav-group-title { display: flex; align-items: center; gap: .6rem; }
.op-fav-group-store { font-weight: 800; color: var(--op-ink); font-size: 1.05rem; }
.op-fav-group-count {
    background: var(--op-purple-100);
    color: var(--op-purple-700);
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .4rem;
}
.op-fav-group-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.op-fav-group-actions .op-btn { padding: .55rem 1rem; font-size: .85rem; }

/* Bloc « Mes sélections » (accueil) */
.op-selections-chips { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; }
.op-selection-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--op-white);
    border: 1.5px solid var(--op-border);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--op-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.op-selection-chip:hover { border-color: var(--op-purple-400); box-shadow: var(--op-shadow-sm); }
.op-selection-chip .op-fav-group-count { min-width: 1.3rem; height: 1.3rem; }

.op-empty {
    text-align: center;
    background: var(--op-white);
    border-radius: var(--op-radius-lg);
    padding: 3rem 1.5rem;
    box-shadow: var(--op-shadow-sm);
}
.op-empty .op-empty-icon { font-size: 2.4rem; margin-bottom: .6rem; }

.op-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    padding: 1.8rem 0 .6rem;
}
.op-pagination a, .op-pagination span {
    min-width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .7rem;
    font-weight: 600;
    font-size: .9rem;
    border: 1.5px solid var(--op-border);
    background: var(--op-white);
    color: var(--op-ink);
    padding: 0 .6rem;
}
.op-pagination a:hover { border-color: var(--op-purple-400); }
.op-pagination .current { background: var(--op-purple-600); border-color: var(--op-purple-600); color: #fff; }

/* ============================================================
   Compte Commerce Opus : chip utilisateur, modale, messages
   ============================================================ */
.op-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: .88rem;
    color: var(--op-ink);
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.op-user-chip svg { color: var(--op-purple-600); flex-shrink: 0; }
.op-inline-form { display: inline; }

.op-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(42, 22, 83, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.op-auth-modal {
    position: relative;
    background: var(--op-white);
    border-radius: var(--op-radius-lg);
    box-shadow: var(--op-shadow-lg);
    width: 100%;
    max-width: 26rem;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2rem 1.8rem 1.6rem;
    animation: op-fade-up .3s ease both;
}
.op-auth-close {
    position: absolute;
    top: .8rem;
    right: .9rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--op-muted);
    cursor: pointer;
}
.op-auth-close:hover { color: var(--op-ink); }
.op-auth-panel h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.op-auth-sub { color: var(--op-muted); font-size: .88rem; margin: 0 0 1.2rem; }
.op-auth-panel form { display: grid; gap: .9rem; }
.op-auth-panel label {
    display: grid;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--op-ink);
}
.op-auth-panel input {
    font-family: inherit;
    font-size: .95rem;
    padding: .65rem .85rem;
    border: 1.5px solid var(--op-border);
    border-radius: .7rem;
    outline: none;
    color: var(--op-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.op-auth-panel input:focus {
    border-color: var(--op-purple-400);
    box-shadow: 0 0 0 3px rgba(108, 63, 164, 0.12);
}
.op-auth-panel form .op-btn { margin-top: .3rem; width: 100%; }
.op-auth-switch {
    display: block;
    margin: 1.1rem auto 0;
    background: transparent;
    border: 0;
    color: var(--op-purple-600);
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.op-auth-switch:hover { color: var(--op-purple-800); text-decoration: underline; }

.op-messages {
    position: fixed;
    top: 4.8rem;
    right: 1rem;
    z-index: 90;
    display: grid;
    gap: .5rem;
    max-width: 22rem;
}
.op-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    background: var(--op-white);
    border-radius: .8rem;
    box-shadow: var(--op-shadow-md);
    padding: .8rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    border-left: 4px solid var(--op-purple-600);
    color: var(--op-ink);
    animation: op-fade-up .35s ease both;
}
.op-message.error { border-left-color: var(--op-pass); }
.op-message button {
    border: 0;
    background: transparent;
    color: var(--op-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

/* petites animations d'entrée */
@keyframes op-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.op-animate { animation: op-fade-up .55s ease both; }
