:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --gold: #d4af37;
    --gold-dark: #b39228;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass: rgba(20, 20, 20, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: 0.5px; }
.gold-text { color: var(--gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.hidden { display: none !important; }
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 5, 5, 0.95); border-bottom: 1px solid #222;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; margin: 0 15px;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
}
.nav-links a.active { color: var(--gold); font-weight: bold; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
#user-display { font-size: 0.8rem; color: var(--gold); }

/* --- BUTTONS --- */
.btn-gold, .btn-gold-outline, .btn-whatsapp {
    padding: 10px 20px; border-radius: 4px; cursor: pointer;
    font-weight: 600; border: none; font-family: var(--font-body);
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
    display: inline-block; text-align: center; font-size: 0.85rem;
}
.btn-gold { 
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
    color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4); }
.btn-gold-outline { border: 1px solid var(--gold); color: var(--gold); background: transparent; padding: 6px 12px; }
.btn-whatsapp { 
    background: #25D366; color: white; width: 100%; margin-top: 20px; 
    font-size: 1rem; padding: 12px; border-radius: 6px;
}

/* --- SHOP FILTERS --- */
.hero { padding: 140px 20px 80px; text-align: center; background: radial-gradient(circle, #111 0%, #000 70%); }
.section-header { padding: 20px 5%; display: flex; flex-direction: column; gap: 20px; margin-top: 80px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input, .filters select { 
    background: #111; border: 1px solid #333; color: #fff; padding: 12px; 
    border-radius: 6px; flex: 1; min-width: 150px; font-family: var(--font-body);
}
.filters select { cursor: pointer; }
.filters input:focus, .filters select:focus { border-color: var(--gold); outline: none; }

/* --- BANNERS --- */
.shop-banners {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; padding: 0 5% 40px 5%;
}
.banner-item {
    border-radius: 8px; overflow: hidden; position: relative;
    border: 1px solid var(--gold); box-shadow: 0 0 15px var(--gold-glow);
    transition: transform 0.3s;
}
.banner-item:hover { transform: scale(1.02); }
.banner-item img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* --- PRODUCT LIST (Horizontal UI) --- */
.product-grid {
    display: flex; flex-direction: column; gap: 20px;
    padding: 0 5% 50px 5%; max-width: 1000px; margin: 0 auto;
}
.product-card {
    display: flex; flex-direction: row; background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    overflow: hidden; height: 160px; transition: 0.3s; position: relative;
}
.product-card:hover { border-color: var(--gold); transform: translateX(5px); }
.img-wrapper { width: 200px; height: 100%; flex-shrink: 0; cursor: pointer; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.card-title { font-size: 1.1rem; color: #fff; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.card-desc-preview { font-size: 0.85rem; color: #888; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { color: var(--gold); font-size: 1.2rem; font-weight: bold; }
.card-action-btn {
    display: inline-block; padding: 8px 16px; background: transparent;
    border: 1px solid var(--gold); color: var(--gold); font-weight: 700;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s;
}
.card-action-btn:hover { background: var(--gold); color: #000; }
.sold-btn { border-color: #555; color: #555; cursor: not-allowed; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #000; padding: 4px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 2px; z-index: 5; }
.sold-out .card-badge { background: #e74c3c; color: white; }
.sold-out { opacity: 0.6; }

/* --- MODALS --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.modal-content { width: 95%; max-width: 500px; padding: 25px; border-radius: 12px; border: 1px solid var(--gold); position: relative; max-height: 90vh; overflow-y: auto; background: #111; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #fff; z-index: 20; }
.modal-img-wrapper { position: relative; width: 100%; margin-bottom: 20px; border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.modal-img { width: 100%; display: block; cursor: zoom-in; }
.view-full-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; pointer-events: none; }
.modal-desc { color: #ccc; line-height: 1.6; margin: 20px 0; font-size: 0.95rem; white-space: pre-line; }

/* --- SLEEK PAYMENT MODAL (NEW) --- */
.payment-card {
    width: 90%; max-width: 400px; padding: 40px 30px;
    background: #080808; border: 1px solid var(--gold);
    border-radius: 16px; text-align: center; position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}
.pay-header h3 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
.pay-header p { color: #888; font-size: 0.9rem; margin-bottom: 25px; }

.qr-wrapper { position: relative; margin: 20px auto; width: 220px; }
.qr-box {
    background: #fff; padding: 15px; border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); border: 2px solid var(--gold);
}
.qr-box img { width: 100%; display: block; }
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gold); box-shadow: 0 0 10px var(--gold);
    animation: scan 2s infinite ease-in-out;
}
@keyframes scan { 0%,100% {top:10px; opacity:0;} 50% {top:90%; opacity:1;} }

.pay-details { margin-top: 25px; }
.pay-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.pay-amount { font-size: 2.5rem; margin: 5px 0; font-weight: 700; }
.pay-upi { font-size: 0.85rem; color: #aaa; background: #151515; display: inline-block; padding: 5px 10px; border-radius: 4px; border: 1px solid #333; }

/* --- AUTH --- */
.auth-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #050505; }
.auth-card { width: 90%; max-width: 400px; padding: 40px; text-align: center; }
.auth-card input { width: 100%; padding: 15px; margin: 10px 0; background: #111; border: 1px solid #333; color: white; border-radius: 4px; }
.loader-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:#000; z-index:3000; display:flex; justify-content:center; align-items:center; }
.spinner { width: 50px; height: 50px; border: 3px solid #333; border-top: 3px solid var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }

@media(max-width: 600px) {
    .product-card { height: auto; flex-direction: column; }
    .img-wrapper { width: 100%; height: 200px; }
    .card-body { padding: 15px; }
    .card-footer { margin-top: 15px; }
    .filters { flex-direction: column; }
    .filters input, .filters select { width: 100%; }
}