/**
 * eMoteek - Additional Features CSS
 * Product Zoom, Skeleton Loading, Mobile Improvements, Search Autocomplete
 */

/* ===========================================
   PRODUCT ZOOM
   =========================================== */
.product-zoom {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.product-zoom__lens {
    position: absolute;
    border: 2px solid #1e3a5f;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    display: none;
    z-index: 10;
}

.product-zoom__result {
    position: absolute;
    top: 0;
    left: 105%;
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    background-color: white;
}

.product-zoom:hover .product-zoom__lens,
.product-zoom:hover .product-zoom__result {
    display: block;
}

/* Modal zoom for mobile */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal__content {
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.zoom-modal__content img {
    max-width: none;
    width: auto;
    height: auto;
    transform-origin: center center;
    cursor: grab;
}

.zoom-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
}

/* ===========================================
   SKELETON LOADING
   =========================================== */
.skeleton {
    animation: skeleton-loading 1.2s infinite linear;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Product card skeleton */
.skeleton-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skeleton-product-card__image {
    height: 200px;
}

.skeleton-product-card__content {
    padding: 15px;
}

.skeleton-product-card__ref {
    width: 60%;
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-product-card__title {
    width: 90%;
    height: 18px;
    margin-bottom: 10px;
}

.skeleton-product-card__price {
    width: 40%;
    height: 20px;
    margin-bottom: 15px;
}

.skeleton-product-card__button {
    width: 100%;
    height: 40px;
}

/* Text skeleton */
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text--title {
    height: 24px;
    width: 60%;
}

.skeleton-text--short {
    width: 40%;
}

.skeleton-text--medium {
    width: 70%;
}

/* ===========================================
   SEARCH AUTOCOMPLETE
   =========================================== */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-autocomplete__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.search-autocomplete__item:hover,
.search-autocomplete__item.active {
    background: #f5f5f5;
}

.search-autocomplete__item i {
    color: #1e3a5f;
    width: 20px;
    text-align: center;
}

.search-autocomplete__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-autocomplete__type {
    background: #1e3a5f;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.search-autocomplete__view-all {
    display: block;
    padding: 15px;
    text-align: center;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.search-autocomplete__view-all:hover {
    background: #f0f0f0;
}

.search-autocomplete__empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Account sidebar toggle: hidden by default, shown only at ≤768px via media query */
.account-sidebar-toggle {
    display: none;
}

.account-sidebar-overlay {
    display: none;
}

/* ===========================================
   MOBILE IMPROVEMENTS
   =========================================== */
@media (max-width: 768px) {
    /* Mobile menu improvements */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .mobile-nav.active {
        left: 0;
    }

    .mobile-nav__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #1e3a5f;
        color: white;
    }

    .mobile-nav__close {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-nav__menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav__menu a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav__menu a:hover {
        background: #f5f5f5;
    }

    /* Sous-menus du menu mobile */
    .mobile-nav__menu .has-submenu .submenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f9f9f9;
    }

    .mobile-nav__menu .has-submenu.active .submenu {
        display: block;
    }

    .mobile-nav__menu .submenu a {
        padding-left: 36px;
        font-size: 14px;
        color: #555;
        border-bottom-color: #f0f0f0;
    }

    .mobile-nav__menu .has-submenu > a .fa-chevron-down {
        float: right;
        transition: transform 0.2s;
    }

    .mobile-nav__menu .has-submenu.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Bottom navigation for mobile */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #666;
        text-decoration: none;
        font-size: 11px;
        position: relative;
    }

    .mobile-bottom-nav a.active {
        color: #1e3a5f;
    }

    .mobile-bottom-nav a i {
        font-size: 20px;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #e74c3c;
        color: white;
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Product cards grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card__content {
        padding: 10px !important;
    }

    .product-card__title {
        font-size: 13px !important;
    }

    /* Hide zoom on mobile, show modal instead */
    .product-zoom__result,
    .product-zoom__lens {
        display: none !important;
    }

    /* Improve form inputs */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* Account sidebar toggle button */
    .account-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        padding: 10px 18px;
        background: #1e3a5f;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
    }

    /* Account sidebar overlay */
    .account-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 9998;
    }

    .account-sidebar-overlay.active {
        display: block;
    }

    /* Account sidebar */
    .account-sidebar {
        display: none;
    }

    .account-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,.2);
    }

    /* Account content overflow */
    .account-content {
        min-width: 0;
        overflow-x: hidden;
        padding: 20px 16px;
    }

    /* Orders table horizontal scroll */
    .orders-table,
    .order-items-table,
    .account-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Cart page */
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-header {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .comparison-table-wrapper {
        font-size: 12px;
    }
}

/* ===========================================
   NOTIFICATION STYLES
   =========================================== */
.emoteek-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.emoteek-notification--success {
    border-left: 4px solid #27ae60;
}

.emoteek-notification--success i {
    color: #27ae60;
}

.emoteek-notification--error {
    border-left: 4px solid #e74c3c;
}

.emoteek-notification--error i {
    color: #e74c3c;
}

.emoteek-notification__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    margin-left: 10px;
}

.emoteek-notification.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===========================================
   WISHLIST & COMPARISON BUTTONS
   =========================================== */
.product-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-action:hover {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}

.product-action.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.product-action.loading {
    pointer-events: none;
}

.product-action.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================================
   LOADING STATES
   =========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: #1e3a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================================
   VIEW TOGGLE (Grille / Liste)
   =========================================== */
.shop-toolbar {
    padding-bottom: 20px;
}

.shop-toolbar__view {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    float: right;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.view-toggle-btn.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

/* Liste mode */
.products-grid.products-list-mode {
    display: block;
}

.products-grid.products-list-mode .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.products-grid.products-list-mode .product-card__image {
    flex: 0 0 100px;
    height: 100px;
}

.products-grid.products-list-mode .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.products-grid.products-list-mode .product-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex: 1;
    text-decoration: none;
}

.products-grid.products-list-mode .product-card__content {
    flex: 1;
}

.products-grid.products-list-mode .product-card__desc {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.products-grid.products-list-mode .product-card__badge:not(.product-card__badge--promo) {
    display: none;
}

/* Hide quick view btn in list mode */
.products-grid.products-list-mode .product-card__quickview {
    display: none;
}

/* List mode: cart button full width, wishlist+compare below it */
.products-grid.products-list-mode .product-card__btns {
    flex-direction: column;
    flex-shrink: 0;
    width: 120px;
    margin-top: 0;
    gap: 6px;
}

.products-grid.products-list-mode .product-card__btns .btn-add-cart {
    flex: none !important;
    width: 100%;
}

.products-grid.products-list-mode .product-card__btns .wishlist-btn,
.products-grid.products-list-mode .product-card__btns .compare-btn {
    width: 100%;
}

/* ===========================================
   QUICK VIEW BUTTON
   =========================================== */
.product-card__image {
    position: relative;
    overflow: hidden;
}

.product-card__quickview {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: rgba(30, 58, 95, 0.85);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: bottom 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-card:hover .product-card__quickview {
    bottom: 0;
}

/* ===========================================
   QUICK VIEW MODAL
   =========================================== */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.quick-view-modal__container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 860px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quick-view-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.quick-view-modal__close:hover {
    background: #e74c3c;
    color: #fff;
}

.quick-view-modal__content {
    padding: 30px;
}

.quick-view-modal__loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.quick-view-product__image img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 20px;
}

.quick-view-product__sku {
    font-family: monospace;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-product__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 8px 0 12px;
    line-height: 1.3;
}

.quick-view-product__price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.quick-view-product__price .price-current {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
}

.quick-view-product__price .price-old {
    font-size: 16px;
    color: #aaa;
    text-decoration: line-through;
}

.quick-view-product__price .price-on-request {
    font-size: 16px;
    color: #888;
}

.quick-view-product__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.quick-view-product__stock {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.quick-view-product__stock .in-stock { color: #27ae60; }
.quick-view-product__stock .out-of-stock { color: #e74c3c; }

.quick-view-product__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .quick-view-product {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   COOKIE CONSENT BANNER
   =========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e3a5f;
    color: #fff;
    z-index: 9990;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUpCookie 0.4s ease;
}

@keyframes slideUpCookie {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.cookie-banner__text i {
    font-size: 22px;
    color: #f39c12;
    flex-shrink: 0;
}

.cookie-banner__text p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-banner__text a {
    color: #f39c12;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.cookie-btn--primary {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.cookie-btn--primary:hover {
    background: #e08e0b;
}

.cookie-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
}

.cookie-btn--outline:hover {
    border-color: #fff;
    color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cookie-modal__container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.cookie-modal__header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e3a5f;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
}

.cookie-modal__close:hover { color: #e74c3c; }

.cookie-modal__body {
    padding: 20px 24px;
}

.cookie-pref {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-pref:last-child { border-bottom: none; }

.cookie-pref__info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cookie-pref__info p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s;
}

.cookie-toggle__slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #27ae60;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(20px);
}

.cookie-toggle--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* ===========================================
   SUBSCRIPTION (abonnement) PAGE
   =========================================== */
.subscription-intro {
    padding: 50px 0 20px;
    text-align: center;
}
.subscription-intro__inner {
    max-width: 760px;
    margin: 0 auto;
}
.subscription-intro h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1e3a5f;
}
.subscription-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}
.subscription-plans {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
}
.subscription-plans__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(30, 58, 95, 0.12);
}
.plan-card--featured {
    border: 2px solid #4caf50;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.18);
}
.plan-card--current {
    outline: 3px solid #1e3a5f;
    outline-offset: -2px;
}
.plan-card__ribbon {
    position: absolute;
    top: -14px;
    right: 24px;
    background: #4caf50;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
.plan-card__current-badge {
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.plan-card__current-badge i {
    margin-right: 4px;
}
.plan-card__header {
    text-align: center;
    margin-bottom: 18px;
}
.plan-card__name {
    font-size: 22px;
    color: #1e3a5f;
    margin: 0 0 4px;
}
.plan-card__subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.plan-card__price {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid #f0f4f8;
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 24px;
}
.plan-card__price-amount {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
}
.plan-card__price-unit {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}
.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.plan-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f7fa;
}
.plan-card__feature:last-child {
    border-bottom: none;
}
.plan-card__feature i {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #e8f5e9;
    color: #2e7d32;
    margin-top: 2px;
}
.plan-card__feature--off {
    color: #a0a8b1;
}
.plan-card__feature--off i {
    background: #fde8e8;
    color: #c62828;
}
.plan-card__cta {
    margin-top: auto;
}
.subscription-faq {
    padding: 50px 0 70px;
    background: #fff;
}
.subscription-faq__title {
    text-align: center;
    font-size: 26px;
    color: #1e3a5f;
    margin-bottom: 30px;
}
.subscription-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
}
.faq-item {
    background: #f8fafd;
    border-radius: 12px;
    padding: 20px 22px;
}
.faq-item h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1e3a5f;
}
.faq-item h4 i {
    color: #4caf50;
    margin-right: 6px;
}
.faq-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ===========================================
   SUBSCRIPTION UPSELL BANNER (cart, checkout)
   =========================================== */
.upsell-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    margin: 18px 0;
}
.upsell-banner__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.upsell-banner__content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #2e3d2f;
}
.upsell-banner__content strong {
    color: #1b5e20;
}
.upsell-banner__cta {
    flex: 0 0 auto;
    background: #1e3a5f;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.upsell-banner__cta:hover {
    background: #16284a;
}

/* Tablet & Mobile */
@media (max-width: 992px) {
    .subscription-plans__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .subscription-faq__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}
@media (max-width: 576px) {
    .subscription-intro h2 { font-size: 22px; }
    .subscription-intro p { font-size: 14px; }
    .plan-card { padding: 24px 20px; }
    .plan-card__price-amount { font-size: 32px; }
    .upsell-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .upsell-banner__cta {
        width: 100%;
        text-align: center;
    }
}

/* ===========================================
   ADMIN STATISTICS PAGE
   =========================================== */
.admin-stats {
    padding: 20px;
}
.admin-stats__filters {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.admin-stats__filters label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}
.admin-stats__filters input[type="date"],
.admin-stats__filters select {
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}
.admin-stats__filters button {
    padding: 9px 18px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.admin-stats__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}
.kpi-card__label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.kpi-card__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 6px 0 0;
}
.kpi-card__hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.admin-stats__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.stats-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
}
.stats-panel h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #1e3a5f;
}
.stats-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.stats-panel th,
.stats-panel td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f4f8;
}
.stats-panel th {
    color: #555;
    font-weight: 600;
    background: #f8fafd;
}
.stats-panel tr:last-child td { border-bottom: none; }
.stats-panel__empty {
    text-align: center;
    color: #aaa;
    padding: 24px 0;
    font-size: 14px;
}
@media (max-width: 992px) {
    .admin-stats__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-stats__panels { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .admin-stats__kpis { grid-template-columns: 1fr; }
}

/* ── Guest lock blocks (product page) ───────────────────────────────────── */
.guest-lock-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0f4f8;
    border: 1px solid #d0dbe8;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
}
.guest-lock-inline .fa-lock { color: #1e3a5f; font-size: 16px; flex-shrink: 0; }
.guest-lock-inline a { color: #1e3a5f; font-weight: 600; text-decoration: underline; }

.guest-lock-block {
    margin-top: 12px;
    padding: 16px 20px;
    background: #f0f4f8;
    border: 1px dashed #a0aec0;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #4a5568;
}
.guest-lock-block__icon { font-size: 22px; color: #1e3a5f; margin-bottom: 8px; }
.guest-lock-block p { margin: 0 0 12px; }

.guest-lock-tab {
    text-align: center;
    padding: 48px 24px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 14px;
    color: #4a5568;
}
.guest-lock-tab__icon {
    width: 72px;
    height: 72px;
    background: #e8edf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.guest-lock-tab__icon .fa-lock { font-size: 28px; color: #1e3a5f; }
.guest-lock-tab h4 { font-size: 20px; color: #1e3a5f; margin: 0 0 10px; }
.guest-lock-tab p { font-size: 15px; max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ─── Pagination Shop : numéro de la page active mis en avant ─────────── */
/* Le HTML utilise .shop-pagination__link--active (les anciens styles
   .shop-pagination__item.active ne matchent pas) — d'où ce bloc. */
.shop-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s ease;
}
.shop-pagination__link:hover {
    border-color: var(--primary-color, #4CAF50);
    color: var(--primary-color, #4CAF50);
}
.shop-pagination__link--active,
.shop-pagination__link--active:hover {
    background: var(--primary-color, #4CAF50);
    border-color: var(--primary-color, #4CAF50);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}
.shop-pagination__link.disabled {
    opacity: .4;
    pointer-events: none;
}
