@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(23, 23, 33, 0.7);
    --primary: #6c5ce7;
    --primary-glow: rgba(108, 92, 231, 0.4);
    --accent: #00cec9;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    z-index: 2;
    padding-top: 80px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    padding: 2rem;
    border-radius: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

/* User Profile in Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

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

/* Trust Strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent);
}

/* Feature Blocks */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Products Grid */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* Slightly narrower for portrait */
    gap: 2rem;
    padding-bottom: 4rem;
}

.product-card {
    padding: 1.2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    aspect-ratio: 2/3;
    /* Portrait Ratio */
    height: auto;
    background-color: #1a1a24;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

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

.price-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    color: var(--text-muted);
    text-align: center;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Login Page Specific */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: white;
    color: #333;
    width: 100%;
    margin-top: 2rem;
    font-family: inherit;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Enhanced Latest Arrivals Styling */
.latest-arrivals-card {
    position: relative;
    overflow: hidden;
}

.latest-arrivals-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.latest-arrivals-card:hover::before {
    left: 100%;
}

/* Responsive Design - Media Queries */
@media (max-width: 768px) {

    /* Mobile Menu */
    .mobile-only {
        display: block !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        padding: 2rem;
        flex-direction: column;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 99;
    }

    .nav-right.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .feature-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .search-bar-wrapper {
        display: none;
        /* Hide top search on mobile, maybe add a dedicated search icon/page later if needed, or show below */
    }

    /* Trust Strip Vertical */
    .trust-strip {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Footer Stack */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        text-align: left !important;
        gap: 2rem !important;
    }

    /* Make the brand section full width if possible or just part of the grid */
    .footer-c1 {
        grid-column: span 2;
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
    }

    /* Cart Mobile */
    .cart-table-desktop {
        display: none;
        /* Hide table on mobile */
    }

    .cart-mobile-card {
        display: block;
        /* Show cards */
        background: rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile Product Grid - 2 Columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .product-card {
        padding: 0.8rem !important;
        border-radius: 12px;
    }

    .product-image {
        margin-bottom: 0.8rem;
        border-radius: 8px;
    }

    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .price {
        font-size: 1rem;
    }

    .price-original {
        font-size: 0.75rem;
    }

    .product-meta .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Default state for new classes */
.cart-mobile-card {
    display: none;
}

.cart-table-desktop {
    display: table;
    width: 100%;
}

/* Scrolled Header */
header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 1rem 0;
}

/* --- New Animations & Graphics --- */

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Background Graphic Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 0% 0%, rgba(108, 92, 231, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 206, 201, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(108, 92, 231, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 206, 201, 0.08) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Shimmer Effect for Cards */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.product-card:hover::after {
    left: 150%;
    transition: 0.7s;
}

/* Hide CodeIgniter Debug Icon to prevent extra whitespace */
#debug-icon-link {
    display: none !important;
}

/* --- New Sections: Categories, FAQ, Newsletter, Testimonials --- */

/* Category Chips */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.category-chip i {
    color: var(--accent);
}

.category-chip:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: transparent;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.03);
    font-family: serif;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stars {
    color: #ffcc00;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 206, 201, 0.1) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    min-width: 250px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}