/* Header Enhancements */
.skip-links {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 9999;
}

.skip-links a:focus {
    top: 0;
    background: #000;
    color: #fff;
    padding: 10px;
    text-decoration: none;
}

.top-bar .contact-info a:hover,
.top-bar .contact-info a:focus {
    color: #ffc107 !important;
    text-decoration: underline !important;
}

.brand-logo {
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #278a40;
}

.navbar-nav .nav-link:hover {
    color: #278a40 !important;
}

.search-form .form-control:focus {
    border-color: #278a40;
    box-shadow: 0 0 0 0.2rem rgba(39, 138, 64, 0.25);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.mobile-bottom-nav .nav-link {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-link.active,
.mobile-bottom-nav .nav-link:hover {
    background: rgba(39, 138, 64, 0.1);
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #278a40;
    color: white;
}

/* Badge Animations */
.cart-count,
.wishlist-count {
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.cart-count.updated,
.wishlist-count.updated {
    transform: scale(1.2);
}

/* Mobile Top Bar */
.mobile-top-bar {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
    
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 576px) {
    .top-bar .contact-info span {
        margin-bottom: 0.25rem;
    }
}

/* Accessibility Improvements */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(39, 138, 64, 0.25);
}

.btn:focus,
.form-control:focus,
.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(39, 138, 64, 0.25);
}

/* Custom CSS for Bush Fruits Africa */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #E27D60;
    --accent-color: #F7DC6F;
    --dark-color: #2C3E50;
    --light-color: #F5F5F5;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'arial', serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 50%, #6ba13e 100%);
}

.min-vh-90 {
    min-height: 90vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(45, 80, 22, 0.9) 0%, rgba(45, 80, 22, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    line-height: 1.6;
    opacity: 0.9;
}

.hero-image {
    max-height: 600px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.1);
}

.floating-badge {
    transform: translate(-20%, -20%);
    animation: float 3s ease-in-out infinite;
}

.floating-stats {
    transform: translate(20%, 20%);
    animation: float 2s ease-in-out infinite;
}

.hero-scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .floating-stats {
        transform: scale(0.8) translate(10%, 10%);
    }
}
/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.organic {
    background: var(--primary-color);
    color: white;
}

.product-badge.featured {
    background: var(--accent-color);
    color: var(--dark-color);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.product-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.compare-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: 20px;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-type {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.service-price {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Farm Cards */
.farm-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.farm-image {
    height: 250px;
}

.farm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.farm-info {
    padding: 25px;
}

.farm-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.farm-location {
    color: #666;
    margin-bottom: 15px;
}

.farm-contact {
    background: var(--light-color);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: var(--primary-color);
    margin-left: 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #26734a;
    border-color: #26734a;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Additional styles for new pages */

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Service Booking Styles */
.booking-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #26734a 100%);
}

.booking-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
}

.step.active .step-number {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-color);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #2d3748 !important;
        color: #e2e8f0;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .card {
        border: 2px solid #dee2e6;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .booking-steps {
        gap: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #26734a;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Cart Styles */
.cart-item {
    border: none;
    border-radius: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.cart-summary {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 1.2rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* contact styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #26734a 100%);
}

.contact-location {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.contact-location h6 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.business-hours .hour-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.business-hours .hour-item:last-child {
    border-bottom: none;
}

.support-item {
    padding: 1rem;
}

.visit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.visit-image {
    height: 200px;
    overflow: hidden;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-content {
    padding: 2rem;
}

.visit-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.visit-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.visit-content li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.visit-content li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}