/* ============================================================
   NovaEStore - Main Site Stylesheet
   ============================================================ */

:root {
    --nova-primary: #0d6efd;
    --nova-secondary: #6c757d;
    --nova-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --nova-card-shadow: 0 2px 15px rgba(0,0,0,0.08);
    --nova-hover-shadow: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Global */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #212529;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Navbar */
.navbar {
    transition: var(--transition);
    padding: 0.8rem 0;
}
.navbar-brand { font-size: 1.4rem; }
.nav-link {
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0.75rem !important;
}
.nav-link:hover { color: var(--nova-primary) !important; }

/* Product Cards */
.product-card {
    transition: var(--transition);
    overflow: hidden;
    border-radius: 0.75rem !important;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--nova-hover-shadow) !important;
}
.product-image {
    transition: transform 0.4s ease;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}
.product-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    transform: translateY(100%);
    transition: var(--transition);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.product-card:hover .product-overlay {
    transform: translateY(0);
}
.product-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Category Cards */
.category-hover {
    transition: var(--transition);
    border-radius: 0.75rem !important;
}
.category-hover:hover {
    background: var(--nova-primary) !important;
    transform: translateY(-4px);
    box-shadow: var(--nova-hover-shadow) !important;
}
.category-hover:hover * { color: white !important; }

/* Hero */
.hero-slide {
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn-nova-primary {
    background: var(--nova-primary);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-nova-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.4);
}

/* Cart Badge */
#cart-count { font-size: 0.65rem; }

/* Stars */
.bi-star-fill.text-warning, .bi-star.text-muted { font-size: 0.85rem; }

/* Step indicator for checkout */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.step-num {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
}
.step-item.active .step-num { background: var(--nova-primary); color: white; }
.step-label { font-size: 0.75rem; font-weight: 500; }
.step-divider { width: 60px; height: 2px; background: #dee2e6; margin-top: -1rem; }

/* Order Timeline */
.timeline-item { position: relative; }
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: #dee2e6;
}

/* Promo */
.promo-banner { animation: pulse-bg 3s infinite alternate; }
@keyframes pulse-bg { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* Responsive */
@media (max-width: 768px) {
    .hero-slide { min-height: 300px !important; }
    .display-2, .display-3, .display-4 { font-size: 1.8rem !important; }
    .product-overlay { transform: translateY(0); }
}

/* Badge subtle */
.bg-primary-subtle { background-color: rgba(13,110,253,0.1) !important; }
.bg-success-subtle { background-color: rgba(25,135,84,0.1) !important; }
.bg-danger-subtle { background-color: rgba(220,53,69,0.1) !important; }
