:root {
    --bg-dark: #0f0f12;
    --bg-card: #18181b;
    --bg-card-hover: #222226;
    --primary: #6d28d9;
    /* Deep Purple */
    --primary-hover: #7c3aed;
    --accent: #8b5cf6;
    --secondary: #27272a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
    --gradient-main: linear-gradient(135deg, #6d28d9 0%, #d946ef 100%);

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #3f3f46;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--accent);
}

/* Navbar */
.navbar {
    padding: 24px 0;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 18, 0.8);
    margin-bottom: 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

/* Search Overlay */
/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    /* Match approximate navbar height */
    background: var(--bg-dark);
    /* Solid background to cover navbar */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    /* Start hidden above */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    /* Always opaque */
}

.search-overlay.active {
    transform: translateY(0);
    /* Slide down */
}

.search-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    position: relative;
    transform: none;
    /* Reset logic from previous */
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-overlay.active .search-container {
    transform: none;
}

#searchInput {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    /* Smaller font for header */
    color: var(--text-main);
    padding: 10px 0;
    font-family: 'Outfit', sans-serif;
    outline: none;
    border-bottom: none;
    /* Clean look */
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.close-search {
    position: static;
    transform: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    /* Slight bg for button */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search:hover {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 32px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(109, 40, 217, 0.2);
    color: var(--text-main);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(109, 40, 217, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Code Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.code-card {
    background: #1e1e24;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.code-body pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Syntax Highlighting Mock */
.k {
    color: #d946ef;
}

/* keyword */
.c {
    color: #fbbf24;
}

/* class */
.t {
    color: #60a5fa;
}

/* this */
.p {
    color: #94a3b8;
}

/* property */
.s {
    color: #22c55e;
}

/* string */
.v {
    color: #f472b6;
}

/* value */
.m {
    color: #60a5fa;
}

/* method */

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Feature/Courses Section */
.courses-section {
    max-width: 1200px;
    margin: 0 auto 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.tab.active,
.tab:hover {
    background: var(--secondary);
    color: var(--text-main);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
}

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

.course-thumb {
    height: 180px;
    background: #27272a;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.tag-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

.course-card:hover .tag-badge {
    transform: translateY(-2px);
    background: rgba(109, 40, 217, 0.8);
}

.course-info {
    padding: 20px 8px 8px 8px;
    /* Reduced side padding since card has padding */
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #eab308;
    margin-bottom: 12px;
}

.rating-count {
    color: var(--text-muted);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.instructor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3f3f46;
}

.instructor-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.add-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ... Previous styles ... */

/* New Visual Helpers */
.loading {
    padding: 100px;
    text-align: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Time Widget */
.time-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Layouts */
.product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.p-title {
    font-size: 3rem;
    line-height: 1.1;
    margin: 16px 0;
}

.p-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge {
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.languages {
    background: #3b82f6;
    color: white;
}

.badge.learn {
    background: #10b981;
    color: white;
}

.p-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.p-hero-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    max-height: 400px;
    object-fit: cover;
}

.text-warning {
    color: #eab308;
}

.learn-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.learn-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.learn-list i {
    color: var(--accent);
    margin-top: 5px;
}

/* Product Sidebar */
.buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.buy-thumb {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    /* Hide if hero is present? No, keep as sidebar thumbnail */
    display: none;
}

@media(min-width: 900px) {
    .buy-thumb {
        display: block;
    }
}

.buy-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.money-back {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.course-features li i {
    width: 20px;
    text-align: center;
}

/* Extra Page */
.extra-header {
    text-align: center;
    margin: 40px 0 60px;
}

.extra-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.extra-section {
    margin-bottom: 80px;
}

.extra-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Memes */
.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.meme-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.meme-card img {
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Quotes */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.quote-card {
    background: linear-gradient(135deg, #1e1e24 0%, #18181b 100%);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
}

.quote-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.quote-card cite {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* History */
.history-list {
    border-left: 2px solid var(--border);
    margin-left: 20px;
    padding-left: 40px;
}

.history-item {
    position: relative;
    margin-bottom: 40px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -49px;
    /* adjust for border and padding */
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
}

.year {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .buy-card {
        position: static;
        margin-top: 40px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
        margin-bottom: 2rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .nav-links {
        width: 100%;
        max-width: 95vw;
        justify-content: center;
        padding: 12px 24px;
        gap: 20px;
        flex-wrap: wrap;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50px;
    }

    .nav-actions {
        width: auto;
        justify-content: center;
        gap: 12px;
    }

    .login-btn {
        display: none;
        /* Hide login btn on mobile header to save space, maybe move to menu? Or keep icon only? detailed below */
    }

    .mobile-menu-btn {
        display: block;
        /* SHOW THE BUTTON */
        font-size: 1.5rem;
        width: 44px;
        /* Touch target */
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-main);
    }

    .nav-actions {
        gap: 8px;
    }

    .cart-btn,
    .search-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        display: flex;
        /* Center icons */
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 20px auto 60px;
        gap: 30px;
        padding: 0 16px;
        max-width: 100%;
        align-items: center;
        justify-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 30px;
        padding: 0 10px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        margin: 0 auto;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stat-row {
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }

    .code-card {
        transform: none !important;
        max-width: 100%;
        width: 100%;
        padding: 16px;
        font-size: 0.85rem;
        margin: 0 auto;
    }

    .code-card pre {
        font-size: 0.75rem;
        overflow-x: auto;
        text-align: left;
    }

    .hero-visual {
        width: 100%;
        padding: 0 16px;
        display: flex;
        justify-content: center;
    }

    .visual-glow {
        display: none;
    }

    /* Filters */
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .footer-brand p {
        margin: 12px auto 0;
    }

    /* Extra Page Mobile */
    .extra-header h1 {
        font-size: 2.5rem;
    }

    .history-list {
        margin-left: 10px;
        padding-left: 30px;
    }

    /* Global Mobile Alignment & Spacing */
    body {
        text-align: center;
        /* Center align everything on mobile by default */
    }

    .app-container {
        padding: 0 16px;
        /* Adjust padding */
    }

    h1 {
        font-size: 2.2rem !important;
        /* Cap H1 size */
    }

    h2 {
        font-size: 1.8rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Fix image sizing logic */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    padding: 80px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    /* Glassmorphism */
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Buy Bar (Product Page) */
.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.m-price-info {
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.m-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.m-actions {
    display: flex;
    gap: 12px;
}

/* Mobile Cart Sticky Footer */
.mobile-cart-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .mobile-buy-bar {
        display: flex;
    }

    /* Ensure content doesn't get hidden behind bar */
    .product-layout {
        padding-bottom: 80px;
    }

    .cart-page {
        padding-bottom: 100px;
    }

    .mobile-cart-footer {
        display: flex;
    }

    /* Hide desktop Checkout button in summary if creating duplicate sticky one? 
       Actually better to keep both but sticky one is for convenience. */

    /* Account Page Mobile */
    .account-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
    }

    .info-value {
        text-align: left;
        width: 100%;
    }
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

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

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 0 16px;
}

.mobile-dropdown-content.show {
    display: flex;
}

.mobile-sublink {
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sublink i {
    color: var(--accent);
}