/* NovaMart E-Commerce Modern Vanilla CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --primary-navy: #0F172A;
    --primary-indigo: #4F46E5;
    --indigo-hover: #4338CA;
    --indigo-light: #EEF2FF;
    
    --emerald-green: #10B981;
    --emerald-light: #D1FAE5;
    
    --coral-red: #EF4444;
    --coral-light: #FEE2E2;
    
    --amber-gold: #F59E0B;
    --amber-light: #FEF3C7;
    
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 12px 30px rgba(79, 70, 229, 0.18);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--slate-800);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
    background-color: var(--primary-navy);
    color: #94A3B8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-info span {
    margin-right: 20px;
    color: #CBD5E1;
}
.top-bar-links a {
    color: #CBD5E1;
    margin-left: 15px;
}
.top-bar-links a:hover {
    color: #FFFFFF;
}

/* MAIN HEADER */
.site-header {
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--slate-200);
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}
.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-indigo), #818CF8);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.brand-logo span.accent {
    color: var(--primary-indigo);
}

/* SEARCH BAR */
.header-search {
    flex: 1;
    max-width: 550px;
    position: relative;
}
.search-form {
    display: flex;
    align-items: center;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 18px;
    transition: var(--transition-fast);
}
.search-form:focus-within {
    border-color: var(--primary-indigo);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 10px 8px 0;
    color: var(--slate-800);
}
.search-btn {
    background: var(--primary-indigo);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.search-btn:hover {
    background: var(--indigo-hover);
}

/* SEARCH SUGGESTIONS DROPDOWN */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    z-index: 1050;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}
.search-suggestions.active {
    display: block;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: var(--transition-fast);
}
.suggestion-item:hover {
    background: var(--indigo-light);
}
.suggestion-item img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.suggestion-info {
    flex: 1;
}
.suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
}
.suggestion-price {
    font-size: 13px;
    color: var(--primary-indigo);
    font-weight: 700;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.action-item:hover {
    color: var(--primary-indigo);
    background: var(--indigo-light);
}
.action-icon {
    font-size: 22px;
    position: relative;
}
.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--coral-red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* CATEGORY NAVIGATION BAR */
.nav-bar {
    background: var(--slate-900);
    color: white;
}
.nav-wrapper {
    display: flex;
    align-items: center;
}
.categories-btn {
    background: var(--primary-indigo);
    color: white;
    padding: 12px 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: var(--transition-fast);
}
.categories-btn:hover {
    background: var(--indigo-hover);
}
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin-left: 10px;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: block;
    padding: 12px 18px;
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 500;
}
.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

/* HERO CAROUSEL SLIDER */
.hero-slider-section {
    padding: 20px 0;
}
.slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--slate-900);
}
.slide {
    display: none;
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    align-items: center;
}
.slide.active {
    display: flex;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.0) 100%);
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px;
    color: white;
}
.slide-badge {
    display: inline-block;
    background: var(--primary-indigo);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.slide-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
}
.slide-subtitle {
    font-size: 16px;
    color: #E2E8F0;
    margin-bottom: 25px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--slate-900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}
.slider-nav:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* BUTTON STYLES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}
.btn-primary {
    background: var(--primary-indigo);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
    background: var(--indigo-hover);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--slate-200);
    color: var(--slate-800);
}
.btn-secondary:hover {
    background: var(--slate-300);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-indigo);
    color: var(--primary-indigo);
}
.btn-outline:hover {
    background: var(--primary-indigo);
    color: white;
}
.btn-accent {
    background: var(--coral-red);
    color: white;
}
.btn-accent:hover {
    background: #DC2626;
}

/* SECTION TITLES */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--slate-600);
    margin-top: 4px;
}
.section-link {
    color: var(--primary-indigo);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover {
    text-decoration: underline;
}

/* CATEGORIES CIRCLE GRID */
.categories-section {
    padding: 30px 0;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}
.category-card {
    background: #FFFFFF;
    padding: 16px 10px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    transition: var(--transition-fast);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-indigo);
}
.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.2;
}

/* REUSABLE PRODUCT CARD SYSTEM */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #C7D2FE;
    transform: translateY(-4px);
}

/* PRODUCT BADGES */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-discount { background: var(--coral-red); color: white; }
.badge-featured { background: var(--primary-indigo); color: white; }
.badge-bestseller { background: var(--amber-gold); color: var(--slate-900); }
.badge-new { background: var(--emerald-green); color: white; }

/* WISHLIST BUTTON ON CARD */
.btn-wishlist-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}
.btn-wishlist-toggle:hover, .btn-wishlist-toggle.active {
    color: var(--coral-red);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%; /* Aspect Ratio */
    background: #FAFAFA;
    overflow: hidden;
}
.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}
.stars {
    color: var(--amber-gold);
    font-weight: 800;
}
.review-count {
    color: var(--slate-400);
    font-size: 12px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}
.selling-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-900);
}
.mrp-price {
    font-size: 13px;
    color: var(--slate-400);
    text-decoration: line-through;
}
.discount-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-green);
}

.product-card-actions {
    display: flex;
    gap: 8px;
}
.btn-add-cart {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* FLASH SALE COUNTDOWN SECTION */
.flash-sale-section {
    background: linear-gradient(135deg, #1E1B4B, #312E81);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    margin: 40px 0;
}
.flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.countdown-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}
.countdown-unit {
    background: var(--coral-red);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 16px;
}

/* FOOTER */
.site-footer {
    background: var(--slate-900);
    color: #94A3B8;
    margin-top: 60px;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a:hover {
    color: white;
}
.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* ALERT NOTIFICATIONS */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}
.alert-success { background: var(--emerald-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: var(--coral-light); color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning { background: var(--amber-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; }

/* TOAST NOTIFICATION STACK */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--slate-900);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
