/* ===================================== */
/* ===== PRODUCT SINGLE ===== */
/* ===================================== */

.product-single {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--color-bg);
}

/* BREADCRUMB */
.breadcrumb {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* LAYOUT */
.product-single__container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
}

/* ===== GALLERY STRUCTURE ===== */

.gallery__wrapper {
    display: flex;
    gap: var(--space-sm);
}

/* THUMBS */
.gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.gallery__thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery__thumbs img:hover,
.gallery__thumbs img.active {
    border-color: var(--color-primary);
}

/* MAIN WRAPPER (IMAGE + FEATURES) */
.gallery__main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* IMAGE */
.gallery__main {
    position: relative;
}

.gallery__main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

/* ZOOM ICON */
.zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    padding: 8px;
    border-radius: 50%;
    font-size: 12px;
}

/* ===== FEATURES (BLOC PREMIUM) ===== */
.product-features {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-top: none;
    background: rgba(255,255,255,0.02);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* ===== INFOS ===== */

.product-single__infos h1 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

/* ===== FIX TRAIT SUBTITLE ===== */
.subtitle {
    display: inline-block;
}

.subtitle::after {
    margin: 6px auto 0;
}

/* TEXTE */
.product-single__infos p {
    margin-bottom: var(--space-md);
}

.rating {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.price-kg {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* LINE */
.product-single hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-md) 0;
}

/* ===== FORMAT ===== */
.format-list {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.format {
    border: 1px solid var(--color-border);
    padding: 12px 18px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    min-width: 110px;
}

.format strong {
    display: block;
    font-size: var(--fs-md);
    margin-bottom: 2px;
}

.format span {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.format:hover,
.format.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* BADGE */
.format small {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
}

/* ===== QUANTITY ===== */
.quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: var(--space-md) 0;
}

.quantity button {
    width: 30px;
    height: 30px;
    background: var(--color-bg-alt);
    color: #fff;
    border: 1px solid var(--color-border);
}

.quantity span {
    width: 30px;
    text-align: center;
}

/* ===== CTA ===== */
.actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-cart {
    background: var(--color-primary);
    color: #000;
    padding: 12px 28px;
    font-weight: bold;
    letter-spacing: 1px;
    width: auto;
}

.btn-like {
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== INFOS BOTTOM ===== */
.product-infos {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info i {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.info-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.info-text span {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-light);
}

/* ===================================== */
/* ===== RESPONSIVE ===== */
/* ===================================== */

/* TABLET */
/* ===================================== */
/* ===== TABLET ===== */
/* ===================================== */

@media (max-width: 1024px) {

    .product-single {
        padding: var(--space-xl);
    }

    .product-single__container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* GALLERY */
    .gallery__wrapper {
        flex-direction: column;
    }

    .gallery__thumbs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery__thumbs img {
        width: 60px;
        height: 60px;
    }

    .gallery__main img {
        height: 400px;
    }

    /* FEATURES */
    .product-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }

    /* INFOS */
    .product-single__infos {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    /* FORMAT */
    .format-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* CTA */
    .actions {
        justify-content: center;
    }

    /* INFOS BOTTOM */
    .product-infos {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
}


/* ===================================== */
/* ===== MOBILE ===== */
/* ===================================== */

@media (max-width: 768px) {

    /* ===== GLOBAL ===== */
    .product-single {
        padding: 15px;
        width: 100%;
    }

    .product-single__container {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* ===== GALLERY ===== */
    .product-single__gallery,
    .gallery__wrapper,
    .gallery__main-wrapper,
    .gallery__main {
        width: 100%;
    }

    .gallery__wrapper {
        display: flex;
        flex-direction: column;
    }

    /* ORDER MOBILE */
    .gallery__main {
        order: 1;
    }

    .gallery__thumbs {
        order: 2;
    }

    .product-features {
        order: 3;
    }

    /* IMAGE */
    .gallery__main img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        display: block;
        border: none;
    }

    /* THUMBS */
    .gallery__thumbs {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 5px 0;
    }

    .gallery__thumbs img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    /* FEATURES */
    .product-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }

    .feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .feature .icon {
        font-size: 20px;
    }

    /* ===== INFOS ===== */
    .product-single__infos {
        text-align: center;
    }

    .product-single__infos h1 {
        font-size: 22px;
    }

    /* ===== FORMAT ===== */
    .format-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .format {
        width: 100%;
        text-align: center;
    }

    /* ===== QUANTITY ===== */
    .quantity {
        justify-content: center;
    }

    /* ===== CTA ===== */
    .actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .btn-cart,
    .btn-like {
        width: 100%;
        max-width: 320px;
    }

    /* ===== INFOS BOTTOM ===== */
    .product-infos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
    }

    .info {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
        text-align: left;
    }

    .info i {
        width: 20px;
        height: 20px;
        color: var(--color-primary);
    }

    .info-text {
        font-size: 14px;
        line-height: 1.2;
    }

    .info-text span {
        display: block;
        font-size: 12px;
        color: var(--color-text-light);
    }
}


@media (max-width: 768px) {

    .product-infos {
        align-items: center;
    }

    .info {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 6px;
    }

    .info i {
        margin-bottom: 5px;
    }
}



