/* Premium Cosmetics Website - Modern Marketing Design */

:root {
    /* Color Palette */
    --teal-primary: #008B8B;
    --teal-light: #20B2AA;
    --teal-dark: #006666;
    --brown-primary: #8B4513;
    --brown-light: #A0522D;
    --turquoise: #40E0D0;
    --turquoise-light: #7FFFD4;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F5F5;
    --text-dark: #2C2C2C;
    --text-gray: #666666;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(64, 224, 208, 0.3);

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, #008B8B 0%, #40E0D0 100%);
    --gradient-brown: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --gradient-hero: linear-gradient(135deg, #E0F7FA 0%, #B2DFDB 50%, #80CBC4 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.logo a:hover {
    letter-spacing: 4px;
}

.logo span {
    font-weight: 400;
}

.search {
    flex: 1;
    max-width: 400px;
}

form.search-form {
    display: flex;
    box-shadow: var(--shadow-sm);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

form.search-form:focus-within {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

form.search-form input {
    flex: 1;
    padding: 14px 30px;
    border: 2px solid var(--light-gray);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

form.search-form input:focus {
    border-color: var(--teal-light);
}

form.search-form button {
    padding: 14px 28px;
    background: var(--gradient-teal);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

form.search-form button:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gradient-teal);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--teal-primary);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Video Slider Section */
.hero-video-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.video-slide.active {
    opacity: 1;
    z-index: 2;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
    width: 90%;
    max-width: 800px;
}

.hero-content-overlay h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.hero-content-overlay p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Sound Toggle Button */
.sound-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.sound-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

.sound-toggle.muted .sound-on {
    display: none;
}

.sound-toggle.muted .sound-off {
    display: block;
}

.sound-toggle:not(.muted) .sound-on {
    display: block;
}

.sound-toggle:not(.muted) .sound-off {
    display: none;
}

/* Video Progress Indicators */
.video-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.video-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.video-indicator.active {
    background: rgba(255, 255, 255, 0.4);
}

.video-indicator .progress {
    height: 100%;
    width: 0;
    background: var(--turquoise);
    transition: none;
}

.video-indicator.active .progress {
    animation: indicatorProgress linear forwards;
}

@keyframes indicatorProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Legacy Hero Section (fallback) */
.hero {
    background: var(--gradient-hero);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 22px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    background: var(--gradient-teal);
    color: white;
    padding: 16px 48px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--brown-primary);
    margin-bottom: 60px;
    position: relative;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-teal);
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-teal);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card-image {
    position: relative;
    height: 300px;
    background: var(--light-gray);
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card h3 a:hover {
    color: var(--teal-primary);
}

.product-card .price {
    font-weight: 700;
    font-size: 24px;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.product-card .view-details {
    display: inline-block;
    background: var(--gradient-teal);
    color: white;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card .view-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-card .view-details:hover::before {
    width: 200px;
    height: 200px;
}

.product-card .view-details:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--turquoise);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--turquoise);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.marketplace-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.circle-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.circle-btn img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        gap: 20px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .featured-products h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Hero Slider Responsive */
@media (max-width: 1024px) {
    .hero-video-slider {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content-overlay h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-video-slider {
        height: 60vh;
        min-height: 350px;
    }

    .hero-content-overlay h1 {
        font-size: 32px;
    }

    .hero-content-overlay p {
        font-size: 18px;
    }

    .sound-toggle {
        width: 40px;
        height: 40px;
        top: 15px;
        left: 15px;
    }

    .sound-toggle svg {
        width: 20px;
        height: 20px;
    }

    .video-indicators {
        bottom: 20px;
    }

    .video-indicator {
        width: 30px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .hero-video-slider {
        height: 50vh;
        min-height: 300px;
    }

    .hero-content-overlay h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .hero-content-overlay p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-content-overlay .btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}