/* Shop Page Specific Styles — extrait de boutique/show.php */
.shop-header {
    background-color: #fff;
    padding-bottom: 2rem;
}

.shop-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 320px;
    min-height: 125px;
}

.banner-img {
    width: 100%;
    object-fit: contain;
}

.shop-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.shop-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -75px;
    z-index: 10;
}

.shop-logo-wrapper {
    width: 170px;
    height: 170px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.shop-logo-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
}

.shop-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.shop-details {
    margin-left: 25px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    flex-grow: 1;
}

.shop-header .shop-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-stats {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 500;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    position: relative;
    color: #ffc107;
    font-size: 1.1rem;
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: default;
}

.stars-container i {
    font-size: 0.95rem;
    color: #ffc107;
}

.rating-summary-text {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.rating-summary-text:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.rating-distribution-card {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: white;
    width: 280px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    border: 1px solid #eee;
    animation: fadeInScale 0.2s ease-out;
}

.rating-distribution-card.active {
    display: block;
}

.rating-distribution-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    transform: rotate(45deg);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
        transform-origin: top left;
    }
    to {
        opacity: 1;
        transform: scale(1);
        transform-origin: top left;
    }
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dist-label {
    min-width: 35px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.dist-bar-bg {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 10px;
}

.dist-count {
    min-width: 25px;
    text-align: right;
    font-size: 0.8rem;
    color: #999;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #555;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

.content-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .shop-info-container {
        flex-direction: column;
        align-items: center;
        margin-top: -60px;
        text-align: center;
    }

    .shop-details {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .shop-header .shop-name {
        justify-content: center;
        font-size: 1.8rem;
        color: var(--secondary);
    }

    .shop-rating {
        justify-content: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .social-links a {
        margin-right: 0;
    }

    .rating-distribution-card {
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        max-width: calc(100vw - 40px);
    }

    .rating-distribution-card::before {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
}
