.kp-detail {
    --kp-ink: #132d49;
    --kp-muted: #4b637a;
    --kp-blue: #095b96;
    --kp-line: #dbe6f0;
    --kp-soft: #f3f8fc;
    --kp-radius: 14px;
}
.kp-detail :focus-visible { outline: 2px solid #bc5614; outline-offset: 3px; }
.kp-detail .kiaroi-detail-summary {
    padding: clamp(12px, 2vw, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(12px, 2vw, 24px);
    align-items: start;
    box-shadow: 0 8px 22px #1b3f5a08;
}
.kp-detail .kiaroi-detail-summary > .gallery-detail-pro,
.kp-detail .kiaroi-detail-summary > .info-detail-pro,
.kp-detail .kiaroi-detail-summary > .content-detail-pro {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.kp-detail .gallery-detail-pro .main-img {
    width: 100%;
    max-width: none;
    padding: 10px;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: linear-gradient(180deg, var(--kp-soft), #fff);
}
.kp-detail #pro-gallery { margin: 0; }
.kp-detail #pro-gallery > a {
    display: block;
    width: 100%;
    height: clamp(280px, 34vw, 520px);
    border-radius: 9px;
    background: #fff;
}
.kp-detail #pro-gallery:not(.lightSlider) > a ~ a { display: none; }
.kp-detail #pro-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 6px;
    object-fit: contain;
    border-radius: inherit;
}
.kp-detail .lSSlideOuter .lSPager.lSGallery { margin-top: 9px !important; }
.kp-detail .lSPager.lSGallery li {
    box-shadow: inset 0 0 0 1px var(--kp-line);
    border-radius: 8px;
    background: #fff;
}
.kp-detail .lSPager.lSGallery li.active,
.kp-detail .lSPager.lSGallery li:hover { box-shadow: inset 0 0 0 2px var(--kp-blue); }
.kp-detail .lSPager.lSGallery img { width: 100%; height: 62px; padding: 5px; object-fit: contain; }
.kp-detail .lSAction > a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid #cfdeea;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px #16385522;
    color: var(--kp-blue);
    opacity: 1;
}
.kp-detail .lSAction > a.disabled { opacity: .45; }
.kp-detail .lSAction > a::before {
    content: "";
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-2px) rotate(-45deg);
}
.kp-detail .lSAction > .lSPrev::before { transform: translateX(2px) rotate(135deg); }
.kp-detail .info-detail-pro-outsite {
    padding: clamp(14px, 2vw, 25px);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: #fff;
}
.kp-detail .detail-title h1 {
    margin: 0;
    color: var(--kp-ink);
    font: 760 clamp(23px, 2.7vw, 36px)/1.2 system-ui, sans-serif;
}
.kp-detail .detail_rate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.kp-detail .kp-rating-link {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--kp-blue);
    font: 650 14px/1.4 system-ui, sans-serif;
    cursor: pointer;
}
.kp-detail .kp-rating-link:hover { text-decoration: underline; }
.kp-detail .kp-price-panel {
    padding: 12px 15px;
    border: 1px solid #f5dec8;
    border-radius: 11px;
    background: #fff7ee;
}
.kp-detail .kp-price-label { color: #805028; font-size: 12px; font-weight: 750; }
.kp-detail .kp-price-panel .detail-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #a73e06;
    font: 750 clamp(22px, 3vw, 31px)/1.25 system-ui, sans-serif;
}
.kp-detail .detail-price .price-current { color: inherit; font: inherit; }
.kp-detail .detail-price .price-current.out_of_stock_price { color: #6a7280; }
.kp-detail .detail-price .out_of_stock { color: #a73e06; }
.kp-detail .detail-price del { color: #655b54; font: 500 14px/1.5 system-ui, sans-serif; }
.kp-detail .detail-property { margin: 12px 0 0; }
.kp-detail .detail-property > ul { margin: 0; list-style: none; }
.kp-detail .detail-property > ul > li {
    padding: 9px 10px;
    border-bottom: 1px solid var(--kp-line);
    background: none;
    color: var(--kp-ink);
    overflow-wrap: anywhere;
}
.kp-detail .detail-property > ul > li:last-child { border-bottom: 0; }
.kp-detail .detail-property .optionTitleInline { margin: 0; }
.kp-detail .kiaroi-contact-button { margin: 12px 0 0; min-height: 44px; }
.kp-detail .order {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px 10px;
    align-items: end;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--kp-line);
}
.kp-detail .order > .col { padding: 0; max-width: none; width: auto; }
.kp-detail .order > .col:first-child { grid-column: 1 / -1; }
.kp-detail .order .handleCounter-detail { width: min(132px, 100%); }
.kp-detail .order > .kp-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.kp-detail .order .kp-zalo-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 7px 4px;
    border: 1px solid #a9cce7;
    border-radius: 9px;
    background: #edf6ff;
    color: var(--kp-blue);
    text-align: center;
    text-decoration: none;
    font: 700 14px/1.25 system-ui, sans-serif;
}
.kp-detail .order .kp-zalo-support:hover { background: #dceeff; }
@media (min-width: 1040px) {
    .kp-detail .order { grid-template-columns: 132px minmax(0, 1fr); }
    .kp-detail .order > .kp-order-actions { grid-template-columns: minmax(0, 1fr) minmax(132px, 38%); }
}
.kp-detail .order label { margin: 0; padding: 0; color: var(--kp-muted); font-size: 13px; font-weight: 700; }
.kp-detail .order .quality { min-width: 0; height: 46px; padding: 5px; font-size: 16px; }
.kp-detail .order .input-group-text { width: 44px; min-height: 46px; justify-content: center; padding: 0; font-size: 18px; }
.kp-detail .order .add_cart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 46px;
    padding: 7px;
    border-color: var(--kp-blue);
    border-radius: 9px;
    background: var(--kp-blue);
    color: #fff;
    font: 700 15px/1.3 system-ui, sans-serif;
}
.kp-detail .order .add_cart:hover { background: #084674; }
.kp-detail .pro-option-hidden { display: none; }
.kp-detail .content-detail-pro {
    grid-column: 1 / -1;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    scroll-margin-top: 110px;
}
.kp-detail .content-detail-pro .nav-tabs {
    gap: 5px;
    padding: 7px;
    border: 0;
    border-bottom: 1px solid var(--kp-line);
    border-radius: 13px 13px 0 0;
    background: var(--kp-soft);
}
.kp-detail .content-detail-pro .nav-item { margin: 0; }
.kp-detail .content-detail-pro .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--kp-ink);
    font: 700 14px/1.25 system-ui, sans-serif;
}
.kp-detail .content-detail-pro .nav-link.active { border-color: #c7deef; background: #fff; color: var(--kp-blue); }
.kp-detail .kp-tab-count {
    min-width: 20px;
    padding: 2px 4px;
    border-radius: 20px;
    background: #dfeefa;
    color: #205883;
    text-align: center;
    font-size: 11px;
}
.kp-detail #tabs-pro-detail { border: 0; border-radius: 0 0 13px 13px; }
.kp-detail #tabs-pro-detail > .tab-pane { padding: clamp(12px, 2vw, 24px); }
.kp-detail .kp-product-description { overflow-x: auto; color: #2b435a; line-height: 1.6; }
.kp-detail .kp-product-description img { max-width: 100%; height: auto; }
.kp-detail .kp-related {
    margin: 18px 0 22px;
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: #fff;
}
.kp-detail .kp-related-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.kp-detail .kp-related-head p { margin: 0 0 2px; color: var(--kp-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kp-detail .kp-related-head h2 { margin: 0; color: var(--kp-ink); font: 750 clamp(19px, 2.25vw, 28px)/1.2 system-ui, sans-serif; }
.kp-detail .kp-related-icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #e9f3fb; color: var(--kp-blue); }
.kp-detail .kp-related .kiaroi-product-card .card-body-price { text-align: left; }
.kp-detail .kp-related { scroll-margin-top: 110px; }
.kp-detail .kp-related .kiaroi-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kp-detail .kp-related-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}
.kp-detail .kp-page-status { margin-right: 4px; color: var(--kp-muted); font-size: 13px; }
.kp-detail .kp-page-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid var(--kp-line);
    border-radius: 8px;
    color: var(--kp-blue);
    font-weight: 700;
    text-decoration: none;
}
.kp-detail a.kp-page-link:hover { background: var(--kp-soft); }
.kp-detail .kp-page-link[aria-current="page"] { background: var(--kp-blue); border-color: var(--kp-blue); color: #fff; }
@media (max-width: 991px) {
    .kp-detail .kp-related .kiaroi-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .kp-detail .kiaroi-detail-summary { grid-template-columns: minmax(0, 1fr); }
    .kp-detail .kp-related .kiaroi-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-detail #pro-gallery > a { height: clamp(210px, 72vw, 385px); }
    .kp-detail .lSPager.lSGallery img { height: 49px; }
    .kp-detail .content-detail-pro .nav-item { flex: 1 1 0; }
    .kp-detail .content-detail-pro .nav-link { padding: 6px; }
}
.kp-detail .kiaroi-detail-summary::before,
.kp-detail .kiaroi-detail-summary::after { display: none; }
