/* ==========================================================================
   SVGA MARKET PLACE - Premium UI Stylesheet
   Powered by DGCT SERVICES
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-hover: #b5952f;
    --primary-gold-light: rgba(212, 175, 55, 0.1);
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    --text-main: #2D3436;
    --text-muted: #636E72;
    
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 30px rgba(212, 175, 55, 0.15);
    
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Styles --- */
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-gold-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* --- Glassmorphism Navbar --- */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--text-main), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
    padding: 100px 0 80px;
    border-bottom: 2px solid var(--primary-gold-light);
    overflow: hidden;
}

/* Subtle background glow in hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-gold-light) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Product Cards --- */
.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-gold-light);
}

/* Video / Image Previews inside Cards */
.preview-video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.product-card .card-body {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-price-inr {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Badges (New, Trending) --- */
.badge-premium {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, var(--primary-gold), #FFF8DC);
    color: #4A3B00;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

/* --- Buttons --- */
.btn-gold {
    background: linear-gradient(45deg, var(--primary-gold), #E8C966);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(45deg, var(--primary-gold-hover), var(--primary-gold));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius-md);
    padding: 12px 30px;
    border: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1EBE55;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Cart Badge Micro-animation */
#cart-count {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
    transition: transform 0.2s ease-in-out;
}

.cart-bump {
    animation: bump 0.3s ease-out;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* --- Cart Page Table --- */
.cart-table {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.cart-table th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px;
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .preview-video {
        height: 200px;
    }
    
    .product-card:hover {
        transform: none; /* Disable lift on mobile to prevent accidental taps */
    }
}