/**
 * Featured Products 5 - Front CSS
 * Layout: grille 2x2 à gauche + grande image à droite
 */

.fp5-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    margin: 0 auto;
}

.fp5-grid-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.fp5-item {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.fp5-product-miniature {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fp5-product-link {
    display: block;
    flex: 1;
    text-decoration: none;
}

.fp5-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.fp5-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fp5-item:hover .fp5-product-image {
    transform: scale(1.05);
}

.fp5-vimeo-wrapper {
    position: relative;
    width: 123%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    left: -11%;
}

.fp5-vimeo-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fp5-featured {
    display: flex;
}

.fp5-item-featured {
    width: 100%;
    height: 100%;
}

.fp5-item-featured .fp5-media-container,
.fp5-item-featured .fp5-vimeo-wrapper {
    min-height: 100%;
    height: calc(600px + 0.5rem);
}

.fp5-product-info {
    position: absolute !important;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: #ffffff90;
    padding: 7px 10px !important;
    opacity: 0;
    display: flex;
    justify-content: space-between;
}

.fp5-product-miniature:hover .fp5-product-info {
    opacity: 1;
}

.fp5-product-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.fp5-product-title a {
    color: #000;
    text-decoration: none;
}

.fp5-product-title a:hover {
    color: #000;
}

.fp5-product-variant {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.fp5-product-price {
    font-size: 14px;
}

.fp5-product-price .price {
    color: #000;
    font-weight: 500;
}


.fp5-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.fp5-wishlist-btn,
.fp5-quickview-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    text-decoration: none;
	opacity:0;
}

.fp5-product-miniature:hover .fp5-quickview-btn {
	opacity:1;
}
.fp5-product-miniature:hover .fp5-wishlist-btn {
	opacity:1;
}

.fp5-wishlist-btn:hover {
    background: #fff;
    color: #e74c3c;
    transform: scale(1.1);
}

.fp5-quickview-btn:hover {
    background: #fff;
    color: #25b9d7;
    transform: scale(1.1);
}

.fp5-wishlist-btn:hover svg {
    fill: #e74c3c;
}
.fp5-wishlist-btn {
	display:none;
}

.shop-5 .fp5-vimeo-wrapper {
    position: relative;
    width: 148%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    left: -22%;
}

@media (max-width: 991px) {
    .fp5-container {
        grid-template-columns: 1fr 1fr;
    }
    .fp5-grid-left {
        grid-template-columns: 1fr;
    }
    .fp5-featured {
        grid-row: span 2;
    }
    .fp5-media-container, .fp5-vimeo-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .fp5-container {
        grid-template-columns: 1fr;
    }
    .fp5-grid-left {
        grid-template-columns: repeat(2, 1fr);
        order: 2;
    }
    .fp5-featured {
        order: 1;
    }
    .fp5-item-featured .fp5-media-container,
    .fp5-item-featured .fp5-vimeo-wrapper {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .fp5-grid-left {
        grid-template-columns: 1fr;
    }
    .fp5-media-container {
        min-height: 280px;
    }
}
