/* ============================================
 * SALOTT-IT ENGINEERING - Shop Module Styles
 * Modern WooCommerce-inspired design
 * Covers: boutique listing, product page, filters, cards
 * ============================================ */

/* Variables inherited from style.css :root — do not duplicate here */

/* .container inherited from style.css */

/* ── Breadcrumb ── */
.breadcrumb {
    background: var(--white, #fff);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    padding: 12px 0;
}
.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-600, #6b7280);
    flex-wrap: wrap;
}
.breadcrumb-inner a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}
.breadcrumb-inner a:hover { color: var(--accent-buy); }
.breadcrumb-inner i { font-size: 0.65rem; color: var(--gray-400, #9ca3af); }
.breadcrumb-inner i.sep { font-size: 0.62rem; color: var(--gray-400, #9ca3af); }

/* ── Shop layout (listing page) ── */
.shop-wrapper {
    padding: 30px 0 70px;
    background: var(--gray-50, #f9fafb);
    min-height: 60vh;
}
.shop-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ══════════════════════════════════════════════
 * SIDEBAR - WooCommerce Widget Area Style
 * ══════════════════════════════════════════════ */
.shop-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Sidebar close button (hidden on desktop, shown on mobile) */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}
.sidebar-close-btn:hover {
    background: var(--sale-red, #E63946);
    color: #fff;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Lock body scroll when sidebar is open on mobile */
body.sidebar-open {
    overflow: hidden;
}

.filter-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e5e7eb);
    padding: 20px;
    box-shadow: var(--shadow-sidebar);
    margin-bottom: -1px; /* collapse borders between cards */
    transition: background var(--transition-base);
}
.filter-card:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.filter-card:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 0;
}
.filter-card:only-child {
    border-radius: var(--radius-md);
}

/* Accordion-style section titles */
.filter-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-buy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-card-title i {
    color: var(--accent-buy);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

/* Category list */
.cat-filter-list { list-style: none; margin: 0; padding: 0; }
.cat-filter-list li { margin-bottom: 2px; }
.cat-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--gray-700, #374151);
    transition: all var(--transition-base);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.cat-filter-list a:hover {
    background: rgba(11, 37, 89, 0.04);
    color: var(--primary);
    border-left-color: var(--accent-buy);
}
.cat-filter-list a.active {
    background: var(--primary);
    color: #fff;
    border-left-color: var(--primary);
    font-weight: 600;
}
.cat-filter-list a .cat-count-badge {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-500, #6b7280);
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.cat-filter-list a.active .cat-count-badge,
.cat-filter-list a:hover .cat-count-badge {
    background: rgba(255,255,255,0.2);
    color: inherit;
}

/* Price range row (inputs + go button) */
.price-range-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.price-range-row .price-range-inputs {
    flex: 1;
    margin-bottom: 0;
}

/* Price Go button */
.btn-price-go {
    padding: 8px 12px;
    background: var(--accent-buy, #FF6B35);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 36px;
    flex-shrink: 0;
}
.btn-price-go:hover {
    background: #e85a28;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.btn-price-go i {
    font-size: 0.7rem;
}

/* Price range inputs */
.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.price-range-inputs input {
    padding: 8px 10px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.8rem;
    width: 100%;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--gray-50, #f9fafb);
    color: var(--gray-800, #1f2937);
}
.price-range-inputs input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 89, 0.08);
    background: #fff;
}

/* Filter type radio list */
.filter-type-list { display: flex; flex-direction: column; gap: 6px; }
.filter-type-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    cursor: pointer;
    color: var(--gray-700, #374151);
    padding: 5px 0;
    transition: color var(--transition-base);
}
.filter-type-list label:hover { color: var(--primary); }
.filter-type-list input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Filter apply button */
.btn-filter {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-filter:hover {
    background: var(--accent-buy);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Reset button */
.btn-reset {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--gray-600, #6b7280);
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-reset:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--sale-red);
    color: var(--sale-red);
}

/* Search input in sidebar */
.filter-search-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.84rem;
    color: var(--gray-800, #1f2937);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--gray-50, #f9fafb);
}
.filter-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 89, 0.08);
    background: #fff;
}

/* Select (marque) */
.filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.83rem;
    color: var(--gray-800, #1f2937);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--gray-50, #f9fafb);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 34px;
}
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 89, 0.08);
    background-color: #fff;
}

/* ── Active filters (tags/chips) ── */
.active-filters { margin-top: 0; }
.active-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 1px solid var(--gray-200, #e5e7eb);
}
.active-tag:hover {
    background: var(--sale-red);
    color: #fff;
    border-color: var(--sale-red);
}
.active-tag .fa-times { font-size: 0.6rem; opacity: 0.6; }
.active-tag:hover .fa-times { opacity: 1; }

/* Stock filter checkbox */
.filter-stock-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    transition: all var(--transition-base);
}
.filter-stock-label:hover {
    border-color: var(--accent-trust);
    background: #fff;
}
.filter-stock-label.active {
    border-color: var(--accent-trust);
    background: rgba(77, 183, 72, 0.06);
    color: var(--accent-trust);
    font-weight: 600;
}
.filter-stock-label input[type="checkbox"] {
    accent-color: var(--accent-trust);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.filter-stock-label .stock-icon {
    color: var(--accent-trust);
    font-size: 0.85rem;
}

/* Price range hint */
.price-range-hint {
    font-size: 0.72rem;
    color: var(--gray-500, #6b7280);
    margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
 * SHOP TOOLBAR
 * ══════════════════════════════════════════════ */
.shop-content {}

.shop-toolbar {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sidebar);
}
.shop-toolbar .count-label {
    font-size: 0.84rem;
    color: var(--gray-500, #6b7280);
}
.shop-toolbar .count-label strong {
    color: var(--primary);
    font-weight: 700;
}

/* Sort dropdown - professional style */
.sort-select {
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 0.83rem;
    color: var(--gray-700, #374151);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--white, #fff);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 89, 0.08);
}
.sort-select:hover {
    border-color: var(--gray-400, #9ca3af);
}

/* Mobile filter toggle button — prominent orange */
.btn-toggle-filters {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--accent-buy, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-stack);
    font-size: 0.84rem;
    font-weight: 700;
    transition: all var(--transition-base);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    position: relative;
}
.btn-toggle-filters:hover {
    background: #e85a28;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}
.btn-toggle-filters:active {
    transform: translateY(0);
}
.btn-toggle-filters i {
    font-size: 0.9rem;
}
.filter-count-badge {
    background: #fff;
    color: var(--accent-buy, #FF6B35);
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
}

/* ══════════════════════════════════════════════
 * PRODUCTS GRID — Modern E-commerce Style
 * ══════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

/* ══════════════════════════════════════════════
 * PRODUCT CARD — Modern Clean Design
 * ══════════════════════════════════════════════ */
.product-card {
    background: var(--white, #fff);
    border-radius: 12px;
    border-left: 3px solid transparent;
    box-shadow: 0 2px 12px rgba(11,37,89,0.08);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(11,37,89,0.13), 0 4px 12px rgba(255,107,53,0.08);
    border-left-color: var(--accent-buy, #FF6B35);
}

/* Image container */
.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gray-50, #f9fafb);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

/* Category badge top-left — gold/orange neuromarketing pill */
.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #F59E0B, #FF6B35);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}

/* Discount badge top-right */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #E63946;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

/* Rupture badge */
.badge-rupture {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(55, 65, 81, 0.85);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
}

/* Legacy badges (backward compat) */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.badge-promo {
    background: var(--sale-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

/* Product body */
.product-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Brand label */
.product-brand {
    font-size: 0.68rem;
    color: var(--gray-600, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Category label */
.product-category {
    font-size: 0.68rem;
    color: var(--gold, #F59E0B);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Product name - 2 lines max */
.product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-name a:hover { color: var(--accent-buy); }

/* Price row */
.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.price-current {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary, #0b2559);
}
.price-old {
    font-size: 0.76rem;
    color: var(--gray-600, #6b7280);
    text-decoration: line-through;
    opacity: 0.65;
}
.price-promo {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-buy, #FF6B35);
}

/* Add to cart button — full width at bottom */
.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF6B35;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    border: none;
    cursor: pointer;
    font-family: var(--font-stack);
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}
.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
}
.btn-add-cart:hover::before { left: 100%; }
.btn-add-cart:hover {
    background: #e85a28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}
.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}
.btn-add-cart:disabled {
    background: var(--gray-200, #e5e7eb);
    color: var(--gray-600, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-add-cart:disabled::before { display: none; }
.btn-add-cart--disabled {
    background: var(--gray-200, #e5e7eb) !important;
    color: var(--gray-600, #6b7280) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.5;
}
.btn-add-cart.rupture {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-400, #9ca3af);
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: none;
}

/* Legacy action buttons (backward compat) */
.product-actions-btns {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.product-card .product-actions-btns .btn-voir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--gray-300, #d1d5db);
    background: transparent;
    color: var(--gray-700, #374151);
    cursor: pointer;
    font-family: var(--font-stack);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.product-card .product-actions-btns .btn-voir:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.product-card .product-actions-btns .btn-add-cart {
    flex: 1;
}
.product-card .product-actions-btns .btn-add-cart .btn-text-full { display: inline; }
.product-card .product-actions-btns .btn-add-cart .btn-text-short { display: none; }

/* Legacy quick view */
.product-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary, #0b2559);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 3;
}
.product-card:hover .product-quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════
 * LOADING SKELETON PLACEHOLDERS
 * ══════════════════════════════════════════════ */
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--white, #fff);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200, #e5e7eb);
}
.skeleton-card .skeleton-img {
    padding-top: 75%;
    background: linear-gradient(90deg, var(--gray-100, #f3f4f6) 25%, var(--gray-200, #e5e7eb) 50%, var(--gray-100, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}
.skeleton-card .skeleton-body { padding: 16px; }
.skeleton-card .skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gray-100, #f3f4f6) 25%, var(--gray-200, #e5e7eb) 50%, var(--gray-100, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
    margin-bottom: 10px;
}
.skeleton-card .skeleton-line.short { width: 40%; }
.skeleton-card .skeleton-line.medium { width: 70%; }
.skeleton-card .skeleton-line.price { width: 50%; height: 16px; margin-top: 12px; }
.skeleton-card .skeleton-btn {
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--gray-100, #f3f4f6) 25%, var(--gray-200, #e5e7eb) 50%, var(--gray-100, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
    margin-top: 14px;
}

/* ══════════════════════════════════════════════
 * EMPTY STATE
 * ══════════════════════════════════════════════ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500, #6b7280);
    background: var(--white, #fff);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200, #e5e7eb);
}
.empty-state i {
    font-size: 3.5rem;
    color: var(--gray-300, #d1d5db);
    display: block;
    margin-bottom: 20px;
    opacity: 0.6;
}
.empty-state h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gray-800, #1f2937);
    font-weight: 700;
}
.empty-state p {
    font-size: 0.9rem;
    color: var(--gray-500, #6b7280);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}
/* Clear filters button in empty state */
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--accent-buy, #FF6B35);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}
.btn-clear-filters:hover {
    background: #e85a28;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
    transform: translateY(-2px);
}

.empty-state .btn-empty-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(11, 37, 89, 0.25);
}
.empty-state .btn-empty-shop:hover {
    background: var(--accent-buy);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
 * PAGINATION - WooCommerce Style
 * ══════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-base);
    text-decoration: none;
}
.pagination a {
    background: var(--white, #fff);
    color: var(--gray-700, #374151);
    border: 1px solid var(--gray-200, #e5e7eb);
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(11, 37, 89, 0.2);
}
.pagination span.current {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 8px rgba(11, 37, 89, 0.2);
}
.pagination span.dots {
    background: none;
    border: none;
    color: var(--gray-400, #9ca3af);
    min-width: 30px;
}

/* ══════════════════════════════════════════════
 * Product single page styles
 * ══════════════════════════════════════════════ */
.product-page { padding: 50px 0 70px; background: var(--gray-50, #f9fafb); }
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white, #fff);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200, #e5e7eb);
    margin-bottom: 60px;
    align-items: start;
}

/* Gallery */
.product-gallery {}
.main-image-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-50, #f9fafb);
    padding-top: 80%;
    position: relative;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
}
.main-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-200, #e5e7eb);
    cursor: pointer;
    transition: border-color var(--transition-base);
    flex-shrink: 0;
    background: var(--gray-50, #f9fafb);
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb:hover { border-color: var(--accent-buy); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info {}
.product-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100, #f3f4f6);
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-category-link:hover { background: var(--primary); color: #fff; }
.product-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-800, #1f2937);
    margin-bottom: 16px;
    line-height: 1.3;
}
.product-price-section { margin-bottom: 22px; }
.price-main { font-size: 2rem; font-weight: 800; color: var(--primary); }
.price-main.promo { color: var(--sale-red); }
.price-original {
    font-size: 1.1rem;
    color: var(--gray-400, #9ca3af);
    text-decoration: line-through;
    margin-left: 10px;
}
.price-savings {
    display: inline-block;
    background: rgba(230, 57, 70, 0.08);
    color: var(--sale-red);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 6px;
}
.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.stock-ok { background: rgba(77, 183, 72, 0.1); color: var(--accent-trust); }
.stock-low { background: #fffbeb; color: #92400e; }
.stock-out { background: #fef2f2; color: #991b1b; }
.product-short-desc {
    font-size: 0.9rem;
    color: var(--gray-600, #6b7280);
    line-height: 1.7;
    margin-bottom: 26px;
}
.product-form { display: flex; flex-direction: column; gap: 16px; }
.product-qty-group {}
.qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    margin-bottom: 8px;
    display: block;
}
.qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--gray-50, #f9fafb);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-700, #374151);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--gray-200, #e5e7eb);
    border-right: 1px solid var(--gray-200, #e5e7eb);
    text-align: center;
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    color: var(--gray-800, #1f2937);
}
.btn-panier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--accent-buy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}
.btn-panier:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}
.btn-panier:disabled {
    background: var(--gray-200, #e5e7eb);
    color: var(--gray-500, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: var(--gray-50, #f9fafb);
    border-radius: var(--radius-md);
    margin-top: 10px;
    border: 1px solid var(--gray-100, #f3f4f6);
}
.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--gray-600, #6b7280);
}
.meta-row i { color: var(--accent-buy); width: 16px; flex-shrink: 0; }
.meta-row strong { color: var(--gray-800, #1f2937); margin-left: 4px; }

/* Description tabs */
.product-description-section {
    background: var(--white, #fff);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200, #e5e7eb);
    margin-bottom: 60px;
}
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200, #e5e7eb);
    margin-bottom: 30px;
}
.tab-btn {
    padding: 12px 22px;
    border: none;
    background: none;
    font-family: var(--font-stack);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500, #6b7280);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-base);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent-buy);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content .desc-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--gray-600, #6b7280);
}
.tab-content .desc-content h3,
.tab-content .desc-content h4 {
    color: var(--primary);
    margin: 16px 0 8px;
}
.product-info-icon {
    color: var(--accent);
}
.tab-content .desc-content ul { margin-left: 20px; margin-bottom: 12px; }
.tab-content .desc-content li { margin-bottom: 4px; }

/* Similar products */
.section-similaires { margin-bottom: 20px; }
.section-similaires h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-similaires h2 i { color: var(--accent-buy); }
.similaires-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* View button (used in similar products and listing) */
.btn-voir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 9px;
    border-radius: var(--radius-sm);
    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-voir:hover { background: var(--accent-buy); }

/* ══════════════════════════════════════════════
 * RESPONSIVE DESIGN
 * Mobile-first for Cameroon market
 * ══════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1024px) {
    .shop-inner { grid-template-columns: 1fr; }
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        background: var(--white, #fff);
        z-index: 3000;
        padding: 20px;
        padding-top: 56px; /* space for close button */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .shop-sidebar.open { transform: translateX(0); }
    .sidebar-close-btn { display: flex; }
    .sidebar-overlay { display: block; }
    .btn-toggle-filters { display: flex; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .similaires-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait — 2 cols */
@media (max-width: 768px) {
    .shop-wrapper { padding: 20px 0 50px; }
    .shop-inner { padding: 0 12px; gap: 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-main { grid-template-columns: 1fr; gap: 30px; padding: 24px; }
    .product-title { font-size: 1.3rem; }
    .price-main { font-size: 1.6rem; }
    .similaires-grid { grid-template-columns: repeat(2, 1fr); }
    .product-description-section { padding: 24px; }
}

/* Mobile large */
@media (max-width: 576px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .shop-sidebar { width: 100%; }
    .product-body { padding: 10px; gap: 2px; }
    .product-name { font-size: 0.76rem; }
    .product-brand { font-size: 0.6rem; }
    .product-price-wrap { margin-bottom: 6px; }
    .price-current, .price-promo { font-size: 0.88rem; }
    .price-old { font-size: 0.68rem; }
    .btn-add-cart { padding: 8px; font-size: 0.72rem; border-radius: 8px; }
    .badge-category { font-size: 0.56rem; padding: 3px 7px; }
    .badge-discount { font-size: 0.65rem; padding: 3px 8px; }
    .badge-promo { font-size: 0.62rem; padding: 3px 8px; }
    .shop-toolbar { padding: 10px 12px; border-radius: var(--radius-sm); }
    .shop-toolbar .count-label { font-size: 0.78rem; }
    .sort-select { font-size: 0.78rem; padding: 6px 30px 6px 10px; }
    .similaires-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 0.8rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .shop-inner { padding: 0 8px; }
    .similaires-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .breadcrumb-inner { font-size: 0.75rem; padding: 0 12px; }
    .empty-state { padding: 50px 16px; }
    .empty-state i { font-size: 2.5rem; }
    .empty-state h3 { font-size: 1rem; }
    .empty-state .btn-empty-shop { padding: 10px 22px; font-size: 0.82rem; }
}

/* Extra small mobile */
@media (max-width: 400px) {
    .products-grid { gap: 8px; }
    .product-img-wrap { aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════════════
 * ENHANCEMENT OVERRIDES
 * ══════════════════════════════════════════════ */

/* Filter sidebar accent — active category with orange highlight */
.cat-filter-list a:hover { border-left-color: var(--accent-buy); }
.cat-filter-list a.active {
    background: var(--accent-buy, #FF6B35);
    border-left-color: var(--accent-buy, #FF6B35);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}
.cat-filter-list a.active .cat-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Shop background warm gradient */
.shop-wrapper {
    background: linear-gradient(180deg, #f9fafb 0%, #FFF9F5 50%, #f9fafb 100%);
}

/* Pagination warm hover */
.pagination a:hover {
    background: var(--accent-buy);
    border-color: var(--accent-buy);
    box-shadow: 0 4px 12px rgba(255,107,53,0.25);
    transform: translateY(-1px);
}

/* Active filter tags */
.active-tag:hover {
    background: var(--accent-buy);
    border-color: var(--accent-buy);
}

/* Shop sort row */
.shop-sort-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.shop-sort-row form {
    display: flex;
    align-items: center;
}
@media (max-width: 576px) {
    .shop-toolbar {
        flex-direction: row;
        justify-content: space-between;
    }
    .shop-sort-row {
        gap: 8px;
    }
    .sort-select {
        min-width: 0;
        max-width: 140px;
    }
}

/* -- Filter icon (accent small) -- */
.filter-icon {
    color: var(--accent);
    font-size: 0.75rem;
}

/* -- Filter card flat variant -- */
.filter-card--flat {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ══════════════════════════════════════════════
 * PRINT STYLES
 * ══════════════════════════════════════════════ */
@media print {
    .shop-sidebar,
    .btn-toggle-filters,
    .btn-add-cart,
    .btn-voir,
    .product-quick-view,
    .pagination { display: none !important; }
    .shop-inner { grid-template-columns: 1fr !important; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .product-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
