/* START KOL Product Vertical Scroll Styles */

.kol-product-scroll-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 80vh;
    overflow: hidden;
    background: var(--color-theme-white-box, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kol-scroll-wrapper {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-points-y: repeat(100%);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.kol-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.kol-scroll-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kol-product-slide {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--color-theme-white-box, #ffffff);
    border-bottom: 1px solid var(--global-border-color, #e0e0e0);
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.kol-product-slide .product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    height: 35vh;
    max-height: 35vh;
}

.kol-product-slide img {
    width: auto;
    height: 100%;
    max-height: 35vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.kol-product-slide h4 {
    margin: 8px 0 5px 0;
    font-size: 18px;
    color: var(--global-font-color, #333333);
    line-height: 1.3;
    flex-shrink: 0;
}

.kol-product-slide h4 a {
    color: var(--global-font-color, #333333);
    text-decoration: none;
}

.kol-product-slide .price {
    color: #10da85;
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
    flex-shrink: 0;
}

.kol-product-slide .short-description {
    color: var(--global-font-color, #666666);
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
    flex-shrink: 1;
    overflow: hidden;
    max-height: 80px;
}

.kol-product-slide .action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
}

.kol-product-slide .view-product {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10da85;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.kol-product-slide .view-product:hover {
    background: #0ec978;
}

.kol-product-slide .view-product svg {
    width: 14px;
    height: 14px;
}

.kol-product-slide .add-to-cart-wrapper {
    flex: 1;
}

.kol-product-slide .button,
.kol-product-slide .add_to_cart_button,
.kol-product-slide .added_to_cart {
    width: 100%;
    padding: 8px 15px;
    border: 2px solid #3e1313;
    border-radius: 8px;
    background: linear-gradient(135deg, #846c80 0%, #10da85 100%);
    color: #e5fbc8;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.kol-product-slide .button:hover,
.kol-product-slide .add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Audio Player Support */
.kol-product-slide audio,
.kol-product-slide .wcmp-player,
.kol-product-slide .mejs-container,
.kol-product-slide .wp-audio-shortcode,
.kol-product-slide .mejs-audio {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    flex-shrink: 0 !important;
}

.kol-product-sidebar {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.kol-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kol-share-btn,
.kol-comments-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.kol-share-btn:hover,
.kol-comments-btn:hover {
    background: rgba(16, 218, 133, 0.9);
    border-color: #10da85;
}

.kol-comments-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kol-scroll-navigation {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 60;
}

.kol-scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3e1313;
    background: linear-gradient(135deg, #846c80 0%, #10da85 100%);
    color: #e5fbc8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.kol-scroll-arrow:hover:not(:disabled) {
    transform: scale(1.1);
}

.kol-scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kol-scroll-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-radius: 20px;
    font-size: 11px;
    z-index: 60;
    backdrop-filter: blur(10px);
}

.kol-comments-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-theme-white-box, #ffffff);
    border-left: 1px solid var(--global-border-color, #e0e0e0);
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.kol-comments-panel.active {
    right: 0;
}

.kol-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--global-border-color, #e0e0e0);
    background: var(--color-theme-white-box, #ffffff);
    position: sticky;
    top: 0;
    z-index: 10;
}

.kol-comments-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--global-font-color, #333333);
}

.kol-comments-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--global-font-color, #333333);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kol-comments-content {
    padding: 15px;
}

.kol-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kol-comment-item {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #f5f5f5;
}

.kol-comment-author {
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--global-font-color, #333333);
    font-size: 13px;
}

.kol-comment-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--global-font-color, #333333);
}

/* Mobile - Full Screen */
@media screen and (max-width: 768px) {
    .kol-product-scroll-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 9999;
    }
    
    .kol-product-slide .product-link {
        height: 40vh;
        max-height: 40vh;
    }
    
    .kol-product-slide img {
        max-height: 40vh;
    }
    
    .kol-scroll-navigation {
        display: none;
    }
    
    .kol-product-sidebar {
        right: 5px;
    }
    
    .kol-comments-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* Dark Mode */
html.dark-mode .kol-product-scroll-container,
html.dark-mode .kol-product-slide {
    background: #16213e;
}

html.dark-mode .kol-product-slide h4,
html.dark-mode .kol-product-slide h4 a,
html.dark-mode .short-description {
    color: var(--ld-dark-mode-content-text, #e0e0e0);
}

html.dark-mode .kol-comments-panel {
    background: #16213e;
    border-left-color: var(--ld-dark-mode-border-color, #2a3f5f);
}

html.dark-mode .kol-comments-header {
    border-bottom-color: var(--ld-dark-mode-border-color, #2a3f5f);
    background: #16213e;
}

html.dark-mode .kol-comments-close {
    color: var(--ld-dark-mode-content-text, #e0e0e0);
}

html.dark-mode .kol-comment-item {
    background: #1a2942;
}

html.dark-mode .kol-comment-author,
html.dark-mode .kol-comment-text,
html.dark-mode .kol-comments-header h3 {
    color: var(--ld-dark-mode-content-text, #e0e0e0);
}

/* END KOL Product Vertical Scroll Styles */