/* ===== FICHE PRODUIT 247 ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.fp247-wrapper {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #000000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ===== MAIN TWO-COLUMN LAYOUT ===== */
.fp247-main {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

/* ===== LEFT COLUMN ===== */
.fp247-col-left {
    width: 45%;
    flex-shrink: 0;
}

.fp247-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.fp247-img-cell {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: block;
}

.fp247-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RIGHT COLUMN ===== */
.fp247-col-right {
    width: 55%;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category */
.fp247-category {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: block;
}

/* H1 Title */
.fp247-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Labels */
.fp247-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    display: block;
    margin-bottom: 8px;
}

/* Description */
.fp247-description {
    margin-bottom: 12px;
}

.fp247-description p {
    font-size: 13px;
    line-height: 1.65;
    color: #333333;
    margin: 0 0 10px 0;
}

.fp247-description p:last-child {
    margin-bottom: 0;
}

/* Tagline */
.fp247-tagline {
    font-size: 12px;
    font-style: italic;
    color: #888888;
    margin: 8px 0 16px 0;
}

/* Separator */
.fp247-separator {
    border: none;
    border-top: 1px solid #CCCCCC;
    margin: 0 0 20px 0;
}

/* Color Swatches */
.fp247-colors {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.fp247-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: border-color 0.15s ease;
    flex-shrink: 0;
}

.fp247-color-swatch:hover {
    border-color: #000000;
}

.fp247-color-swatch.fp247-color-active {
    border-color: #000000;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #000000;
}

.fp247-color-red  { background-color: #E05252; }
.fp247-color-blue { background-color: #4A90D9; }
.fp247-color-green { background-color: #5CB85C; }

/* Size Buttons */
.fp247-sizes {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.fp247-size-btn {
    flex: 1;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    margin-right: -1px;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
}

.fp247-size-btn:last-child {
    margin-right: 0;
}

.fp247-size-btn:hover {
    background: #000000;
    color: #FFFFFF;
    z-index: 1;
    position: relative;
}

.fp247-size-btn.fp247-size-active {
    background: #000000;
    color: #FFFFFF;
    z-index: 1;
    position: relative;
}

/* CTA Button */
.fp247-cta {
    width: 100%;
    padding: 16px 0;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.15s ease;
    outline: none;
}

.fp247-cta:hover {
    background: #222222;
}

/* ===== RELATED PRODUCTS ===== */
.fp247-related {
    padding: 48px 0 32px 0;
    border-top: 1px solid #CCCCCC;
    margin-top: 48px;
}

.fp247-related-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 32px 0;
    text-align: left;
    letter-spacing: -0.01em;
}

.fp247-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fp247-card {
    background: #FFFFFF;
    border: none;
    padding: 0;
}

.fp247-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 12px;
}

.fp247-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp247-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    text-align: left;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .fp247-main {
        flex-direction: column;
    }
    .fp247-col-left,
    .fp247-col-right {
        width: 100%;
    }
    .fp247-col-right {
        padding: 24px 16px;
    }
    .fp247-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fp247-title {
        font-size: 26px;
    }
    .fp247-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .fp247-sizes {
        flex-wrap: wrap;
    }
    .fp247-size-btn {
        flex: 0 0 calc(33.33% + 1px);
    }
}
