/* ===== SERVICE PAGE ===== */
.page-service { background: var(--bg); }

.service-page { padding: 20px 0 48px; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { font-size: 0.55rem; opacity: 0.5; }
.breadcrumbs span { color: var(--text-muted); }

/* Layout */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Top bar */
.service-top-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.fav-btn.active { color: var(--red); border-color: var(--red); }
.fav-btn.active i { font-weight: 900; }

/* Title */
.service-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 20px;
}

/* Seller card */
.seller-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.seller-avatar-link { position: relative; flex-shrink: 0; }
.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.seller-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--green);
    border: 2px solid white;
    border-radius: 50%;
}
.seller-info { flex: 1; min-width: 0; }
.seller-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.seller-presence {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.seller-presence:empty { display: none; }
.seller-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.seller-name:hover { color: var(--primary); }
.seller-level {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--orange);
    background: #FFF3E0;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.seller-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.seller-rating { font-weight: 600; color: var(--text); }
.seller-rating i { color: var(--orange); font-size: 0.72rem; }
.seller-rating small { color: var(--text-muted); font-weight: 400; }
.seller-stat i { color: var(--text-muted); margin-right: 3px; font-size: 0.72rem; }
.seller-contact { flex-shrink: 0; padding: 8px 16px; font-size: 0.82rem; }

/* Gallery */
.service-gallery { margin-bottom: 28px; }
.gallery-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.gallery-nav:hover { background: white; color: var(--primary); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    background: none;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Order card / packages */
.order-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.sticky-card {
    position: sticky;
    top: 80px;
}
.package-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.package-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.package-tab:hover { color: var(--primary); background: var(--primary-light); }
.package-tab.active {
    color: var(--primary);
    background: white;
    border-bottom-color: var(--primary);
}
.package-content { padding: 20px; }
.package-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.package-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}
.package-delivery {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.package-delivery i { color: var(--text-muted); }
.package-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}
.package-features {
    list-style: none;
    margin-bottom: 20px;
}
.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 5px 0;
}
.package-features li i { color: var(--green); font-size: 0.75rem; }
.btn-order { margin-bottom: 10px; padding: 13px; font-size: 0.92rem; }
.btn-contact { padding: 11px; font-size: 0.85rem; }

.safe-deal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--primary-light);
    border-top: 1px solid var(--border);
}
.safe-deal i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}
.safe-deal strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }
.safe-deal p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; }

/* Content tabs */
.content-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.content-tabs::-webkit-scrollbar { display: none; }
.content-tab {
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.content-tab:hover { color: var(--primary); }
.content-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-panel { display: none; margin-bottom: 36px; }
.tab-panel.active { display: block; }

/* Description */
.service-description {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.service-description h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
}
.service-description h3:first-child { margin-top: 0; }
.service-description p { margin-bottom: 12px; }
.service-description ul,
.service-description ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
.service-description li { margin-bottom: 6px; }
.service-description strong { color: var(--text); }

/* Included table */
.included-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.included-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.included-row:last-child { border-bottom: none; }
.included-header {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
    font-size: 0.78rem;
}
.included-row span:first-child { color: var(--text-secondary); }
.included-header span { color: var(--text); text-align: center; }
.included-header span:first-child { text-align: left; }
.included-row span:not(:first-child) { text-align: center; color: var(--text); }
.inc-yes { color: var(--green); }
.inc-no { color: var(--text-muted); opacity: 0.4; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.faq-question i {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews */
.reviews-section { margin-bottom: 36px; }
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.reviews-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}
.reviews-count {
    color: var(--text-muted);
    font-weight: 500;
}
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reviews-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}
.reviews-stars { color: var(--orange); font-size: 0.9rem; }
.reviews-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.review-filter {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.review-filter.active,
.review-filter:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.reviews-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.review-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.review-header strong { font-size: 0.88rem; display: block; }
.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.review-stars { color: var(--orange); }
.review-stars i { font-size: 0.65rem; }
.review-card > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}
.review-package {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}
.reviews-more { padding: 12px; }

/* Seller other services */
.seller-services { margin-bottom: 24px; }
.seller-services h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.seller-services .carousel-track .service-card { min-width: 240px; flex: 0 0 240px; }

/* Mobile order bar */
.mobile-order-bar {
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 150;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.mobile-order-from {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}
.mobile-order-price strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}
.btn-order-sticky {
    padding: 12px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.page-service .service-bottom-nav { bottom: 0; }
.page-service .mobile-order-bar { bottom: var(--bottom-nav-h); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
    .service-sidebar { display: none; }
}

@media (max-width: 768px) {
    .service-page { padding: 12px 0 100px; }

    .service-page-title { font-size: 1.15rem; }

    .seller-card { padding: 14px 16px; }
    .seller-avatar { width: 48px; height: 48px; }

    .gallery-nav { width: 34px; height: 34px; font-size: 0.8rem; }

    .included-row {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .service-description { padding: 18px 16px; }

    .mobile-order-bar { display: flex; }

    .page-service { padding-bottom: calc(var(--bottom-nav-h) + 56px); }
    .page-service .footer { margin-bottom: calc(var(--bottom-nav-h) + 56px); }

    .order-card.mobile-only { display: block; }
}

@media (min-width: 769px) {
    .order-card.mobile-only { display: none; }
    .mobile-order-bar { display: none !important; }
}
