/* Base & Reset */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #004B87;
    color: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #FDB913;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #FDB913;
}

/* Main Layout */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    flex-grow: 1;
    width: 100%;
}

/* Sidebar Filters */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    align-self: start;
    position: sticky;
    top: 40px;
}

.sidebar h3 {
    font-family: 'Poppins', sans-serif;
    color: #004B87;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    transition: color 0.2s;
}

.filter-label:hover {
    color: #004B87;
}

.filter-label input[type="radio"] {
    accent-color: #004B87;
    transform: scale(1.2);
    cursor: pointer;
}

/* Main Header & Search Layout */
.main-content {
    flex-grow: 1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    color: #004B87;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 1.1rem;
}

/* Search Bar Styling */
.search-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin-top: 5px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #004B87;
    pointer-events: none;
}

#search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#search-input:focus {
    border-color: #FDB913;
    box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.15);
    background-color: #fff;
}

#search-input::placeholder {
    color: #94a3b8;
}

/* Grid Content */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 220px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.category-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    align-self: flex-start;
}

.buy-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background-color: #FDB913;
    color: #004B87;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s;
}

.buy-btn:hover {
    background-color: #e5a600;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

.loading,
.no-results {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    padding: 50px;
    grid-column: 1 / -1;
}

/* =========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero {
    background-color: #004B87;
    color: #fff;
    padding: 140px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.cta-button {
    background-color: #FDB913;
    color: #004B87;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #e5a600;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.inverse-btn {
    background-color: #fff;
    color: #004B87;
}

.inverse-btn:hover {
    background-color: #f1f5f9;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: 'Poppins', sans-serif;
    color: #004B87;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.about-text p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background-color: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px dashed #cbd5e1;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

.section-header p {
    color: #64748b;
    font-size: 1.2rem;
    margin: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    color: #004B87;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Partner Section CTA */
.partner-section {
    background-color: #004B87;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.partner-content {
    max-width: 700px;
    margin: 0 auto;
}

.partner-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.partner-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        flex-direction: column;
        padding: 0 15px;
        margin-top: 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px !important;
    }

    .vibrant-search-form {
        width: 100% !important;
    }
}