:root {
    --bg-color: #0a0a0b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #d4af37;
    --primary-light: #f1d592;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 70px;
    --safe-area: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow: hidden; /* Prevent body scroll, use app-container scroll */
    height: 100vh;
    width: 100vw;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* App Layout */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--nav-height) + 20px);
    scroll-behavior: smooth;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.screen-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.nav-item.active {
    color: var(--primary);
}

/* Splash Screen */
#splash {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.splash-logo {
    width: 120px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Components */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Home Screen */
.hero-section {
    padding: 30px var(--safe-area);
    position: relative;
}

.hero-banner {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 11, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px var(--safe-area);
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-item {
    flex: 0 0 80px;
    text-align: center;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--primary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px var(--safe-area);
}

.product-card {
    padding: 15px;
    position: relative;
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 12px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.product-info .price {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    border: none;
    cursor: pointer;
}

/* Cart Screen */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin: 0 var(--safe-area) 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* Utility */
.section-title {
    padding: 0 var(--safe-area);
    font-size: 22px;
    margin: 20px 0 10px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #000;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}
