* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: white;
    overflow: hidden;
    touch-action: pan-y;
}

.tiktok-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Category Selector - Top Right */
.category-selector {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn:active {
    transform: scale(0.9);
}

.category-btn.active {
    background: rgba(255,255,255,0.9);
    color: #000;
    transform: scale(1.1);
}

/* Item Counter - Top Left */
.item-counter {
    position: fixed;
    top: 50px;
    left: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Main Scroll Container */
.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Individual Clothing Item */
.clothing-slide {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

.clothing-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90%;
    max-height: 80%;
}

/* Bottom Info Panel */
.bottom-info {
    position: fixed;
    bottom: 60px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    text-align: center;
}

.item-name {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.swipe-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* Loading State */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .category-selector {
        top: 40px;
        right: 15px;
        gap: 10px;
    }
    
    .category-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .item-counter {
        top: 40px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .bottom-info {
        bottom: 40px;
        left: 15px;
        right: 15px;
    }
    
    .item-name {
        font-size: 16px;
        padding: 10px 16px;
    }
}

@media (max-width: 360px) {
    .category-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .item-counter {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .category-selector {
        top: 20px;
        right: 20px;
        flex-direction: row;
        gap: 8px;
    }
    
    .item-counter {
        top: 20px;
        left: 20px;
    }
    
    .bottom-info {
        bottom: 20px;
    }
    
    .clothing-slide img {
        max-height: 70%;
    }
}