/* === CLIENT (catalogue, panier, commande, profil) === */
.cli-breadcrumb {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
}

.cli-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '\203A';
    color: var(--edit-text-muted);
}

.cli-breadcrumb a { color: var(--edit-text-muted); text-decoration: none; }
.cli-breadcrumb a:hover { color: var(--edit-red); }
.cli-breadcrumb .active { font-weight: 600; color: var(--edit-charcoal); }

.cli-page-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--edit-charcoal);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--edit-red);
    display: inline-block;
    width: 100%;
}

.cli-category-card {
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.35s ease, transform 0.15s ease;
    position: relative;
}

.cli-category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--edit-red);
    transition: height 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.cli-category-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.cli-category-card:hover::before { height: 100%; }

.cli-category-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cli-category-card:hover .cli-category-img { transform: scale(1.05); }

.cli-category-img-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edit-bg-alt);
    color: var(--edit-text-muted);
    font-size: 2.5rem;
}

.cli-category-body { padding: 1.25rem 1.25rem 1.5rem; }

.cli-category-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--edit-charcoal);
    margin-bottom: 0.5rem;
}

.cli-category-desc {
    font-size: 0.9rem;
    color: var(--edit-text-muted);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.cli-category-count {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--edit-red);
}

.cli-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--edit-border);
    background: var(--edit-bg);
    color: var(--edit-charcoal);
    border-radius: 4px;
}

.cli-filter-sidebar {
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    padding: 1.25rem;
    background: #fff;
}

.cli-filter-sidebar.cli-filter-collapsed { display: none; }

.cli-filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--edit-charcoal);
    margin-bottom: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.cli-filter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--edit-text-muted);
}

.cli-product-card {
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.35s ease, transform 0.15s ease;
}

.cli-product-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); }

.cli-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f8f6;
    padding: 0.75rem;
    display: block;
    transition: transform 0.45s ease;
}

.cli-product-card:hover img { transform: scale(1.04); }

.cli-product-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edit-bg-alt);
    color: var(--edit-text-muted);
    font-size: 2rem;
}

.cli-product-card-body { padding: 0.85rem 1rem 1.1rem; }

.cli-product-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--edit-text-muted);
    margin-bottom: 0.35rem;
}

.cli-pagination .page-link {
    color: var(--edit-charcoal);
    border-color: var(--edit-border);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
}

.cli-pagination .page-item.active .page-link {
    background: var(--edit-red);
    border-color: var(--edit-red);
    color: #fff;
}

.cli-pagination .page-link:hover {
    color: var(--edit-red);
    border-color: var(--edit-red);
    background: var(--edit-bg);
}

.cli-fiche-img {
    cursor: zoom-in;
    border: 1px solid var(--edit-border);
    width: 100%;
}

.cli-fiche-img-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edit-bg-alt);
    border: 1px solid var(--edit-border);
    border-radius: 0.375rem;
    color: var(--edit-text-muted);
    font-size: 3rem;
}

.cli-fiche-price {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--edit-charcoal);
}

.cli-fiche-choice-summary {
    min-height: 1.4em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--edit-charcoal);
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.75rem;
    background: var(--edit-bg-alt);
    border-left: 4px solid var(--edit-gold);
    border-radius: 0 4px 4px 0;
}

.cli-fiche-radio .btn {
    border-width: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cli-fiche-radio .btn-check:focus-visible + .btn {
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.35);
}

.cli-fiche-radio .btn-check:checked + .btn {
    background-color: var(--edit-red) !important;
    border-color: var(--edit-red) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.35);
}

.cli-fiche-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.cli-fiche-radio .btn-check:checked + .btn .cli-fiche-swatch {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.cli-card {
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.cli-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }

.cli-card-header {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--edit-charcoal);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--edit-border);
    background: var(--edit-bg);
    margin: 0;
}

.cli-card .cli-card-header + *,
.cli-card > .table-responsive,
.cli-card > form,
.cli-card > table { margin: 0; }

.cli-table { font-size: 0.92rem; }

.cli-table thead th {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--edit-text-muted);
    border-bottom: 1px solid var(--edit-border);
    background: var(--edit-bg);
}

.cli-table tbody tr:nth-child(even) { background: rgba(250, 250, 247, 0.6); }
.cli-table tbody tr:hover { background: rgba(196, 30, 58, 0.04); }

.cli-detail-label,
.cli-table th.cli-detail-label {
    width: 38%;
    color: var(--edit-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    vertical-align: top;
}

.cli-step-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--edit-border);
    margin-bottom: 1rem !important;
}

.cli-step {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--edit-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    border: 1px solid var(--edit-border);
    background: #fff;
}

.cli-step.done {
    border-color: var(--edit-border);
    color: var(--edit-text-muted);
    opacity: 0.85;
}

.cli-step.active {
    border-color: var(--edit-red);
    color: var(--edit-red);
    font-weight: 600;
    background: rgba(196, 30, 58, 0.06);
}

.cli-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    border: 1px solid transparent;
}

.cli-badge-attente { background: #fff8e6; color: #8a6d3b; border-color: #e8d9a8; }
.cli-badge-validee { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.cli-badge-preparation { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.cli-badge-expediee { background: #ede7f6; color: #5e35b1; border-color: #b39ddb; }
.cli-badge-livree { background: #e0f2f1; color: #00695c; border-color: #80cbc4; }
.cli-badge-annulee { background: #ffebee; color: #c62828; border-color: #ef9a9a; }

.cli-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--edit-border);
    border-radius: 4px;
    color: var(--edit-text-muted);
    background: var(--edit-bg);
}

.cli-shortcut-card {
    display: block;
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cli-shortcut-card:hover {
    border-color: var(--edit-red);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.12);
    color: inherit;
}

.cli-readonly-field {
    background: var(--edit-bg-alt) !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.cli-check-anim { animation: cli-check-pop 0.6s ease; }

@keyframes cli-check-pop {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.cli-qty-flash { animation: cli-qty-flash-anim 0.5s ease; }

@keyframes cli-qty-flash-anim {
    0%, 100% { background: transparent; }
    40% { background: rgba(196, 30, 58, 0.08); }
}

.cli-scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--edit-border);
    background: #fff;
    color: var(--edit-charcoal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.cli-scroll-top.visible { opacity: 1; visibility: visible; }

.cli-scroll-top:hover {
    background: var(--edit-red);
    color: #fff;
    border-color: var(--edit-red);
}

.cli-fiche-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
}

.cli-fiche-zoom-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cli-fiche-zoom-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

@media (min-width: 992px) {
    .cli-filter-toggle { display: none; }
    .cli-filter-sidebar.cli-filter-collapsed { display: block; }
}

@media (max-width: 991.98px) {
    .cli-filter-toggle { display: block; }
}
