/* Stories Container */
.vezzo-stories-container {
    padding: 25px 0;
    background: #fff;
    margin: 0 auto;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.stories-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: auto;
    position: relative;
}

.stories-list::-webkit-scrollbar {
    display: none;
}

/* Story Bubble */
.story-bubble {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 1;
}

.story-bubble:hover {
    transform: scale(1.05);
}

.story-bubble:active {
    transform: scale(0.95);
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e91e63;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: manipulation;
    pointer-events: auto;
}

.story-avatar img,
.story-avatar video {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.story-title {
    font-size: 12px;
    color: #333;
    margin-top: 8px;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.2;
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-modal.active {
    display: block;
    opacity: 1;
}

.story-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

/* Story Header */
.story-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.story-progress-container {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

/* Loading */
.story-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
    transition: width 0.1s linear;
}

.story-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    backdrop-filter: blur(10px);
}

/* Story Content */
.story-content {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    overflow: hidden;
}

.story-media {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.story-media video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Story Navigation */
.story-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 100000;
}

.story-prev,
.story-next {
    flex: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.story-prev {
    left: 0;
}

.story-next {
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .story-player {
        width: 95%;
        height: 80vh;
    }
    
    .stories-list {
        padding: 0 15px;
        gap: 12px;
    }
    
    .story-avatar {
        width: 50px;
        height: 50px;
    }
    
    .story-avatar img,
    .story-avatar video {
        width: 44px;
        height: 44px;
    }
    
    .story-title {
        font-size: 11px;
        max-width: 60px;
    }
}

/* Loading Animation */
.story-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
}

.story-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Info Box */
.story-product-info {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    max-width: 300px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 100001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-product-info.show {
    transform: translateY(0);
    opacity: 1;
}

.story-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-product-prices {
    margin-bottom: 12px;
}

.story-price-pix {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-price-installment {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-product-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-product-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .story-avatar {
        width: 70px;
        height: 70px;
    }
    
    .story-avatar img,
    .story-avatar video {
        width: 64px;
        height: 64px;
    }
    
    .story-title {
        font-size: 11px;
        max-width: 80px;
    }
    
    .story-product-info {
        bottom: 60px;
        left: 15px;
        right: 15px;
        padding: 10px 12px;
        max-width: 280px;
    }
    
    .story-product-name {
        font-size: 13px;
    }
    
    .story-price-pix {
        font-size: 14px;
    }
    
    .story-price-installment {
        font-size: 10px;
    }
    
    .story-product-button {
        padding: 8px 12px;
        font-size: 11px;
    }
}