/* ======================================================
   CUSTOM LABS - STYLES
   Using CSS custom properties for theme support.
   Themes: dark (default), light
   Accents: orange (default), blue, green, purple
   ====================================================== */

/* ======== THEME DEFINITIONS ======== */

:root,
[data-theme="dark"] {
    /* Background layers */
    --bg-primary: #111111;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #161616;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-overlay: rgba(0, 0, 0, 0.9);
    --bg-modal: #1a1a1a;
    --bg-nav-fixed: #1a1a1a;
    --bg-footer: #0a0a0a;

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #e0e0e0;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.4);
    --text-faintest: rgba(255, 255, 255, 0.25);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-input: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-card: none;

    /* Scrollbar */
    --scrollbar-track: #1a1a1a;
    --scrollbar-thumb: #333;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #eaeaea;
    --bg-tertiary: #e0e0e0;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-input: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-modal: #ffffff;
    --bg-nav-fixed: #ffffff;
    --bg-footer: #1a1a1a;

    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-faint: #888888;
    --text-faintest: #aaaaaa;

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-input: rgba(0, 0, 0, 0.15);

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    --scrollbar-track: #eee;
    --scrollbar-thumb: #ccc;
}

/* Accent Colors */
:root,
[data-accent="orange"] {
    --accent: #d4793a;
    --accent-hover: #c06d30;
    --accent-bg: rgba(212, 121, 58, 0.1);
    --accent-bg-subtle: rgba(212, 121, 58, 0.06);
    --accent-border: rgba(212, 121, 58, 0.2);
    --accent-border-strong: rgba(212, 121, 58, 0.3);
    --accent-text-muted: rgba(212, 121, 58, 0.7);
    --accent-on: #111111;
}

[data-accent="blue"] {
    --accent: #4a90d9;
    --accent-hover: #3a7cc4;
    --accent-bg: rgba(74, 144, 217, 0.1);
    --accent-bg-subtle: rgba(74, 144, 217, 0.06);
    --accent-border: rgba(74, 144, 217, 0.2);
    --accent-border-strong: rgba(74, 144, 217, 0.3);
    --accent-text-muted: rgba(74, 144, 217, 0.7);
    --accent-on: #ffffff;
}

[data-accent="green"] {
    --accent: #4caf50;
    --accent-hover: #43a047;
    --accent-bg: rgba(76, 175, 80, 0.1);
    --accent-bg-subtle: rgba(76, 175, 80, 0.06);
    --accent-border: rgba(76, 175, 80, 0.2);
    --accent-border-strong: rgba(76, 175, 80, 0.3);
    --accent-text-muted: rgba(76, 175, 80, 0.7);
    --accent-on: #111111;
}

[data-accent="purple"] {
    --accent: #9c6bbd;
    --accent-hover: #8a5aab;
    --accent-bg: rgba(156, 107, 189, 0.1);
    --accent-bg-subtle: rgba(156, 107, 189, 0.06);
    --accent-border: rgba(156, 107, 189, 0.2);
    --accent-border-strong: rgba(156, 107, 189, 0.3);
    --accent-text-muted: rgba(156, 107, 189, 0.7);
    --accent-on: #ffffff;
}

/* Light theme accent overrides for contrast */
[data-theme="light"][data-accent="orange"] {
    --accent-on: #ffffff;
}

[data-theme="light"][data-accent="green"] {
    --accent-on: #ffffff;
}

/* ======== RESET & BASE ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar Redesign */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--bg-secondary);
}

/* Subtle Edge Gradient (Vignette) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Use left/right instead of width to respect scrollbar layout */
    bottom: 0;
    background: radial-gradient(circle at center, transparent 75%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

[data-theme="light"] body::before {
    background: radial-gradient(circle at center, transparent 80%, rgba(0, 0, 0, 0.03) 100%);
    opacity: 0.3;
}

/* Premium Material Grain (Strong Paper Texture) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lower frequency noise to create larger "paper fiber" clumps */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0.5 0 1 0 0 0.5 0 0 1 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.35;
    /* High visibility */
    mix-blend-mode: overlay;
}

[data-theme="light"] body::after {
    opacity: 0.12;
    mix-blend-mode: multiply;
}

/* Disable heavy effects on Mobile/Tablet for performance */
@media (max-width: 1024px) {
    body::before, body::after {
        display: none !important;
    }
    
    .reveal-on-scroll {
        transition-duration: 0.4s !important; /* Faster transitions for snappier feel */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--accent);
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== NAVIGATION ======== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 2000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ======== REVEAL ANIMATIONS ======== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    gap: 5px;
}

.nav-logo span:first-child {
    color: var(--text-primary);
}

.logo-orange {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Nav Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    background: var(--accent-bg);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.login-btn:hover {
    background: var(--accent-border);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.user-name {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.logout-btn {
    background: var(--accent-bg-subtle);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--accent-bg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10001;
}

.menu-toggle:active {
    transform: scale(0.9);
}

.menu-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======== HERO SECTION ======== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
    padding-top: 80px;
}

.hero-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.tile-rating span {
    color: var(--text-primary);
    margin-left: 2px;
}

.tile-rating small {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.brand-orange {
    color: var(--accent);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-primary);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent);
    color: var(--accent-on);
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

.cta-button i {
    transition: transform 0.2s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-text-muted), transparent);
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-text-muted);
    text-transform: uppercase;
}

/* ======== FEATURED PRODUCTS ======== */
.featured-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.featured-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-border-strong);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: var(--accent-on);
}

.featured-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.featured-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.featured-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: gap 0.2s ease;
}

.featured-link:hover {
    gap: 12px;
}

/* ======== WHY CHOOSE US ======== */
.why-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ======== CTA SECTION ======== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== PRODUCT CARDS ======== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 480px));
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    border-color: var(--accent-border);
}

.product-image {
    height: 200px;
    background-color: var(--accent-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: var(--accent);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-btn {
    background-color: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-btn:hover {
    background-color: var(--accent);
    color: var(--accent-on);
}

/* Product variants & price */
.product-variants {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price span {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 800;
}

.product-price small {
    font-size: 0.75rem;
    color: var(--text-faintest);
    margin-left: 4px;
}

/* Add to cart button */
.add-to-cart-btn {
    background-color: var(--accent);
    color: var(--accent-on);
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: var(--accent-hover);
}

/* ======== ABOUT STATS ======== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--accent-on);
    text-decoration: none;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 20px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.about-btn:hover {
    background-color: var(--accent-hover);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 25px;
    background-color: var(--accent-bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ======== CONTACT FORM ======== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 30px;
}

.detail span {
    color: var(--text-muted);
}

.contact-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-secondary);
    padding: 14px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--accent);
    color: var(--accent-on);
    border: none;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--bg-footer);
    padding: 50px 0 25px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo span:first-child {
    color: #f0f0f0;
}

.footer-logo span:last-child {
    color: var(--accent);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--accent-bg);
    color: var(--accent);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}

/* ======== AUTH MODAL ======== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-faint);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000; /* Ensure on top */
}

@media (max-width: 768px) {
    .close-modal {
        background: var(--bg-modal);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        top: 10px;
        right: 10px;
    }
}

.close-modal:hover {
    color: var(--accent);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.auth-tab.active {
    color: var(--accent);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group input {
    padding-left: 42px;
}

.auth-form .form-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faintest);
}

.auth-form .form-group i.toggle-password {
    left: auto;
    right: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.auth-form .form-group i.toggle-password:hover {
    color: var(--accent);
}

.auth-form .form-group input:focus+i {
    color: var(--accent);
}

.auth-submit-btn {
    background: var(--accent);
    color: var(--accent-on);
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.auth-submit-btn:hover {
    background-color: var(--accent-hover);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-faintest);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.85rem;
}

.google-auth-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.google-auth-btn:hover {
    border-color: var(--accent-border);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.forgot-password {
    color: var(--accent-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--accent);
    text-decoration: underline;
}

.terms {
    margin-top: 20px;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.8rem;
    line-height: 1.4;
}

.terms a {
    color: var(--accent-text-muted);
    text-decoration: none;
}

.terms a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-status {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.auth-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #66bb6a;
}

.auth-status.error {
    display: block;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.25);
    color: #ef5350;
}

/* ======== CART ICON ======== */
.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.cart-icon-btn:hover {
    color: var(--accent);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--accent);
    color: var(--accent-on);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======== CART SIDEBAR ======== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-modal);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-subtle);
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
}

.cart-close-btn:hover {
    color: var(--accent);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-faintest);
    gap: 12px;
}

.cart-empty i {
    font-size: 2.5rem;
}

.cart-empty p {
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 15px;
}

.cart-item-image {
    width: 65px;
    height: 65px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible; /* To allow sub-image to pop out slightly */
}

.primary-cart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.custom-image-sub {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    background: var(--bg-modal);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 2px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-image-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}


.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.cart-item-variant {
    display: block;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.tile-rating small {
    color: var(--text-faintest);
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: 1px;
}

.tile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffc107;
    border: 1px solid var(--border-subtle);
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 2px;
}

.cart-qty span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}

.cart-qty-btn {
    background: none;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.cart-qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-faintest);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.cart-remove-btn:hover {
    color: #ef5350;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total span:first-child {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-total span:last-child {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;
    background: var(--accent);
    color: var(--accent-on);
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.cart-checkout-btn:hover {
    background: var(--accent-hover);
}

.cart-clear-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-faintest);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.cart-clear-btn:hover {
    color: #ef5350;
}

/* ======== TOAST ======== */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-modal);
    border: 1px solid var(--accent-border-strong);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 11000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-toast i {
    color: #66bb6a;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ======== THEME SWITCHER PANEL ======== */
.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-on);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
}

.theme-panel {
    position: fixed;
    bottom: 84px;
    right: 24px;
    background: var(--bg-modal);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 20px;
    z-index: 9001;
    width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.theme-panel h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.theme-mode-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.theme-mode-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border-medium);
    background: var(--bg-input);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.theme-mode-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.theme-color-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.theme-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.theme-color-btn:hover {
    transform: scale(1.15);
}

.theme-color-btn.active {
    border-color: var(--text-primary);
}

.theme-color-btn[data-color="orange"] {
    background: #d4793a;
}

.theme-color-btn[data-color="blue"] {
    background: #4a90d9;
}

.theme-color-btn[data-color="green"] {
    background: #4caf50;
}

.theme-color-btn[data-color="purple"] {
    background: #9c6bbd;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .brand-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        pointer-events: none;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        pointer-events: auto;
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
        z-index: 10005;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .user-name {
        display: none;
    }

    .login-btn span {
        display: none;
    }

    .login-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .auth-modal-content {
        padding: 28px 20px;
        width: 95%;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }

    .theme-panel {
        right: 12px;
        bottom: 78px;
    }

    .theme-toggle-btn {
        right: 16px;
        bottom: 16px;
    }
}

/* ======== CART SYSTEM STYLES ======== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-modal);
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--accent-bg-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    overflow: hidden;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-bottom: 4px;
}

.cart-item-instructions {
    font-size: 0.75rem;
    background: var(--accent-bg-subtle);
    padding: 6px 10px;
    border-radius: 4px;
    margin: 8px 0;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
}

.cart-item-instructions span {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-qty {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 2px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.cart-qty-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
}

.qty-num {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-faintest);
    cursor: pointer;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #ff5252;
}

.cart-footer {
    padding: 25px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-subtle);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    width: 100%;
    background: var(--accent);
    color: var(--accent-on);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-clear-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-faint);
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Success Toast */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-modal);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast i {
    color: #28a745;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}