/**
 * Hizmet detay (/hizmet/{slug}) — pazaryeri tarzı detay sayfası.
 *
 * Mobil (≤991px) ve uygulama kabuğu (html.ts-native-app, her genişlik): tam genişlik
 * galeri, beyaz bloklar, sekme çubuğunun üstünde sabit aksiyon çubuğu
 * (.hd-cta → --ts-tabbar-clearance).
 * Masaüstü (≥992px, uygulama dışı): solda galeri + içerik, sağda yapışkan satın alma kartı.
 *
 * Renkler design-system.css / tema köprüsü token'larından gelir.
 */

.hd-page {
    --hd-ink: var(--color-text, #0F172A);
    --hd-muted: var(--color-muted, #57534E);
    --hd-line: var(--color-border, #E7E5E4);
    --hd-bg: #F4F4F2;
    --hd-card: var(--color-surface, #FFFFFF);
    --hd-primary: var(--color-primary, #FFE800);
    --hd-primary-hover: var(--color-primary-hover, #F5C518);
    --hd-on-primary: var(--color-on-primary, #0F172A);
    --hd-deep: var(--color-primary-text, #78350F);
    --hd-tint: rgba(255, 232, 0, 0.14);
    --hd-ok: #15803D;
    --hd-radius: var(--radius-md, 12px);
    --hd-gutter: 16px;
    color: var(--hd-ink);
    background: var(--hd-bg);
    overflow-wrap: anywhere;
}

.hd-page *,
.hd-page *::before,
.hd-page *::after { box-sizing: border-box; }

.hd-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hd-top { display: none; }

/* ---------- Yerleşim (mobil) ---------- */

.hd-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

.hd-side,
.hd-buy,
.hd-main { display: contents; }

.hd-gallery { order: 1; }
.hd-summary { order: 2; }
.hd-tech { order: 3; }
.hd-feat { order: 5; }
.hd-options { order: 6; }
/* Zorunlu seçim (varyant) paket içeriğinden önce gelir. */
.hd-options.hd-options--first { order: 4; }
.hd-pkg-card { order: 7; }
.hd-legal-note--flow { order: 8; }
.hd-desc { order: 9; }
.hd-info { order: 10; }
.hd-reviews-card { order: 11; }
.hd-faq-card { order: 12; }
.hd-trust { order: 13; }

.hd-block {
    background: var(--hd-card);
    padding: 16px var(--hd-gutter);
    min-width: 0;
}

.hd-h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hd-ink);
}

/* ---------- Galeri ---------- */

.hd-gallery {
    position: relative;
    background: var(--hd-card);
    min-width: 0;
}

.hd-gallery__track {
    display: flex;
    aspect-ratio: 4 / 3;
    max-height: 62vh;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: #ECECE8;
    -webkit-overflow-scrolling: touch;
}
.hd-gallery__track::-webkit-scrollbar { display: none; }
.hd-gallery__track:focus-visible { outline: 3px solid var(--hd-primary-hover); outline-offset: -3px; }

.hd-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.hd-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-gallery__count {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.hd-gallery__nav { display: none; }
.hd-gallery__thumbs { display: none; }

/* ---------- Özet (başlık, puan, fiyat) ---------- */

.hd-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    margin: -12px 0 -6px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--hd-muted);
}
.hd-path a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hd-muted);
    font-weight: 500;
    text-decoration: none;
}
.hd-path a:hover, .hd-path a:focus-visible { color: var(--hd-deep); text-decoration: underline; }
.hd-path__sep { color: #A8A29E; }

.hd-title {
    margin: 0 0 8px;
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hd-ink);
}

.hd-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--hd-ink);
}
.hd-rating__star { display: inline-flex; color: #F59E0B; }
.hd-rating__count { color: var(--hd-muted); font-weight: 400; }

.hd-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.hd-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
}
.hd-price__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hd-ink);
    font-variant-numeric: tabular-nums;
}
.hd-price__value--text { font-size: 1.5rem; }
.hd-price__note {
    flex: 1 1 12rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--hd-muted);
}

/* ---------- Tamirci kartı ---------- */

.hd-tech { padding-top: 6px; padding-bottom: 6px; }

.hd-tech__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 6px 0;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.hd-tech__main:hover, .hd-tech__main:focus-visible { color: inherit; text-decoration: none; }
.hd-tech__main:focus-visible { outline: 3px solid var(--hd-primary-hover); outline-offset: 2px; border-radius: 10px; }

.hd-tech__avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #ECECE8;
    border: 1px solid var(--hd-line);
}
.hd-tech__copy { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.hd-tech__name {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 0.9688rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hd-ink);
}
.hd-tech__name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-tech__verified { display: inline-flex; flex: 0 0 auto; color: #2563EB; }
.hd-tech__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--hd-muted);
}
.hd-tech__loc, .hd-tech__rate { display: inline-flex; align-items: center; gap: 3px; }
.hd-tech__rate { color: var(--hd-ink); font-weight: 600; }
.hd-tech__rate svg { color: #F59E0B; width: 14px; height: 14px; }
.hd-tech__rate--new { color: #047857; }
.hd-tech__go { flex: 0 0 auto; display: inline-flex; color: #A8A29E; }

.hd-tech__badges {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hd-tech__badges li {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hd-tint);
    color: var(--hd-deep);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.hd-tech__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
}
.hd-tech__actions:empty { display: none; }
.hd-tech__report.ts-report-link { padding: 0; margin-left: auto; font-weight: 500; }

/* ---------- Bilgi / uyarı kutuları ---------- */

.hd-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: var(--hd-radius);
    background: #F5F5F4;
    color: var(--hd-ink);
}
.hd-notice__icon { flex: 0 0 auto; display: inline-flex; margin-top: 1px; color: var(--hd-muted); }
.hd-notice strong { display: block; font-size: 0.9063rem; line-height: 1.35; }
.hd-notice p { margin: 2px 0 0; font-size: 0.8438rem; line-height: 1.45; color: var(--hd-muted); }
.hd-notice--warn { background: #FFF7ED; }
.hd-notice--warn .hd-notice__icon { color: #C2410C; }
.hd-notice--warn p { color: #7C2D12; }
.hd-notice--plain { background: transparent; padding: 10px 0; }

/* ---------- Paket içeriği ---------- */

.hd-feat__by { margin: -8px 0 4px; font-size: 0.8125rem; color: var(--hd-muted); }
.hd-feat__h {
    margin: 16px 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hd-muted);
}
.hd-feat__h--muted { color: #A8A29E; }
.hd-feat__hint { margin: -4px 0 8px; font-size: 0.8125rem; color: var(--hd-muted); }
.hd-feat__desc { display: block; margin-top: 1px; color: var(--hd-muted); font-size: 0.8rem; font-weight: 400; line-height: 1.35; }

.hd-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--hd-ink);
}
.hd-checklist svg { flex: 0 0 auto; margin-top: 2px; color: var(--hd-ok); }

.hd-feat__extras, .hd-feat__none { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.hd-feat__extra,
.hd-pkg__part {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    min-height: 52px;
    padding: 10px 12px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-card);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    -webkit-tap-highlight-color: transparent;
}
.hd-feat__extra--static { cursor: default; }
.hd-feat__extra:has(input:checked),
.hd-pkg__part:has(input:checked) { border-color: var(--hd-primary-hover); background: var(--hd-tint); }
.hd-feat__extra input,
.hd-pkg__part input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--hd-deep);
}
.hd-feat__name,
.hd-pkg__part-name { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.hd-pkg__part-name small { display: block; color: var(--hd-muted); font-size: 0.8rem; font-weight: 400; }
.hd-feat__price,
.hd-pkg__part-price {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--hd-ink);
    font-variant-numeric: tabular-nums;
}

.hd-feat__none { gap: 8px; }
.hd-feat__none li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9063rem;
    line-height: 1.4;
    color: #A8A29E;
}
.hd-feat__none svg { flex: 0 0 auto; }

/* ---------- Seçenekler (varyant + adet) ---------- */

.hd-options { display: grid; gap: 16px; }

.hd-variants { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.hd-variants__legend { float: none; width: auto; margin: 0 0 4px; }
.hd-variant {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    min-height: 52px;
    padding: 10px 12px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-card);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    -webkit-tap-highlight-color: transparent;
}
.hd-variant:has(input:checked) { border-color: var(--hd-primary-hover); background: var(--hd-tint); }
.hd-variant input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--hd-deep); }
.hd-variant__name { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.hd-variant__price {
    flex: 0 0 auto;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hd-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hd-qty label { margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--hd-ink); }
.hd-qty__ctrl {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--hd-line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--hd-card);
}
.hd-qty__ctrl button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hd-ink);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
.hd-qty__ctrl button:hover { background: #F5F5F4; }
.hd-qty__ctrl input {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hd-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}
.hd-qty__ctrl input::-webkit-outer-spin-button,
.hd-qty__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Düğmeler ---------- */

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-button, 12px);
    font-family: inherit;
    font-size: 0.9688rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
    -webkit-tap-highlight-color: transparent;
}
.hd-btn svg { flex: 0 0 auto; }
.hd-btn--primary { background: var(--hd-primary); color: var(--hd-on-primary); border-color: var(--hd-primary); }
.hd-btn--primary:hover, .hd-btn--primary:focus-visible {
    background: var(--hd-primary-hover);
    border-color: var(--hd-primary-hover);
    color: var(--hd-on-primary);
    text-decoration: none;
}
.hd-btn--soft { background: var(--hd-card); color: var(--hd-ink); border-color: #D6D3D1; }
.hd-btn--soft:hover, .hd-btn--soft:focus-visible { border-color: var(--hd-ink); color: var(--hd-ink); text-decoration: none; }
.hd-btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.875rem; }
.hd-btn:disabled { opacity: 0.6; cursor: progress; }
.hd-btn.is-waiting { opacity: 0.55; }

.hd-btn:focus-visible,
.hd-qty__ctrl button:focus-visible,
.hd-qty__ctrl input:focus-visible,
.hd-gallery__thumb:focus-visible,
.hd-gallery__nav:focus-visible,
.hd-pkg__vehicle-chip:focus-visible,
.hd-pkg__card:focus-visible,
.hd-desc__toggle:focus-visible,
.hd-faq summary:focus-visible {
    outline: 3px solid var(--hd-primary-hover);
    outline-offset: 2px;
}

/* ---------- Aksiyon çubuğu ---------- */

.hd-cta__row { display: flex; align-items: center; gap: 12px; }
.hd-cta__sum { display: grid; flex: 1 1 auto; min-width: 0; }
.hd-cta__label { font-size: 0.75rem; line-height: 1.3; color: var(--hd-muted); }
.hd-cta__total {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--hd-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hd-cta__total.is-hint { font-size: 0.9375rem; font-weight: 600; color: var(--hd-muted); letter-spacing: 0; }
.hd-cta__extras {
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--hd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hd-cta__extras[hidden] { display: none; }
.hd-cta__btns { display: flex; flex: 0 0 auto; gap: 8px; }

.hd-feedback {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8438rem;
    font-weight: 600;
    line-height: 1.4;
    background: #FEF2F2;
    color: #B91C1C;
}
.hd-feedback[hidden] { display: none; }
.hd-feedback.is-ok { background: #ECFDF5; color: #166534; }
.hd-feedback__link { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.hd-feedback__link:hover { color: inherit; }

.hd-legal-note {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--hd-muted);
}
.hd-legal-note--flow { padding: 0 var(--hd-gutter); }
.hd-legal-note--cta { display: none; }

/* Mobil + uygulama: sekme çubuğunun üstünde sabit çubuk (masaüstünde aşağıda kart içine alınır). */
.hd-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--ts-tabbar-clearance, 0px);
    z-index: 1030;
    padding: 8px var(--hd-gutter);
    padding-left: max(var(--hd-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--hd-gutter), env(safe-area-inset-right, 0px));
    background: var(--hd-card);
    border-top: 1px solid var(--hd-line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}
/* Ölçülen sekme çubuğu payı (yükseltilmiş orta düğme) ile çubuk arasında içerik görünmesin. */
.hd-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 32px;
    background: inherit;
    pointer-events: none;
}
.hd-cta .hd-btn--primary { min-width: 132px; }
/* Satın al varken sepet düğmesi ikon olur (etiket ekran okuyucuda kalır). */
.hd-btn--cart { order: -1; width: 48px; min-width: 48px; padding: 0; }
.hd-btn--cart .hd-btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hd-btn--cart.is-busy { opacity: 0.6; }

/* Sabit çubuk sayfa sonunu ve footer'ı örtmesin. */
@media (max-width: 991.98px) {
    body.hd-body--bar { padding-bottom: calc(var(--ts-tabbar-clearance, 0px) + 72px) !important; }
}
html.ts-native-app body.hd-body--bar { padding-bottom: calc(var(--ts-tabbar-clearance, 0px) + 72px) !important; }

/* Tablet genişliğinde tek sütun okunur kalsın. */
@media (min-width: 768px) {
    .hd-wrap { max-width: 760px; margin: 0 auto; }
    .hd-cta__row, .hd-cta > .hd-feedback { max-width: 728px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 359.98px) {
    .hd-cta .hd-btn--primary { min-width: 0; padding: 0 14px; }
    .hd-cta__total { font-size: 1.125rem; }
}

/* ---------- Bakım paketi oluşturucu ---------- */

.hd-pkg__lead { margin: -6px 0 14px; font-size: 0.8438rem; line-height: 1.45; color: var(--hd-muted); }
.hd-pkg { display: grid; gap: 12px; min-width: 0; }
.hd-pkg__vehicle { display: grid; gap: 6px; }
.hd-pkg__vehicle-label,
.hd-pkg__pick-label,
.hd-pkg__parts-title { margin: 0; font-size: 0.8438rem; font-weight: 700; color: var(--hd-ink); }
.hd-pkg__vehicle-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 12px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-card);
    color: var(--hd-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.hd-pkg__vehicle-chip:hover { border-color: var(--hd-primary-hover); background: var(--hd-tint); }
.hd-pkg__vehicle-chip.is-empty .hd-pkg__vehicle-copy strong { color: var(--hd-muted); font-weight: 600; }
.hd-pkg__vehicle-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-tint);
    color: var(--hd-deep);
    font-size: 0.95rem;
}
.hd-pkg__vehicle-copy { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
.hd-pkg__vehicle-copy strong,
.hd-pkg__vehicle-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-pkg__vehicle-copy strong { font-size: 0.9375rem; font-weight: 700; }
.hd-pkg__vehicle-copy span { font-size: 0.8125rem; color: var(--hd-muted); }
.hd-pkg__vehicle-action { flex: 0 0 auto; font-size: 0.8438rem; font-weight: 700; color: var(--hd-deep); }

.hd-pkg__suggest {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    border-radius: var(--hd-radius);
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.hd-pkg__suggest[hidden] { display: none; }
.hd-pkg__suggest-media { flex: 0 0 auto; margin: 0; }
.hd-pkg__suggest-media[hidden] { display: none; }
.hd-pkg__suggest-img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--hd-line);
    background: #fff;
}
.hd-pkg__suggest-copy { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.hd-pkg__suggest-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; color: var(--hd-deep); }
.hd-pkg__suggest-name { margin: 0; font-size: 0.9063rem; font-weight: 700; color: var(--hd-ink); }
.hd-pkg__suggest-name:empty { display: none; }
.hd-pkg__suggest-note { margin: 0; font-size: 0.8125rem; color: var(--hd-muted); }
.hd-pkg__suggest .hd-btn { justify-self: start; margin-top: 6px; }

.hd-pkg__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.hd-pkg__crumb[hidden] { display: none; }
.hd-pkg__crumb button {
    min-height: 32px;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--hd-deep);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.hd-pkg__crumb span { color: var(--hd-muted); }

.hd-pkg__grid,
.hd-pkg__sku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
}
.hd-pkg__grid:empty,
.hd-pkg__sku-grid:empty { display: none; }
.hd-pkg__card {
    display: grid;
    gap: 6px;
    justify-items: center;
    align-content: start;
    min-height: 116px;
    padding: 10px 6px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-card);
    color: var(--hd-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.hd-pkg__card:hover { border-color: var(--hd-primary-hover); }
.hd-pkg__card.is-on { border-color: var(--hd-primary-hover); background: var(--hd-tint); box-shadow: 0 0 0 1px var(--hd-primary-hover); }
.hd-pkg__card-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}
.hd-pkg__card-letter {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-tint);
    color: var(--hd-deep);
    font-size: 1.35rem;
    font-weight: 800;
}
.hd-pkg__card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
}
.hd-pkg__sku-wrap { display: grid; gap: 6px; }
.hd-pkg__sku-wrap[hidden] { display: none; }
.hd-pkg__sku { min-height: 0; }
.hd-pkg__sku .hd-pkg__card-name { -webkit-line-clamp: 3; }
.hd-pkg__sku small { color: var(--hd-ink); font-size: 0.8125rem; font-weight: 700; }

.hd-pkg__row[hidden] { display: none; }
.hd-pkg__row label { display: block; margin: 0 0 4px; font-size: 0.8438rem; font-weight: 700; }
.hd-pkg__row select,
.hd-pkg__row input[type="number"] {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-card);
    color: var(--hd-ink);
    font-size: 1rem;
}
.hd-pkg__row--inline { display: grid; grid-template-columns: 88px 1fr; gap: 4px 8px; align-items: end; }
.hd-pkg__row--inline label { grid-column: 1 / -1; margin: 0; }
.hd-pkg__rec {
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ECFDF5;
    color: #166534;
    font-size: 0.8125rem;
    font-weight: 700;
}
.hd-pkg__rec[hidden] { display: none; }
.hd-pkg__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hd-pkg__lines:empty { display: none; }
.hd-pkg__lines li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border: 1.5px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: #FAFAF9;
    font-size: 0.875rem;
    line-height: 1.35;
}
.hd-pkg__line-img {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--hd-line);
    background: #fff;
}
.hd-pkg__lines li span { flex: 1 1 auto; min-width: 0; }
.hd-pkg__lines button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #B91C1C;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}
.hd-pkg__parts { display: grid; gap: 8px; }
.hd-pkg__labor {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--hd-line);
    font-size: 0.875rem;
    color: var(--hd-muted);
}
.hd-pkg__labor strong { color: var(--hd-ink); font-variant-numeric: tabular-nums; }
.hd-pkg__warn { color: #7C2D12; }

/* ---------- Açıklama ---------- */

.hd-desc__body p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #3F3F46;
}
.hd-desc__body.is-clamped {
    position: relative;
    max-height: 9.6em;
    overflow: hidden;
}
.hd-desc__body.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--hd-card));
    pointer-events: none;
}
.hd-desc__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 4px 0 -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hd-deep);
    font: inherit;
    font-size: 0.9063rem;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Hizmet bilgileri ---------- */

.hd-info__list { margin: 0; display: grid; }
.hd-info__list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--hd-line);
}
.hd-info__list > div:first-child { border-top: 0; padding-top: 0; }
.hd-info__list > div:last-child { padding-bottom: 0; }
.hd-info__list dt { flex: 0 0 auto; margin: 0; font-size: 0.9063rem; font-weight: 400; color: var(--hd-muted); }
.hd-info__list dd { margin: 0; font-size: 0.9063rem; font-weight: 600; text-align: right; color: var(--hd-ink); }

/* ---------- Yorumlar ---------- */

.hd-reviews { list-style: none; margin: 0; padding: 0; display: grid; }
.hd-reviews li { padding: 14px 0; border-top: 1px solid var(--hd-line); }
.hd-reviews li:first-child { border-top: 0; padding-top: 0; }
.hd-reviews li:last-child { padding-bottom: 0; }
.hd-reviews__head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.hd-reviews__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hd-reviews__head strong { display: block; font-size: 0.9063rem; }
.hd-reviews__head span { color: var(--hd-muted); font-size: 0.8rem; }
.hd-reviews p { margin: 0; font-size: 0.9063rem; line-height: 1.5; color: #3F3F46; }

/* ---------- SSS ---------- */

.hd-faq details { border-top: 1px solid var(--hd-line); }
.hd-faq details:first-child { border-top: 0; }
.hd-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary svg { flex: 0 0 auto; color: #A8A29E; transform: rotate(90deg); transition: transform 150ms ease; }
.hd-faq details[open] summary svg { transform: rotate(-90deg); }
.hd-faq details p { margin: 0 0 14px; font-size: 0.9063rem; line-height: 1.55; color: var(--hd-muted); }
.hd-faq details:first-child summary { margin-top: -8px; }
.hd-faq details:last-child:not([open]) summary { margin-bottom: -8px; }

/* ---------- Güven ---------- */

.hd-trust { display: flex; gap: 10px; align-items: flex-start; }
.hd-trust__icon { flex: 0 0 auto; display: inline-flex; margin-top: 1px; color: var(--hd-ok); }
.hd-trust strong { display: block; font-size: 0.875rem; line-height: 1.35; }
.hd-trust p { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--hd-muted); }

/* ---------- Masaüstü ---------- */

@media (min-width: 992px) {
    html:not(.ts-native-app) .hd-page { --hd-bg: var(--color-background, #FAFAF9); padding-bottom: 56px; }

    html:not(.ts-native-app) .hd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

    html:not(.ts-native-app) .hd-top { display: block; padding: 16px 0 0; }

    html:not(.ts-native-app) .hd-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 384px;
        grid-template-rows: auto 1fr;
        gap: 20px 28px;
        align-items: start;
        padding: 16px 0 0;
    }

    html:not(.ts-native-app) .hd-gallery {
        grid-column: 1;
        grid-row: 1;
        border: 1px solid var(--hd-line);
        border-radius: 16px;
        overflow: hidden;
    }
    html:not(.ts-native-app) .hd-gallery__track { aspect-ratio: 16 / 10; max-height: 520px; }
    html:not(.ts-native-app) .hd-gallery__count { top: 16px; right: 16px; }
    html:not(.ts-native-app) .hd-gallery__nav {
        position: absolute;
        top: calc(50% - 22px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: var(--hd-ink);
        box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
        cursor: pointer;
    }
    html:not(.ts-native-app) .hd-gallery:has(.hd-gallery__thumbs) .hd-gallery__nav { top: calc((100% - 78px) / 2 - 22px); }
    html:not(.ts-native-app) .hd-gallery__nav--prev { left: 12px; }
    html:not(.ts-native-app) .hd-gallery__nav--prev svg { transform: rotate(180deg); }
    html:not(.ts-native-app) .hd-gallery__nav--next { right: 12px; }
    html:not(.ts-native-app) .hd-gallery__thumbs {
        display: flex;
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        border-top: 1px solid var(--hd-line);
    }
    html:not(.ts-native-app) .hd-gallery__thumb {
        flex: 0 0 auto;
        width: 76px;
        height: 57px;
        padding: 0;
        border: 2px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        cursor: pointer;
        opacity: 0.7;
        transition: border-color 150ms ease, opacity 150ms ease;
    }
    html:not(.ts-native-app) .hd-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
    html:not(.ts-native-app) .hd-gallery__thumb.is-active,
    html:not(.ts-native-app) .hd-gallery__thumb:hover { border-color: var(--hd-ink); opacity: 1; }

    html:not(.ts-native-app) .hd-side {
        display: grid;
        gap: 16px;
        grid-column: 2;
        grid-row: 1 / span 2;
        position: sticky;
        top: var(--hd-side-top, 177px);
        min-width: 0;
    }
    html:not(.ts-native-app) .hd-side--long { position: static; }

    html:not(.ts-native-app) .hd-buy {
        display: block;
        background: var(--hd-card);
        border: 1px solid var(--hd-line);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        padding: 4px 0 20px;
    }
    html:not(.ts-native-app) .hd-buy > .hd-block { background: transparent; padding: 16px 20px; }
    html:not(.ts-native-app) .hd-buy > .hd-options { border-top: 1px solid var(--hd-line); }
    html:not(.ts-native-app) .hd-title { font-size: 1.5rem; }
    html:not(.ts-native-app) .hd-price__value { font-size: 2rem; }

    html:not(.ts-native-app) .hd-main {
        display: grid;
        gap: 16px;
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    html:not(.ts-native-app) .hd-main > .hd-block,
    html:not(.ts-native-app) .hd-side > .hd-block {
        border: 1px solid var(--hd-line);
        border-radius: 16px;
        padding: 20px;
    }
    html:not(.ts-native-app) .hd-side > .hd-tech { padding: 10px 20px; }
    html:not(.ts-native-app) .hd-side > .hd-trust { background: transparent; border-style: dashed; padding: 14px 20px; }
    html:not(.ts-native-app) .hd-h2 { font-size: 1.125rem; margin-bottom: 14px; }
    html:not(.ts-native-app) .hd-feat__by { margin-top: -10px; }

    html:not(.ts-native-app) .hd-feat__extras,
    html:not(.ts-native-app) .hd-pkg__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html:not(.ts-native-app) .hd-pkg__parts-title { grid-column: 1 / -1; }
    html:not(.ts-native-app) .hd-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    html:not(.ts-native-app) .hd-feat__none { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

    html:not(.ts-native-app) .hd-cta {
        position: static;
        z-index: auto;
        margin: 0 20px;
        padding: 16px 0 0;
        background: transparent;
        border-top: 1px solid var(--hd-line);
        box-shadow: none;
    }
    html:not(.ts-native-app) .hd-cta::after { content: none; }
    html:not(.ts-native-app) .hd-cta__row,
    html:not(.ts-native-app) .hd-cta > .hd-feedback { max-width: none; }
    html:not(.ts-native-app) .hd-cta .hd-btn--primary { min-width: 0; }
    html:not(.ts-native-app) .hd-btn--cart { order: 0; padding: 0 20px; }
    html:not(.ts-native-app) .hd-btn--cart .hd-btn__label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }
    html:not(.ts-native-app) .hd-cta__row { flex-direction: column; align-items: stretch; gap: 14px; }
    html:not(.ts-native-app) .hd-cta__sum {
        grid-template-columns: 1fr auto;
        align-items: baseline;
        column-gap: 12px;
    }
    html:not(.ts-native-app) .hd-cta__label { font-size: 0.9063rem; }
    html:not(.ts-native-app) .hd-cta__total { font-size: 1.5rem; text-align: right; }
    html:not(.ts-native-app) .hd-cta__extras { grid-column: 1 / -1; text-align: right; font-size: 0.8125rem; }
    html:not(.ts-native-app) .hd-cta__btns { flex-direction: column; }
    html:not(.ts-native-app) .hd-cta__btns .hd-btn { width: 100%; min-height: 52px; font-size: 1rem; }

    html:not(.ts-native-app) .hd-legal-note--cta { display: block; margin-top: 12px; text-align: center; }
    html:not(.ts-native-app) .hd-legal-note--flow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hd-btn,
    .hd-variant,
    .hd-feat__extra,
    .hd-pkg__part,
    .hd-pkg__card,
    .hd-pkg__vehicle-chip,
    .hd-gallery__thumb,
    .hd-faq summary svg { transition: none; }
    .hd-gallery__track { scroll-behavior: auto; }
}

/* Görsel yüklenemezse boş gri alan kalmasın. */
.hd-gallery__slide.is-broken img {
    visibility: hidden;
}

.hd-gallery--empty {
    display: none;
}
