:root {
    --primary: #6c5ce7;
    --primary-light: #8a7bff;
    --dark-bg: #0a0a0e;
    --card-bg: #12121a;
    --text: #e2e2e2;
    --text-secondary: #a0a0a0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

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

header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.contact-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.contact-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.menu-toggle {
    display: none;
}

.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1), transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 580px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.hero-image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.15), rgba(10, 10, 14, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px rgba(108, 92, 231, 0.15);
    overflow: hidden;
}

.sound-wave {
    color: var(--primary);
    position: relative;
    width: 200px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sound-wave .bar {
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(to top, rgba(108, 92, 231, 0.3), var(--primary));
    animation: wave-animation 1.2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.sound-wave .bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-wave .bar:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.sound-wave .bar:nth-child(3) { height: 90%; animation-delay: 0.3s; }
.sound-wave .bar:nth-child(4) { height: 70%; animation-delay: 0.4s; }
.sound-wave .bar:nth-child(5) { height: 100%; animation-delay: 0.5s; }
.sound-wave .bar:nth-child(6) { height: 60%; animation-delay: 0.6s; }
.sound-wave .bar:nth-child(7) { height: 80%; animation-delay: 0.7s; }
.sound-wave .bar:nth-child(8) { height: 50%; animation-delay: 0.8s; }
.sound-wave .bar:nth-child(9) { height: 75%; animation-delay: 0.9s; }
.sound-wave .bar:nth-child(10) { height: 45%; animation-delay: 1s; }

@keyframes wave-animation {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

.services {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

footer {
    background-color: var(--card-bg);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(108, 92, 231, 0.15);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(108, 92, 231, 0.3), 
        rgba(108, 92, 231, 0.5), 
        rgba(108, 92, 231, 0.3), 
        transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        text-align: center;
        align-items: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-description {
        max-width: 500px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .bottom-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 50px auto 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 9px; }
    .menu-toggle span:nth-child(3) { top: 18px; }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background: var(--primary-light);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: var(--primary-light);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 14, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        padding: 80px 40px;
        transition: all 0.4s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav ul li a {
        font-size: 1.2rem;
    }
    
    .contact-button {
        margin-top: 2rem;
        padding: 12px 30px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero {
        padding: 140px 0 80px;
        background: none;
    }

    .hero::after {
        display: none;
    }

    .hero-image {
        width: 300px;
        height: 300px;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    
    .sound-wave {
        width: 160px;
        height: 120px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-image {
        width: 260px;
        height: 260px;
    }
    
    .sound-wave {
        width: 140px;
        height: 100px;
    }

    .sound-wave .bar {
        width: 4px;
    }
}

.product-info {
    display: flex;
        flex-direction: column;
}

.product-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 3vh, 20px);
    color: #fff;
    line-height: 1.2;
}

.product-price {
    font-size: clamp(1.8rem, 3vw, 2rem);
    font-weight: 700;
    color: #8a7bff;
    margin-bottom: clamp(20px, 4vh, 30px);
}

.product-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: clamp(20px, 4vh, 30px);
}

@media (max-width: 968px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vh, 40px);
    }

    .product-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-title {
        order: 1;
        margin-bottom: 10px;
    }

    .product-price {
        order: 2;
        margin-bottom: 15px;
    }

    .audio-preview {
        order: 3;
        margin-bottom: 20px;
    }

    .buy-button {
        order: 4;
        margin-bottom: 30px;
    }

    .product-description {
        order: 5;
        margin-bottom: 20px;
    }

    .product-details {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vh, 30px);
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 40px 20px;
    }

    .product-title {
        font-size: clamp(1.8rem, 6vw, 2rem);
    }

    .product-price {
        font-size: clamp(1.6rem, 5vw, 1.8rem);
        }
        
    .audio-preview {
        padding: 15px;
        gap: 10px;
    }

    .buy-button {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .features-list, .specs-list {
        padding: 20px;
    }
}

/* Enhanced Shop Grid Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
        }
        
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
            color: var(--text);
    margin: 0;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    margin-top: 0.5rem;
        }
        
.add-to-cart:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Enhanced Product Page Styles */
.product-container {
            max-width: 1200px;
    margin: 120px auto 40px;
            padding: 0 20px;
        }
        
.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image {
            width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Update Media Queries */
@media (max-width: 992px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-card img {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .product-container {
        margin: 100px auto 30px;
        }
        
    .product-card img {
        height: 300px;
    }
    
    .product-card-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 0;
    }
    
    .product-container {
        margin: 80px auto 20px;
        padding: 0 15px;
    }
    
    .product-card img {
        height: 280px;
    }
    
    .product-card-content {
        padding: 1rem;
        }
        
    .add-to-cart {
        padding: 10px 20px;
    }
}

/* Back to Shop Link Styles */
.back-to-shop {
    display: inline-flex;
            align-items: center;
    gap: 8px;
    color: var(--text);
            text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
    font-size: 1rem;
    padding: 8px 0;
}

.back-to-shop:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.back-to-shop svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .back-to-shop {
        font-size: 1.1rem;
        margin: 1rem 0 2rem;
        padding: 12px 0;
    }

    .back-to-shop svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .back-to-shop {
        font-size: 1.15rem;
        margin: 0.5rem 0 1.5rem;
        padding: 10px 0;
        }
}

/* Terms and Privacy Policy Pages */
        .main-content {
            padding: 120px 0 60px;
    min-height: 100vh;
    background-color: var(--dark-bg);
        }

.terms-section,
        .policy-section {
    max-width: 800px;
    margin: 0 auto;
            padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

.terms-title,
        .policy-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
            color: var(--text);
    margin-bottom: 30px;
    text-align: center;
        }

.terms-section h2,
        .policy-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
        }

.terms-section p,
        .policy-section p {
    font-size: clamp(0.95rem, 2vw, 1rem);
    line-height: 1.7;
            color: var(--text-secondary);
    margin-bottom: 20px;
        }

.terms-section a,
        .policy-section a {
            color: var(--primary);
            text-decoration: none;
            transition: color 0.3s;
        }

.terms-section a:hover,
        .policy-section a:hover {
            color: var(--primary-light);
    text-decoration: underline;
        }

        @media (max-width: 768px) {
    .main-content {
        padding: 100px 0 40px;
    }

    .terms-section,
            .policy-section {
        padding: 30px 20px;
        margin: 0 20px;
        border-radius: 12px;
            }

    .terms-section h2,
    .policy-section h2 {
        margin: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 80px 0 30px;
    }

    .terms-section,
    .policy-section {
        padding: 20px 15px;
        margin: 0 15px;
        }
        
    .terms-title,
    .policy-title {
        margin-bottom: 20px;
    }

    .terms-section h2,
    .policy-section h2 {
        margin: 25px 0 12px;
        }
}

/* Enhanced Shop Header Styles */
.shop-header {
    position: relative;
    margin: 0;
    padding: 160px 20px 120px;
    text-align: center;
    background: linear-gradient(180deg, rgba(138, 123, 255, 0.1) 0%, rgba(10, 10, 10, 0) 100%);
    overflow: hidden;
            width: 100%;
}

.shop-header::before {
    content: '';
    position: absolute;
            top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(138, 123, 255, 0) 0%, 
        rgba(138, 123, 255, 0.5) 50%, 
        rgba(138, 123, 255, 0) 100%
    );
}

.shop-header::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(
        circle at center,
        rgba(138, 123, 255, 0.15) 0%,
        rgba(138, 123, 255, 0.1) 25%,
        rgba(138, 123, 255, 0.05) 50%,
        transparent 75%
    );
    pointer-events: none;
    animation: rotateGradient 30s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.shop-header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 0 30px rgba(138, 123, 255, 0.3);
    animation: fadeInUp 1s ease-out;
        }
        
.shop-header p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.shop-controls {
    position: relative;
    z-index: 2;
    margin-top: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s ease-out 0.4s backwards;
        }
        
.search-bar {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
        }

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(138, 123, 255, 0.1);
    box-shadow: 0 0 20px rgba(138, 123, 255, 0.1);
        }

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sort-controls select {
    padding: 15px 20px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
        }

.sort-controls select:focus {
    border-color: var(--primary);
    outline: none;
    background-color: rgba(138, 123, 255, 0.1);
    box-shadow: 0 0 20px rgba(138, 123, 255, 0.1);
        }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 120px 20px 80px;
    }

    .shop-controls {
        flex-direction: column;
        padding: 20px;
        margin-top: 30px;
    }

    .search-bar,
    .sort-controls {
        width: 100%;
        max-width: 100%;
    }

    .sort-controls select {
        width: 100%;
    }
        }

@media (max-width: 480px) {
    .shop-header {
        padding: 100px 15px 60px;
    }

    .shop-controls {
        padding: 15px;
        margin-top: 20px;
        border-radius: 12px;
            }

    .search-bar input,
    .sort-controls select {
        padding: 12px 15px;
        font-size: 0.95rem;
            }
        }

/* Custom Select Styling - More Compatible Version */
.custom-select-container {
    position: relative;
    width: 100%;
    z-index: 100; /* Ensure proper stacking context */
}

.custom-select-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: rgba(138, 123, 255, 0.3);
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%238a7bff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevents issues with click handling */
}

.custom-select-container.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden; /* Use visibility instead of max-height for better compatibility */
    opacity: 0;
    transform: translateY(-10px); /* Add a small transform for smoother animation */
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow-y: auto; /* Add scrolling for long lists */
    max-height: 250px;
}

.custom-select-container.open .custom-select-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background: rgba(138, 123, 255, 0.1);
    color: white;
}

/* For Shop Page Sort Control */
.sort-controls .custom-select-container {
    min-width: 180px;
}

/* For Contact Form Select */
.form-group .custom-select-container {
    margin-top: 5px;
}

/* Special positioning for the contact form dropdown */
.form-group .custom-select-options {
    top: auto; /* Reset top positioning */
    bottom: calc(100% + 10px); /* Position above the trigger */
    transform: translateY(10px); /* Reverse transform direction for upward animation */
}

.form-group .custom-select-container.open .custom-select-options {
    transform: translateY(0);
}