/* Tab Navigation */
.tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    position: relative;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Ensure Featured card cover images show fully inside the box */
.featured-card .featured-media {
    width: 100%;
    height: 240px;
    object-fit: contain; /* show entire cover image */
    background: #0b0c18; /* letterbox background */
    display: block;
}

@media (max-width: 768px) {
    .featured-card .featured-media {
        height: 200px;
    }
}

.tabs-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tabs {
    display: flex;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 4px; /* Space for the indicator */
}

.tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.tab-btn {
    background: none;
    border: none;
    color: #a0a0ff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn.active {
    color: #6c63ff;
    font-weight: 600;
}

.active-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #6c63ff;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.tab-nav-btn {
    background: rgba(108, 99, 255, 0.1);
    border: none;
    color: #6c63ff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.tab-nav-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    transform: scale(1.1);
}

.tab-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Featured Products Section */
.featured-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.5), transparent);
}

.section-subtitle {
    text-align: center;
    color: #a0a0ff;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Products Scroll Container */
.products-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.5) transparent;
}

.products-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.products-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.products-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(108, 99, 255, 0.5);
    border-radius: 3px;
}

.products-scroll-wrapper {
    display: inline-flex;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    min-width: 100%;
    box-sizing: border-box;
}

/* Featured Categories Grid */
.featured-categories {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    min-height: 400px; /* Ensure consistent height */
}

.featured-card .featured-body {
    flex: 1;
    border-color: rgba(108, 99, 255, 0.4);
}

/* Category Header */
.featured-category-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c63ff;
    font-size: 1.2rem;
}

.category-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

/* Product Content */
.featured-product {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-category:hover .product-image img {
    transform: scale(1.03);
}

/* Product Details */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.product-description {
    color: #a0a0ff;
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.5;
    flex: 1;
}

/* Product Meta */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6c63ff;
}

/* Audio Controls */
.audio-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(5px);
}

.play-btn {
    background: #6c63ff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background: #5a51e6;
    transform: scale(1.05);
}

.play-btn.playing i::before {
    content: '\f04c';
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #6c63ff;
    transition: width 0.1s linear;
}

.time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: monospace;
    min-width: 45px;
    text-align: right;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
}

.see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid #6c63ff;
    color: #6c63ff;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.see-more:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.see-more i {
    transition: transform 0.2s ease;
}

.see-more:hover i {
    transform: translateX(3px);
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #a0a0ff;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6c63ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 99, 99, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 99, 99, 0.2);
}

.error-message p {
    color: #ff6b6b;
.featured-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(108, 99, 255, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.featured-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6c63ff;
    margin-bottom: 1rem;
}

.featured-description {
    color: #a0a0ff;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.featured-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #6c63ff;
    color: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
}

.btn-play:hover {
    background: #6c63ff;
    color: white;
    transform: scale(1.1);
}

.btn-play.playing {
    background: #6c63ff;
    color: white;
}

.btn-play i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-see-more {
    flex: 1;
    background: transparent;
    border: 1px solid #6c63ff;
    color: #6c63ff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-see-more:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #a0a0ff;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6c63ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Audio Player Styles */
.audio-preview {
    width: 100%;
    margin-top: 1rem;
    display: none;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0.5rem 0;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #6c63ff;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
.featured-card .audio-player {
    position: absolute; /* Position absolutely at bottom of card */
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevent shrinking */
    z-index: 10; /* Ensure it appears above other content */
}

.featured-card .audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.featured-card .play-pause-btn {
    background: #6c63ff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.featured-card .progress-container {
    flex: 1 !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.featured-card .progress-bar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 0% !important;
    background: #6c63ff !important;
    transition: width 0.1s linear !important;
}

.featured-card .time-display {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    min-width: 45px !important;
    text-align: right !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .featured-section {
        padding: 3rem 0;
    }
    
    .featured-card .audio-controls {
        gap: 0.5rem;
    }
    
    .featured-card .play-pause-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .featured-card .time-display {
        font-size: 0.75rem !important;
        min-width: 40px !important;
    }
}
