:root {
    /* Light Mode (Default) */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --primary: #2563eb;
    --accent: #7c3aed;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;

    /* Product Colors (Slightly darker for contrast on white) */
    --color-suite: #475569;
    --color-discount: #991b1b;
    --color-pos: #166534;
    --color-scraper: #6b21a8;
    --color-barcode: #854d0e;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --navbar-bg: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);

    /* Original Dark Mode Product Colors */
    --color-suite: #576179;
    --color-discount: #5d231e;
    --color-pos: #274328;
    --color-scraper: #3f2c47;
    --color-barcode: #623917;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

/* Navbar */
.navbar {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--navbar-bg);
        flex-direction: column;
        justify-content: flex-start;
        /* Corrected to start */
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        padding-top: 6rem;
        padding-bottom: 2rem;
        z-index: 150;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

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

    .lang-selector-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        max-width: 200px;
        margin-top: 10px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        display: flex;
        /* Always visible in mobile structure if intended to be open? Or triggered? */
        /* Currently configured to just stack. JS toggle works for active class, but mobile structure mimics layout */
    }
}

/* Language Selector */
.lang-selector-container {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: var(--border-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.lang-dropdown.show {
    display: flex;
}

.lang-dropdown a {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    border-radius: 5px;
    text-align: left;
    text-decoration: none;
}

.lang-dropdown a:hover {
    background: var(--border-color);
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: white !important;
    border-radius: 20px;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    margin-left: 1rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    /* border-color: var(--primary); */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

/* Theme Toggle Button */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.theme-btn:hover {
    transform: rotate(15deg);
    color: var(--primary);
}

/* Featured Suite Card */
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.features-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Updated Breakpoint for Tablet (1024px) */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--navbar-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        padding-top: 6rem;
        padding-bottom: 2rem;
        z-index: 150;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

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

    /* Hero Buttons Mobile Center */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ... rest of styles ... */

/* Suite Button Refinement */
.btn-suite {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, filter 0.2s;
    background: var(--color-suite);
    color: white;
    /* Always white text */
    text-align: center;
}

.btn-suite:hover {
    filter: brightness(1.2);
    /* Proper CSS way to lighten */
    box-shadow: 0 10px 20px -10px rgba(87, 97, 121, 0.5);
    transform: translateY(-2px);
    color: white;
    /* Ensure stays white */
}

/* Themes Per Product - Hover Borders */
.theme-suite {
    border-color: rgba(87, 97, 121, 0.5);
}

.theme-suite:hover {
    border-color: var(--color-suite);
    box-shadow: 0 0 40px rgba(87, 97, 121, 0.3);
}

.theme-discount {
    border-top: 4px solid var(--color-discount);
}

.theme-discount:hover {
    border-color: var(--color-discount);
}

.theme-pos {
    border-top: 4px solid var(--color-pos);
}

.theme-pos:hover {
    border-color: var(--color-pos);
}

.theme-scraper {
    border-top: 4px solid var(--color-scraper);
}

.theme-scraper:hover {
    border-color: var(--color-scraper);
}

.theme-barcode {
    border-top: 4px solid var(--color-barcode);
}

.theme-barcode:hover {
    border-color: var(--color-barcode);
}

/* Product Cards Grid */
.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    /* Keep blueish but maybe var(--primary)? */
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.product-features li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.full-width {
    display: block;
    text-align: center;
}

/* Images & Product Covers */
.product-cover,
.product-cover-sm {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
}

.product-cover img,
.product-cover-sm img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.product-cover-sm {
    height: 300px;
}

.product-cover-sm img {
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-cover img:hover,
.product-cover-sm img:hover {
    transform: scale(1.05);
}

.expand-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
    pointer-events: none;
}

.product-cover:hover .expand-icon,
.product-cover-sm:hover .expand-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-logo {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateY(-3px);
}

.social-links a:hover .fa-x-twitter {
    color: var(--text-main);
}

.social-links a:hover .fa-facebook-f {
    color: #1877f2;
}

.social-links a:hover .fa-instagram {
    color: #e4405f;
}

.social-links a:hover .fa-tiktok {
    color: #ff0050;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}