/* Modern, Beautiful Custom Styles for Discount Market */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #ec4899;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Beautiful Gradient Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* AdSense Container */
.adsense-container {
    margin: 2rem auto;
    text-align: center;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.875rem;
    border: 1px dashed #cbd5e1;
}

/* Search & Filter section */
.search-filter-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Product Cards */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-speed) ease-in-out;
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

.card-title {
    font-weight: 700;
    color: var(--text-color);
}

.price-tag {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* Section Titles */
.section-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* Footer */
footer {
    background: linear-gradient(to right, #1e293b, #0f172a) !important;
    padding: 3rem 0 !important;
    border-top: 4px solid var(--secondary-color);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Input group */
.input-group .form-control {
    border-radius: 8px 0 0 8px;
}
.input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* Footer Links */
footer a {
    color: #cbd5e1 !important; /* Light slate color for better contrast */
    transition: color 0.3s ease;
}

footer a:hover, .hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

footer .text-muted {
    color: #94a3b8 !important; /* Lighter text-muted for dark backgrounds */
}
