/* OptiWow Final - Premium Design with MediaPipe Integration */

:root {
    /* Brand Colors */
    --primary-blue: #3d48ea;
    --deep-navy: #161f6d;
    --cyan-bright: #00abe1;
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f7;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--cyan-bright));
    --gradient-hover: linear-gradient(135deg, var(--deep-navy), var(--primary-blue));
    --gradient-subtle: linear-gradient(180deg, rgba(61, 72, 234, 0.05), rgba(0, 171, 225, 0.05));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 10px 40px rgba(61, 72, 234, 0.2);
    
    /* Animations */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--pure-white);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.loading-logo svg {
    width: 100%;
    height: 100%;
}

.loading-logo .lens-left {
    animation: pulse-scale 2s ease-in-out infinite;
}

.loading-logo .lens-right {
    animation: pulse-scale 2s ease-in-out infinite 0.2s;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

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

/* Advanced Cursor */
.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(61, 72, 234, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background 0.3s ease;
    mix-blend-mode: multiply;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Premium Header */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-premium.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-premium {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-center {
    display: flex;
    gap: 3rem;
}

.nav-link-premium {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-base);
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link-premium:hover {
    color: var(--primary-blue);
}

.nav-link-premium:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn-premium {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-base);
    position: relative;
}

.cart-btn-premium:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Hero Section */
.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 2rem 2rem;
    background: var(--light-gray);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--cyan-bright);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--deep-navy);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 10px) scale(1.05); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-premium {
    animation: fade-in-left 1s ease;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title-premium {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text-animated {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-premium {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    border: none;
    text-decoration: none;
}

.btn-primary-premium {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.btn-secondary-premium {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--medium-gray);
}

.btn-secondary-premium:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-visual {
    position: relative;
    animation: fade-in-right 1s ease;
}

.floating-glasses-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glasses-3d {
    position: relative;
    width: 400px;
    height: 200px;
    animation: float-glasses 6s ease-in-out infinite;
}

.glasses-3d svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(61, 72, 234, 0.2));
}

@keyframes float-glasses {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-20px) rotateX(5deg) rotateY(10deg); }
    50% { transform: translateY(10px) rotateX(-5deg) rotateY(-5deg); }
    75% { transform: translateY(-10px) rotateX(3deg) rotateY(-10deg); }
}

.orbit-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 2px dashed rgba(61, 72, 234, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(61, 72, 234, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Virtual Studio Section */
.virtual-studio {
    padding: 5rem 2rem;
    background: white;
}

.studio-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-premium {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decorator {
    color: var(--primary-blue);
    font-size: 1rem;
    animation: spin 10s linear infinite;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.studio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.camera-section {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
}

.camera-frame {
    position: relative;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

#inputVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    z-index: 1;
}

#uploadedImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(1);
    z-index: 1;
}

#outputCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

#uploadedImage.active ~ #outputCanvas {
    transform: scaleX(1);
}

.detection-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.detection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 1s infinite;
}

.detection-dot.detecting {
    background: #fbbf24;
    animation: pulse-dot 1s infinite;
}

.detection-dot.detected {
    background: #10b981;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.snapshot-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.snapshot-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f5f7, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.camera-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-primary {
    background: var(--gradient-primary);
    color: white;
}

.control-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.control-secondary {
    background: #64748b;
    color: white;
}

.control-secondary:hover:not(:disabled) {
    background: #475569;
    transform: translateY(-2px);
}

.control-success {
    background: #10b981;
    color: white;
}

.control-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex: 1;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.glasses-selection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.selection-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.style-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.style-filter {
    background: white;
    border: 2px solid var(--medium-gray);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.style-filter:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.style-filter.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.glasses-carousel {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1rem;
}

.glasses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.glasses-grid::-webkit-scrollbar {
    width: 8px;
}

.glasses-grid::-webkit-scrollbar-track {
    background: var(--medium-gray);
    border-radius: 10px;
}

.glasses-grid::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.glasses-item {
    background: white;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    position: relative;
}

.glasses-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.glasses-item.selected {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: var(--primary-blue);
}

.glasses-item svg {
    width: 100%;
    height: 60px;
    margin-bottom: 8px;
}

.glasses-item .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.glasses-item .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
}

/* Customization panel removed - keeping space for cleaner layout */

.color-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.selected-glasses-info {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.selected-glasses-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.selected-glasses-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-add-to-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-colored);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Collection Section */
.collection-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.collection-container {
    max-width: 1400px;
    margin: 0 auto;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    height: 250px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-badge-premium {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-image-premium {
    width: 80%;
    height: auto;
    transition: var(--transition-smooth);
}

.product-info-premium {
    padding: 1.5rem;
}

.product-name-premium {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-desc-premium {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-premium {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-action {
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.product-action:hover {
    transform: scale(1.2) rotate(90deg);
}

/* Experience Section */
.experience-section {
    padding: 5rem 2rem;
    background: white;
}

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

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.experience-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--gradient-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.experience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.experience-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.cart-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.cart-close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.btn-checkout:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-colored);
}

/* Footer */
.footer-premium {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

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

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Toast */
.toast-premium {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: var(--shadow-xl);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3000;
}

.toast-premium.show {
    bottom: 2rem;
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 2rem;
}

.mobile-link {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition-base);
}

/* Animations */
@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .studio-layout {
        grid-template-columns: 1fr;
    }
    
    .glasses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-premium {
        width: 100%;
        justify-content: center;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .glasses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}