@import url('/assets/css/carousel.css');

/* Styles for produitsCat page */
.produitsCat-page {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.produitsCat-header {
    margin-bottom: 18px;
}

.produitsCat-header .produitsCat-desc {
    color: #6c757d;
    margin: 0 0 12px;
}

.epilation-item {
    display: grid;
    gap: 10px 30px;
    grid-template-columns: 1fr minmax(250px, 430px);

    grid-template-rows: auto 1fr;

    grid-template-areas:
        "visuel titre"
        "visuel tableau";
    align-items: start;
    margin-bottom: 3em;
    background: #ffffff8a;
}

.epi-title {
    grid-area: titre;
    margin-top: 0;
    margin-bottom: 0;
}

.epi-left {
    grid-area: visuel;
    margin-top: 0;
    align-self: start;
    min-width: 250px;
}

.epi-right {
    grid-area: tableau;
    width: 100%;
    align-self: start;
}

.epi-right,
.epi-title {
    justify-self: start;
}


/* Zone média (carrousel) */
.epi-left .ISICarousel,
.epi-noimg {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
}

.epi-left img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.epi-noimg {
    width: 100%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
}

.epi-desc {
    margin: 12px 0 0;
    color: #6c757d;
    line-height: 1.35;
}

.epi-table-wrap {
    background: transparent;
}

.epi-variants {
    width: 100%;
    border-collapse: collapse;
}

.epi-variants tbody td:first-child {
    padding: 12px 20px;
    hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
    /* Sécurité si la césure automatique échoue */
}

.epi-variants tbody td {
    padding: 12px 10px;
}

/* Alternating row colors as requested */
.epi-variants tbody tr:nth-child(odd) {
    background-color: #eef3e6;
    color: #333;
}

.epi-variants tbody tr:nth-child(odd) td {
    color: #333;
}

.epi-variants a {
    color: #bddd9c;
}

.epi-variants td.epi-variant-actions {
    width: 1%;
    white-space: nowrap;
}

.epi-variants .epi-variant-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #bddd9c;
}

.epi-variants button.epi-variant-action {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.epi-variants .epi-variant-action i {
    color: inherit;
}

.epi-variants tbody tr:nth-child(even) {
    background-color: #7EC32F;
    color: #fff;
}

.epi-variants tbody tr:nth-child(even) td {
    color: #fff;
}

.epi-variants td.right {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    margin: 0 10px 0 10px;
}


@media (max-width: 1100px) {}

@media (max-width:768px) {

    .epilation-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .epi-left {
        width: 100%;
    }

    .epi-right {
        width: 100%;
    }

    .epi-left .ISICarousel,
    .epi-noimg {
        height: 200px;
    }

}

@media (max-width:480px) {

    .produitsCat-header {
        margin-bottom: 18px;
        padding: 0 15px;
    }

    .epilation-item {
        gap: 20px;
        margin-bottom: 40px;
        padding: 15px;
    }

    .epi-variants tbody td {
        font-size: 0.95em;
    }
}

@media (max-width: 360px) {
    .epilation-item {
        gap: 10px;
        margin-bottom: 40px;
        padding: 10px;
    }
}