/*
Theme Name: Premium Earbuds Landing
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom single product landing page theme for WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: premium-earbuds-landing
*/

/* Import main CSS */

        /* Reset and base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #4ecdc4;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --text-color: #333;
            --light-bg: #f8f9fa;
            --transition-speed: 0.3s;
            --offer-duration: 24h;
            /* This will be controlled by JS */
        }

        body {
            background-color: var(--light-bg);
            color: var(--text-color);
            line-height: 1.6;
            opacity: 0;
            animation: fadeIn 1s ease forwards;
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }

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

        /* Header styles */
        header {
            background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a2e 100%);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            opacity: 0;
            transform: translateY(-20px);
            animation: smoothAppear 0.8s ease forwards 0.3s;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 2rem;
            opacity: 0;
            transform: translateY(-20px);
            animation: smoothAppear 0.8s ease forwards;
        }

        .nav-links li:nth-child(1) {
            animation-delay: 0.4s;
        }

        .nav-links li:nth-child(2) {
            animation-delay: 0.5s;
        }

        .nav-links li:nth-child(3) {
            animation-delay: 0.6s;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color var(--transition-speed);
            font-size: 1.1rem;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
        }

        /* Mobile sidebar */
        .mobile-nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 70%;
            height: 100vh;
            background: var(--secondary-color);
            z-index: 1000;
            padding: 2rem;
            transition: right 0.4s ease;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        }

        .mobile-nav.open {
            right: 0;
        }

        .mobile-nav .close-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
        }

        .mobile-nav-links {
            list-style: none;
            margin-top: 3rem;
        }

        .mobile-nav-links li {
            margin-bottom: 1.5rem;
        }

        .mobile-nav-links a {
            color: white;
            text-decoration: none;
            font-size: 1.3rem;
            font-weight: 500;
            display: block;
            padding: 0.5rem 0;
            transition: color var(--transition-speed);
        }

        .mobile-nav-links a:hover {
            color: var(--primary-color);
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-speed);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Hero section */
        .hero {
            padding: 4rem 0;
            background: white;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }

        .hero-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
        }

        .product-images {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            margin-right: 2rem;
            opacity: 0;
            transform: translateY(40px);
            animation: smoothAppear 1s ease forwards 0.5s;
        }

        .main-image {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
            transition: transform 0.5s ease;
        }

        .main-image:hover {
            transform: scale(1.02);
        }

        .product-info {
            flex: 1;
            min-width: 300px;
            opacity: 0;
            transform: translateY(40px);
            animation: smoothAppear 1s ease forwards 0.7s;
        }

        .product-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--secondary-color);
        }

        .product-description {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 1.5rem;
        }

        .pricing {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .old-price {
            font-size: 1.5rem;
            text-decoration: line-through;
            color: #999;
            margin-right: 1rem;
        }

        .new-price {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--accent-color);
        }

        .discount-badge {
            background: var(--accent-color);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-weight: 600;
            margin-left: 1rem;
            font-size: 0.9rem;
        }

        .inventory {
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }

        .inventory span {
            font-weight: 600;
            color: #27ae60;
        }

        .low-stock {
            color: var(--accent-color) !important;
        }

        .rating {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .stars {
            color: #f39c12;
            margin-right: 0.8rem;
        }

        .reviews {
            color: #555;
        }

        .sales {
            margin-bottom: 1.5rem;
            font-size: 1rem;
            color: #555;
        }

        .sales span {
            font-weight: 600;
            color: var(--secondary-color);
        }

        .cta-button {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            padding: 1rem 2.5rem;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
            border: none;
            cursor: pointer;
        }

        .cta-button:hover {
            background: #3dbcb4;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
        }

        .cta-button:active {
            transform: translateY(0);
        }

        /* Countdown timer */
        .countdown {
            background: var(--secondary-color);
            color: white;
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            margin: 1.5rem 0;
            opacity: 0;
            transform: translateY(40px);
            animation: smoothAppear 1s ease forwards 0.9s;
        }

        .countdown-text {
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
        }

        .timer {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        .timer-unit {
            background: rgba(255, 255, 255, 0.15);
            padding: 0.8rem;
            border-radius: 5px;
            min-width: 70px;
        }

        .timer-value {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .timer-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            opacity: 0.8;
        }

        /* Features section */
        .features {
            padding: 4rem 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }

        .section-title {
            text-align: center;
            font-size: 2.2rem;
            margin-bottom: 3rem;
            color: var(--secondary-color);
            opacity: 0;
            transform: translateY(30px);
            animation: smoothAppear 1s ease forwards 1s;
        }

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

        .feature {
            text-align: center;
            padding: 1.5rem;
            border-radius: 10px;
            background: var(--light-bg);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            opacity: 0;
            transform: translateY(40px);
            animation: smoothAppear 1s ease forwards;
        }

        .feature:nth-child(1) {
            animation-delay: 1.1s;
        }

        .feature:nth-child(2) {
            animation-delay: 1.2s;
        }

        .feature:nth-child(3) {
            animation-delay: 1.3s;
        }

        .feature:nth-child(4) {
            animation-delay: 1.4s;
        }

        .feature:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .feature-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--secondary-color);
        }

        .feature-description {
            color: #555;
        }

        /* Reviews section */
        .reviews-section {
            padding: 4rem 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }

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

        .review {
            padding: 1.5rem;
            border-radius: 10px;
            background: var(--light-bg);
            opacity: 0;
            transform: translateY(40px);
            animation: smoothAppear 1s ease forwards;
        }

        .review:nth-child(1) {
            animation-delay: 1.1s;
        }

        .review:nth-child(2) {
            animation-delay: 1.2s;
        }

        .review:nth-child(3) {
            animation-delay: 1.3s;
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .reviewer {
            font-weight: 600;
            color: var(--secondary-color);
        }

        .review-date {
            color: #999;
            font-size: 0.9rem;
        }

        .review-stars {
            color: #f39c12;
            margin-bottom: 0.8rem;
        }

        .review-text {
            color: #555;
            font-style: italic;
        }

        /* FAQ section */
        .faq {
            padding: 4rem 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }

        .faq-item {
            margin-bottom: 1rem;
            border-radius: 8px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            animation: smoothAppear 1s ease forwards;
        }

        .faq-item:nth-child(1) {
            animation-delay: 1.1s;
        }

        .faq-item:nth-child(2) {
            animation-delay: 1.2s;
        }

        .faq-item:nth-child(3) {
            animation-delay: 1.3s;
        }

        .faq-item:nth-child(4) {
            animation-delay: 1.4s;
        }

        .faq-question {
            background: var(--primary-color);
            color: white;
            padding: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color var(--transition-speed);
        }

        .faq-question:hover {
            background: #3dbcb4;
        }

        .faq-answer {
            background: var(--light-bg);
            color: #555;
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            padding: 1.2rem;
        }

        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }

        .faq-question i {
            transition: transform var(--transition-speed) ease;
        }

        /* Footer */
        footer {
            background: var(--secondary-color);
            color: white;
            padding: 3rem 0;
            text-align: center;
        }

        .footer-content {
            opacity: 0;
            transform: translateY(30px);
            animation: smoothAppear 1s ease forwards 1.1s;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin: 1.5rem 0;
        }

        .footer-links li {
            margin: 0 1rem;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            transition: color var(--transition-speed);
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        .copyright {
            margin-top: 1.5rem;
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* Animation keyframes */
        @keyframes smoothAppear {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            :root {
                font-size: 14px;
            }

            .container {
                padding: 0 4vw;
            }

            .hero-content {
                flex-direction: column;
            }

            .product-images {
                margin-right: 0;
                margin-bottom: 2rem;
                max-width: 100%;
            }

            .product-title {
                font-size: 2rem;
            }

            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .timer-unit {
                min-width: 50px;
            }

            .timer-value {
                font-size: 1.5rem;
            }

            .feature,
            .review {
                padding: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            :root {
                font-size: 12px;
            }

            .container {
                padding: 0 3vw;
            }

            .cta-button {
                padding: 0.8rem 2rem;
                font-size: 1.1rem;
            }

            .product-title {
                font-size: 1.8rem;
            }

            .new-price {
                font-size: 1.8rem;
            }

            .old-price {
                font-size: 1.2rem;
            }

            .timer {
                gap: 0.5rem;
            }

            .timer-unit {
                min-width: 40px;
                padding: 0.6rem 0.3rem;
            }

            .timer-value {
                font-size: 1.2rem;
            }

            .timer-label {
                font-size: 0.7rem;
            }

            .feature-icon {
                font-size: 2rem;
            }

            .feature-title {
                font-size: 1.1rem;
            }
        }
    
