:root {
    --bg-main: #09090b;
    --bg-card: #18181b;
    --bg-nav: rgba(24, 24, 27, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --accent: #ff9500;
    /* Lighter Orange */
    --accent-glow: rgba(255, 149, 0, 0.4);

    --border-light: rgba(255, 255, 255, 0.1);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --font-main: 'Outfit', sans-serif;

    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* === PERFORMANCE OPTIMIZATIONS === */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* GPU Acceleration for smooth animations */
.product-card,
.cat-chip,
.btn-primary,
.btn-add,
.nav-item,
.menu-item,
.hero,
.product-image-wrapper img,
.toast,
.auth-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    padding-bottom: calc(var(--nav-height) + 20px);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
}

/* Layout */
.container {
    padding: 0 20px;
    max-width: 480px;
    /* Mobile constraints for desktop view */
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(9, 9, 11, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
}

/* Hero Section */
.hero {
    margin: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.2;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-text {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

/* Categories */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-right: 20px;
}

/* Ensure last category pill is fully visible */
.categories::after {
    content: '';
    padding-right: 20px;
    display: block;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    background: #27272a;
    border: 1px solid var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cat-chip.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 2px 10px var(--accent-glow);
    font-weight: 600;
}

/* Product Grid */
.section-title {
    padding: 20px 20px 10px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.see-all {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image-wrapper {
    background: #27272a;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 1;
    /* Below wishlist btn */
    cursor: pointer;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.wishlist-btn.active {
    background: white;
    color: #ef4444;
}

.wishlist-btn.active i {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3f3f46;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add.added {
    background: var(--accent);
    color: black;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    height: 70px;
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow-x: hidden;
    padding: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    transition: all 0.3s;
    background: transparent;
    min-width: unset;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    margin-right: 0;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

.nav-item.active {
    color: #000;
    background: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* --- SPA Views --- */
.hidden {
    display: none !important;
}

.view {
    animation: fadeIn 0.3s ease-out;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ENHANCED ANIMATIONS === */

/* Pulse Glow Effect */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Slide In Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Glow Pulse */
@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 2px var(--accent));
    }

    50% {
        filter: drop-shadow(0 0 15px var(--accent)) drop-shadow(0 0 30px var(--accent-glow));
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* === APPLIED ANIMATIONS === */

/* Hero Animations */
.hero {
    animation: fadeIn 0.6s ease-out;
}

.hero h1 {
    animation: slideInUp 0.6s ease-out;
}

.hero p {
    animation: slideInUp 0.8s ease-out 0.1s;
    animation-fill-mode: both;
}

.hero .btn-primary {
    animation: slideInUp 0.8s ease-out 0.2s, pulseGlow 2.5s infinite 1s;
    animation-fill-mode: both;
}

/* Product Card Animations */
.product-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Staggered animations for product cards */
.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.product-card:nth-child(7) {
    animation-delay: 0.35s;
}

.product-card:nth-child(8) {
    animation-delay: 0.4s;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
    border-color: var(--accent);
}

.product-card:active {
    transform: translateY(-4px) scale(0.98);
    transition-duration: 0.1s;
}

/* Product Image Zoom Effect */
.product-image-wrapper {
    overflow: hidden;
    position: relative;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 149, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-wrapper::after {
    opacity: 1;
}

.product-image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.15);
}

/* Category Chip Animations */
.cat-chip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cat-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.cat-chip:hover::before {
    width: 200%;
    height: 200%;
}

.cat-chip:hover {
    transform: translateY(-3px);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Menu Item Animations */
.menu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-item:hover {
    padding-left: 24px;
    background: linear-gradient(90deg, rgba(255, 149, 0, 0.1) 0%, transparent 100%);
    color: var(--accent);
}

/* Button Animations */
.btn-add {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add:hover {
    transform: scale(1.15);
    background: var(--accent);
    color: #000;
}

.btn-add:active {
    transform: scale(0.9);
    animation: bounceIn 0.3s;
}

/* Primary Button */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Category Grid Card Override */
.category-card {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card), #222);
}

.category-card h3 {
    color: var(--accent);
    margin-bottom: 4px;
}

/* Checkbox/Badge Styles */
.nav-item {
    position: relative;
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-nav);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    padding: 20px;
}

.big-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Profile View */
.profile-header {
    background: linear-gradient(to bottom, #27272a, var(--bg-main));
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.profile-menu {
    padding: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
}

.menu-item:active {
    background: var(--bg-card);
}

.menu-item i {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* --- DESKTOP RESPONSIVENESS --- */
.desktop-only {
    display: none;
}

@media (min-width: 769px) {

    /* Reset Mobile Constraints */
    body {
        max-width: 100%;
        border: none;
        padding-bottom: 0;
    }

    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    /* Header */
    header {
        padding: 20px 40px;
        justify-content: space-between;
    }

    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-nav {
        display: flex;
        gap: 20px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Desktop Nav Button Styles */
    .nav-link-desktop {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s;
        font-size: 0.9rem;
        background: var(--bg-card);
        padding: 10px 20px;
        border: 1px solid var(--border-light);
        border-radius: 100px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-link-desktop:hover,
    .nav-link-desktop.active {
        background: var(--accent);
        color: #000;
        border-color: var(--accent);
        box-shadow: 0 4px 15px var(--accent-glow);
        transform: translateY(-2px);
    }

    /* Hide Bottom Nav */
    .bottom-nav {
        display: none;
    }

    /* Layout Adjustments */
    .hero {
        margin: 40px auto;
        max-width: 1200px;
        padding: 60px;
        border-radius: 30px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px 20px;
    }

    .categories {
        justify-content: center;
        padding: 20px;
    }

    /* Cart View */
    #view-cart {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* AUTH FORMS */
.auth-container {
    padding: 30px;
    max-width: 400px;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.auth-container h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    justify-content: center;
}

.toast.success {
    border-color: var(--accent);
}

.toast.error {
    border-color: #ef4444;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--accent);
}

.toast.error i {
    color: #ef4444;
}

@keyframes toastIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* --- ORDER SUCCESS ANIMATION --- */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



.auth-input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid var(--border-light);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- NEW COMPACT FOOTER STYLES --- */
.app-footer {
    background: #09090b;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    padding-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Brand Column */
.brand-col {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo h2 {
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 2px;
}

.logo-sub {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-desc {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 3px;
}

/* Contact Info */
.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-info i {
    color: var(--accent);
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #222;
    padding: 20px 20px 100px;
    /* Extra bottom padding for mobile nav */
    text-align: center;
    color: #555;
    font-size: 0.75rem;
    text-align: left;
    /* Force Left Align for readability */
}

/* Base Body Font for Mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        /* readable base */
        line-height: 1.5;
    }

    .view {
        padding-bottom: 90px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Responsive Footer */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 20px;
    }

    .footer-bottom {
        text-align: left;
        padding-bottom: 20px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- REFINED PRODUCT DETAILS --- */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    animation: fadeIn 0.4s ease-out;
}

.pd-image-container {
    background: #27272a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    aspect-ratio: 1;
    /* Square on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-image-container:hover img {
    transform: scale(1.05);
}

.pd-info {
    display: flex;
    flex-direction: column;
}

.pd-category {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.pd-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pd-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.pd-stock-badge {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-stock-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.pd-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.pd-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    background: #1e1e21;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-light);
}

.spec-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.spec-text h5 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.spec-text span {
    font-weight: 600;
    font-size: 0.9rem;
}

.pd-actions {
    margin-top: auto;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
}

@media (min-width: 768px) {
    .product-detail-hero {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
    }

    .pd-image-container {
        aspect-ratio: auto;
        height: 500px;
    }

    .pd-title {
        font-size: 3rem;
    }
}

/* === PREMIUM ENHANCEMENTS === */

/* Bottom Nav Animations */
.bottom-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-item:hover:not(.active) {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-item:active {
    transform: scale(0.9);
}

/* Loading Skeleton Animation */
.skeleton {
    background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Smooth View Transitions */
.view {
    animation: fadeIn 0.4s ease-out;
    padding-bottom: 100px;
}

.view.hidden {
    display: none !important;
}

/* Header Scroll Effect Classes */
header.scrolled {
    background: rgba(9, 9, 11, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Icon Button Hover */
.icon-btn {
    transition: all 0.2s ease;
    border-radius: 50%;
}

.icon-btn:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--accent);
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Badge Pulse Effect */
.badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Cart Item Animations */
.cart-item {
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--accent);
}

/* Auth Container Animation */
.auth-container {
    animation: slideInUp 0.5s ease-out;
}

/* Input Focus Animation */
.auth-input {
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: translateY(-2px);
}

/* Footer Link Hover */
.footer-links a {
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Social Icons Hover */
.footer-socials a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* Success Checkmark Enhanced */
.success-checkmark {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        glowPulse 2s infinite 0.5s;
}

/* Desktop Nav Link Animations */
.nav-link-desktop {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-desktop::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link-desktop:hover::before {
    transform: translateX(0);
}

/* Ripple Effect for Buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 0 0;
}

.ripple:active::after {
    animation: rippleEffect 0.4s ease-out;
}

@keyframes rippleEffect {
    0% {
        opacity: 1;
        transform: scale(0) translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: scale(40) translate(-50%, -50%);
    }
}

/* Page Transition Class */
.page-enter {
    animation: fadeIn 0.3s ease-out;
}

.page-exit {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Smooth Image Loading */
img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.loaded,
img[src] {
    opacity: 1;
}

/* Force images to show without JS */
.product-image-wrapper img,
.pd-image-container img,
.logo img,
header img {
    opacity: 1;
}