.km-shorts-section {
    overflow: hidden;
}

.km-shorts-section .section-title-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.km-shorts-track {
    margin: 0 -8px;
}

.km-short-card {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 0 8px;
}

.km-short-card:hover,
.km-short-card:focus {
    color: inherit;
    text-decoration: none;
}

.km-short-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #111 center/cover no-repeat;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.km-short-thumb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.km-short-shop-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #fff;
    z-index: 2;
}

.km-short-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #FF9C38;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.km-short-play i {
    margin-left: 3px;
}

.km-short-meta {
    padding: 10px 2px 4px;
}

.km-short-product {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.km-short-price {
    color: #FF9C38;
    font-weight: 700;
    font-size: 13px;
}

.km-shorts-empty {
    padding: 32px 16px;
    text-align: center;
    color: #888;
}

.km-shorts-viewer {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(8, 8, 10, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
}

.km-shorts-viewer.is-open {
    display: flex;
}

.km-shorts-stage {
    position: relative;
    width: min(420px, 100vw);
    height: min(86vh, 760px);
    max-height: 100vh;
}

.km-shorts-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.km-shorts-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.km-shorts-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
}

.km-shorts-vendor {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.km-shorts-vendor img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #fff;
}

.km-shorts-vendor span {
    font-weight: 600;
    color: #fff;
}

.km-shorts-controls button {
    border: 0;
    background: rgba(255,255,255,0.16);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 8px;
}

.km-shorts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #333;
}

.km-shorts-nav.prev { left: -56px; }
.km-shorts-nav.next { right: -56px; }

.km-shorts-cta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 3;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.km-shorts-cta h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.km-shorts-cta .price {
    margin: 0;
    color: #FF9C38;
    font-weight: 700;
}

.km-shorts-cta .btn-shop-now {
    background: #FF9C38;
    border-color: #FF9C38;
    color: #fff;
    border-radius: 20px;
    padding: 8px 16px;
    white-space: nowrap;
    font-weight: 600;
}

.km-shorts-cta .btn-shop-now.disabled,
.km-shorts-cta .btn-shop-now[disabled] {
    background: #bbb;
    border-color: #bbb;
}

.km-product-short-player {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.km-product-short-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.km-product-short-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #FF9C38;
    color: #fff;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.km-product-short-open:hover {
    color: #fff;
}

.km-product-short-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.km-product-short-thumb {
    width: 56px;
    height: 96px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.km-product-short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.km-product-short-thumb.is-active {
    border-color: #FF9C38;
}

.km-shorts-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199px) {
    .km-shorts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .km-shorts-nav.prev { left: 8px; }
    .km-shorts-nav.next { right: 8px; }
}

@media (max-width: 767px) {
    .km-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .km-shorts-stage {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }
    .km-shorts-video-wrap { border-radius: 0; }
    .km-shorts-nav.prev { left: 8px; }
    .km-shorts-nav.next { right: 8px; }
}
