:root {
    --primary: #4e73df;
    --primary-dark: #224abe;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --white: #ffffff;
    --gray-100: #f8f9fc;
    --gray-200: #eaecf4;
    --gray-300: #dddfeb;
    --gray-400: #d1d3e2;
    --gray-500: #b7b9cc;
    --gray-600: #858796;
    --gray-700: #6e707e;
    --gray-800: #5a5c69;
    --gray-900: #3a3b45;

    --shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15);
    --border-radius: 0.35rem;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8f9fc;
    color: var(--gray-800);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--gray-900);
}

/* Header & Nav */
.header-main .navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.product-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
    transition: none !important;
    /* Remove hover translate */
}

/* Beautiful Flashing Border Animation */
@keyframes borderGlow {
    0% {
        border-color: rgba(78, 115, 223, 0.2);
        box-shadow: 0 0 10px rgba(78, 115, 223, 0.1);
    }

    50% {
        border-color: rgba(78, 115, 223, 0.8);
        box-shadow: 0 0 20px rgba(78, 115, 223, 0.3);
    }

    100% {
        border-color: rgba(78, 115, 223, 0.2);
        box-shadow: 0 0 10px rgba(78, 115, 223, 0.1);
    }
}

.product-card.premium-status {
    border: 2px solid var(--primary);
    animation: borderGlow 4s infinite ease-in-out;
}

/* CTA Card Flashing Animation */
@keyframes ctaGlow {
    0% {
        border-color: rgba(76, 161, 175, 0.3);
        box-shadow: 0 0 15px rgba(76, 161, 175, 0.1);
    }

    50% {
        border-color: rgba(76, 161, 175, 1);
        box-shadow: 0 0 30px rgba(76, 161, 175, 0.4);
    }

    100% {
        border-color: rgba(76, 161, 175, 0.3);
        box-shadow: 0 0 15px rgba(76, 161, 175, 0.1);
    }
}

.cta-card-flash {
    border: 2px solid rgba(76, 161, 175, 0.3);
    animation: ctaGlow 3s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-card-flash:hover {
    transform: translateY(-5px) scale(1.02);
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* New Flashing Border Only Style (Deep Blue Theme) */
@keyframes borderFlashOnly {
    0% {
        border-color: rgba(26, 35, 126, 0.3);
        box-shadow: inset 0 0 20px rgba(26, 35, 126, 0.1);
    }

    50% {
        border-color: rgba(63, 81, 181, 1);
        box-shadow: inset 0 0 40px rgba(63, 81, 181, 0.3);
    }

    100% {
        border-color: rgba(26, 35, 126, 0.3);
        box-shadow: inset 0 0 20px rgba(26, 35, 126, 0.1);
    }
}

.border-flash-deep-blue {
    border: 3px solid rgba(26, 35, 126, 0.3);
    animation: borderFlashOnly 3s infinite ease-in-out;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.form-control:focus {
    color: var(--gray-700);
    background-color: var(--white);
    border-color: #bac8f3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Product badges */
.badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(246, 194, 62, 0.9);
    backdrop-filter: blur(10px);
    color: var(--gray-900);
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Professional Typography Upgrades */
h1 {
    letter-spacing: -2px;
    line-height: 1.1;
}

h2 {
    letter-spacing: -1px;
}

.lead {
    font-weight: 400;
    color: var(--gray-600);
}

/* Product card specifics */
.product-card .card-body {
    background: linear-gradient(to bottom, #ffffff, #fafbff);
}

.product-card .btn-primary {
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Cart & Pricing */
.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background-color: var(--gray-900) !important;
}

footer h5,
footer h6 {
    color: var(--white);
}

footer .text-muted {
    color: var(--gray-500) !important;
}

footer a:hover {
    color: var(--white) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-200);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}