/* Product Details Page Styles */

.product-title {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.price-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.product-specs {
    background-color: var(--bg-surface);
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

.add-to-cart-section {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

.img-thumbnail {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    background-color: var(--bg-surface);
    border-color: var(--border-color);
}

.img-thumbnail:hover {
    opacity: 0.7;
}

/* Reviews Section Styles */
.rating-breakdown {
    margin-top: 1rem;
}

.review-item {
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
}

.star-rating-display {
    display: inline-block;
}

.star-rating-display .fa-star {
    font-size: 0.9rem;
    margin-right: 0.1rem;
}

.star-rating-input .star-input {
    transition: all 0.2s ease;
    cursor: pointer;
}

.star-rating-input .star-input:hover {
    transform: scale(1.1);
}

.star-rating-input {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Responsive adjustments for reviews */
@media (max-width: 767px) {
    .rating-breakdown {
        margin-top: 0.5rem;
    }

    .review-item {
        padding: 0.75rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* Seller Information card */
.seller-info-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.seller-store-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.seller-store-btn:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4c2a8a 100%);
    border: none;
    color: #fff;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5a32a3 0%, #6f42c1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.seller-name {
    font-size: 1.1rem;
    color: #212529;
}

.seller-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.seller-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.seller-progress {
    border-radius: 4px;
    background-color: #e9ecef;
}

.seller-reviews .seller-stat-label {
    font-size: 0.85rem;
}

.seller-rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

.seller-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.seller-star {
    color: #dee2e6;
    font-size: 1rem;
}

.seller-star.full {
    color: #ffc107;
}

.seller-star.partial {
    position: relative;
    display: inline-block;
}

.seller-star.partial .star-bg {
    color: #dee2e6;
}

.seller-star.partial .star-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #ffc107;
    white-space: nowrap;
}

.seller-star.partial .star-fill i {
    display: inline-block;
}

/* Delivery & Returns card */
.delivery-returns-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.delivery-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6f42c1;
    font-size: 1.1rem;
}

.delivery-block h6 {
    color: #212529;
    font-size: 1rem;
}

.delivery-link {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 500;
}

.delivery-link:hover {
    color: #5a32a3;
    text-decoration: underline;
}
