/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Palette */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.5);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Neutrals */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    /* Hero Specific */
    --hero-bg: #071024;
    --hero-text: #e6eef8;
    
    /* Spacing & Layout */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container-width: 1280px;
    --header-height: 72px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-bold { font-weight: 700 !important; }
.d-none { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.05);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.nav-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #1f1a1ae4;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--bg-dark);
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    color:#000;
    display: flex;
    align-items: center;
    gap: 0.5rem;

}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: block; }
}

/* =========================================
   4. HERO SECTION (3D Flip & Glow)
   ========================================= */
.dual-hero-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    height: 600px;
    gap: 20px;
    padding: 20px;
    background: var(--hero-bg);
    margin-top: var(--header-height);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
}

.hero-flip, .bizHero-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-stage, .bizHero-stage {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
}

.hero-slide, .bizHero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

/* Product Hero Specifics */
.hero-slide { transform: rotateY(90deg); }
.hero-slide.active { opacity: 1; transform: rotateY(0); }

/* Business Hero Specifics */
.bizHero-slide { transform: scale(1.2); }
.bizHero-slide.bizHero-active { opacity: 1; transform: scale(1); }

.hero-slide img, .bizHero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-info, .bizHero-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.hero-slide.active .hero-info,
.bizHero-slide.bizHero-active .bizHero-info {
    transform: translateY(0);
    opacity: 1;
}

.hero-info h2, .bizHero-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.price-area {
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 700;
}

@media (max-width: 992px) {
    .dual-hero-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .hero-flip, .bizHero-container {
        height: 400px;
    }
}

/* =========================================
   5. PRODUCT GRID & CARDS
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-detail {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

/* View Count Badge */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

/* =========================================
   6. SIDEBAR & FILTERS
   ========================================= */
.filters-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =========================================
   7. MODALS (Auth & Product)
   ========================================= */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-modal .modal-body {
    padding: 0;
}

.auth-grid {
    display: flex;
    min-height: 500px;
}

.auth-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel.bg-dark {
    background: var(--bg-dark);
    color: white;
}

.auth-input {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer a {
    color: #e2e8f0;
}

footer a:hover {
    color: var(--primary-light);
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   10. RESPONSIVE OVERRIDES
   ========================================= */
@media (max-width: 768px) {
    .auth-grid {
        flex-direction: column;
    }
    .auth-panel {
        padding: 2rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   ADS – CLEAR & TALL
   =========================== */
.ads-section {
    margin: 2.5rem 0;
}

.ads-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

/* GRID */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* CARD */
.ad-card {
    position: relative;
    height: 260px;                /* 🔥 EXTENDED HEIGHT */
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* IMAGE */
.ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* no blur/stretch */
    display: block;
}

/* AD LABEL */
.ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
}

/* DESKTOP HOVER */
@media (hover:hover) {
    .ad-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }

    .ad-card {
        height: 320px;            /* 🔥 EVEN TALLER ON PHONES */
    }
}

/* Navbar */
.nav-root {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030; /* Bootstrap navbar level */
}
.nav-root {
  min-height: 96px !important;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 90px;        /* allow natural width */
    height: 90px;       /* allow natural height */
    background: none;   /* remove gradient */
    border-radius: 0;   /* optional */
    font-size: 1rem;
}

.nav-logo-img {
    height: 20px;      /* BIG logo height */
    width: auto;
    object-fit: contain;
    display: block;
    
}

.nav-logo-text {
    font-weight: 800;
    font-size: 28px;    /* visible text */
    line-height: 1;
}
