/* Custom CSS for MedSaver with Jhandu Branding */

:root {
    --primary-color: #0056d3;
    --secondary-color: #00c851;
    --jhandu-color: #ff8c00;
    --jhandu-dark: #e67e00;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --ayurveda-green: #4caf50;
    --ayurveda-dark: #388e3c;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-name {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-item.jhandu-link {
    color: var(--jhandu-color) !important;
    font-weight: 600;
}

.dropdown-item.jhandu-link:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--jhandu-dark) !important;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 86, 211, 0.1), rgba(76, 175, 80, 0.1));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 86, 211, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 86, 211, 0.2);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stat-item svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.stat-item:last-child svg {
    color: var(--ayurveda-green);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: bounce 3s ease-in-out infinite;
}

.floating-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.icon-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.icon-3 {
    top: 50%;
    right: 0%;
    animation-delay: 2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: #fff;
}

.search-card {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.search-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.jhandu-btn {
    background-color: var(--jhandu-color) !important;
    border-color: var(--jhandu-color) !important;
    color: white !important;
}

.jhandu-btn:hover {
    background-color: var(--jhandu-dark) !important;
    border-color: var(--jhandu-dark) !important;
}

/* Jhandu Ayurveda Section */
.jhandu-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
}

.jhandu-banner {
    background: linear-gradient(135deg, var(--jhandu-color), var(--jhandu-dark));
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.jhandu-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jhandu-title svg {
    color: #90ee90;
}

.jhandu-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.jhandu-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-badge svg {
    width: 16px;
    height: 16px;
}

.jhandu-image img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Brand Cards */
.brands-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.medicine-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.medicine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ayurveda-card {
    border-color: var(--ayurveda-green);
    position: relative;
}

.ayurveda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ayurveda-green), var(--jhandu-color));
    z-index: 1;
}

.medicine-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.medicine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.medicine-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.ayurveda-badge {
    background: var(--ayurveda-green);
}

.ayurveda-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ayurveda-label svg {
    width: 14px;
    height: 14px;
}

.medicine-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.medicine-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.medicine-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.medicine-category svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.ayurveda-card .medicine-category svg {
    color: var(--ayurveda-green);
}

.medicine-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.medicine-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.medicine-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-buy {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-buy:hover {
    background: var(--primary-color);
    opacity: 0.9;
    color: white;
    transform: translateY(-1px);
}

.btn-ayurveda {
    background: var(--jhandu-color) !important;
}

.btn-ayurveda:hover {
    background: var(--jhandu-dark) !important;
}

.btn-info {
    background: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
}

/* Brand Cards Styling */
.brand-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--jhandu-color), var(--ayurveda-green));
    z-index: 1;
}

.brand-image {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.brand-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.brand-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.brand-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.95rem;
}

.brand-btn {
    background: linear-gradient(135deg, var(--primary-color), #0041a3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 211, 0.3);
}

.brand-btn:hover {
    background: linear-gradient(135deg, #0041a3, var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 211, 0.4);
}

.brand-btn svg {
    width: 18px;
    height: 18px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--light-color);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Lab Services Section */
.lab-services-section {
    padding: 80px 0;
    background: #fff;
}

.lab-services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lab-services-card {
    background: linear-gradient(135deg, var(--primary-color), #0041a3);
    border-radius: 1rem;
    padding: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.lab-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lab-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.lab-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.lab-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.lab-features .feature-item svg {
    width: 18px;
    height: 18px;
    color: #90ee90;
}

.btn-lab {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-lab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-text {
    color: #adb5bd;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-partners {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-text {
    font-weight: 600;
    color: #adb5bd;
}

.partner-name {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.jhandu-name {
    background: var(--jhandu-color);
    color: white;
}

.footer-links {
    margin-top: 2rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 3rem 0;
}

.loading-text {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.error-message {
    margin: 2rem 0;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-link {
    color: #87ceeb;
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .jhandu-features {
        justify-content: center;
    }
    
    .about-features {
        margin-top: 2rem;
    }
    
    .lab-features {
        grid-template-columns: 1fr;
    }
    
    .footer-partners {
        justify-content: center;
    }
    
    .cookie-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .search-card,
    .jhandu-banner,
    .lab-services-card {
        padding: 2rem 1.5rem;
    }
    
    .medicine-content {
        padding: 1rem;
    }
}



/* Dropdown Menu Styling */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item:hover svg {
    color: var(--primary-color);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus States for Accessibility */
.btn:focus,
.btn-buy:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .medicine-actions {
        display: none;
    }
    
    .medicine-card {
        break-inside: avoid;
    }
}
