:root {
    --bg-body: #f3f4f6;
    /* Light gray background */
    --bg-card: rgba(255, 255, 255, 0.7);
    /* Milky glass */
    --bg-glass: rgba(255, 255, 255, 0.9);
    --primary-main: #C01C3A;
    --primary-glow: rgba(192, 28, 58, 0.2);
    --secondary-main: #ff4d6d;
    --secondary-glow: rgba(255, 77, 109, 0.2);
    --accent-cyan: #0891b2;
    /* Darker cyan for light mode */
    --text-primary: #111827;
    /* Dark text */
    --text-secondary: #4b5563;
    /* Gray text */
    --border-light: rgba(0, 0, 0, 0.08);
    /* Subtle dark border */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.text-primary {
    color: var(--primary-main) !important;
}

.bg-primary {
    background-color: var(--primary-main) !important;
}

body {

    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}



.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-main);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.glass-card.no-hover:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-light);
}

.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FF6B6B 0%, var(--primary-main) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-main) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-main);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Buttons */

.btn-primary {
    background: var(--primary-main);
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    color: #ffffff;
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.btn-primary:active {
    background: #96162d !important;
    transform: scale(0.98) translateY(1px) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-main), var(--primary-main));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 28, 58, 0.4);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary-main);
    border-color: var(--primary-main);
    border-radius: 50px;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-main);
    border-color: var(--primary-main);
    color: #ffffff;
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline-primary:active {
    background: #96162d !important;
    border-color: #96162d !important;
    color: #ffffff !important;
    transform: scale(0.98) translateY(1px) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}



/* Hero Section */
.hero-section {
    background: transparent !important;
    /* Override inline/bootstrap bg */
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.hero-main-image {
    width: 70%;
}



/* Cards (Products etc) */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Forms */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-control,
.form-select {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-primary) !important;
    border-radius: 10px;
    padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 4px var(--primary-glow);
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: #9ca3af !important;
}

/* Table overrides for dark mode */
.table {
    color: var(--text-secondary);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-secondary);
    border-color: var(--border-light);
}

.table thead th {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-light);
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 600;
}

.bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border-light);
}

/* Utility Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Specific Component Fixes */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced search input */
.smart-search-container {
    position: relative;
}

.smart-search-input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.smart-search-input:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.smart-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-main);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smart-search-btn:hover {
    background: var(--secondary-main);
    transform: translateY(-50%) scale(1.1);
}

.breadcrumb-item a {
    color: var(--primary-main);
    text-decoration: none;
}

/* Alerts - Light Glassmorphism */
/* Alerts - Light Theme with Brand Colors */
.alert {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    border: 1px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}

.alert-success .bi {
    color: #10b981;
}

.alert-danger {
    background-color: rgba(192, 28, 58, 0.1);
    border-color: rgba(192, 28, 58, 0.3);
    color: #991b1b;
}

.alert-danger .bi {
    color: var(--primary-main);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.alert-info .bi {
    color: #3b82f6;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-warning .bi {
    color: #f59e0b;
}

.alert-secondary {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
    color: #374151;
}

/* Close button for light theme */
.alert .btn-close {
    filter: none;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}