/* Modern Collection Details Page Styles - Purple Gradient Theme */
:root {
    /* Brand Colors - Purple Gradient Theme */
    --collection-primary: #667eea;
    --collection-secondary: #764ba2;
    --collection-gradient: linear-gradient(135deg, var(--collection-primary) 0%, var(--collection-secondary) 100%);
    --collection-gradient-reverse: linear-gradient(135deg, var(--collection-secondary) 0%, var(--collection-primary) 100%);
    
    /* Supporting Colors */
    --collection-accent: #f093fb;
    --collection-light: #f5f3ff;
    --collection-dark: #1a202c;
    --collection-text: #2d3748;
    --collection-text-light: #718096;
    --collection-white: #ffffff;
    --collection-black: #000000;
    --collection-gray-100: #f7fafc;
    --collection-gray-200: #edf2f7;
    --collection-gray-300: #e2e8f0;
    
    /* Shadows & Effects */
    --collection-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --collection-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --collection-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --collection-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);
    --collection-shadow-purple: 0 10px 40px rgba(102, 126, 234, 0.3);
    
    /* Border Radius */
    --collection-radius: 12px;
    --collection-radius-lg: 20px;
    --collection-radius-xl: 30px;
    
    /* Transitions */
    --collection-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --collection-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
.collection-page-wrapper {
    min-height: 100vh;
    background: transparent;
    overflow-x: hidden;
}

/* Full Width Visual Sections */
.full-width-visual-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hero Section */
.collection-hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background */
.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Banner media - carousel style */
.bg-video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(118, 75, 162, 0.5) 50%,
        rgba(26, 32, 44, 0.7) 100%
    );
    pointer-events: none;
}

/* YouTube-Style Video Controls */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    padding: 0;
}

.video-background-wrapper:hover .video-controls-overlay {
    opacity: 1;
}

.custom-video-controls {
    padding: 0 12px 12px;
}

/* YouTube-style Progress Bar */
.video-progress-container {
    width: 100%;
    padding: 0 12px;
    cursor: pointer;
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: -8px;
}

.video-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: height 0.1s ease;
}

.video-progress-container:hover .video-progress {
    height: 5px;
}

.video-progress-bar {
    height: 100%;
    background: #ff0000;
    position: relative;
    width: 0;
    transition: none;
}

.video-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    width: 0;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.1s ease;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.3);
}

.video-progress-container:hover .video-progress-handle {
    opacity: 1;
}

/* YouTube-style Control Buttons */
.video-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.video-controls-left,
.video-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-buttons button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-buttons button:active {
    background: rgba(255, 255, 255, 0.3);
}

.video-buttons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Play/Pause specific styling */
.video-play-pause {
    width: 36px !important;
    height: 36px !important;
}

.video-play-pause svg {
    width: 28px;
    height: 28px;
}

.play-icon { display: block; }
.pause-icon { display: none; }
.volume-icon { display: block; }
.mute-icon { display: none; }

.playing .play-icon { display: none; }
.playing .pause-icon { display: block; }
.muted .volume-icon { display: none; }
.muted .mute-icon { display: block; }

/* Volume Slider (YouTube-style) */
.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}

.volume-control:hover .volume-slider-container {
    width: 60px;
}

.volume-slider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-slider-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    width: 100%;
}

.volume-slider-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

/* Time Display (YouTube-style) */
.video-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-family: 'Roboto', 'Arial', sans-serif;
    margin-left: 14px;
    user-select: none;
}

.video-time span {
    color: rgba(255, 255, 255, 0.7);
}

/* Fullscreen button adjustment */
.video-fullscreen svg {
    width: 22px;
    height: 22px;
}

/* Hover tooltip for buttons */
.video-buttons button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 28, 0.9);
    color: white;
    padding: 5px 9px;
    border-radius: 2px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.video-buttons button:hover::before {
    opacity: 1;
}

/* Hero Content */
.collection-hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.collection-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--collection-white);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.title-emphasis {
    font-weight: 700;
    background: linear-gradient(135deg, var(--collection-white) 0%, var(--collection-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.collection-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animated Button */
.animated-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--collection-gradient);
    color: var(--collection-white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--collection-transition);
    box-shadow: var(--collection-shadow-purple);
    position: relative;
    overflow: hidden;
}

.animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.animated-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.animated-btn:hover::before {
    left: 100%;
}

.animated-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.animated-btn:hover svg {
    transform: translateX(5px);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--collection-primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--collection-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-underline {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.section-underline span {
    width: 80px;
    height: 4px;
    background: var(--collection-gradient);
    border-radius: 2px;
    position: relative;
}

.section-underline span::before,
.section-underline span::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 20px;
    background: var(--collection-gradient);
    border-radius: 2px;
    top: 0;
}

.section-underline span::before {
    left: -30px;
    opacity: 0.6;
}

.section-underline span::after {
    right: -30px;
    opacity: 0.6;
}

/* Best Sellers Section */
.best-sellers-section {
    background: transparent;
}

.best-sellers-slider {
    position: relative;
    padding: 0 60px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--collection-white);
    border-radius: 50%;
    box-shadow: var(--collection-shadow-md);
    transition: var(--collection-transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 24px;
    height: 24px;
    fill: var(--collection-primary);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--collection-gradient);
    transform: scale(1.1);
}

.swiper-button-prev:hover svg,
.swiper-button-next:hover svg {
    fill: var(--collection-white);
}

.swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--collection-gray-300);
    opacity: 1;
    transition: var(--collection-transition);
}

.swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 6px;
    background: var(--collection-gradient);
}

/* Science Backed Section */
.science-backed-section {
    background: var(--collection-white);
    overflow: hidden;
}

.science-backed-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.science-backed-content {
    padding-right: 40px;
}

.science-backed-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--collection-text-light);
    margin: 30px 0 40px;
}

.science-backed-image {
    position: relative;
}

.image-parallax-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--collection-radius-xl);
    box-shadow: none;
}

.image-parallax-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-parallax-container:hover img {
    transform: scale(1.05);
}

/* All Products Section */
.all-products-section {
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Empty State */
.no-products-found {
    padding: 80px 0;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--collection-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-svg {
    width: 60px;
    height: 60px;
    fill: var(--collection-white);
}

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--collection-text);
    margin-bottom: 15px;
}

.empty-state-description {
    font-size: 18px;
    color: var(--collection-text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-action {
    margin-top: 30px;
}

/* Immersive Showcase Section */
.immersive-showcase-section {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.immersive-showcase-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.immersive-showcase-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--collection-white);
    margin-bottom: 40px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--collection-white);
    color: var(--collection-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--collection-transition);
    box-shadow: var(--collection-shadow-sm);
}

.pagination .page-link:hover {
    background: var(--collection-gradient);
    color: var(--collection-white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--collection-gradient);
    color: var(--collection-white);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .science-backed-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .science-backed-content {
        padding-right: 0;
        text-align: center;
    }
    
    .best-sellers-slider {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .collection-hero-section {
        height: 80vh;
    }
    
    .collection-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .collection-hero-subtitle {
        font-size: 1rem;
    }
    
    .animated-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .best-sellers-slider {
        padding: 0;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    
    .video-controls-overlay {
        padding: 20px;
    }
    
    .video-buttons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .collection-hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* RTL Support */
body[dir="rtl"] .collection-page-wrapper {
    direction: rtl;
}

body[dir="rtl"] .animated-btn svg {
    transform: rotate(180deg);
}

body[dir="rtl"] .animated-btn:hover svg {
    transform: rotate(180deg) translateX(-5px);
}

body[dir="rtl"] .science-backed-content {
    padding-right: 0;
    padding-left: 40px;
}

body[dir="rtl"] .swiper-button-prev {
    left: auto;
    right: 10px;
}

body[dir="rtl"] .swiper-button-next {
    right: auto;
    left: 10px;
}

/* Loading State */
.collection-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--collection-gray-300);
    border-top-color: var(--collection-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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