/**
 * Catalogue 2 - Front-end Styles
 * Interactive catalog page builder using turn.js flipbook
 * Module: ad_lookbook
 */


/* ============================================
   1. GLOBAL RESET & TYPOGRAPHY
   ============================================ */

#header, .l-footer {
    display: none;
}

/* Typography - Global */
h1, h2, h3, h4, h5, h6,
.catalog-hero-title,
.catalog-hero-subtitle,
.catalog-sommaire-title,
.catalog-cart-modal-title,
.product-modal-title {
    font-family: "Montserrat", sans-serif;
}

p,
.product-modal-description {
    font-family: Georgia, serif;
}


.widget-visible{
    display:none !important;
}

/* ============================================
   2. RESPONSIVE UTILITY CLASSES
   ============================================ */

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Buttons need display:flex (not block) for proper layout */
    button.mobile-only {
        display: flex !important;
    }
}


/* ============================================
   3. GLOBAL LOADER
   ============================================ */

.lookbook-global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease-in-out;
}

.lookbook-global-loader.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.catalog-loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.catalog-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top-color: #18494e;
    border-radius: 50%;
    animation: catalog-spinner-rotate 1s linear infinite;
}

@keyframes catalog-spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.catalog-loader-text {
    margin: 0;
    font-size: 1.18em;
    color: #18494e;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .catalog-loader-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .catalog-loader-text {
        font-size: 1em;
    }
}


/* ============================================
   4. MAIN WRAPPER & FLIPBOOK CONTAINER
   ============================================ */
#wrapper{
    padding-left:0 !important;
    padding-right:0 !important;
}
.page-content {
    padding: 0 !important;
}
.interactive-catalog-wrapper {
    padding: 50px 0 0 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.interactive-catalog-wrapper.catalog-ready {
    opacity: 1;
}

.catalog-container {
    margin: 0 auto 30px;
    /* padding: 20px; */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Flipbook container - Dimensions set dynamically by turn.js */
#flipbook {
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Pages — turn.js controls dimensions and overflow on .catalog-page */
#flipbook .catalog-page {
    background: transparent;
    overflow: hidden;
}

/* Cross-spread: blocks that span across two pages
   Strategy: PHP renderer duplicates cross-spread blocks.
   - Original block is clipped to show only the portion within its source page
   - A mirrored clone is injected into the adjacent page, offset + clipped to show the overflow portion
   This approach works WITH turn.js (no overflow/z-index hacks needed). */
.catalog-block.cross-spread-block {
    /* Source block: clip to page boundary (clip-path set inline by PHP) */
}
.catalog-block.cross-spread-clone {
    /* Cloned block on adjacent page (position set inline by PHP) */
    pointer-events: none;
}


/* ============================================
   5. PAGE SCALER — Responsive scaling system
   ============================================
   CSS custom properties (set by JS on #flipbook):
     --design-page-width:  e.g. 500 (configWidth / 2)
     --design-page-height: e.g. 707 (configHeight)
     --page-scale:         e.g. 0.712 (actualPageWidth / designPageWidth)

   The scaler sits inside .catalog-page (managed by turn.js).
   It renders at DESIGN dimensions and is CSS-transformed to fit.
   All blocks keep their original pixel positions — everything scales.
   ============================================ */

.catalog-page-scaler {
    width: calc(var(--design-page-width, 500) * 1px);
    height: calc(var(--design-page-height, 707) * 1px);
    transform: scale(var(--page-scale, 1));
    transform-origin: top left;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ============================================
   6. CATALOG BLOCK - BASE STYLES
   ============================================ */

.catalog-block {
    box-sizing: border-box;
    position: relative;
}

.catalog-block-hidden {
    display: none !important;
}


/* ============================================
   7. BLOCK: TEXT
   ============================================ */

.catalog-block-text {
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.catalog-block-text h1,
.catalog-block-text h2,
.catalog-block-text h3,
.catalog-block-text h4,
.catalog-block-text h5,
.catalog-block-text h6 {
    font-family: inherit;
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.catalog-block-text p {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-transform: inherit;
    line-height: 1.6;
    margin: 0 0 0.8em 0;
}

.catalog-block-text ul,
.catalog-block-text ol {
    margin: 0 0 0.8em 0;
    padding-left: 1.5em;
}

.catalog-block-text a {
    color: #2d5f5d;
    text-decoration: underline;
}


/* ============================================
   8. BLOCK: IMAGE
   ============================================ */

.catalog-block-image {
    line-height: 0;
    overflow: hidden;
}

.catalog-block-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ============================================
   BLOCK: SHAPE BUTTON
   ============================================ */

.catalog-block-shape-button {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-shape-zoom:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   9. BLOCK: SINGLE PRODUCT
   ============================================ */

.catalog-block-single-product {
    display: flex;
    cursor: pointer;
    overflow: hidden;
}


/* -- Layout: Vertical (default) -- */
.catalog-product-layout--vertical {
    flex-direction: column;
    align-items: center;
}

.catalog-product-layout--vertical .catalog-product-image-wrap {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-product-layout--vertical .catalog-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-product-layout--vertical .catalog-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 4px;
    gap: 3px;
    flex-shrink: 0;
}

/* -- Layout: Horizontal -- */
.catalog-product-layout--horizontal {
    flex-direction: row;
    align-items: center;
}

.catalog-product-layout--horizontal .catalog-product-image-wrap {
    width: 40%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-product-layout--horizontal .catalog-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-product-layout--horizontal .catalog-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    gap: 4px;
}

/* -- Product info elements -- */
.catalog-product-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7em;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.catalog-product-price {
    font-family: "Montserrat", sans-serif;
    font-size: 0.65em;
    font-weight: 700;
    color: #2d5f5d;
}

.catalog-product-desc {
    font-family: Georgia, serif;
    font-size: 0.5em;
    line-height: 1.4;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Global add-to-cart button style */
.catalog-add-button {
    background: #2d5f5d;
    color: #fff !important;
    border: none;
    padding: 5px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.catalog-add-button:hover {
    background: #1f4543;
    color: #fff !important;
    text-decoration: none;
}

.catalog-button-disabled {
    background: #999 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.catalog-button-disabled:hover {
    background: #999 !important;
}

/* -- Icon button (picto-panier) — positioned absolutely inside the product block -- */
.catalog-product-icon-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #2d5f6880;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 2;
}

.catalog-product-icon-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.catalog-product-icon-btn:hover {
    transform: scale(1.15);
}

/* Product button style variants (kept for backward compatibility) */
.catalog-product-btn--default {
    /* default style, inherits from .catalog-add-button */
}

.catalog-product-btn--minimal {
    background: transparent;
    color: #2d5f5d !important;
    border: 1px solid #2d5f5d;
    padding: 4px 16px;
}

.catalog-product-btn--minimal:hover {
    background: #2d5f5d;
    color: #fff !important;
}


/* ============================================
   10. BLOCK: PRODUCT GRID
   ============================================ */

.catalog-block-product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.catalog-product-grid-title {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 5px 0;
    text-align: center;
    color: #2c2c2c;
}

.catalog-product-grid-items {
    display: grid;
    gap: 8px;
    width: 100%;
}

.catalog-product-grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.catalog-product-grid-item:hover {
    opacity: 0.85;
}

.catalog-product-grid-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-product-grid-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-grid-item-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.55em;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
    margin: 2px 0 0 0;
}

.catalog-product-grid-item-price {
    font-family: "Montserrat", sans-serif;
    font-size: 0.55em;
    font-weight: 600;
    color: #2d5f5d;
}

.catalog-product-grid-btn {
    margin-top: 5px;
}

/* Per-product text button inside grid */
.catalog-product-grid-item-btn {
    margin-top: 3px;
    padding: 3px 12px;
    font-size: 0.4em;
    white-space: nowrap;
}


/* ============================================
   11. BLOCK: VIDEO
   ============================================ */

.catalog-block-video {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.catalog-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.catalog-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.catalog-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================
   12. BLOCK: HERO
   ============================================ */

.catalog-block-hero {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Overlay */
.catalog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Content */
.catalog-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    pointer-events: none;
}

.catalog-hero-content > * {
    pointer-events: auto;
}

/* Text positioning variants */
.catalog-hero-content--center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalog-hero-content--top-left {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.catalog-hero-content--top-right {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

.catalog-hero-content--bottom-left {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
}

.catalog-hero-content--top-center {
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.catalog-hero-content--center-left {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.catalog-hero-content--center-right {
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.catalog-hero-content--bottom-center {
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.catalog-hero-content--bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

/* Hero title */
.catalog-hero-title {
    font-size: 1.7em;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Hero subtitle */
.catalog-hero-subtitle {
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Hero CTA */
.catalog-hero-cta {
    font-size: 0.55em;
    padding: 8px 25px;
}


/* ============================================
   13. BLOCK: TWO COLUMNS
   ============================================ */

.catalog-block-two-columns {
    width: 100%;
    box-sizing: border-box;
}

.catalog-two-columns-left,
.catalog-two-columns-right {
    box-sizing: border-box;
    overflow: hidden;
}

/* Nested blocks within columns — always take full width, position relative for abs children */
.catalog-two-columns-left > .catalog-block,
.catalog-two-columns-right > .catalog-block {
    width: 100%;
    position: relative;
}

/* Image blocks inside columns need height from position_style to work */
.catalog-two-columns-left > .catalog-block-image,
.catalog-two-columns-right > .catalog-block-image {
    overflow: hidden;
}


/* ============================================
   14. BLOCK: HOTSPOT
   ============================================ */

.catalog-block-hotspot {
    width: 100%;
    height: 100%;
    line-height: 0;
}

.catalog-hotspot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.catalog-hotspot-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Hotspot dot */
.product-hotspot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

/* Hotspot inner dot — uses CSS variable --hs-color (default white) */
.hotspot-dot {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--hs-color, #ffffff);
    border: 2px solid var(--hs-color, #ffffff);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Hotspot pulse ring — same color as dot */
.hotspot-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--hs-color, rgba(255, 255, 255, 0.6));
    border-radius: 50%;
    z-index: 1;
    animation: pulse-hotspot 2s infinite;
}

@keyframes pulse-hotspot {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    70% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}


/* ============================================
   15. BLOCK: CTA BUTTON
   ============================================ */

.catalog-block-cta {
    display: flex;
    align-items: center;
}

/* CTA Button base */
.catalog-cta-btn {
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
}

/* CTA Style: Catalog (v1 style - default) */
.catalog-cta-btn--catalog {
    background: #2d5f5d;
    color: #fff !important;
    border: none;
    padding: 5px 20px;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-cta-btn--catalog:hover {
    background: #1f4543;
    color: #fff !important;
}

/* CTA Style: Primary */
.catalog-cta-btn--primary {
    background: #2d5f5d;
    color: #fff !important;
    border: none;
    padding: 8px 25px;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-cta-btn--primary:hover {
    background: #1f4543;
    color: #fff !important;
}

/* CTA Style: Secondary */
.catalog-cta-btn--secondary {
    background: #8b7f73;
    color: #fff !important;
    border: none;
    padding: 8px 25px;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-cta-btn--secondary:hover {
    background: #6d6259;
    color: #fff !important;
}

/* CTA Style: Outlined */
.catalog-cta-btn--outlined {
    background: transparent;
    color: #2d5f5d !important;
    border: 1px solid #2d5f5d;
    padding: 7px 24px;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-cta-btn--outlined:hover {
    background: #2d5f5d;
    color: #fff !important;
}

/* CTA Style: Minimal */
.catalog-cta-btn--minimal {
    background: transparent;
    color: #2d5f5d !important;
    border: none;
    padding: 5px 10px;
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: underline !important;
}

.catalog-cta-btn--minimal:hover {
    color: #1f4543 !important;
}

/* CTA Style: Custom — all properties via inline styles */
.catalog-cta-btn--custom {
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.catalog-cta-btn--custom:hover {
    opacity: 0.85;
}

/* CTA Full width */
.catalog-cta-btn--full-width {
    display: block;
    width: 100%;
}


/* ============================================
   16. BLOCK: SEPARATOR
   ============================================ */

.catalog-block-separator {
    width: 100%;
    box-sizing: border-box;
}


/* ============================================
   17. BLOCK: SOMMAIRE (Table of Contents)
   ============================================ */

.catalog-block-sommaire {
    width: 100%;
}

.catalog-block-sommaire .catalog-sommaire-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sommaire-gap, 8px);
}

.catalog-block-sommaire .catalog-sommaire-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    text-align: left;
    width: 100%;
}

.catalog-block-sommaire .catalog-sommaire-item:hover {
    opacity: 0.7;
}

.catalog-block-sommaire .sommaire-item-title {
    font-size: 0.65em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2c2c2c;
}

.catalog-block-sommaire .sommaire-item-page {
    font-size: 0.6em;
    font-weight: 400;
    color: #999;
}

/* Sommaire style: minimal */
.catalog-block-sommaire--minimal .catalog-sommaire-item {
    border-bottom: none;
    padding: 5px 0;
}

/* Sommaire style: bordered */
.catalog-block-sommaire--bordered .catalog-sommaire-item {
    border: 1px solid #18494e;
    padding: 10px 15px;
    margin-bottom: 5px;
}

.catalog-block-sommaire--bordered .catalog-sommaire-item:hover {
    background: #18494e;
    opacity: 1;
}

.catalog-block-sommaire--bordered .catalog-sommaire-item:hover .sommaire-item-title,
.catalog-block-sommaire--bordered .catalog-sommaire-item:hover .sommaire-item-page {
    color: #fff;
}

/* Sommaire style: elegant */
.catalog-block-sommaire--elegant .catalog-sommaire-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.catalog-block-sommaire--elegant .sommaire-item-title {
    font-weight: 300;
    letter-spacing: 0.08em;
}

/* Sommaire style: lined (partial bottom border) */
.catalog-block-sommaire--lined .catalog-sommaire-item {
    position: relative;
    border-bottom: none;
    padding: 12px 0;
}

.catalog-block-sommaire--lined .catalog-sommaire-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--sommaire-line-width, 30%);
    height: 1px;
    background: #000;
}

.catalog-block-sommaire--lined .sommaire-item-title {
    font-weight: 300;
    letter-spacing: 0.08em;
}


/* ============================================
   18. TOOLBAR - Fixed top navigation bar
   ============================================ */

.catalog-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 45px;
}

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

.catalog-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: #18494e;
    text-decoration: none;
    border: 1px solid #18494e;
    border-radius: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.catalog-nav-link:hover {
    background: #18494e;
    color: white;
    text-decoration: none;
}

.catalog-nav-link:active {
    transform: scale(0.98);
}

.catalog-nav-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.catalog-sommaire-btn {
    border: 1px solid #18494e;
}


/* ============================================
   19. NAVIGATION - PREV/NEXT BUTTONS
   ============================================ */

.catalog-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d5f5d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 95, 93, 0.2);
}

.catalog-nav-btn:hover {
    background: #1f4442;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(45, 95, 93, 0.35);
}

.catalog-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.catalog-nav-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
}

.catalog-nav-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.2);
}

.catalog-nav-prev {
    left: 20px;
}

.catalog-nav-next {
    right: 20px;
}


/* ============================================
   20. PAGE INDICATOR
   ============================================ */

.catalog-page-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgb(246 243 234 / 53%);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.catalog-page-indicator .current-page {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #2d5f5d;
    font-size: 1em;
    white-space: nowrap;
}


/* ============================================
   21. HAMBURGER MENU BUTTON (MOBILE)
   ============================================ */

.catalog-mobile-burger {
    width: 36px;
    height: 36px;
    padding: 7px;
    background: transparent;
    border: 1px solid #18494e;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.catalog-mobile-burger .burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #18494e;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.catalog-mobile-burger.burger-hidden {
    display: none !important;
}

.catalog-mobile-burger:hover {
    background: #18494e;
}

.catalog-mobile-burger:hover .burger-line {
    background: white;
}

/* Back link inside mobile menu modal */
.catalog-menu-back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #18494e;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #18494e;
    transition: all 0.3s ease;
}

.catalog-menu-back-link:hover {
    background: #18494e;
    color: white;
    text-decoration: none;
}

.catalog-menu-back-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile: hamburger & sommaire visibility handled by .mobile-only / .desktop-only */

/* Desktop: hide the back link in modal (already in top-nav) */
@media (min-width: 769px) {
    .catalog-menu-back-link {
        display: none;
    }
}


/* ============================================
   22. SEARCH BUTTON & BAR
   ============================================ */

.catalog-search-btn {
    /* Positioned by .catalog-toolbar flexbox */
}

.catalog-search-btn form {
    margin: 0;
    padding: 0;
}

.catalog-search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-search-btn .icon-research {
    width: 20px;
    height: 20px;
}

/* Search bar - full width overlay */
.catalog-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.catalog-search-bar .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.catalog-search-bar .search-widget__input-right {
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

.catalog-search-bar .search-widget__btn {
    background: none;
    border: 1px solid #ccc;
    border-left: 0;
    padding: 8px 15px;
}


/* ============================================
   23. LANGUAGE SELECTOR
   ============================================ */

.catalog-language-selector {
    /* Positioned by .catalog-toolbar flexbox */
    position: relative;
    z-index: 100;
}

.catalog-language-selector .language-selector-wrapper {
    display: block !important;
    left: 0 !important;
}

/* Le partial du module remplace celui de ps_languageselector (URL reecrites) :
   ses styles inline ne sont donc plus charges, on les reprend ici.
   L'ouverture/fermeture est pilotee par l'attribut [hidden] depuis custom.js du theme :
   ne pas forcer display:none, le dropdown resterait invisible une fois ouvert. */
.catalog-language-selector .lang-select {
    position: relative;
}

.catalog-language-selector .lang-select__toggle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: #212529;
    outline: none;
}

.catalog-language-selector .lang-select__toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid #212529;
    margin-left: 2px;
    transition: transform .2s;
}

.catalog-language-selector .lang-select__toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.catalog-language-selector .lang-select__list {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
    margin-top: .4rem;
    padding: .35rem 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    min-width: 120px;
    list-style: none;
}

.catalog-language-selector .lang-select__list[hidden] {
    display: none;
}

.catalog-language-selector .lang-select__option {
    display: block;
    padding: .4rem .75rem;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.catalog-language-selector .lang-select__option:hover {
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
}

.catalog-language-selector .lang-select__option.is-active {
    font-weight: 600;
}


/* ============================================
   24. CART ICON & NOTIFICATIONS
   ============================================ */

.catalog-cart-icon {
    /* Positioned by .catalog-toolbar flexbox */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.catalog-cart-icon-image {
    width: 30px;
    height: 30px;
    display: block;
}

.catalog-cart-text {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    color: #18494e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badge */
.catalog-cart-badge {
    position: absolute;
    right: -4px;
    top: 17px;
    background: #18494e;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    color: #fff !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Montserrat", sans-serif;
}

.catalog-cart-badge-updated {
    animation: cartBadgePulse 0.3s ease;
}

@keyframes cartBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Notifications container */
.catalog-cart-notifications-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.catalog-cart-notification {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.catalog-cart-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* ============================================
   25. CART MODAL (Slide-in from right)
   ============================================ */

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

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

/* Cart modal panel */
.catalog-cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 19000;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.catalog-cart-modal.active {
    right: 0;
}

/* Cart header */
.catalog-cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.catalog-cart-modal-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.18em;
    font-weight: 600;
    margin: 0;
    color: #2d5f5d;
}

.catalog-cart-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s ease;
}

.catalog-cart-modal-close:hover {
    color: #2d5f5d;
}

/* Cart products area */
.catalog-cart-modal-products {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Loading state */
.catalog-cart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.catalog-cart-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d5f5d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.catalog-cart-loading p {
    font-family: "Montserrat", sans-serif;
    color: #666;
    margin: 0;
}

/* Cart items list */
.catalog-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.catalog-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
}

.catalog-cart-item-image {
    grid-column: 1;
    grid-row: 1 / 3;
}

.catalog-cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.catalog-cart-item-info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Item header: name + delete button */
.catalog-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.catalog-cart-item-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
    color: #333;
    flex: 1;
}

.catalog-cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #999;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.catalog-cart-item-remove:hover {
    color: #d9534f;
}

.catalog-cart-item-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalog-cart-item-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.catalog-cart-item-attribute {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8em;
    color: #666;
    background: white;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Quantity controls row */
.catalog-cart-item-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.catalog-cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
    font-family: "Montserrat", sans-serif;
}

.catalog-cart-qty-down {
    border-radius: 3px 0 0 3px;
}

.catalog-cart-qty-up {
    border-radius: 0 3px 3px 0;
}

.catalog-cart-qty-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.catalog-cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalog-cart-qty-value {
    min-width: 36px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: #2d5f5d;
    background: #fafafa;
}

.catalog-cart-item-price {
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #2d5f5d;
}

/* Cart summary */
.catalog-cart-summary {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
    color: #666;
}

.catalog-cart-summary-total {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d5f5d;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.catalog-cart-summary-value {
    font-weight: 600;
    color: #2d5f5d;
}

/* Empty cart */
.catalog-cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.catalog-cart-empty p {
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    color: #999;
    margin: 0;
}

/* Cart error */
.catalog-cart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.catalog-cart-error p {
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    color: #d9534f;
    margin: 0;
}

/* Cart footer (sticky) */
.catalog-cart-modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.catalog-cart-modal-button {
    display: block;
    width: 100%;
    background: #2d5f5d;
    color: white;
    text-align: center;
    padding: 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.catalog-cart-modal-button:hover {
    background: #1f4746;
    text-decoration: none;
    color: white;
}


/* ============================================
   26. PRODUCT MODAL
   ============================================ */

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-modal-overlay.active {
    display: flex;
}

.product-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
    z-index: 10;
    transition: background 0.2s;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.product-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #ffffff;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modal-content {
    padding: 25px;
}

.product-modal-title {
    font-size: 1.5em;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #2c2c2c;
}

.product-modal-price {
    font-size: 1.3em;
    font-weight: 500;
    color: #8b7f73;
    margin-bottom: 15px;
}

.product-modal-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
    margin-top: 20px;
}

/* Colisage + actions wrapper */
.product-modal-colisage-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-modal-colisage-container {
    flex: 0 0 auto;
}

.product-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

/* Form modal catalog */
.form-modal-catalog {
    width: auto !important;
    margin: 0 !important;
}

/* Colisage wrapper in product modal */
.product-mp-colisage-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.product-mp-colisage-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0;
}

.product-mp-colisage-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background-color: #fff !important;
    cursor: pointer;
    max-width: 150px;
}

.product-modal-addtocart {
    flex: 1;
    padding: 12px 20px;
    background: #8b7f73;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.product-modal-addtocart:hover {
    background: #6d6259;
}

.product-modal-link {
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
    transition: background 0.3s;
}

.product-modal-link:hover {
    background: #e0e0e0;
}

/* Composition section */
.product-modal-composition {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.product-modal-composition-title {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.product-modal-composition-content {
    font-size: 0.85em;
    line-height: 1.5;
    color: #333;
}

.product-modal-composition-content p {
    margin: 0 0 10px 0;
}

.product-modal-composition-content ul,
.product-modal-composition-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

/* Responsive: stack vertically on mobile */
@media (max-width: 768px) {
    .product-modal-colisage-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .product-modal-colisage-container,
    .product-modal-actions {
        width: 100%;
    }
}


/* ============================================
   27. VARIANTS MODAL (Multi-products)
   ============================================ */

.multi-products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.multi-product-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.multi-product-item:hover {
    background: #f0f0f0;
}

.multi-product-image {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.multi-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.multi-product-info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.multi-product-title {
    font-size: 0.85em;
    font-weight: 500;
    margin: 0;
    color: #2c2c2c;
    font-family: "Montserrat", sans-serif;
    line-height: 1.3;
}

.multi-product-price {
    font-size: 0.95em;
    font-weight: 600;
    color: #2d5f5d;
    margin: 0;
}

.multi-product-form {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
}

.multi-product-form .catalog-add-button {
    padding: 5px 10px;
    font-size: 0.65em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Colisage in multi-products */
.multi-product-colisage-label {
    font-size: 0.75em;
    font-weight: 500;
    color: #2c2c2c;
    white-space: nowrap;
    flex-shrink: 0;
}

.multi-product-colisage-select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85em;
    background-color: #fff !important;
    cursor: pointer;
    min-width: 70px;
    max-width: 80px;
    flex-shrink: 0;
}

/* Variants loading spinner */
.variants-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.variants-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d5f5d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.variants-loading-text {
    font-size: 1em;
    color: #666;
    font-family: "Montserrat", sans-serif;
    margin: 0;
}

/* Responsive: multi-products */
@media (max-width: 768px) {
    .multi-product-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 8px;
    }

    .multi-product-image {
        width: 70px;
        height: 70px;
    }

    .multi-product-title {
        font-size: 0.75em;
    }

    .multi-product-price {
        font-size: 0.85em;
    }

    .multi-product-form {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}


/* ============================================
   28. SOMMAIRE MODAL (Slide-in from left)
   ============================================ */

.catalog-sommaire-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 ease-in-out, visibility 0.3s ease-in-out;
}

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

.catalog-sommaire-modal {
    position: fixed;
    top: 0;
    left: -370px;
    width: 370px;
    height: 100vh;
    background: white;
    z-index: 99999;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.catalog-sommaire-modal.active {
    left: 0;
}

/* Sommaire modal header */
.catalog-sommaire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.catalog-sommaire-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.18em;
    font-weight: 600;
    color: #18494e;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}

.catalog-sommaire-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #18494e;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-sommaire-close:hover {
    transform: scale(1.1);
}

.catalog-sommaire-close svg {
    width: 24px;
    height: 24px;
}

/* Sommaire modal content */
.catalog-sommaire-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10px;
}

.catalog-sommaire-modal > .catalog-sommaire-content > .catalog-sommaire-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Sommaire modal items */
.catalog-sommaire-modal .catalog-sommaire-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid #18494e;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    text-align: left;
}

.catalog-sommaire-modal .catalog-sommaire-item:hover {
    background: #18494e;
    color: white;
    transform: translateX(5px);
}

.catalog-sommaire-modal .sommaire-item-title {
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    color: #18494e;
}

.catalog-sommaire-modal .sommaire-item-page {
    font-size: 0.85em;
    font-weight: 400;
    color: inherit;
    opacity: 0.7;
}

.catalog-sommaire-modal .catalog-sommaire-item:hover .sommaire-item-title {
    color: white;
}

.catalog-sommaire-modal .catalog-sommaire-item:hover .sommaire-item-page {
    opacity: 1;
}

/* Sommaire modal responsive - full screen on mobile */
@media (max-width: 768px) {
    .catalog-sommaire-modal {
        width: 100%;
        left: -100%;
    }
}


/* ============================================
   29. RESPONSIVE - TABLET (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Toolbar height adjustment */
    .interactive-catalog-wrapper {
        padding-top: 44px;
    }

    .catalog-toolbar {
        height: 44px;
        padding: 0 10px;
    }

    /* Container: reduce padding on mobile to maximize page space */
    .catalog-container {
        padding: 5px;
        margin-bottom: 0;
    }

    /* Cart modal */
    .catalog-cart-modal {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    /* Toolbar: reduce icon sizes */
    .catalog-cart-icon-image {
        width: 24px;
        height: 24px;
    }

    .catalog-cart-text {
        display: none;
    }

    .catalog-cart-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .icon-research {
        width: 18px;
        height: 18px;
    }

    /* Hero content - smaller padding */
    .catalog-hero-content {
        padding: 20px;
    }

    .catalog-hero-title {
        font-size: 1.2em;
    }

    .catalog-hero-subtitle {
        font-size: 0.75em;
    }
}


/* ============================================
   30. RESPONSIVE - SMALL MOBILE (max-width: 578px)
   ============================================ */

@media (max-width: 578px) {
    /* Navigation — repositioned to bottom left/right of the page area */
    .catalog-nav-btn {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .catalog-nav-btn:hover {
        transform: scale(1.05);
    }

    .catalog-nav-btn:active {
        transform: scale(0.95);
    }

    .catalog-nav-btn:disabled:hover {
        transform: none;
    }

    .catalog-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .catalog-nav-prev {
        left: 15px;
    }

    .catalog-nav-next {
        right: 15px;
    }

    .catalog-page-indicator {
        bottom: 10px;
        padding: 8px 16px;
    }

    .catalog-page-indicator .current-page {
        font-size: 0.8em;
    }

    /* Toolbar: tighter spacing on small screens */
    .catalog-toolbar {
        padding: 0 8px;
        height: 44px;
    }

    .catalog-toolbar-right {
        gap: 8px;
    }

    .catalog-mobile-burger {
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    .catalog-mobile-burger .burger-line {
        width: 16px;
    }

    .catalog-cart-icon-image {
        width: 22px;
        height: 22px;
    }

    .icon-research {
        width: 16px;
        height: 16px;
    }

    /* Sommaire modal */
    .catalog-sommaire-header {
        padding: 12px 15px;
    }

    .catalog-sommaire-title {
        font-size: 1em;
    }

    .catalog-sommaire-content {
        padding: 15px;
    }

    .catalog-menu-back-link {
        padding: 12px 15px;
        margin-bottom: 15px;
        font-size: 0.75em;
    }

    .catalog-sommaire-modal .catalog-sommaire-item {
        padding: 10px 12px;
    }

    .catalog-sommaire-modal .sommaire-item-title {
        font-size: 0.75em;
    }

    .catalog-sommaire-modal .sommaire-item-page {
        font-size: 0.7em;
    }

    /* Product modal */
    .product-modal {
        width: 95%;
        max-height: 85vh;
    }

    .product-modal-close {
        top: -1px;
        right: -1px;
    }

    .product-modal-image {
        height: 180px;
    }

    .product-modal-content {
        padding: 15px;
    }

    .product-modal-title {
        font-size: 1.1em;
        margin: 0 0 8px 0;
    }

    .product-modal-price {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .product-modal-description {
        font-size: 0.85em;
        margin-top: 10px;
    }

    .product-modal-addtocart {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .product-modal-colisage-actions-wrapper {
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Loader */
    .catalog-loader-text {
        font-size: 0.85em;
    }
}


/* ============================================
   31. UTILITY CLASSES
   ============================================ */

.bold {
    font-weight: 700 !important;
}

.scale-normal {
    transform: scale(1) !important;
}


/* ============================================
   32. BLOCK: COLORED SQUARE
   ============================================ */

.catalog-block-colored-square {
    box-sizing: border-box;
}


/* ============================================
   33. BLOCK: SLIDER
   ============================================ */

.catalog-block-slider {
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.catalog-slider-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.catalog-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.catalog-slider-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-slider-product {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* padding: 10px; */
    box-sizing: border-box;
}

.catalog-slider-product-image {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-slider-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.catalog-slider-product-name {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

/* Slider arrows */
.catalog-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: #333;
}

.catalog-slider-arrow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.catalog-slider-prev {
    left: 10px;
}

.catalog-slider-next {
    right: 10px;
}

/* Slider dots */
.catalog-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.catalog-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.catalog-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Slider fade transition */
.catalog-slider-container.catalog-slider--fade .catalog-slider-track {
    position: relative;
    transition: none;
    transform: none !important;
}

.catalog-slider-container.catalog-slider--fade .catalog-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.catalog-slider-container.catalog-slider--fade .catalog-slider-slide.active {
    opacity: 1;
    position: relative;
}

/* Slider PEEK mode – adjacent slides visible with semi-transparency */
.catalog-slider--peek .catalog-slider-container {
    overflow: visible;
}

.catalog-slider--peek .catalog-slider-track {
    gap: var(--slider-peek-gap, 25px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.catalog-slider--peek .catalog-slider-slide {
    min-width: auto; /* overridden by inline JS */
    opacity: 0.4;
    transform: scale(0.85);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
    border-radius: 8px;
    cursor: pointer;
}

.catalog-slider--peek .catalog-slider-slide.active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

/* .catalog-slider--peek .catalog-slider-slide img {
    border-radius: 8px;
} */

/* Slider add-to-cart button wrapper */
.catalog-slider-cart-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0 0 0;
}

.catalog-slider-cart-btn {
    /* Inherits .catalog-add-button base styles */
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
}

.catalog-slider-cart-btn:hover {
    transform: translateY(-1px);
}


/* ============================================
   34. ABSOLUTE POSITIONED BLOCKS (Canvas WYSIWYG)
   ============================================ */

.page-content--absolute {
    position: relative;
    overflow: hidden;
}

.page-content--absolute .catalog-block {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Hide prices for groups without show_prices permission ── */
.catalog-hide-prices .catalog-product-price:not(:has(.catalog-price-hidden-text)),
.catalog-hide-prices .catalog-cart-item-price,
.catalog-hide-prices .catalog-cart-summary-total {
    display: none !important;
}

.catalog-price-hidden-text {
    font-size: 12px;
    font-style: italic;
    color: #999;
    font-family: Montserrat, sans-serif;
}


/* ============================================
   30. MENU PERMANENT (SOMMAIRE ANCRÉ À GAUCHE)
   ============================================

   ============================================ */

@media (min-width: 992px) {
    .interactive-catalog-wrapper.sommaire-sticky {
        --sommaire-dock-width: 300px;
    }

    .sommaire-sticky .catalog-sommaire-modal.catalog-sommaire-docked {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sommaire-dock-width);
       
        
        height: 100vh;
        /* padding-top: 50px; */
        box-sizing: border-box;
        z-index: 999;
        transition: none;
        box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
        border-right: 1px solid #e8e6e0;
    }

    /* Le catalogue laisse la place au menu au lieu de passer dessous */
    .sommaire-sticky .catalog-container {
        padding-left: var(--sommaire-dock-width);
    }

    /* Éléments en position fixed : recentrés sur l'espace restant */
    .sommaire-sticky .catalog-nav-prev {
        left: calc(var(--sommaire-dock-width) + 20px);
    }

    .sommaire-sticky .catalog-page-indicator {
        left: calc(50% + (var(--sommaire-dock-width) / 2));
    }

    /* Le menu est déjà là : ses déclencheurs et son voile gris n'ont plus lieu
       d'être. Ils restent dans le HTML pour le mode coulissant sous 992px. */
    .sommaire-sticky .catalog-sommaire-btn,
    .sommaire-sticky .catalog-mobile-burger,
    .sommaire-sticky .catalog-sommaire-close,
    .sommaire-sticky .catalog-sommaire-overlay {
        display: none !important;
    }
}

/* ============================================
   MODE PREVIEW — PAGE D'INVITATION
   ============================================ */

/* Charte du catalogue : Montserrat leger, majuscules espacees, angles droits,
   pas de gras. Meme registre que .catalog-add-button. */
.catalog-preview-invitation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    text-align: center;
    font-family: "Montserrat", sans-serif;
}

.catalog-preview-invitation-inner {
    max-width: 380px;
    width: 100%;
}

.catalog-preview-logo {
    max-width: 170px;
    max-height: 100px;
    margin: 0 auto 28px;
    display: block;
}

.catalog-preview-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    color: inherit;
}

.catalog-preview-text {
    font-size: 0.78em;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.02em;
    margin: 0 0 26px;
    color: inherit;
    opacity: 0.8;
}

.catalog-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* stretch et non center : sinon chaque bouton prend la largeur de son texte */
    align-items: stretch;
}

.catalog-preview-btn {
    display: block;
    width: 100%;
    padding: 10px 26px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.62em;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.catalog-preview-btn:hover {
    opacity: 0.75;
    text-decoration: none;
}

.catalog-preview-btn--outline {
    background: transparent;
    border-style: solid;
}

/* ============================================
   DEMANDE D'ACCES (« Recevoir le catalogue »)
   ============================================ */

/* Rail horizontal : les panneaux sont cote a cote et le rail se decale d'une
   largeur entiere. Le contenu sort donc reellement du cadre, sans fondu et
   sans superposition. */
.catalog-slider {
    position: relative;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-slider-track {
    display: flex;
    /* Hauteur du rail figee sur le plus grand panneau : chaque panneau est
       centre dedans, la popup ne change donc pas de taille pendant le glissement. */
    align-items: center;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.catalog-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

/* Tant que le script n'a pas pris la main, seul le panneau d'origine existe :
   sans JS la popup est exactement celle d'avant, ni plus haute ni decalee. */
.catalog-slider:not(.is-ready) .catalog-slide:not(.is-active) {
    display: none;
}

/* Memes valeurs que .catalog-access-denied-btn-secondary, et meme gabarit que
   les boutons voisins (min-width:80%) */
.catalog-request-open {
    display: inline-block;
    min-width: 80%;
    padding: 12px 28px;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.catalog-request-open:hover {
    opacity: 0.8;
}

/* Tous les boutons de la popup a la meme largeur : en ligne, chacun se
   dimensionnait sur la longueur de son propre texte. */
.catalog-access-denied-buttons {
    flex-direction: column;
    align-items: stretch;
}

.catalog-access-denied-buttons > .catalog-access-denied-btn,
.catalog-access-denied-buttons > .catalog-request-open {
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* Popup mot de passe : le bouton s'aligne sur le bouton de validation (80%) */
#catalog-password-form .catalog-request-open {
    width: 80%;
    min-width: 0;
    text-align: center;
}

.catalog-request,
.catalog-request-done {
    font-family: "Montserrat", sans-serif;
}

.catalog-request-done {
    text-align: center;
}

.catalog-request-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.catalog-request-intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.85;
    text-align: center;
}

.catalog-request-field {
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.catalog-request-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

.catalog-request-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
    background: rgba(255, 255, 255, 0.85);
}

.catalog-request-field input:focus {
    outline: none;
    border-color: currentColor;
}

/* Piege a robots */
.catalog-request-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.catalog-request-error {
    display: none;
    margin: 6px 0 0;
    font-size: 12px;
    color: #c0392b;
    text-align: left;
}

.catalog-request-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.catalog-request-back {
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.7;
}

.catalog-request-back:hover {
    opacity: 1;
}

.catalog-request-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.catalog-request-submit:hover {
    opacity: 0.85;
}

.catalog-request-submit[disabled] {
    opacity: 0.55;
    cursor: default;
}

.catalog-request-check {
    margin-bottom: 12px;
}

/* Sur la page d'invitation du flipbook, tout suit la charte du catalogue :
   plus fin que dans les popups, angles droits, majuscules espacees. */
.catalog-preview-invitation .catalog-request-open {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 26px;
    border-width: 1px;
    border-radius: 0;
    font-size: 0.62em;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.catalog-preview-invitation .catalog-slider,
.catalog-preview-invitation .catalog-request-actions {
    width: 100%;
}

.catalog-preview-invitation .catalog-request-title {
    font-size: 1.05em;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    font-family: 'Montserrat';
    text-transform: uppercase;
}

.catalog-preview-invitation .catalog-request-intro {
    font-size: 0.78em;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.catalog-preview-invitation .catalog-request-label {
    font-size: 0.6em;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-preview-invitation .catalog-request-field input {
    padding: 9px 12px;
    border-radius: 0;
    border-color: rgba(0, 0, 0, 0.15);
    font-size: 0.8em;
    background: transparent;
}

.catalog-preview-invitation .catalog-request-submit {
    padding: 10px 22px;
    border-radius: 0;
    font-size: 0.62em;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.catalog-preview-invitation .catalog-request-back {
    padding: 10px 12px;
    font-size: 0.6em;
    font-weight: 400;
    letter-spacing: 0.12em;
}

.catalog-preview-invitation .catalog-request-check svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.4;
}
