/* ========================================
   LEEVONS SINGLE PRODUCT - CROQUIS STYLE
   ======================================== */

/* ========================================
   KILL TWENTY TWENTY-FIVE
   ======================================== */
html, body {
    background-color: #fff !important;
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.wp-site-blocks,
.wp-block-template-part,
.wp-block-group,
.has-global-padding,
.is-layout-constrained,
.is-layout-flow {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

header.wp-block-template-part,
footer.wp-block-template-part,
body > .wp-site-blocks > header,
body > .wp-site-blocks > footer {
    display: none !important;
}

.woocommerce-breadcrumb,
.woocommerce-notices-wrapper,
.related.products,
.upsells.products,
.woocommerce-tabs,
.woocommerce-product-gallery,
.summary.entry-summary,
.woocommerce-Reviews,
.wp-block-woocommerce-breadcrumbs,
.wp-block-woocommerce-product-image-gallery,
.wp-block-woocommerce-product-details,
.wp-block-woocommerce-related-products,
.wp-block-woocommerce-product-reviews {
    display: none !important;
}

.wp-site-blocks > *,
.entry-content,
main, article,
.product, .type-product, div.product {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    color: #000 !important;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========================================
   GLOBAL
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}


/* ========================================
   MENU
   ======================================== */
.leevons-catalog-menu {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 40px 15px 40px;
}

.leevons-catalog-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.leevons-catalog-menu a {
    color: #000 !important;
    text-decoration: none !important;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.leevons-catalog-menu a:hover {
    opacity: 1;
}

.leevons-catalog-menu a.active {
    opacity: 1;
    font-weight: 600;
}

.leevons-menu-line {
    max-width: 820px;
    margin: 0 auto;
    height: 1.5px;
    background: #000;
}

/* ========================================
   CONTAINER
   ======================================== */
.leevons-single-wrap {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 40px 60px 40px !important;
    background: transparent !important;
}

body.leevons-single-product {
    background-color: #e8e4e0 !important;
    color: #000 !important;
    min-height: 100vh;
}

/* Pattern 1 — petits points serrés */
body.leevons-single-product.bg-pattern-1 {
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 6px, transparent 6px) !important;
    background-size: 30px 30px !important;
}

/* Pattern 2 — points moyens */
body.leevons-single-product.bg-pattern-2 {
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 9px, transparent 9px) !important;
    background-size: 42px 42px !important;
}

/* Pattern 3 — grands points espacés */
body.leevons-single-product.bg-pattern-3 {
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 12px, transparent 12px) !important;
    background-size: 55px 55px !important;
}

/* Pattern 4 — tirets */
body.leevons-single-product.bg-pattern-4 {
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='20' x2='100%25' y2='20' stroke='rgba(0,0,0,0.08)' stroke-width='4' stroke-dasharray='15,20'/%3E%3C/svg%3E") !important;
    background-repeat: repeat-y !important;
    background-size: 100% 40px !important;
}

/* ========================================
   HEADER
   ======================================== */
.leevons-product-header {
    padding: 30px 0 0 0;
    margin-bottom: 25px;
}

h1.leevons-product-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    margin: 0 0 10px 0 !important;
    color: #000 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

h1.leevons-product-title::before,
h1.leevons-product-title::after {
    display: none !important;
    content: none !important;
}

.leevons-product-icon {
    font-size: 22px;
    margin-right: 10px;
    font-weight: 400;
    opacity: 0.8;
}

.leevons-product-ref {
    font-weight: 700;
}

.leevons-product-ref-separator {
    margin: 0 10px;
    font-weight: 400;
    opacity: 0.5;
}

.leevons-product-name-text {
    font-weight: 400;
    letter-spacing: 3px;
}

.leevons-product-meta {
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 300;
    color: #000 !important;
    margin-bottom: 20px;
    opacity: 0.65;
}

/* ========================================
   SPECS — MAJUSCULE
   ======================================== */
.leevons-product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    padding: 0;
    border: none !important;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.spec-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000 !important;
    min-width: 55px;
    flex-shrink: 0;
}

.spec-label::after {
    display: none !important;
    content: none !important;
}

.spec-value {
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 300;
    color: #000 !important;
    line-height: 1.6;
    text-transform: uppercase;

    /* Retour à la ligne propre — jamais de coupure en milieu de mot */
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: none;

    /* Prend tout l'espace restant sur mobile */
    flex: 1;
    min-width: 0;
}

.spec-value-2 {
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 300;
    color: #000 !important;
    line-height: 1.6;

    /* Même traitement responsive */
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: none;
    flex: 1;
    min-width: 0;
}

.spec-nowrap {
    display: inline-block;
    white-space: nowrap;
}

/* Mobile : label légèrement plus petit pour laisser de la place au texte */
@media (max-width: 480px) {
    .spec-label {
        font-size: 12px;
        min-width: 48px;
        letter-spacing: 1.5px;
    }

    .spec-value,
    .spec-value-2 {
        font-size: 12px;
    }
}

/* ========================================
   ANGLE LABEL + LINE
   ======================================== */
.leevons-angle-header {
    margin-bottom: 0;
}

.leevons-angle-text {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    color: #000 !important;
    display: inline-block;
    padding-bottom: 4px;
}

.leevons-angle-header .leevons-angle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #000;
}

/* ========================================
   IMAGE PRINCIPALE — 800x800 FORCÉ
   ======================================== */
.leevons-main-image-block {
    margin-bottom: 8px;
}

.leevons-main-image {
    background: #e8e6e1 !important;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.leevons-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.leevons-main-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e8e6e1 !important;
}

/* ========================================
   DOTS GRID OVERLAY
   ======================================== */



.leevons-main-image-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    color: #000 !important;
    opacity: 0.25;
    padding: 6px 0 0 0;
    transition: opacity 0.3s ease;
}

.leevons-main-image-label.is-active {
    opacity: 0.5;
}

/* ========================================
   6 ANGLES — 800x800 FORCÉ
   ======================================== */
.leevons-angles-section {
    margin-top: 20px;
}

.leevons-angles-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
}

.leevons-angle-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.leevons-angle-item-header {
    margin-bottom: 4px;
}

.leevons-angle-item-text {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: #000 !important;
    display: inline-block;
    padding-bottom: 3px;
}

.leevons-angle-item-header .leevons-angle-item-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #000;
}

.leevons-angle-item-img {
    background: #f0eeea !important;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    transition: opacity 0.3s ease;
}

.leevons-angle-item:hover .leevons-angle-item-img {
    opacity: 0.7;
}

.leevons-angle-item.is-active .leevons-angle-item-img {
    outline: 2px solid #000;
    outline-offset: -2px;
}

.leevons-angle-item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leevons-angle-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0eeea !important;
}

/* Barre finale */
.leevons-bottom-line {
    width: 100%;
    height: 1.5px;
    background: #000;
    margin-top: 20px;
}

/* ========================================
   DESCRIPTION
   ======================================== */
.leevons-single-description {
    margin-top: 25px;
    font-size: 12px;
    line-height: 1.9;
    opacity: 0.4;
    font-weight: 300;
    letter-spacing: 0.3px;
    max-width: 600px;
    color: #000 !important;
}

/* ========================================
   PREVIEW BANNER
   ======================================== */
.leevons-preview-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff6b00, #ff9500) !important;
    color: white !important;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.leevons-preview-banner .dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .leevons-single-wrap {
        padding: 0 20px 40px 20px !important;
    }

    .leevons-catalog-menu {
        padding: 20px 20px 12px 20px;
    }

    .leevons-catalog-menu ul {
        gap: 20px;
    }

    .leevons-catalog-menu a {
        font-size: 11px !important;
        letter-spacing: 2px;
    }

    h1.leevons-product-title {
        font-size: 20px !important;
    }

    .leevons-product-meta {
        font-size: 13px;
    }

    .spec-label,
    .spec-value {
        font-size: 12px;
    }

    /* Toujours 3 colonnes = 2 lignes de 3 */
    .leevons-angles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .leevons-angle-item-text {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .leevons-menu-line {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    h1.leevons-product-title {
        font-size: 16px !important;
    }

    .leevons-product-icon {
        font-size: 16px;
        margin-right: 6px;
    }

    .leevons-catalog-menu {
        padding: 15px 15px 10px 15px;
    }

    .leevons-menu-line {
        margin: 0 15px;
    }

    /* 3 colonnes sur toute taille mobile = toujours 2 lignes de 3 */
    .leevons-angles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    /* Labels encore plus petits pour les petits écrans */
    .leevons-angle-item-text {
        font-size: 6px;
        letter-spacing: 0.5px;
    }

    /* Réduction du header de l'angle pour gagner de la place */
    .leevons-angle-item-header {
        margin-bottom: 2px;
    }
}