/* Aura Global Modern Styling Dashboard and Storefront */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(13, 17, 24, 0.7);
    --bg-glow: rgba(99, 102, 241, 0.12);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.45);
    --secondary: #a855f7;
    --accent: #06b6d4;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.06);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 45%),
        radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.04) 0px, transparent 60%);
}

/* Glassmorphism Header */
header {
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a, .nav-links span {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Badges and Region Info */
.region-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.region-selector {
    display: flex;
    gap: 0.5rem;
}

.region-btn {
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.region-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Premium Layout Container */
main {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 2rem;
}

/* Banner Component */
.hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 6rem 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Glassmorphism Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: linear-gradient(135deg, rgba(22, 28, 36, 0.8), rgba(13, 17, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-main);
    transition: var(--transition);
}

.card:hover .card-title {
    color: #fff;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
}

.stock-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.stock-tag.in-stock {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.stock-tag.out-stock {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Product Detail Page styling */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.detail-img-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.detail-img-card img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.warehouses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.warehouse-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.warehouse-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Admin importer styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.toast {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.toast.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
}

/* Premium Dynamic Switcher Dropdown styling */
.region-dropdown-active {
    display: block !important;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Proof Toast Popup Widget */
.social-proof-toast {
    position: fixed;
    bottom: 145px;
    left: 25px;
    background: rgba(13, 17, 24, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    max-width: 320px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: var(--transition);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Urgency & Social widgets details */
.urgency-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ─── THEME STYLING SYSTEM ─── */
/* Default themes overriding custom variables */
html.theme-light {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-glow: rgba(99, 102, 241, 0.03);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
}
html.theme-light body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 40%);
    background-color: var(--bg-dark);
}
html.theme-light header {
    background: rgba(255, 255, 255, 0.85);
}
html.theme-light .logo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.theme-light .form-input {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}
html.theme-light .form-input::placeholder {
    color: #94a3b8;
}
html.theme-light .region-badge {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
html.theme-light .card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}
html.theme-light .card:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}
html.theme-light .card-title {
    color: #0f172a !important;
}
html.theme-light .price {
    color: #0f172a !important;
}
html.theme-light .card:hover .card-title {
    color: #4f46e5 !important;
}
html.theme-light .stock-tag {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.05);
}
html.theme-light .stock-tag.in-stock {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}
html.theme-light .hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.06) 50%, rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}
html.theme-light .hero-title {
    background: linear-gradient(135deg, #0f172a 30%, #312e81 70%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.theme-light .social-proof-toast {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
html.theme-light #sp-title {
    color: #0f172a !important;
}
html.theme-light .btn-outline {
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}
html.theme-light .btn-outline:hover {
    background: rgba(15, 23, 42, 0.03);
}
html.theme-light .region-btn {
    background: #ffffff;
    color: #0f172a;
}
html.theme-light .region-btn:hover {
    background: #f1f5f9;
}
html.theme-light .region-btn.active {
    background: var(--primary);
    color: #ffffff;
}

html.theme-dim {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-glow: rgba(99, 102, 241, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.06);
}
html.theme-dim body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.06) 0px, transparent 45%);
    background-color: var(--bg-dark);
}
html.theme-dim header {
    background: rgba(15, 23, 42, 0.85);
}
html.theme-dim .card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: rgba(255, 255, 255, 0.05);
}
html.theme-dim .hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 50%, rgba(6, 182, 212, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Theme switcher controls */
.theme-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 50px;
}
html.theme-light .theme-switcher {
    background: rgba(0, 0, 0, 0.03);
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.theme-btn:hover {
    transform: scale(1.15);
}
.theme-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}
.theme-btn[data-theme="light"] { background: #cbd5e1; }
.theme-btn[data-theme="dim"] { background: #475569; }
.theme-btn[data-theme="dark"] { background: #0f172a; }

