/* ============================================
   PAGES SECONDAIRES — Category, Product, Cart
   ============================================ */

/* ── Active Nav Link ── */
.nav-link-active { color: var(--accent) !important; }

/* ════════════════════════════════════════════
   CATEGORY HERO
   ════════════════════════════════════════════ */
.cat-hero {
    position: relative;
    padding: 48px 0 40px;
    overflow: hidden;
}
.cat-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(227,30,36,0.06), rgba(0,150,255,0.03));
    border-bottom: 1px solid var(--border);
}
.cat-hero-inner { position: relative; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-primary); font-weight: 600; }

.cat-hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.cat-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 16px;
}

.cat-hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
}
.cat-hero-stats strong { color: var(--text-primary); }
.cat-hero-sep { color: var(--text-muted); }

/* ════════════════════════════════════════════
   TOOLBAR
   ════════════════════════════════════════════ */
.cat-content { padding: 40px 0 80px; }

.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cat-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-toolbar-right { display: flex; align-items: center; gap: 12px; }

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.filter-toggle-btn:hover { border-color: var(--border-hover); }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-light);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}
.active-filter button {
    font-size: 16px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}
.active-filter button:hover { opacity: 1; }

.clear-filters {
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}
.clear-filters:hover { color: var(--text-primary); }

.sort-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.sort-select label { white-space: nowrap; }
.sort-select select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
}
.sort-select select:focus { border-color: var(--accent); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}
.view-btn:hover { color: var(--text-primary); }
.view-btn.active { color: var(--accent); border-color: var(--border-accent); background: var(--accent-light); }

/* ════════════════════════════════════════════
   SIDEBAR FILTERS
   ════════════════════════════════════════════ */
.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

.cat-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
}

.filter-group {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.filter-group:first-child { padding-top: 0; }

.filter-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }

a.filter-checkbox,
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none !important;
    padding: 4px 0;
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: 4px;
}
a.filter-checkbox:hover,
.filter-checkbox:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}
.filter-checkbox--active,
a.filter-checkbox--active {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.filter-checkbox input { display: none; }

.checkmark {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-hover);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
/* Etat coche : nouvelle approche via classe (le lien remplace le checkbox) */
.checkmark--checked,
.filter-checkbox--active .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}
.checkmark--checked::after,
.filter-checkbox--active .checkmark::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 800;
}
/* Compat ancien markup au cas où */
.filter-checkbox input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}
.filter-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.filter-label { flex: 1; }
.filter-count { margin-left: auto; color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

/* Bouton reset filtres */
.filter-reset {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent) !important;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.filter-reset:hover { opacity: 0.7; }

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.price-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-input-wrap label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.price-input-wrap input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 700;
    outline: none;
}
.price-input-wrap input:focus { border-color: var(--accent); }
.price-sep { color: var(--text-muted); font-size: 14px; margin-top: 18px; }

.range-slider { position: relative; height: 6px; }
.range-track {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border-radius: 3px;
}
.range-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: var(--accent);
    border-radius: 3px;
}

/* ════════════════════════════════════════════
   PRODUCTS AREA
   ════════════════════════════════════════════ */
.shipping-bar {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 24px;
    overflow: hidden;
}
.shipping-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
    border-right: 2px solid var(--success);
}
.shipping-bar p {
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}
.shipping-bar strong { color: var(--success); }
.shipping-bar-icon { margin-left: 4px; }

.cat-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.pagination-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.pagination-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text-primary); }
.pagination-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination-dots { color: var(--text-muted); font-size: 14px; }

/* ════════════════════════════════════════════
   PRODUCT PAGE
   ════════════════════════════════════════════ */
.product-page { padding: 40px 0 80px; }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: calc(var(--header-height) + 24px); }

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.gallery-badge {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
}

.gallery-main .product-pc-mini {
    width: 200px; height: 260px;
}
.gallery-main .mini-rgb {
    height: 4px;
    box-shadow: 0 0 20px hsl(var(--rgb-hue, 265), 80%, 60%);
}

.gallery-zoom {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.gallery-zoom:hover { color: white; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumb {
    width: 72px; height: 72px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.gallery-thumb:hover { border-color: var(--border-hover); }
.gallery-thumb.active { border-color: var(--accent); }

.gallery-thumb .thumb-mini-pc {
    width: 32px; height: 42px;
    background: linear-gradient(160deg, #1c1c1c, #111);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.gallery-thumb .thumb-mini-pc::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; height: 2px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.7;
}

/* Product Info */
.product-info-section { display: flex; flex-direction: column; gap: 0; }

.product-breadcrumb-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.product-breadcrumb-inline a { color: var(--text-tertiary); transition: color var(--transition-fast); }
.product-breadcrumb-inline a:hover { color: var(--accent); }

.product-page-badges { display: flex; gap: 8px; margin-bottom: 12px; }

.product-page-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.product-page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-page-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.product-page-rating .stars { font-size: 16px; color: var(--warning); letter-spacing: 2px; }
.product-page-rating .rating-text { font-size: 14px; color: var(--text-secondary); }
.product-page-rating .rating-text strong { color: var(--text-primary); }

/* Pricing Block */
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.product-page-price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.product-page-price-old {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-page-save {
    padding: 4px 10px;
    background: var(--red-light);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--radius-sm);
}

.product-payment-info {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}
.product-payment-info strong { color: var(--text-secondary); }

/* Stock indicator */
.product-stock-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--success-light);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 24px;
}
.product-stock-line svg { flex-shrink: 0; }

/* Specs Summary */
.product-specs-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.spec-item-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.spec-item-value {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

/* Add to Cart */
.product-add-section { margin-bottom: 24px; }

.product-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.product-quantity label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.qty-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary);
    font-size: 18px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.qty-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.qty-value {
    width: 50px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.product-add-btns { display: flex; gap: 10px; }
.product-add-btns .btn { flex: 1; }

/* Trust micro-elements */
.product-trust-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.product-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.product-trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Tabs */
.product-tabs-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.product-detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.detail-tab {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}
.detail-tab:hover { color: var(--text-secondary); }
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { max-width: 800px; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td {
    padding: 12px 0;
    font-size: 14px;
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 200px;
}
.specs-table td:last-child { color: var(--text-primary); }

/* ════════════════════════════════════════════
   CART PAGE
   ════════════════════════════════════════════ */
.cart-page { padding: 40px 0 80px; }

.cart-page-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.cart-page-count {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Cart Items */
.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: border-color var(--transition-fast);
}
.cart-item:hover { border-color: var(--border-hover); }

.cart-item-image {
    width: 100px; height: 100px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
}
.cart-item-image .product-pc-mini { width: 50px; height: 65px; }

.cart-item-info h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cart-item-specs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.cart-item-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-remove {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.cart-item-remove:hover { color: var(--red); }

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-summary-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}
.cart-summary-line strong { color: var(--text-primary); }

.cart-summary-line.discount { color: var(--success); }

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.cart-summary-total span:first-child {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.cart-summary-total span:last-child {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.cart-summary .btn { width: 100%; margin-bottom: 10px; }

.cart-promo-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.cart-promo-form input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    outline: none;
}
.cart-promo-form input:focus { border-color: var(--accent); }
.cart-promo-form input::placeholder { color: var(--text-muted); font-weight: 400; letter-spacing: 0; font-family: var(--font-body); }

.cart-trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
}
.cart-trust-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ════════════════════════════════════════════
   RESPONSIVE — Pages
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-sidebar { display: none; }
    .cat-products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cat-hero-title { font-size: 32px; }
    .cat-products-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .cat-toolbar { flex-direction: column; align-items: flex-start; }
    .product-page-title { font-size: 24px; }
    .product-page-price { font-size: 32px; }
    .product-specs-summary { grid-template-columns: 1fr; }
    .gallery-thumbs { overflow-x: auto; }
}


/* ════════════════════════════════════════════
   CONFIGURATOR PAGE
   ════════════════════════════════════════════ */

        /* ── Configurator specific ── */
        .configurator-page { padding: 40px 0 80px; }

        .config-page-header {
            text-align: center;
            margin-bottom: 48px;
        }
        .config-page-title {
            font-family: var(--font-display);
            font-size: 40px;
            font-weight: 800;
            letter-spacing: 0.01em;
            margin-bottom: 12px;
        }
        .config-page-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            max-width: 550px;
            margin: 0 auto;
        }

        /* Steps progress */
        .config-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 48px;
        }
        .config-progress-step {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
        }
        .config-progress-step.active { color: var(--accent); }
        .config-progress-step.completed { color: var(--success); }
        .config-progress-num {
            width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid var(--border);
            border-radius: 50%;
            font-family: var(--font-display);
            font-size: 13px;
            font-weight: 800;
        }
        .config-progress-step.active .config-progress-num {
            border-color: var(--accent);
            background: var(--accent-light);
            color: var(--accent);
        }
        .config-progress-step.completed .config-progress-num {
            border-color: var(--success);
            background: var(--success-light);
            color: var(--success);
        }
        .config-progress-line {
            width: 40px; height: 2px;
            background: var(--border);
            border-radius: 1px;
        }
        .config-progress-line.done { background: var(--success); }

        /* Config Layout */
        .config-layout {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 32px;
            align-items: start;
        }

        /* Component Selector */
        .component-section {
            margin-bottom: 32px;
        }
        .component-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        .component-section-title {
            font-family: var(--font-display);
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 0.04em;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .component-section-title svg { color: var(--accent); }
        .component-required {
            font-size: 10px;
            padding: 2px 8px;
            background: var(--red-light);
            color: var(--red);
            font-weight: 700;
            border-radius: 3px;
        }

        /* Dropdown select component */
        .component-dropdown {
            position: relative;
        }

        .component-select-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 16px 20px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-lg);
            cursor: pointer;
            transition: all var(--transition-fast);
            text-align: left;
        }
        .component-select-btn:hover { border-color: var(--border-hover); }
        .component-select-btn.open {
            border-color: var(--accent);
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        }

        .component-select-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
            min-width: 0;
        }

        .component-select-check {
            width: 22px; height: 22px;
            display: flex; align-items: center; justify-content: center;
            background: var(--accent);
            border-radius: 50%;
            flex-shrink: 0;
        }
        .component-select-check svg { color: white; }

        .component-select-info {
            min-width: 0;
        }
        .component-select-info h4 {
            font-family: var(--font-display);
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .component-select-info p {
            font-size: 12px;
            color: var(--text-tertiary);
        }
        .component-select-info .recommended-tag {
            display: inline-block;
            padding: 1px 8px;
            background: var(--accent);
            color: white;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            border-radius: 3px;
            margin-left: 8px;
            vertical-align: middle;
        }

        .component-select-right {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .component-price {
            font-family: var(--font-display);
            font-size: 16px;
            font-weight: 800;
            white-space: nowrap;
        }

        .component-chevron {
            transition: transform 0.2s ease;
            color: var(--text-muted);
        }
        .component-select-btn.open .component-chevron {
            transform: rotate(180deg);
            color: var(--accent);
        }

        /* Dropdown menu */
        .component-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0; right: 0;
            background: var(--bg-elevated);
            border: 2px solid var(--accent);
            border-top: 1px solid rgba(227,30,36,0.2);
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            z-index: 20;
            display: none;
            overflow: hidden;
            box-shadow: 0 16px 48px rgba(0,0,0,0.5);
        }
        .component-dropdown-menu.show { display: block; }

        .component-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            cursor: pointer;
            transition: all var(--transition-fast);
            border-bottom: 1px solid var(--border);
        }
        .component-option:last-child { border-bottom: none; }
        .component-option:hover {
            background: rgba(227,30,36,0.06);
        }
        .component-option.selected {
            background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(227,30,36,0.02));
        }

        .component-option-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .component-option-radio {
            width: 18px; height: 18px;
            border: 2px solid var(--border-hover);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: all var(--transition-fast);
        }
        .component-option.selected .component-option-radio {
            border-color: var(--accent);
        }
        .component-option.selected .component-option-radio::after {
            content: '';
            width: 8px; height: 8px;
            border-radius: 50%;
            background: var(--accent);
        }

        .component-option-info h4 {
            font-family: var(--font-display);
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 1px;
        }
        .component-option-info p {
            font-size: 11px;
            color: var(--text-tertiary);
        }

        .component-option-right {
            text-align: right;
        }
        .component-price-diff {
            font-size: 11px;
            color: var(--text-muted);
            display: block;
        }
        .component-option-badge {
            display: inline-block;
            padding: 2px 8px;
            background: var(--accent);
            color: white;
            font-family: var(--font-display);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            border-radius: 3px;
            margin-left: 8px;
        }

        /* Summary Sidebar */
        .config-summary {
            position: sticky;
            top: calc(var(--header-height) + 24px);
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 28px;
        }

        .config-summary h3 {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 800;
            letter-spacing: 0.02em;
            margin-bottom: 20px;
        }

        .summary-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }
        .summary-item-label { color: var(--text-tertiary); }
        .summary-item-value { font-weight: 600; }
        .summary-item-empty { color: var(--text-muted); font-style: italic; }

        .config-total {
            padding: 16px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }
        .config-total-label {
            font-family: var(--font-display);
            font-size: 14px;
            font-weight: 700;
        }
        .config-total-price {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.02em;
        }
        .config-total-monthly {
            font-size: 12px;
            color: var(--text-tertiary);
            text-align: right;
            margin-top: 4px;
        }

        .config-summary .btn { width: 100%; margin-bottom: 8px; }

        /* Performance Estimate */
        .perf-estimate {
            margin-top: 20px;
            padding: 16px;
            background: var(--bg-tertiary);
            border-radius: var(--radius-lg);
        }
        .perf-estimate-title {
            font-family: var(--font-display);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            margin-bottom: 12px;
        }
        .perf-game {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            font-size: 13px;
        }
        .perf-game-name { color: var(--text-secondary); }
        .perf-fps {
            font-family: var(--font-display);
            font-weight: 800;
            color: var(--success);
        }

        /* Compatibility */
        .compat-check {
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--success);
        }

        @media (max-width: 1024px) {
            .config-layout { grid-template-columns: 1fr; }
            .config-progress { flex-wrap: wrap; }
        }
        @media (max-width: 768px) {
            .config-page-title { font-size: 28px; }
        }
    
/* ════════════════════════════════════════════
   OVERRIDES MUSCLES — vaincre Elementor Kit/Flatsome sur prod
   pages /shop/, /product-category/*
   ════════════════════════════════════════════ */
body.woocommerce-shop .cat-hero,
body.archive .cat-hero,
body.tax-product_cat .cat-hero,
.cat-hero {
    background: #0a0a0a !important;
    color: #ffffff !important;
}
body.woocommerce-shop .cat-hero-bg,
body.archive .cat-hero-bg,
.cat-hero-bg {
    background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(0,150,255,0.03)) !important;
    border-bottom: 1px solid #222 !important;
}
body.woocommerce-shop .cat-hero-title,
body.archive .cat-hero-title,
.cat-hero-title,
h1.cat-hero-title {
    color: #ffffff !important;
    font-size: 48px !important;
    font-weight: 800 !important;
}
body.woocommerce-shop .cat-hero-subtitle,
body.archive .cat-hero-subtitle,
.cat-hero-subtitle {
    color: #b0b0b0 !important;
}
body.woocommerce-shop .breadcrumb,
body.archive .breadcrumb,
.breadcrumb {
    color: #707070 !important;
}
body.woocommerce-shop .breadcrumb a,
body.archive .breadcrumb a,
.breadcrumb a { color: #b0b0b0 !important; }
body.woocommerce-shop .breadcrumb span,
body.archive .breadcrumb span,
.breadcrumb span { color: #ffffff !important; }

/* Sidebar filtres : forcer visibilite labels et titres */
body.woocommerce-shop .filter-title,
body.archive .filter-title,
.filter-title,
h3.filter-title {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    display: block !important;
    visibility: visible !important;
}
body.woocommerce-shop .filter-checkbox,
body.archive .filter-checkbox,
.filter-checkbox,
label.filter-checkbox {
    color: #b0b0b0 !important;
    display: flex !important;
    visibility: visible !important;
}
body.woocommerce-shop .filter-checkbox:hover,
body.archive .filter-checkbox:hover,
.filter-checkbox:hover { color: #ffffff !important; }
body.woocommerce-shop .filter-count,
body.archive .filter-count,
.filter-count { color: #707070 !important; }
body.woocommerce-shop .filter-group,
body.archive .filter-group,
.filter-group {
    border-bottom: 1px solid #222 !important;
    background: transparent !important;
}

/* Cas widget natif WP/WooCommerce dans la sidebar */
body.woocommerce-shop .widget_product_categories,
body.archive .widget_product_categories,
.widget_product_categories {
    background: transparent !important;
}
body.woocommerce-shop .widget_product_categories a,
body.archive .widget_product_categories a,
.widget_product_categories a {
    color: #b0b0b0 !important;
}
body.woocommerce-shop .widget_product_categories a:hover,
body.archive .widget_product_categories a:hover,
.widget_product_categories a:hover { color: #ffffff !important; }

/* ════════════════════════════════════════════
   MODE SHOWCASE — pages /product-category/*
   Titre centre, grille pleine largeur, pas de sidebar
   ════════════════════════════════════════════ */
.cat-showcase {
    background: var(--bg-primary) !important;
    padding: 32px 0 80px;
    min-height: 60vh;
}
.cat-showcase-header {
    text-align: center;
    padding: 24px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 40px;
}
.cat-showcase-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.cat-showcase-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.cat-showcase-subtitle p {
    margin: 0 0 6px;
}

/* Grille en mode showcase : 4 colonnes desktop, responsive */
.cat-products-grid--showcase {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}
@media (max-width: 1100px) {
    .cat-products-grid--showcase { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .cat-products-grid--showcase { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 480px) {
    .cat-products-grid--showcase { grid-template-columns: 1fr !important; }
}
/* Pagination centree en mode showcase */
.cat-showcase .pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ════════════════════════════════════════════
   OVERRIDES MODE SHOWCASE : forcer cartes DARK
   (annule les regles tuiles blanches du shop)
   ════════════════════════════════════════════ */
.cat-showcase .product-card,
.cat-showcase .product-card-image,
.cat-showcase .product-card .product-card-image,
.cat-showcase .product-card-image > .product-image-placeholder,
body.tax-product_cat .product-card-image,
body.tax-product_cat .product-card-image > .product-image-placeholder {
    background: #111118 !important;
    padding: 0 !important;
}
/* Image PC : remplit la carte, fond image visible (pas de padding) */
.cat-showcase .product-card-image img,
body.tax-product_cat .product-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
}
/* Container carre uni */
.cat-showcase .product-card-image,
body.tax-product_cat .product-card-image {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0;
}
.cat-showcase .product-card,
body.tax-product_cat .product-card {
    background: #111118 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s !important;
}
.cat-showcase .product-card:hover,
body.tax-product_cat .product-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(228,0,43,0.4) !important;
    box-shadow: 0 8px 32px rgba(228,0,43,0.15) !important;
}
.cat-showcase .product-card-body,
body.tax-product_cat .product-card-body {
    padding: 14px 16px !important;
}

/* ════════════════════════════════════════════
   FORCE 4 colonnes sur categorie config-by-capet
   ════════════════════════════════════════════ */
body.tax-product_cat .products.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.tax-product_cat .products.row .product-small.col,
body.tax-product_cat .large-columns-3 > .product-small.col,
body.tax-product_cat .products.row > .product-small {
    width: 25% !important;
    max-width: 25% !important;
    flex-basis: 25% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 16px !important;
}
@media (max-width: 1100px) {
    body.tax-product_cat .products.row .product-small.col {
        width: 33.333% !important;
        max-width: 33.333% !important;
        flex-basis: 33.333% !important;
    }
}
@media (max-width: 768px) {
    body.tax-product_cat .products.row .product-small.col {
        width: 50% !important;
        max-width: 50% !important;
        flex-basis: 50% !important;
    }
}
@media (max-width: 480px) {
    body.tax-product_cat .products.row .product-small.col {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
}

/* Description du term en bas (positionnement) */
body.tax-product_cat .term-description {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #aaa !important;
    text-align: center;
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.tax-product_cat .term-description p {
    color: #aaa !important;
}

/* ════════════════════════════════════════════
   HOME : centrage titre NOS UNIVERS + BG images cartes
   ════════════════════════════════════════════ */
.categories-section .section-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}
.categories-section .section-title {
    text-align: center !important;
    width: 100% !important;
}
.categories-section .section-subtitle {
    text-align: center !important;
}

/* Background images pour chaque card univers */
.categories-grid .category-card {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.category-card[href*="pc-portables"] {
    background-image: url('https://www.hardwaremodding.fr/wp-content/uploads/2026/05/asus-expertbook-b5405cca-nz0031x-247x296.jpg');
}
.category-card[href*="product-category/config-pc"] {
    background-image: url('https://www.hardwaremodding.fr/wp-content/uploads/2024/11/pc-gamer-capet-1-247x296.webp');
}
.category-card[href*="composants-pc"] {
    background-image: url('https://www.hardwaremodding.fr/wp-content/themes/hardwaremodding-theme/assets/img/composant.webp');
}
.category-card[href*="ecrans"] {
    background-image: url('https://www.hardwaremodding.fr/wp-content/uploads/2026/07/iiyama-g2771hs-b1-300x300.jpg');
}
.category-card[href*="pc-sur-mesure"] {
    background-image: url('https://www.hardwaremodding.fr/wp-content/uploads/2025/04/pc-gamer-capet-6-247x296.webp');
}

/* Overlay sombre pour lisibilite du texte par-dessus l'image */
.categories-grid .category-card .category-card-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%) !important;
    z-index: 1 !important;
}
.categories-grid .category-card .category-card-content {
    position: relative !important;
    z-index: 2 !important;
}
