:root {
    --karo-blue: #007bb8;
    --karo-blue-dark: #005b8b;
    --ink: #101820;
    --muted: #647180;
    --line: #dfe5e9;
    --surface: #f4f7f9;
    --white: #fff;
}

.detail-brandbar,
.detail-brand { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 15px/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.detail-shell {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 52px;
}
.detail-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: .84rem;
}
.detail-breadcrumb a {
    color: var(--karo-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .68fr);
    gap: 24px;
    align-items: start;
}
.detail-gallery,
.detail-summary,
.detail-card,
.detail-content-card,
.detail-contact {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(16, 24, 32, .065);
}
.detail-gallery { min-width: 0; padding: 12px; }
.detail-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 13px;
    background: #e9eef1;
}
.detail-main-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.detail-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease, transform .35s ease;
}
.detail-main-button:hover .detail-main-image { transform: scale(1.015); }
.detail-main-image.is-changing { opacity: .28; }
.detail-zoom-hint,
.detail-counter {
    position: absolute;
    bottom: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    pointer-events: none;
}
.detail-zoom-hint { left: 13px; }
.detail-counter { right: 13px; }
.detail-gallery-arrow,
.detail-lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .15s, transform .15s;
}
.detail-gallery-arrow:hover,
.detail-lightbox-arrow:hover {
    background: rgba(0, 0, 0, .82);
    transform: translateY(-50%) scale(1.05);
}
.detail-gallery-arrow--prev { left: 13px; }
.detail-gallery-arrow--next { right: 13px; }
.detail-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 2px 1px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.detail-thumb {
    flex: 0 0 84px;
    height: 63px;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}
.detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.detail-thumb.is-active { border-color: var(--karo-blue); }

.detail-summary {
    position: sticky;
    top: 14px;
    padding: clamp(22px, 2.6vw, 32px);
}
.detail-kicker {
    color: var(--karo-blue);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.detail-summary h1 {
    margin: 7px 0 14px;
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}
.detail-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e4f5fb;
    color: #005f88;
    font-size: .78rem;
    font-weight: 750;
}
.detail-summary-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 9px;
    margin: 17px 0 19px;
}
.detail-summary-meta div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafb;
}
.detail-summary-meta .detail-delivery {
    border-color: #b8dfeb;
    background: #eff9fc;
}
.detail-summary-meta dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.detail-summary-meta dd {
    margin: 0;
    color: var(--ink);
    font-size: .93rem;
    font-weight: 750;
    overflow-wrap: break-word;
    word-break: normal;
}
.detail-price {
    display: grid;
    gap: 1px;
    margin: 0 0 19px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
}
.detail-price span {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.detail-price strong { font-size: 1.38rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 15px;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}
.detail-button:hover { transform: translateY(-1px); }
.detail-button--primary { border: 1px solid var(--karo-blue); background: var(--karo-blue); color: #fff; }
.detail-button--primary:hover { background: var(--karo-blue-dark); }
.detail-button--secondary { border: 1px solid #cbd4da; background: #fff; color: var(--ink); }
.detail-button--secondary:hover { border-color: var(--karo-blue); color: var(--karo-blue-dark); }

.detail-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.detail-card { min-width: 0; padding: 21px 23px; }
.detail-card h2,
.detail-content-card h2,
.detail-contact h2 {
    margin: 0 0 14px;
    font-size: 1.12rem;
    line-height: 1.25;
}
.detail-card h2::after,
.detail-content-card h2::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--karo-blue);
}
.detail-data-list { margin: 0; }
.detail-data-list div {
    display: grid;
    grid-template-columns: minmax(112px, 30%) minmax(0, 1fr);
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.detail-data-list div:last-child { border-bottom: 0; }
.detail-data-list dt {
    color: var(--muted);
    font-size: .77rem;
    font-weight: 600;
    white-space: nowrap;
}
.detail-data-list dd {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: normal;
}

.detail-content-card {
    margin-top: 17px;
    padding: clamp(22px, 3vw, 32px);
}
.detail-richtext > div {
    color: #293641;
    font-size: .93rem;
    line-height: 1.52;
}
.detail-richtext p { margin: .35em 0 .8em; }
.detail-richtext ul,
.detail-richtext ol { margin: .5em 0 .9em; padding-left: 1.2em; }
.detail-richtext li + li { margin-top: .18em; }
.detail-richtext table {
    width: 100% !important;
    margin: 10px 0 16px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .86rem;
    line-height: 1.48;
}
.detail-richtext tr:nth-child(even) td { background: #fafcfd; }
.detail-richtext td,
.detail-richtext th {
    padding: 10px 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    overflow-wrap: break-word;
    word-break: normal;
}
.detail-richtext tr:last-child td,
.detail-richtext tr:last-child th { border-bottom: 0; }
.detail-richtext td:first-child,
.detail-richtext th:first-child {
    width: 205px;
    background: #f5f8fa;
    color: #24313b;
    font-size: .82rem;
    font-weight: 700;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.detail-richtext td p:first-child,
.detail-richtext th p:first-child { margin-top: 0; }
.detail-richtext td p:last-child,
.detail-richtext th p:last-child { margin-bottom: 0; }
.detail-richtext td ul,
.detail-richtext td ol { margin-block: .15em; }
.detail-richtext strong { font-weight: 700; }

.detail-video-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: #000; }
.detail-video-frame iframe,
.detail-video-section video { display: block; width: 100%; height: 100%; border: 0; }
.detail-video-section video { max-height: 70vh; border-radius: 13px; background: #000; }

.detail-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: clamp(23px, 3vw, 34px);
    background: linear-gradient(125deg, #fff 0, #edf8fc 100%);
}
.detail-contact h2 { margin: 4px 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.detail-contact p { margin: 0; color: var(--muted); }
.detail-image-empty { display: grid; place-items: center; width: 100%; height: 100%; color: #a8b3ba; font-size: 4rem; }

.detail-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.detail-lightbox[hidden] { display: none; }
.detail-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); }
.detail-lightbox-dialog { position: relative; z-index: 1; display: grid; place-items: center; width: min(1400px, 96vw); height: min(900px, 92vh); }
.detail-lightbox-canvas { display: grid; place-items: center; width: 100%; height: 100%; overflow: auto; cursor: zoom-in; }
.detail-lightbox-canvas.is-zoomed { place-items: start; cursor: zoom-out; }
.detail-lightbox-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.detail-lightbox-canvas.is-zoomed img { max-width: none; max-height: none; transform: scale(1.7); transform-origin: top left; }
.detail-lightbox-close,
.detail-lightbox-zoom { position: absolute; z-index: 4; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; cursor: pointer; }
.detail-lightbox-close { top: 0; right: 0; width: 44px; height: 44px; font-size: 27px; }
.detail-lightbox-zoom { top: 3px; right: 54px; padding: 9px 14px; }
.detail-lightbox-arrow--prev { left: 12px; }
.detail-lightbox-arrow--next { right: 12px; }
.detail-lightbox-counter { position: absolute; bottom: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .58); color: #fff; }
.detail-button:focus-visible,
.detail-thumb:focus-visible,
.detail-gallery-arrow:focus-visible,
.detail-main-button:focus-visible { outline: 3px solid rgba(0, 123, 184, .4); outline-offset: 3px; }

@media (max-width: 960px) {
    .detail-hero { grid-template-columns: 1fr; }
    .detail-summary { position: static; }
    .detail-contact { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
    .detail-shell { width: min(100% - 20px, 1320px); padding: 12px 0 34px; }
    .detail-breadcrumb span { display: none; }
    .detail-hero { gap: 12px; }
    .detail-gallery { padding: 6px; border-radius: 14px; }
    .detail-stage { aspect-ratio: 4 / 3; }
    .detail-gallery-arrow { width: 38px; height: 38px; font-size: 26px; }
    .detail-gallery-arrow--prev { left: 8px; }
    .detail-gallery-arrow--next { right: 8px; }
    .detail-zoom-hint { display: none; }
    .detail-thumb { flex-basis: 70px; height: 52px; }
    .detail-summary,
    .detail-card,
    .detail-content-card,
    .detail-contact { padding: 18px; border-radius: 14px; }
    .detail-summary h1 { font-size: 1.45rem; }
    .detail-summary-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-actions,
    .detail-button { width: 100%; }
    .detail-data-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 12px; }
    .detail-data-list div { grid-template-columns: minmax(95px, 34%) minmax(0, 1fr); gap: 10px; }
    .detail-data-list dt { white-space: normal; }
    .detail-richtext > div { font-size: .9rem; }
    .detail-richtext table,
    .detail-richtext tbody,
    .detail-richtext tr,
    .detail-richtext td,
    .detail-richtext th { display: block; width: 100% !important; }
    .detail-richtext table { overflow: visible; border: 0; border-radius: 0; }
    .detail-richtext tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        background: transparent !important;
    }
    .detail-richtext tr:first-child { padding-top: 0; }
    .detail-richtext tr:last-child { border-bottom: 0; }
    .detail-richtext td,
    .detail-richtext th { padding: 2px 0; border: 0; background: transparent !important; }
    .detail-richtext td:first-child,
    .detail-richtext th:first-child {
        margin-bottom: 3px;
        color: var(--karo-blue-dark);
        font-size: .8rem;
    }
    .detail-lightbox { padding: 6px; }
    .detail-lightbox-dialog { width: 100%; height: 92vh; }
    .detail-lightbox-arrow { width: 40px; height: 40px; }
    .detail-lightbox-zoom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
