/* ================================================================
   PAGE PRODUIT WOOCOMMERCE — Epitéa
   ================================================================ */

/* Layout principal */
#ep-product-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 32px 100px;
}

.ep-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    position: relative; /* ancrage pour gallery position:absolute en bas */
}

/* ── Galerie ────────────────────────────────── */

.ep-product-gallery {
    position: relative; /* géré en JS pour contourner overflow:hidden du thème */
    animation: epUp .7s cubic-bezier(.22,1,.36,1) both;
}

.ep-product-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAF9;
    border: 1px solid #E8E8E5;
    margin-bottom: 14px;
}

.ep-product-gallery-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

.ep-product-gallery-empty {
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #A8A29A;
}

.ep-product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ep-product-gallery-thumb {
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8E8E5;
    background: #FAFAF9;
    transition: border-color .2s;
}

/* Override styles bouton hérités du thème Elementor/hello-elementor */
#ep-product-page .ep-product-gallery-thumb,
#ep-product-page .ep-product-gallery-thumb:hover,
#ep-product-page .ep-product-gallery-thumb:focus,
#ep-product-page .ep-product-gallery-thumb:active {
    background-color: #FAFAF9;
    color: inherit;
    box-shadow: none;
    outline: none;
    text-shadow: none;
}

#ep-product-page .ep-product-gallery-thumb:hover {
    border-color: #C9A86A;
}

#ep-product-page .ep-product-gallery-thumb.is-active {
    border: 2px solid #AE8C56;
}

.ep-product-gallery-thumb img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
}

/* ── Infos produit ──────────────────────────── */

.ep-product-info {
    animation: epUp .7s cubic-bezier(.22,1,.36,1) both;
    animation-delay: .1s;
}

/* Badge catégorie */
.ep-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    background: #F6EEDB;
    border: 1px solid #E8E8E5;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #936F3E;
    margin-bottom: 20px;
}

.ep-product-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #AE8C56;
    flex-shrink: 0;
}

/* Titre */
.ep-product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.14;
    letter-spacing: -.5px;
    color: #161616;
    margin-bottom: 14px;
}

/* Description courte */
.ep-product-short-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 26px;
}

.ep-product-short-desc p {
    margin: 0;
}

/* Prix */
.ep-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.ep-product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #161616;
}

.ep-product-price .woocommerce-Price-amount {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ep-product-price-label {
    font-size: 13.5px;
    color: #8C8C8C;
}

.ep-product-price-note {
    font-size: 13px;
    color: #5A5A5A;
    margin-bottom: 30px;
}

/* ── Personnalisation ───────────────────────── */

.ep-product-personalization {
    background: #FAFAF9;
    border: 1px solid #E8E8E5;
    border-radius: 10px;
    padding: 26px;
    margin-bottom: 28px;
}

.ep-product-perso-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 16px;
}

.ep-product-perso-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.ep-product-perso-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ep-product-perso-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #333333;
}

.ep-product-perso-input {
    padding: 13px 14px;
    border: 1px solid #DDDAD2;
    border-radius: 4px;
    font-family: 'Mulish', sans-serif;
    font-size: 14.5px;
    background: #fff;
    color: #161616;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}

.ep-product-perso-input:focus {
    outline: none;
    border-color: #AE8C56;
    box-shadow: 0 0 0 3px rgba(174,140,86,.15);
}

.ep-product-perso-input::placeholder {
    color: #A8A29A;
}

/* Aperçu gravure */
.ep-product-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #161616;
    border-radius: 8px;
    padding: 16px 18px;
}

.ep-product-preview-qr {
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 0;
}

.ep-product-preview-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8C8C8C;
    margin-bottom: 4px;
}

.ep-product-preview-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #F5F5F5;
    font-style: italic;
    min-height: 1.4em;
}

/* ── Bouton commander ───────────────────────── */

.ep-product-btn {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    background: #161616;
    color: #ffffff;
    font-family: 'Mulish', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    padding: 18px 24px;
    border-radius: 2px;
    letter-spacing: .3px;
    margin-bottom: 14px;
    transition: background .2s;
    text-align: center;
}

.ep-product-btn:hover {
    background: #2e2e2e;
}

.ep-product-secure {
    text-align: center;
    font-size: 12px;
    color: #8C8C8C;
    font-weight: 600;
    margin-bottom: 32px;
}

/* ── Badges de confiance ────────────────────── */

.ep-product-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 26px;
    border-top: 1px solid #E8E8E5;
    margin-bottom: 30px;
}

.ep-product-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.ep-product-trust-item span {
    font-size: 12px;
    font-weight: 600;
    color: #444444;
}

/* ── Caractéristiques ───────────────────────── */

.ep-product-specs {
    border-top: 1px solid #E8E8E5;
    padding-top: 22px;
}

.ep-product-specs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 12px;
}

.ep-product-specs-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
    color: #5A5A5A;
}

.ep-product-specs-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.ep-product-specs-val {
    color: #161616;
    font-weight: 600;
    text-align: right;
}

/* ── Responsive ─────────────────────────────── */

@media ( max-width: 900px ) {
    #ep-product-page {
        padding: 32px 20px 60px;
    }
    .ep-product-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .ep-product-gallery {
        position: static;
    }
    .ep-product-title {
        font-size: 28px;
    }
    .ep-product-perso-fields {
        grid-template-columns: 1fr;
    }
    .ep-product-trust {
        gap: 12px;
    }
}

@media ( max-width: 480px ) {
    .ep-product-gallery-main img {
        height: 280px;
    }
    .ep-product-price {
        font-size: 26px;
    }
    .ep-product-trust {
        grid-template-columns: 1fr;
    }
}
