/* Service Detail Page - Modern Design */

#service-detail {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
}

.service-detail-main {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Service Image */
.service-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    position: relative;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-container:hover img {
    transform: scale(1.05);
}

/* Service Info */
.service-info {
    height: 100%;
    display: flex;
    flex-direction: column;

}

.service-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 0.5em 1.2em;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #111827;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

.service-location-select {
    margin-bottom: 24px;
}

.service-location-select .form-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.service-location-select .form-select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.service-location-select .form-select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
    outline: none;
}

.service-pricing {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.service-pricing #displayPrice {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.service-pricing #actualPrice {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.price-note {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
}

.service-duration {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-duration i {
    color: #111827;
    font-size: 1.125rem;
}

.service-duration p {
    margin: 0;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.service-actions {
    margin-top: auto;
    padding-top: 8px;
}

.service-actions .d-flex {
    gap: 12px;
}

.add-to-cart-btn {
    flex: 1;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.add-to-cart-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.3);
    color: #ffffff;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.favorite-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    border-color: #e63946;
    background: #fef2f2;
}

.favorite-btn i {
    color: #6b7280;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.favorite-btn[aria-pressed="true"] {
    border-color: #e63946;
    background: #fef2f2;
}

.favorite-btn[aria-pressed="true"] i {
    color: #e63946;
}

/* Service Description */
.service-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 40px;
}

.service-description h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.service-description .description-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.service-description .description-content p {
    margin-bottom: 16px;
}

/* Sidebar */
.service-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-sidebar h4 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.list-group-item {
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.list-group-item a {
    text-decoration: none;
    color: #374151;
    display: block;
    width: 100%;
    font-weight: 500;
    transition: color 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #111827;
    transform: translateX(4px);
}

.list-group-item:hover a {
    color: #111827;
}

.list-group-item.active {
    background: #111827;
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

.list-group-item.active a {
    color: #ffffff;
    font-weight: 700;
}

/* Recommended Services */
.you-may-like {
    margin-top: 32px;
}

.you-may-like h4 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.recommended-service {
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.recommended-service:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #111827;
}

.recommended-service-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.recommended-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-service-info {
    flex: 1;
    padding-left: 16px;
}

.recommended-service-info h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recommended-service-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.btn-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #1f2937;
    text-decoration: underline;
}

/* Reviews/Comments Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    padding: 16px 24px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: #111827;
    border-bottom-color: #e5e7eb;
}

.nav-tabs .nav-link.active {
    color: #111827;
    border-bottom-color: #111827;
    background: transparent;
}

.tab-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 32px;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating input[type="radio"]:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Reviews compact list */
.reviews-list {
    gap: 20px;
    display: grid;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-stars .star {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-right: 2px;
}

.review-stars .star.filled {
    color: #fbbf24;
}

.review-comment {
    color: #374151;
    line-height: 1.7;
    font-size: 0.9375rem;
}

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

/* Comments UI */
.comments-list .comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.comments-list .comment-item:last-child {
    border-bottom: 0;
}

.comments-list .replies-list {
    border-left: 3px solid #e5e7eb;
    margin-left: 20px;
    padding-left: 20px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.avatar-initial {
    line-height: 1;
}

.comment-meta .comment-author,
.reply-meta .reply-author {
    font-weight: 700;
    color: #111827;
}

.comment-time,
.reply-time {
    color: #6b7280;
    font-size: 0.875rem;
}

.comment-text,
.reply-text {
    color: #374151;
    line-height: 1.7;
}

.comment-actions .btn-link {
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-actions .btn-link:hover {
    color: #1f2937;
    text-decoration: underline;
}

/* Form Controls */
.review-form textarea.form-control,
.comment-form textarea.form-control {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.9375rem;
}

.review-form textarea.form-control:focus,
.comment-form textarea.form-control:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1) !important;
    outline: none !important;
}

.review-form .btn,
.comment-form .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
}

/* Related Services */
.related-services {
    margin-top: 48px;
}

.related-services h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 32px;
}

/* Tamara Widget Styling */
.tamara-promo-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tamara-promo-container tamara-widget {
    display: block;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tamara-promo-container tamara-widget * {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
    .service-info {
        padding-left: 0;
        margin-top: 24px;
    }

    .service-detail-main {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    #service-detail {
        padding: 24px 0;
    }

    .service-detail-main {
        padding: 20px;
        border-radius: 16px;
    }

    .service-image-container {
        margin-bottom: 24px;
    }

    .service-info h3 {
        font-size: 1.5rem;
    }

    .service-pricing {
        padding: 16px;
    }

    .service-pricing #displayPrice {
        font-size: 2rem;
    }

    .service-description {
        padding: 24px;
        margin-top: 32px;
    }

    .service-sidebar {
        padding: 20px;
        margin-top: 32px;
    }

    .tab-content {
        padding: 24px;
    }

    .tamara-promo-container {
        padding: 16px;
        margin: 16px 0;
    }
}

/* Service Card Styles */
.service-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.service-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.service-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-details {
    background-color: #ffffff;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-name {
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #111827;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-name:hover {
    color: #000000;
    text-decoration: none;
}

.service-info {
    margin-bottom: 12px;
}

.service-info-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.service-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
}

.service-duration-badge i {
    color: #6b7280;
    font-size: 0.875rem;
}

.service-serial-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #45a7ca;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(69, 167, 202, 0.3);
}

.service-location-select {
    margin-bottom: 12px;
}

.service-location-select .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.service-location-select .form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.service-location-select .form-select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
    outline: none;
}

/* Service Card Footer - Price and Add to Cart Button */
.service-card-footer {
    margin-top: auto;
    padding-top: 12px;
    gap: 12px;
    align-items: center;
}

.service-price-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.service-price-display .vat-text {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.2;
}

.price-display-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.current-price-green {
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.old-price-inline {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.service-card .btn-add-to-cart {
    background: #45a7ca;
    color: #ffffff;
    border: none;

    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(69, 167, 202, 0.3);
    width: auto;
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.service-card .btn-add-to-cart:hover {
    background: #3a8fb3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 167, 202, 0.4);
    color: #ffffff;
}

.service-card .btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(69, 167, 202, 0.3);
}

.service-card .btn-add-to-cart:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(69, 167, 202, 0.3), 0 0 0 4px rgba(69, 167, 202, 0.15);
}

/* Responsive for Service Card */
@media (max-width: 768px) {
    .service-image {
        height: 180px;
    }

    .service-details {
        padding: 14px;
        gap: 10px;
    }

    .service-name {
        font-size: 0.9375rem;
        min-height: 2.5em;
    }

    .service-duration-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .service-serial-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .service-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .service-price-display {
        width: 100%;
        align-items: flex-start;
    }

    .current-price-green {
        font-size: 1.125rem;
    }

    .old-price-inline {
        font-size: 0.8125rem;
    }

    .service-card .btn-add-to-cart {
        width: 100%;
        min-width: auto;
        padding: 10px 18px;
        font-size: 0.8125rem;
    }
}