:root {
    /* Soft Brown Theme */
    --store-primary: #A67C52;
    --store-primary-rgb: 166, 124, 82;
    --store-dark-brown: #5C4033; /* For gradient edges */
    --store-bg: #FDFBF7; /* Slightly warm white */
    --store-text: #3E2723;
    --store-text-muted: #8D6E63;
    --store-border: #EFEBE9;
    
    --nav-height: 65px;
    --header-height: 60px;
    --sidebar-width: 250px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Base Settings */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--store-bg);
    color: var(--store-text);
    padding-bottom: calc(var(--nav-height) + 20px); /* Space for bottom nav */
    padding-top: var(--header-height);
    margin: 0;
    overflow-x: hidden;
}

/* Animations */
* {
    transition: all 0.2s ease;
}

/* Mobile Header */
.store-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1030;
    border-bottom: 1px solid var(--store-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* Form Controls (Inputs & Buttons = 48px) */
.form-control-store, .btn-store {
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 16px;
}

.btn-store-primary {
    background-color: var(--store-primary);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-store-primary:hover, .btn-store-primary:active {
    background-color: #e65c2b;
    color: white;
}

/* Cards */
.store-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: white;
}
.store-card:hover {
    transform: scale(1.02);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    border-top: 1px solid var(--store-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--store-text-muted);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--store-primary);
    font-weight: 600;
}

.nav-item.active i {
    transform: scale(1.1);
}

/* Floating Action Button (AI Assistant) */
.fab-ai {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    right: 16px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Soft Brown to Dark Brown 15% Edge Gradient */
    background: radial-gradient(circle at center, var(--store-primary) 85%, var(--store-dark-brown) 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(92, 64, 51, 0.4);
    z-index: 1035;
    cursor: pointer;
}

/* Utility Layouts for auth */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
}

/* Skeleton Loading */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

/* Horizontal Scroll Containers */
.h-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.h-scroll-container::-webkit-scrollbar {
    display: none;
}
.h-scroll-item {
    scroll-snap-align: start;
    flex: 0 0 240px; /* Width of product card in slider */
}
.h-scroll-item-category {
    scroll-snap-align: start;
    flex: 0 0 90px;
    text-align: center;
}

/* Responsive Desktop Layout (PC & Tablet) */
@media (min-width: 768px) {
    body {
        padding-top: var(--header-height);
        padding-bottom: 0;
        padding-left: var(--sidebar-width);
    }
    
    .store-header {
        left: var(--sidebar-width);
    }
    
    .bottom-nav {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: var(--sidebar-width);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px 20px;
        border-top: none;
        border-right: 1px solid var(--store-border);
    }
    
    .bottom-nav .nav-item {
        flex-direction: row;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 10px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }
    
    .bottom-nav .nav-item i {
        margin-right: 16px;
        width: 24px;
        text-align: center;
    }
    
    .bottom-nav .nav-item.active {
        background-color: rgba(166, 124, 82, 0.1); /* Soft brown transparent */
    }

    .fab-ai {
        bottom: 30px;
        right: 30px;
    }
}
