/* ==========================================
   CodeLab BD - Premium Digital Marketplace
   Modern, Futuristic, Glassmorphism UI
   ========================================== */

/* ---- CSS Variables ---- */
:root {
    --brand-primary: #6c5ce7;
    --brand-secondary: #a855f7;
    --brand-accent: #06b6d4;
    --brand-gradient: linear-gradient(135deg, #6c5ce7 0%, #a855f7 50%, #06b6d4 100%);
    --brand-gradient-hover: linear-gradient(135deg, #5a4bd1 0%, #9333ea 50%, #0596b3 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --whatsapp: #25D366;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (Default) */
[data-bs-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --navbar-bg: rgba(10, 10, 15, 0.85);
    --footer-bg: #08080d;
    --body-bg: #0a0a0f;
}

/* Light Theme */
[data-bs-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f1f6;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8888a0;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #0a0a1a;
    --body-bg: #f0f1f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

/* ---- Global Styles ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-primary);
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--brand-primary); color: #fff; }

img { max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-secondary); }

/* ---- Preloader ---- */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#preloader.loaded { opacity: 0; pointer-events: none; }
.loader { width: 50px; height: 50px; position: relative; }
.loader-inner {
    width: 100%; height: 100%;
    border: 3px solid var(--border-color);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Brand ---- */
.brand-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; font-weight: 700;
}
.brand-text { font-family: var(--font-display); font-size: 1.2rem; }
.text-brand { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glassmorphism ---- */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ---- Navbar ---- */
.navbar-glass {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition);
    z-index: 1050;
}
.navbar-glass.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}
.navbar-glass .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500; font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(108, 92, 231, 0.1);
}
.navbar-toggler { border: none; padding: 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---- Buttons ---- */
.btn {
    font-weight: 600; border-radius: var(--radius-full);
    transition: var(--transition); border: none;
    font-size: 0.9rem; letter-spacing: 0.02em;
}
.btn-brand {
    background: var(--brand-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
.btn-brand:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
    color: #fff !important;
}
.btn-lang-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    color: var(--brand-primary) !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}
.btn-lang-toggle:hover {
    background: var(--brand-primary);
    color: #fff !important;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}
.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary) !important;
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary) !important;
}
.btn-outline-light {
    border-color: var(--border-glass);
    color: var(--text-primary) !important;
}
.btn-outline-light:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff !important;
}
.btn-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-secondary); font-size: 1rem;
}
.btn-icon:hover {
    background: var(--brand-primary); color: #fff;
    border-color: var(--brand-primary);
}
.btn-theme-toggle { position: relative; }

/* ---- Section Styles ---- */
.section-padding { padding: 5rem 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-header { margin-bottom: 3rem; }
.section-badge {
    display: inline-flex; align-items: center;
    padding: 0.4rem 1.2rem; border-radius: var(--radius-full);
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-primary); font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem; max-width: 600px;
    margin: 0 auto;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-gradient {
    position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: heroGradient 10s ease-in-out infinite alternate;
}
@keyframes heroGradient {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(-1deg); }
}
.hero-particles {
    position: absolute; inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(108, 92, 231, 0.4), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(108, 92, 231, 0.2), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.05), transparent);
    background-size: 350px 350px;
    animation: particleFloat 20s linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-50px) translateX(25px); }
    100% { transform: translateY(0) translateX(0); }
}
.hero-badge {
    display: inline-flex; align-items: center;
    padding: 0.5rem 1.5rem; border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1;
    margin: 1.5rem 0;
    color: var(--text-primary);
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding-top: 2rem; border-top: 1px solid var(--border-color);
}
.hero-stat { text-align: center; }
.hero-stat-number {
    display: block; font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 0.85rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.hero-scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
}
.scroll-mouse {
    width: 28px; height: 44px; border: 2px solid var(--text-muted);
    border-radius: 14px; display: flex; justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px; border-radius: 2px;
    background: var(--brand-primary);
    animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ---- Animations ---- */
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in-up.delay-1 { animation-delay: 0.2s; opacity: 0; }
.animate-fade-in-up.delay-2 { animation-delay: 0.4s; opacity: 0; }
.animate-fade-in-up.delay-3 { animation-delay: 0.6s; opacity: 0; }

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

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.animated {
    opacity: 1; transform: translateY(0);
}

/* ---- Category Cards ---- */
.category-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 2rem 1.5rem; border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}
.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}
.category-icon {
    width: 70px; height: 70px; border-radius: var(--radius-lg);
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}
.category-name {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1rem;
    margin-bottom: 0.3rem;
}
.category-count {
    font-size: 0.85rem; color: var(--text-muted);
}

/* ---- Product Cards ---- */
.product-card {
    display: flex; flex-direction: column;
    overflow: hidden; border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary);
}
.product-thumbnail {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}
.product-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-thumbnail img { transform: scale(1.05); }
.product-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.product-category-badge, .product-category-badge-lg {
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.7);
    color: #fff; font-size: 0.7rem; font-weight: 600;
    backdrop-filter: blur(5px);
}
.product-badge-featured {
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.9);
    color: #fff; font-size: 0.7rem; font-weight: 600;
}
.product-badge-bestseller {
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.9);
    color: #fff; font-size: 0.7rem; font-weight: 600;
}
.product-discount-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: var(--danger);
    color: #fff; font-size: 0.75rem; font-weight: 700;
}
.product-body {
    padding: 1.2rem; flex-grow: 1;
    display: flex; flex-direction: column;
}
.product-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.product-title a { color: var(--text-primary); }
.product-title a:hover { color: var(--brand-primary); }
.product-description {
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 0.8rem; line-height: 1.5;
}
.product-rating {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 0.8rem;
}
.rating-stars { color: #f59e0b; font-size: 0.8rem; }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }
.product-price { margin-bottom: 1rem; }
.price-old {
    text-decoration: line-through; color: var(--text-muted);
    font-size: 0.85rem; margin-right: 8px;
}
.price-new, .price-current {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.2rem;
    color: var(--brand-primary);
}
.product-actions {
    display: flex; gap: 6px;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-color);
}

/* Product Card Large */
.product-card-lg {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.product-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary);
}
.product-card-lg-header {
    position: relative; overflow: hidden;
    aspect-ratio: 16/9;
}
.product-card-lg-header img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-lg:hover .product-card-lg-header img { transform: scale(1.05); }
.product-card-lg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    padding: 12px; display: flex;
    justify-content: space-between; align-items: flex-start;
}
.product-badges-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge-glow {
    padding: 5px 12px; border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.9); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}
.badge-glow.badge-best { background: rgba(245, 158, 11, 0.9); }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.1); }
}
.product-card-lg-body { padding: 1.2rem; }
.product-title-lg { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-title-lg a { color: var(--text-primary); }
.product-title-lg a:hover { color: var(--brand-primary); }
.product-desc-lg {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 0.8rem; line-height: 1.6;
}
.product-features-mini {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 1rem;
}
.product-feature-tag {
    padding: 3px 8px; border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-primary);
    font-size: 0.72rem; font-weight: 500;
}
.product-meta-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 0.8rem;
    font-size: 0.8rem; color: var(--text-muted);
}
.product-rating-lg { display: flex; align-items: center; gap: 6px; }
.product-sales { font-size: 0.8rem; }
.product-price-lg { margin-bottom: 1rem; }
.price-current-lg, .price-new-lg {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.3rem;
    color: var(--brand-primary);
}
.product-actions-lg { display: flex; gap: 10px; }
.btn-buy-lg { background: var(--success); color: #fff !important; }
.btn-buy-lg:hover { background: #059669; color: #fff !important; }

/* ---- Blog Cards ---- */
.blog-card { overflow: hidden; border-radius: var(--radius-lg); }
.blog-thumbnail {
    position: relative; overflow: hidden;
    aspect-ratio: 16/9;
}
.blog-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-thumbnail img { transform: scale(1.05); }
.blog-placeholder {
    width: 100%; height: 100%;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem;
}
.blog-date {
    position: absolute; bottom: 10px; left: 10px;
    padding: 4px 12px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.7);
    color: #fff; font-size: 0.75rem; font-weight: 500;
    backdrop-filter: blur(5px);
}
.blog-content { padding: 1.2rem; }
.blog-title {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.blog-excerpt {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1rem; line-height: 1.6;
}
.blog-link {
    font-size: 0.85rem; font-weight: 600;
    color: var(--brand-primary);
    display: inline-flex; align-items: center; gap: 4px;
}
.blog-link:hover { gap: 8px; }

/* ---- Team Cards ---- */
.team-card {
    padding: 2rem 1.5rem; text-align: center;
    border-radius: var(--radius-lg);
}
.team-avatar {
    width: 100px; height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-placeholder {
    width: 100%; height: 100%;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.5rem;
}
.team-name {
    font-family: var(--font-display);
    font-weight: 700; margin-bottom: 0.3rem;
}
.team-designation {
    color: var(--brand-primary);
    font-size: 0.85rem; font-weight: 500;
    display: block; margin-bottom: 0.8rem;
}
.team-bio {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1rem; line-height: 1.6;
}
.team-social { display: flex; justify-content: center; gap: 8px; }
.team-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.9rem;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--brand-primary); color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

/* ---- FAQ ---- */
.faq-accordion .accordion-item {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 0.8rem;
}
.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.2rem 1.5rem;
    box-shadow: none;
    border-radius: var(--radius-md) !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    background: rgba(108, 92, 231, 0.05);
}
.faq-accordion .accordion-button::after {
    background-size: 1.2rem;
    filter: invert(0.5);
}
.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Contact ---- */
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem; border-radius: var(--radius-md);
}
.contact-info-icon {
    width: 50px; height: 50px; min-width: 50px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.contact-info-icon.bg-whatsapp { background: rgba(37, 211, 102, 0.1); color: var(--whatsapp); }
.contact-info-card h6 {
    font-size: 0.85rem; margin-bottom: 0.1rem;
    color: var(--text-secondary); font-weight: 600;
}
.contact-info-card a, .contact-info-card span {
    font-size: 0.9rem; color: var(--text-primary);
    font-weight: 500;
}
.contact-form-card { padding: 2rem; }
.form-control-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    transition: var(--transition);
}
.form-control-glass:focus {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.form-control-glass::placeholder { color: var(--text-muted); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }

/* ---- Footer ---- */
.footer-section { background: var(--footer-bg); color: var(--text-secondary); }
.footer-top { padding: 4rem 0 2rem; }
.footer-brand { color: #fff !important; text-decoration: none; }
.footer-widget { margin-bottom: 2rem; }
.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: #fff; margin-bottom: 1.2rem;
    position: relative; padding-bottom: 0.8rem;
}
.footer-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--brand-primary); padding-left: 6px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 1rem; font-size: 0.9rem;
}
.footer-contact li i { color: var(--brand-primary); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--brand-primary); }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--brand-primary);
    color: #fff; transform: translateY(-3px);
}
.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}
.footer-bottom-link {
    color: rgba(255,255,255,0.5);
    margin-left: 1.5rem;
}
.footer-bottom-link:hover { color: var(--brand-primary); }

/* ---- Mobile Bottom Nav ---- */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-around;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1040;
}
.mobile-nav-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    color: var(--text-muted);
    font-size: 0.65rem; font-weight: 500;
    text-decoration: none; padding: 0.3rem 0.5rem;
    transition: var(--transition);
}
.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--brand-primary); }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed; bottom: 5rem; right: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1030;
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* ---- Product Detail Page ---- */
.product-detail-hero {
    padding: 3rem 0;
    background: var(--bg-secondary);
}
.product-gallery {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-color);
}
.product-gallery-main {
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs {
    display: flex; gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    overflow-x: auto;
}
.product-gallery-thumb {
    width: 70px; height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--brand-primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-panel { position: sticky; top: 90px; }
.product-info-panel .glass-card { padding: 2rem; }
.product-detail-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 800;
    margin-bottom: 0.5rem;
}
.product-detail-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1rem; font-size: 0.85rem;
    color: var(--text-muted);
}
.product-detail-meta span { display: flex; align-items: center; gap: 4px; }
.product-detail-price {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}
.btn-buy-sticky {
    position: sticky; bottom: 20px;
    z-index: 10;
}
.product-detail-tabs .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600; font-size: 0.9rem;
    border: none; padding: 0.8rem 1.2rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.product-detail-tabs .nav-link.active {
    color: var(--brand-primary) !important;
    border-bottom-color: var(--brand-primary);
    background: transparent;
}
.tab-content { padding: 2rem 0; }
.tab-content h4 {
    font-family: var(--font-display);
    font-weight: 700; margin-bottom: 1rem;
}
.tab-content p { color: var(--text-secondary); line-height: 1.8; }
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: 0.6rem 0;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.feature-list li i { color: var(--success); font-size: 1.1rem; }
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.screenshots-grid img {
    width: 100%; border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
    border: 2px solid transparent;
}
.screenshots-grid img:hover { border-color: var(--brand-primary); transform: scale(1.02); }
.review-card {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.9rem;
}
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-text { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* ---- Checkout Page ---- */
.checkout-section { padding: 3rem 0; }
.order-summary-card, .checkout-form-card {
    padding: 2rem;
}
.checkout-product-summary {
    display: flex; gap: 1rem;
    padding: 1rem; border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}
.checkout-product-thumb {
    width: 100px; height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.checkout-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-product-info h5 {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 0.3rem;
}
.payment-methods { display: flex; flex-direction: column; gap: 0.8rem; }
.payment-method {
    padding: 1rem; border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 12px;
}
.payment-method:hover, .payment-method.active {
    border-color: var(--brand-primary);
    background: rgba(108, 92, 231, 0.05);
}
.payment-method input[type="radio"] { accent-color: var(--brand-primary); }
.payment-method-name { font-weight: 600; font-size: 0.95rem; }
.payment-method-desc { font-size: 0.8rem; color: var(--text-muted); }
.payment-info-box {
    padding: 1rem; border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--info);
    font-size: 0.85rem; margin-top: 0.8rem;
    display: none;
}
.invoice-box {
    padding: 2rem; border-radius: var(--radius-lg);
    border: 1px dashed var(--border-glass);
    background: var(--bg-glass);
}
.invoice-box h4 {
    font-family: var(--font-display);
    font-weight: 700; margin-bottom: 1.5rem;
    text-align: center;
}
.invoice-row {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.invoice-row:last-child { border-bottom: none; }
.invoice-row.invoice-total {
    font-weight: 800; font-size: 1.1rem;
    color: var(--brand-primary);
    border-top: 2px solid var(--brand-primary);
    padding-top: 0.8rem; margin-top: 0.5rem;
}

/* ---- Success Page ---- */
.success-section {
    min-height: 70vh;
    display: flex; align-items: center;
    justify-content: center;
    text-align: center;
}
.success-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #34d399);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ---- Products Page ---- */
.products-hero {
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
}
.filter-sidebar {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}
.filter-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 0.5rem; }
.filter-list a {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.filter-list a:hover, .filter-list a.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--brand-primary);
}
.filter-count {
    background: var(--bg-glass);
    padding: 2px 8px; border-radius: 10px;
    font-size: 0.75rem;
}

/* ---- Search Bar ---- */
.search-bar {
    display: flex; gap: 8px;
    margin-bottom: 1rem;
}
.search-bar .form-control-glass {
    flex: 1; border-radius: var(--radius-full);
    padding-left: 1.2rem;
}
.search-bar .btn { border-radius: var(--radius-full); }

/* ---- Sticky Buy Bar ---- */
.sticky-buy-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 0;
    z-index: 1035;
    display: none;
}
.sticky-buy-bar.visible { display: block; }
.sticky-buy-content {
    display: flex; align-items: center;
    justify-content: space-between;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.5rem; }
    .footer-top { padding: 2.5rem 0 1.5rem; }
    body { padding-bottom: 70px; }
}
@media (max-width: 575.98px) {
    .section-padding { padding: 2.5rem 0; }
    .section-title { font-size: 1.6rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 1rem; }
    .hero-stat-number { font-size: 1.3rem; }
    .category-card { padding: 1.5rem 1rem; }
    .category-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .product-actions { flex-wrap: wrap; }
    .product-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

/* ---- Featured Products Page Responsive ---- */
.featured-hero-title {
    font-size: 2.5rem;
}
@media (max-width: 991.98px) {
    .featured-hero-title { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .featured-hero-title { font-size: 1.5rem; }
    .featured-hero-title i { font-size: 1.2rem; }
    .products-hero { padding: 2.5rem 0 1.5rem; }
}

/* ---- Cart ---- */
.cart-count-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    border-radius: var(--radius-full);
    background: var(--danger); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.cart-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
}
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--brand-primary); color: #fff; }
.qty-input {
    width: 52px; height: 32px; text-align: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
}
.cart-item-total {
    min-width: 90px; text-align: right;
    font-weight: 800; color: var(--brand-primary);
    font-family: var(--font-display);
}
@media (max-width: 575.98px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-qty { order: 3; }
    .cart-item-total { order: 4; }
}
