.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(
        90deg,
        #fc0 var(--percent),
        #ccc var(--percent)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Product Meta Container */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

/* Left Side - Product Info */
.meta-left {
    flex: 1;
    min-width: 200px;
}

/* Right Side - Contact Links */
.shop-contact-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Base Contact Link Style */
.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Call Link - Blue */
.contact-link.call {
    background-color: #4285f4;
    color: white;
}

.contact-link.call:hover {
    background-color: #3367d6;
}

/* Email Link - Red */
.contact-link.email {
    background-color: #ea4335;
    color: white;
}

.contact-link.email:hover {
    background-color: #d33426;
}

/* WhatsApp Link - Green */
.contact-link.whatsapp {
    background-color: #25d366;
    color: white;
}

.contact-link.whatsapp:hover {
    background-color: #1da851;
}

/* Icons */
.contact-link i {
    font-size: 14px;
}

.mr-1 {
    margin-right: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-meta {
        flex-direction: column;
    }

    .shop-contact-links {
        justify-content: flex-start;
        width: 100%;
    }

    .contact-link {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Shop Info Card Styling */
.panel {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.panel-heading {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

.panel-body {
    padding: 15px;
}

.star-rating {
    display: flex;
    align-items: center;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 0;
    position: relative;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(
        90deg,
        #ffc107 var(--percent),
        #ddd var(--percent)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}

.followers-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.followers-badge {
    font-size: 1.25rem;
    padding: 8px 12px;
    border-radius: 20px;
    min-width: 60px;
    display: inline-block;
    transition: all 0.3s ease;
}

.followers-badge.bg-success {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.followers-badge.bg-secondary {
    background: linear-gradient(135deg, #b0b5ba, #adb3b9);
}

.followers-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(
        90deg,
        #fc0 var(--percent),
        #ccc var(--percent)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star-rating.small .stars {
    font-size: 0.8rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-input {
    max-width: 60px;
    text-align: center;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 1.5rem;
    cursor: pointer;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.thumbnail {
    transition: transform 0.2s, border-color 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #0d6efd !important;
}

.follow-shop {
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
}

.follow-shop .follow-content {
    transition: opacity 0.3s ease;
}

.follow-shop.loading .follow-content {
    opacity: 0;
}

.follow-shop.loading .spinner-border {
    display: inline-block !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.follow-shop.following {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.add-to-wishlist.active {
    background-color: #dc3545;
    color: white;
}
.add-to-wishlist .fa {
    transition: all 0.3s ease;
}
.add-to-wishlist:hover .fa {
    transform: scale(1.1);
}

#map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leaflet-container {
    background: #f8f9fa;
}
.related-products-sidebar {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
}

.related-product-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.related-product-item:last-child {
    border-bottom: none;
}

.related-product-image {
    width: 120px;
    height: 80px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 12px;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    flex: 1;
}

.related-product-title {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 15px;
    font-weight: bold;
    color: #0066cc;
}

/* Scrollbar styling */
.related-products-sidebar::-webkit-scrollbar {
    width: 6px;
}

.related-products-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.related-products-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.related-products-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

.rating-input input:checked ~ label,
.rating-input input:hover ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.rating-input input:checked + label {
    color: #ffc107;
}

.review-text {
    white-space: pre-line;
    line-height: 1.6;
}

.avatar {
    font-weight: 600;
    font-weight: bold;
}

#reviewsContainer .review-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.related-products-sidebar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.rating-input label {
    cursor: pointer;
    padding: 0 2px;
}
.review-text {
    font-size: 0.9rem;
    line-height: 1.5;
}