/**
 * LLA Shop - Styles pour le shortcode [lla_shop]
 * Filtres style Amazon + Layout
 * Les styles des cards produits sont dans lla-product-cards.css
 * 
 * @package LLA_Marketplace_Connector
 * @since 6.8.0
 */

/* ==========================================================================
   Variables CSS - Palette Amazon-inspired (identique à Nos Artisans)
   ========================================================================== */
:root {
    /* Amazon Colors */
    --lla-amazon-black: #0F1111;
    --lla-amazon-link: #30251D;
    --lla-amazon-link-hover: #C7511F;
    --lla-amazon-orange: #FF9900;
    --lla-amazon-orange-light: #FFD814;
    --lla-amazon-border: #BBBFBF;
    --lla-amazon-border-light: #D5D9D9;
    --lla-amazon-bg-grey: #F7F8F8;
    --lla-amazon-text-grey: #565959;
    --lla-amazon-star: #FFA41C;
    --lla-amazon-focus: #faf0c8;
    
    /* Text */
    --lla-text: #0F1111;
    --lla-text-muted: #565959;
    
    /* Backgrounds */
    --lla-bg-white: #ffffff;
    
    /* Borders */
    --lla-border: #D5D9D9;
    --lla-border-dark: #BBBFBF;
    
    /* Radius */
    --lla-radius: 4px;
    --lla-radius-lg: 8px;
    
    /* Transition */
    --lla-transition: all 0.15s ease;
}

/* ==========================================================================
   Layout Principal
   ========================================================================== */
.lla-shop {
    font-family: "Amazon Ember", Arial, sans-serif;
    color: var(--lla-text);
    line-height: 1.35;
    font-size: 14px;
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 24px;
    /* Pas de max-width - grille fluide */
    margin: 0 auto;
    padding: 20px 24px 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lla-shop {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mobile Filter Toggle
   ========================================================================== */
.lla-shop-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--lla-bg-white);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    font-weight: 700;
    font-size: 14px;
    color: var(--lla-text);
    cursor: pointer;
    transition: var(--lla-transition);
    margin-bottom: 16px;
}

.lla-shop-mobile-toggle:hover {
    background: var(--lla-amazon-bg-grey);
}

.lla-shop-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--lla-amazon-link);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .lla-shop-mobile-toggle {
        display: inline-flex;
    }
}

/* ==========================================================================
   Filters Sidebar - Style Amazon
   ========================================================================== */
.lla-shop-filters {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--lla-bg-white);
    border-radius: var(--lla-radius-lg);
    padding: 0 16px 16px;
}

.lla-shop-filters::-webkit-scrollbar {
    width: 6px;
}

.lla-shop-filters::-webkit-scrollbar-track {
    background: transparent;
}

.lla-shop-filters::-webkit-scrollbar-thumb {
    background: var(--lla-border);
    border-radius: 3px;
}

.lla-shop-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--lla-border-dark);
}

.lla-shop-filters__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--lla-text);
}

.lla-shop-filters__close {
    display: none;
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--lla-text-muted);
    cursor: pointer;
    border-radius: var(--lla-radius);
    transition: var(--lla-transition);
}

.lla-shop-filters__close:hover {
    background: var(--lla-amazon-bg-grey);
    color: var(--lla-text);
}

.lla-shop-filters__content {
    padding: 0;
}

.lla-shop-filters__footer {
    display: none;
    padding: 16px 0;
    border-top: 1px solid var(--lla-border);
}

.lla-shop-apply-filters {
    width: 100%;
    padding: 12px 16px;
    background: var(--lla-amazon-orange-light);
    border: 1px solid #F2C200;
    border-radius: var(--lla-radius-lg);
    font-weight: 700;
    font-size: 14px;
    color: var(--lla-text);
    cursor: pointer;
    transition: var(--lla-transition);
}

.lla-shop-apply-filters:hover {
    background: #F0B800;
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
    .lla-shop-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 0 16px 16px;
    }
    
    .lla-shop-filters.is-open {
        transform: translateX(0);
    }
    
    .lla-shop-filters__close {
        display: block;
    }
    
    .lla-shop-filters__content {
        flex: 1;
        overflow-y: auto;
    }
    
    .lla-shop-filters__footer {
        display: block;
    }
    
    /* Overlay */
    .lla-shop::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .lla-shop.filters-open::before {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   Active Filters Tags - Style Amazon chips
   ========================================================================== */
.lla-shop-active-filters {
    background: var(--lla-amazon-bg-grey);
    border-radius: var(--lla-radius);
    padding: 12px;
    margin: 12px 0;
}

.lla-shop-active-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lla-shop-active-filters__header span {
    font-size: 12px;
    font-weight: 700;
    color: var(--lla-text);
}

.lla-shop-reset-all {
    background: none;
    border: none;
    color: var(--lla-amazon-link);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: var(--lla-radius);
    transition: all 0.15s ease;
}

.lla-shop-reset-all:hover {
    color: var(--lla-amazon-link-hover);
    background: rgba(0, 113, 133, 0.08);
}

.lla-shop-active-filters__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lla-shop-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--lla-bg-white);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    padding: 4px 8px;
    font-size: 12px;
    color: var(--lla-text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lla-shop-filter-tag:hover {
    background: #F0F2F2;
    border-color: var(--lla-amazon-link);
    color: var(--lla-amazon-link);
}

.lla-shop-filter-tag svg {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

.lla-shop-filter-tag:hover svg {
    opacity: 1;
}

/* ==========================================================================
   Filter Sections - Style Amazon exact
   ========================================================================== */
.lla-filter-section {
    border-bottom: 1px solid var(--lla-border-dark);
    padding: 12px 0 13px 0;
}

.lla-filter-section:last-child {
    border-bottom: none;
}

.lla-filter-section__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    margin: -6px -8px;
    text-align: left;
    border-radius: var(--lla-radius);
    transition: background-color 0.15s ease;
}

.lla-filter-section__toggle:hover {
    background-color: var(--lla-amazon-bg-grey) !important;
}

.lla-filter-section__toggle span {
    font-size: 14px;
    font-weight: 700;
    color: var(--lla-text);
    line-height: 20px;
}

.lla-filter-section__toggle svg:first-child {
    color: var(--lla-amazon-link);
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.lla-filter-section__arrow {
    width: 16px;
    height: 16px;
    color: var(--lla-text-muted);
    transition: transform 0.2s;
}

.lla-filter-section[data-collapsed="true"] .lla-filter-section__arrow {
    transform: rotate(-90deg);
}

.lla-filter-section__content {
    padding-top: 8px;
    display: block;
}

.lla-filter-section[data-collapsed="true"] .lla-filter-section__content {
    display: none;
}

/* ==========================================================================
   Filter Options - Style Amazon exact
   ========================================================================== */
.lla-filter-options {
    display: flex;
    flex-direction: column;
}

.lla-filter-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    cursor: pointer;
    transition: var(--lla-transition);
    text-decoration: none;
    color: inherit;
}

.lla-filter-option:hover .lla-filter-option__label {
    color: var(--lla-amazon-link-hover);
    text-decoration: underline;
}

.lla-filter-option--hidden {
    display: none;
}

.lla-filter-option--active {
    font-weight: 600;
}

/* Checkbox style Amazon */
.lla-filter-option__checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #888C8C;
    border-radius: 2px;
    background: var(--lla-bg-white);
    flex-shrink: 0;
    transition: var(--lla-transition);
}

.lla-filter-option:hover .lla-filter-option__checkbox {
    border-color: var(--lla-text);
}

.lla-filter-option--active .lla-filter-option__checkbox {
    background: var(--lla-amazon-link);
    border-color: var(--lla-amazon-link);
    color: white;
}

.lla-filter-option__label {
    flex: 1;
    font-size: 14px;
    color: var(--lla-text);
    line-height: 20px;
}

.lla-filter-option__count {
    font-size: 12px;
    color: var(--lla-text-muted);
    line-height: 16px;
}

/* Bouton "Voir plus" - Style Amazon */
.lla-filter-see-more {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--lla-amazon-link);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
    margin-top: 4px;
    margin-left: -8px;
    font-family: inherit;
    border-radius: var(--lla-radius);
    transition: all 0.15s ease;
}

.lla-filter-see-more:hover {
    color: var(--lla-amazon-link-hover);
    text-decoration: underline;
    background: var(--lla-amazon-bg-grey);
}

.lla-filter-see-more__count {
    color: var(--lla-text-muted);
}

/* ==========================================================================
   Category Tree Filter - Hierarchical indentation
   ========================================================================== */
.lla-filter-tree {
    display: flex;
    flex-direction: column;
}

.lla-filter-tree-node {
    display: flex;
    flex-direction: column;
}

.lla-filter-tree-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Indentation par niveau de profondeur */
.lla-filter-tree-node.depth-0 > .lla-filter-tree-row {
    padding-left: 0;
}

.lla-filter-tree-node.depth-1 > .lla-filter-tree-row {
    padding-left: 14px;
}

.lla-filter-tree-node.depth-2 > .lla-filter-tree-row {
    padding-left: 28px;
}

.lla-filter-tree-node.depth-3 > .lla-filter-tree-row {
    padding-left: 42px;
}

/* Bouton toggle sous-catégories */
.lla-filter-toggle-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--lla-text-muted);
    font-size: 11px;
    padding: 0;
    border-radius: 2px;
    transition: var(--lla-transition);
    flex-shrink: 0;
}

.lla-filter-toggle-sub:hover {
    color: var(--lla-text);
    background: var(--lla-amazon-bg-grey);
}

/* Placeholder pour aligner les éléments sans enfants */
.lla-filter-toggle-placeholder {
    width: 18px;
    flex-shrink: 0;
}

/* Conteneur enfants */
.lla-filter-tree-children {
    display: flex;
    flex-direction: column;
}

.lla-filter-tree-children.collapsed {
    display: none;
}

/* Item cliquable dans l'arbre */
.lla-filter-tree-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    cursor: pointer;
    transition: var(--lla-transition);
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.lla-filter-tree-item:hover .lla-filter-option__label {
    color: var(--lla-amazon-link-hover);
    text-decoration: underline;
}

.lla-filter-tree-item.active {
    font-weight: 600;
}

.lla-filter-tree-item.active .lla-filter-option__checkbox {
    background: var(--lla-amazon-link);
    border-color: var(--lla-amazon-link);
    color: white;
}

/* ==========================================================================
   Price Filter - Style Amazon
   ========================================================================== */
.lla-price-filter {
    padding: 8px 0;
}

.lla-price-filter__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lla-price-filter__input-group {
    flex: 1;
}

.lla-price-filter__input-group label {
    display: block;
    font-size: 12px;
    color: var(--lla-text-muted);
    margin-bottom: 4px;
}

.lla-price-filter__input-wrapper {
    display: flex;
    align-items: center;
    background: var(--lla-bg-white);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    overflow: hidden;
    transition: var(--lla-transition);
}

.lla-price-filter__input-wrapper:focus-within {
    border-color: var(--lla-amazon-link);
    box-shadow: 0 0 0 2px var(--lla-amazon-focus);
}

.lla-price-filter__input-wrapper input {
    flex: 1;
    width: 100%;
    padding: 6px 8px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--lla-text);
    outline: none;
    -moz-appearance: textfield;
}

.lla-price-filter__input-wrapper input::-webkit-outer-spin-button,
.lla-price-filter__input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lla-price-filter__currency {
    padding: 6px 8px;
    background: var(--lla-amazon-bg-grey);
    color: var(--lla-text-muted);
    font-size: 13px;
    border-left: 1px solid var(--lla-border);
}

.lla-price-filter__separator {
    color: var(--lla-text-muted);
    font-size: 13px;
}

/* Price Slider */
.lla-price-filter__slider {
    position: relative;
    height: 24px;
    margin-bottom: 12px;
    /* Padding horizontal pour éviter que les thumbs dépassent */
    padding: 0 9px;
    box-sizing: border-box;
}

.lla-price-filter__track {
    position: absolute;
    top: 50%;
    /* Décaler de la taille du thumb/2 pour rester dans le padding */
    left: 9px;
    right: 9px;
    height: 4px;
    background: var(--lla-border);
    border-radius: 2px;
    transform: translateY(-50%);
}

.lla-price-filter__range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--lla-amazon-link);
    border-radius: 2px;
    transform: translateY(-50%);
}

.lla-price-filter__range-input {
    position: absolute;
    top: 0;
    left: 9px;
    right: 9px;
    width: calc(100% - 18px);
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.lla-price-filter__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--lla-bg-white);
    border: 2px solid var(--lla-amazon-link);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
    transition: var(--lla-transition);
}

.lla-price-filter__range-input::-webkit-slider-thumb:hover {
    background: var(--lla-amazon-focus);
}

.lla-price-filter__range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--lla-bg-white);
    border: 2px solid var(--lla-amazon-link);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
}

.lla-price-filter__apply {
    width: 100%;
    padding: 8px 12px;
    background: var(--lla-amazon-bg-grey);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    color: var(--lla-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--lla-transition);
}

.lla-price-filter__apply:hover {
    background: var(--lla-amazon-orange-light);
    border-color: #F2C200;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.lla-shop-main {
    min-height: 600px;
}

/* Toolbar - Style Amazon */
.lla-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lla-border);
}

.lla-shop-results-count {
    font-size: 14px;
    color: var(--lla-text-muted);
}

.lla-shop-results-count strong {
    color: var(--lla-text);
    font-weight: 700;
}

.lla-shop-sorting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lla-shop-sorting label {
    font-size: 13px;
    color: var(--lla-text-muted);
    white-space: nowrap;
}

.lla-shop-orderby {
    padding: 6px 28px 6px 8px;
    background: var(--lla-amazon-bg-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23565959' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius-lg);
    font-size: 13px;
    color: var(--lla-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--lla-transition);
}

.lla-shop-orderby:hover,
.lla-shop-orderby:focus {
    border-color: var(--lla-amazon-link);
    box-shadow: 0 0 0 2px var(--lla-amazon-focus);
    outline: none;
}

@media (max-width: 640px) {
    .lla-shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lla-shop-sorting {
        justify-content: space-between;
    }
}

/* ==========================================================================
   Products Grid - Grille fluide avec auto-fill
   OVERRIDE WOOCOMMERCE/THEME - Garder classes .products .product pour SEO
   ========================================================================== */


/* Reset TRES spécifique pour overrider WooCommerce/Thème */
.lla-shop-grid.products,
ul.lla-shop-grid.products,
ul.lla-shop-grid.products.columns-4,
.woocommerce ul.lla-shop-grid.products,
.woocommerce-page ul.lla-shop-grid.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    position: relative !important;
}

/* CRITICAL: Forcer le ::before hors du grid - TOUTES spécificités possibles */
.lla-shop-grid::before,
ul.lla-shop-grid::before,
ul.products.lla-shop-grid::before,
ul.lla-shop-grid.products::before,
ul.lla-shop-grid.products.columns-4::before,
.woocommerce ul.products::before,
.woocommerce ul.products.lla-shop-grid::before,
.woocommerce ul.lla-shop-grid.products::before,
.woocommerce-page ul.products::before,
body ul.lla-shop-grid.products::before,
body .woocommerce ul.products.lla-shop-grid::before,
html body ul.lla-shop-grid.products::before,
html body .woocommerce ul.products.lla-shop-grid::before {
    display: none !important;
    content: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Même chose pour ::after */
.lla-shop-grid::after,
ul.lla-shop-grid::after,
ul.products.lla-shop-grid::after,
ul.lla-shop-grid.products::after,
ul.lla-shop-grid.products.columns-4::after,
.woocommerce ul.products::after,
.woocommerce ul.products.lla-shop-grid::after,
.woocommerce ul.lla-shop-grid.products::after,
.woocommerce-page ul.products::after,
body ul.lla-shop-grid.products::after,
body .woocommerce ul.products.lla-shop-grid::after,
html body ul.lla-shop-grid.products::after,
html body .woocommerce ul.products.lla-shop-grid::after {
    content: none !important;
    display: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Product card - OVERRIDE WooCommerce width: 22% */
.lla-shop-grid.products > li.product,
.lla-shop-grid.products > li.lla-product-card,
.lla-shop-grid.products > li.lla-product-card.product,
ul.lla-shop-grid.products > li.product,
ul.lla-shop-grid.products > li.lla-product-card.product,
ul.lla-shop-grid.products.columns-4 > li.lla-product-card.product,
.woocommerce ul.lla-shop-grid.products li.product,
.woocommerce ul.lla-shop-grid.products li.lla-product-card,
.woocommerce-page ul.lla-shop-grid.products li.product,
body ul.lla-shop-grid.products > li.product,
body .woocommerce ul.products.lla-shop-grid > li.product {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    box-sizing: border-box !important;
    clear: none !important;
}

/* Le contenu de la card */
.lla-shop-grid .lla-product-card .lla-card-inner {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .lla-shop-grid.products,
    ul.lla-shop-grid.products,
    .woocommerce ul.lla-shop-grid.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .lla-shop-grid.products,
    ul.lla-shop-grid.products,
    .woocommerce ul.lla-shop-grid.products {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* No Results */
.lla-shop-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--lla-bg-white);
    border-radius: var(--lla-radius-lg);
    border: 1px solid var(--lla-border);
    list-style: none !important;
}

.lla-shop-no-results svg {
    color: var(--lla-border);
    margin-bottom: 20px;
}

.lla-shop-no-results h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lla-text);
}

.lla-shop-no-results p {
    margin: 0 0 20px;
    color: var(--lla-text-muted);
    font-size: 14px;
}

/* ==========================================================================
   Pagination - Style Amazon
   ========================================================================== */
.lla-shop-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.lla-shop-pagination ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lla-shop-pagination li {
    margin: 0;
}

.lla-shop-pagination a,
.lla-shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--lla-bg-white);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    color: var(--lla-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--lla-transition);
}

.lla-shop-pagination a:hover {
    border-color: var(--lla-amazon-link);
    color: var(--lla-amazon-link);
}

.lla-shop-pagination .current {
    background: var(--lla-amazon-orange-light);
    border-color: #F2C200;
    color: var(--lla-text);
    font-weight: 700;
}

.lla-shop-pagination .prev,
.lla-shop-pagination .next {
    padding: 0;
    font-weight: 400;
}

.lla-shop-pagination .prev:hover,
.lla-shop-pagination .next:hover {
    background: var(--lla-amazon-bg-grey);
}

.lla-shop-pagination .dots {
    background: transparent;
    border: none;
    color: var(--lla-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.lla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--lla-radius-lg);
    cursor: pointer;
    transition: var(--lla-transition);
}

.lla-btn-primary {
    background: var(--lla-amazon-orange-light);
    border: 1px solid #F2C200;
    color: var(--lla-text);
}

.lla-btn-primary:hover {
    background: #F0B800;
    color: var(--lla-text);
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.lla-shop.is-loading {
    position: relative;
}

.lla-shop.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--lla-border);
    border-top-color: var(--lla-amazon-link);
    border-radius: 50%;
    animation: lla-shop-spin 0.8s ease-in-out infinite;
    z-index: 100;
}

.lla-shop.is-loading .lla-shop-grid {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes lla-shop-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Body class when filters open (mobile)
   ========================================================================== */
body.lla-shop-filters-open {
    overflow: hidden;
}
