:root {
    --primary-color: #6fcee6;
    --primary-hover: #5cb2c9;
    --success-color: #2fbf30;
    --danger-color: #e53935;
    --text-color: #faebd7;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --dark-bg: #1e1f26;
    --accent-color: #03dac6;
    --accent-hover: #ff0266;
    --border-accent: rgba(3, 218, 198, 0.3);
}

/* Base */
.wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Lab Section Styling */
.lab-section {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
}

.lab-container {
    background: rgba(30, 31, 38, 0.85);
    border-radius: 12px;
    border: 1px solid var(--border-accent);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* Header */
.lab-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 1rem;
}

.lab-header h2 {
    font-family: "Roboto", sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0 1rem;
}

.lab-header .subtitle {
    margin-top: 0.5rem;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    background: rgba(30, 31, 38, 0.7);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-accent);
}

.accent-icon {
    color: var(--accent-color);
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.lab-header h2:hover .accent-icon.fa-flask {
    color: var(--accent-hover);
    transform: rotate(15deg);
    transition: all 0.3s ease;
}

/* Video Section */
.video-section {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-accent);
}

.lab-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Description Section */
.description-section {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.description-content {
    background: rgba(30, 31, 38, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-accent);
}

.description-content h3 {
    font-family: "Roboto", sans-serif;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 500;
}

.description-text {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.description-text p {
    margin-bottom: 1rem;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 31, 38, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(3, 218, 198, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(3, 218, 198, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-text p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 0 2rem;
}

.gallery-section h3 {
    font-family: "Roboto", sans-serif;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-accent);
    transition: all 0.3s ease;
    background: rgba(30, 31, 38, 0.6);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    background: rgba(30, 31, 38, 0.8);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--accent-color);
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-hover);
    transform: rotate(90deg);
}

.lightbox-caption {
    padding: 1rem;
    text-align: center;
    color: var(--text-color);
    background: rgba(30, 31, 38, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        padding: 1rem;
    }
    
    .lab-header h2 {
        font-size: 2rem;
    }
    
    .video-section,
    .description-section,
    .gallery-section {
        padding: 0 1rem;
    }
    
    .description-content {
        padding: 1.5rem;
    }
    
    .lab-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .lab-header h2 {
        font-size: 1.8rem;
    }
    
    .description-content {
        padding: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.cart-icon-container i.fa-flask {
    color: var(--accent-color) !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(3, 218, 198, 0.5);
}

.cart-icon-container:hover i.fa-flask {
    color: var(--accent-hover) !important;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(255, 2, 102, 0.6);
}