:root {
    --wls-primary: #046bd2;
    --wls-primary-dark: #045cb4;
    --wls-success: #459b20;
    --wls-success-dark: #3a8419;
    --wls-warning: #f59e0b;
    --wls-danger: #dc2626;
    --wls-bg: #F0F5FA;
    --wls-gray-100: #e8edf2;
    --wls-gray-200: #d4dce5;
    --wls-gray-300: #ADB6BE;
    --wls-gray-500: #334155;
    --wls-gray-700: #1e293b;
    --wls-gray-900: #111111;
    --wls-radius: 10px;
    --wls-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --wls-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --wls-shadow-hover: 0 14px 32px rgba(0,0,0,0.16), 0 4px 8px rgba(0,0,0,0.08);
}

/* Wrap */
.wls-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--wls-gray-700);
}

/* Filters */
.wls-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 18px;
    background: var(--wls-bg);
    border: 1px solid var(--wls-gray-200);
    border-radius: var(--wls-radius);
}
.wls-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}
.wls-filter-search {
    flex: 2;
}
.wls-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wls-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.wls-filter-group input,
.wls-filter-group select {
    padding: 8px 10px;
    border: 1px solid var(--wls-gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: var(--wls-gray-900);
}
.wls-filter-group input:focus,
.wls-filter-group select:focus {
    outline: none;
    border-color: var(--wls-primary);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.12);
}

/* Pill filters */
.wls-pills-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.wls-pills-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.wls-pills-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wls-gray-500);
    letter-spacing: 0.04em;
    padding-top: 7px;
    flex-shrink: 0;
    min-width: 95px;
}
.wls-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wls-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--wls-gray-200);
    background: #fff;
    color: var(--wls-gray-500);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.3;
}
.wls-pill:hover {
    border-color: var(--wls-primary);
    color: var(--wls-primary);
    background: #e8f1fc;
}
.wls-pill-active {
    background: var(--wls-primary);
    color: #fff;
    border-color: var(--wls-primary);
}
.wls-pill-active:hover {
    background: var(--wls-primary-dark);
    border-color: var(--wls-primary-dark);
    color: #fff;
}

/* Counter */
.wls-counter {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--wls-gray-500);
    margin-bottom: 28px;
    padding: 6px 0;
}
.wls-counter span {
    font-size: 20px;
    font-weight: 800;
    color: var(--wls-primary);
}

/* Sections */
.wls-section {
    margin-bottom: 40px;
}
.wls-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--wls-gray-900);
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--wls-primary);
    background: var(--wls-bg);
}
.wls-section-icon {
    font-size: 24px;
    line-height: 1;
}

/* Section-specific colors */
[data-section="top_performers"] > .wls-section-title {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
}
[data-section="best_seller"] > .wls-section-title {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
}
[data-section="nouveau"] > .wls-section-title {
    border-left-color: var(--wls-primary);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--wls-primary-dark);
}
[data-section="coup_de_coeur"] > .wls-section-title {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
}

/* Card grid */
.wls-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Card */
.wls-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--wls-gray-200);
    border-radius: var(--wls-radius);
    box-shadow: var(--wls-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.wls-card:hover {
    box-shadow: var(--wls-shadow-hover);
    transform: translateY(-3px);
}

/* Card section border-top */
.wls-card[data-section="top_performers"] { border-top: 3px solid #f59e0b; }
.wls-card[data-section="best_seller"] { border-top: 3px solid #10b981; }
.wls-card[data-section="nouveau"] { border-top: 3px solid var(--wls-primary); }
.wls-card[data-section="coup_de_coeur"] { border-top: 3px solid #ef4444; }

/* Card badge (section emoji) */
.wls-card-badge {
    position: absolute;
    top: 0;
    right: 12px;
    font-size: 16px;
    background: #fff;
    padding: 4px 8px 6px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1;
    line-height: 1;
}

/* Card header */
.wls-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
}
.wls-card-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.wls-card-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--wls-gray-200);
}
.wls-card-logo-placeholder {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--wls-gray-100);
    color: var(--wls-gray-500);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--wls-gray-200);
}
.wls-card-header-info {
    flex: 1;
    min-width: 0;
}
.wls-card-domain {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wls-gray-900);
}
.wls-card-price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.wls-card-price-tag span {
    font-size: 18px;
    font-weight: 800;
    color: var(--wls-primary);
}
.wls-card-price-tag small {
    font-size: 11px;
    color: var(--wls-gray-500);
    font-weight: 600;
}

/* Metrics — Primary (DA, TF) */
.wls-card-metrics-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0 20px;
    background: var(--wls-gray-200);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.wls-metric-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
    background: var(--wls-bg);
}
.wls-metric-big .wls-metric-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wls-primary);
    letter-spacing: 0.06em;
}
.wls-metric-big .wls-metric-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--wls-gray-900);
    line-height: 1.2;
}

/* Metrics — Secondary (RD, Trafic) */
.wls-card-metrics-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0 20px;
    background: var(--wls-gray-200);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.wls-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: var(--wls-bg);
}
.wls-metric-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wls-gray-500);
    letter-spacing: 0.05em;
}
.wls-metric-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--wls-gray-900);
}

/* Badges */
.wls-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 20px 0;
}
.wls-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.wls-badge-thematique {
    background: #e8f1fc;
    color: #045cb4;
    border: 1px solid #b3d4f5;
}
.wls-badge-duree {
    background: var(--wls-bg);
    color: var(--wls-gray-500);
    border: 1px solid var(--wls-gray-200);
}

/* Ideal pour */
.wls-card-ideal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 10px 20px 0;
    font-size: 12px;
}
.wls-ideal-label {
    color: var(--wls-gray-500);
    font-weight: 600;
    font-style: italic;
}
.wls-ideal-tag {
    background: var(--wls-gray-100);
    color: var(--wls-gray-700);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Order button */
.wls-btn-order {
    display: block;
    width: calc(100% - 40px);
    margin: auto 20px 18px;
    padding: 10px;
    background: var(--wls-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}
.wls-btn-order:hover {
    background: var(--wls-primary-dark);
}

/* Empty */
.wls-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--wls-gray-500);
    font-size: 15px;
}

/* Modal overlay */
.wls-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wls-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.wls-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--wls-gray-500);
    line-height: 1;
    padding: 4px;
}
.wls-modal-close:hover {
    color: var(--wls-gray-900);
}

/* Stepper */
.wls-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.wls-step {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wls-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wls-gray-200);
    color: var(--wls-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.wls-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wls-gray-500);
}
.wls-step-active .wls-step-dot {
    background: var(--wls-primary);
    color: #fff;
}
.wls-step-active .wls-step-label {
    color: var(--wls-primary);
}
.wls-step-done .wls-step-dot {
    background: var(--wls-success);
    color: #fff;
}
.wls-step-done .wls-step-label {
    color: var(--wls-success);
}
.wls-step-line {
    width: 40px;
    height: 2px;
    background: var(--wls-gray-200);
    margin: 0 8px;
    transition: background 0.2s;
}
.wls-step-line-active {
    background: var(--wls-success);
}

/* Modal title & subtitle */
.wls-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--wls-gray-900);
}
.wls-modal-subtitle {
    font-size: 14px;
    color: var(--wls-gray-500);
    margin: 0 0 16px;
}
.wls-modal-price {
    font-size: 14px;
    color: var(--wls-gray-700);
    margin: 0 0 18px;
    padding: 10px 14px;
    background: var(--wls-bg);
    border-radius: 8px;
    border: 1px solid var(--wls-gray-200);
}

/* Type choices */
.wls-type-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.wls-type-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--wls-gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.wls-type-choice:hover {
    border-color: var(--wls-primary);
    background: #e8f1fc;
}
.wls-type-choice input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--wls-primary);
}
.wls-type-selected {
    border-color: var(--wls-primary);
    background: #e8f1fc;
}
.wls-type-choice-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}
.wls-type-choice-content p {
    font-size: 13px;
    color: var(--wls-gray-500);
    margin: 0 0 6px;
}
.wls-type-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--wls-primary);
}
.wls-type-choice-sensible:hover {
    border-color: var(--wls-warning);
    background: #fef9ee;
}
.wls-type-choice-sensible.wls-type-selected {
    border-color: var(--wls-warning);
    background: #fef9ee;
}
.wls-type-choice-sensible .wls-type-price {
    color: var(--wls-warning);
}
.wls-type-choice-citation:hover {
    border-color: var(--wls-success);
    background: #edf7e8;
}
.wls-type-choice-citation.wls-type-selected {
    border-color: var(--wls-success);
    background: #edf7e8;
}
.wls-type-choice-citation .wls-type-price {
    color: var(--wls-success);
}

/* Form sections (modal step 2 grouping) */
.wls-form-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--wls-bg);
    border-radius: 8px;
    border: 1px solid var(--wls-gray-200);
}
.wls-form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wls-primary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Form rows */
.wls-form-row {
    margin-bottom: 14px;
}
.wls-form-row:last-child {
    margin-bottom: 0;
}
.wls-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--wls-gray-700);
}
.wls-form-row input,
.wls-form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--wls-gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: var(--wls-gray-900);
    box-sizing: border-box;
    font-family: inherit;
}
.wls-form-row input:focus,
.wls-form-row textarea:focus {
    outline: none;
    border-color: var(--wls-primary);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.12);
}
.wls-form-row textarea {
    resize: vertical;
}
.wls-field-help {
    font-size: 12px;
    color: var(--wls-gray-300);
    margin: 4px 0 0;
    font-style: italic;
}
.wls-invalid {
    border-color: var(--wls-danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Form messages */
.wls-form-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0;
}
.wls-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.wls-msg-success {
    background: #edf7e8;
    color: #3a8419;
    border: 1px solid #c1e4ae;
}

/* Recap */
.wls-recap {
    margin: 16px 0;
    border: 1px solid var(--wls-gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.wls-recap-row {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid var(--wls-gray-100);
}
.wls-recap-row:last-child {
    border-bottom: none;
}
.wls-recap-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--wls-gray-500);
}
.wls-recap-value {
    font-size: 14px;
    color: var(--wls-gray-900);
    word-break: break-all;
}
.wls-recap-price {
    font-weight: 800;
    color: var(--wls-primary);
}

/* Modal actions */
.wls-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.wls-modal-actions-split {
    justify-content: space-between;
}
.wls-btn-prev {
    padding: 10px 20px;
    background: var(--wls-gray-100);
    color: var(--wls-gray-700);
    border: 1px solid var(--wls-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.wls-btn-prev:hover {
    background: var(--wls-gray-200);
}
.wls-btn-next {
    padding: 10px 24px;
    background: var(--wls-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.wls-btn-next:hover {
    background: var(--wls-primary-dark);
}
.wls-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.wls-btn-pay {
    padding: 10px 28px;
    background: var(--wls-success);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.wls-btn-pay:hover {
    background: var(--wls-success-dark);
}
.wls-btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alpine cloak */
[x-cloak] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wls-filters {
        flex-direction: column;
    }
    .wls-filter-group {
        min-width: 100%;
    }
    .wls-pills-group {
        flex-direction: column;
        gap: 6px;
    }
    .wls-pills-label {
        min-width: auto;
    }
    .wls-cards {
        grid-template-columns: 1fr;
    }
    .wls-modal {
        padding: 20px;
        border-radius: 10px;
    }
    .wls-card-header {
        flex-wrap: wrap;
    }
    .wls-card-price-tag {
        margin-left: auto;
    }
    .wls-form-section {
        padding: 12px;
    }
}
