/* Afri Soko Connect - Main Stylesheet */
/* Professional agricultural marketplace design */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&family=Lato:wght@400;700&display=swap');

:root {
    /* Primary Brand Colors - updated to new palette */
    --primary-color: #1F5E3B;     /* Afri Soko Green */
    --primary-dark: #0F3D2E;      /* Deep Forest Green */
    --primary-darker: #0B2A20;    /* Deepest anchor */
    
    /* Accent Colors */
    --accent-gold: #C9A43B;       /* Harvest Gold */
    --accent-amber: #7A8F3A;      /* Earth Olive */
    --accent-bronze: #8A6B1F;     /* Muted bronze for depth */
    
    /* Status Colors */
    --success-color: #1F7A4D;
    --warning-color: #C9A43B;
    --danger-color: #C0392B;
    --info-color: #0F3D2E;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #333333; /* Charcoal Text */
    --black: #000000;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-form: #f2f7f2;
    
    /* Text Colors */
    --text-primary: #333333;      /* Charcoal */
    --text-secondary: #4f5a55;
    --text-success: #1F5E3B;
    --text-error: #b71c1c;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 25px rgba(15, 61, 46, 0.16);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Typography (enforce brand fonts globally) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

body, p, span, a, li, label, input, select, textarea, button, table, th, td, small {
    font-family: 'Open Sans', 'Lato', sans-serif !important;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 0 !important;
}

.navbar.bg-white {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    gap: 0.5em;
    transition: color 0.3s ease;
}

.navbar.bg-white .nav-brand {
    color: var(--primary-darker);
}

.nav-menu {
    display: flex;
    gap: 1.2em;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: none !important;
}
.navbar-top .nav-link,
.navbar-top .nav-link.active {
    color: #fff !important;
}
.navbar-top .company-name {
    color: #fff !important;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 24px #fff;
    transition: color 0.3s, text-shadow 0.3s;
}
.bg-white .company-name {
    color: var(--primary-darker) !important;
    text-shadow: none;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 80px !important; /* Only what is needed for fixed navbar */
}
.hero-section .hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-section .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(47,66,21,0.78) 0%, rgba(90,116,44,0.70) 100%);
  z-index: 2;
}
.hero-section .hero-content {
  position: relative;
  z-index: 3;
  color: var(--primary-darker);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2em 1em;
}
.hero-section .hero-content h1 {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px rgba(255,255,255,0.2);
}
.hero-section .hero-content p {
  font-size: 1.3em;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
@media (max-width: 700px) {
  .hero-section {
    min-height: 40vh;
  }
  .hero-section .hero-content h1 {
    font-size: 2em;
  }
  .hero-section .hero-content p {
    font-size: 1em;
  }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/bg_1.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    margin-bottom: 3rem;
}

.search-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.search-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem 1.5rem;
}

.hero-section .btn,
.hero-section .btn-primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--accent-bronze);
}

.hero-image {
    position: relative;
    width: 100%;
    min-height: 600px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
    transform: scale(1);
    clip-path: none; /* FIX: show full image by default */
}
.hero-slider-img.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: heroMorph 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes heroMorph {
    0% {
        transform: scale(1);
        clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
    }
    60% {
        transform: scale(1.08);
        clip-path: polygon(10% 90%, 90% 80%, 80% 10%, 20% 20%);
    }
    100% {
        transform: scale(1.12);
        clip-path: polygon(10% 90%, 90% 80%, 80% 10%, 20% 20%);
    }
}

/* Category Cards */
.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.category-card h5 {
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

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

.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-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.country-flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    margin: 0 6px 0 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.product-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* Step Cards */
.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.step-card h5 {
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h5 {
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    transition: filter 0.5s, opacity 0.5s, box-shadow 0.5s, transform 0.5s;
    filter: grayscale(1) brightness(0.95) opacity(0.65);
    opacity: 0.7;
    pointer-events: none;
    transform: scale(1);
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.testimonial-card.active {
    filter: none;
    opacity: 1;
    box-shadow: 0 4px 24px rgba(76, 175, 80, 0.12);
    z-index: 2;
    pointer-events: auto;
    transform: scale(1.08);
}

.testimonial-card.inactive {
    filter: grayscale(1) brightness(0.95) opacity(0.65);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    transform: scale(1);
}

.testimonial-carousel-row {
    position: relative;
}

@media (max-width: 767.98px) {
    .testimonial-card { margin-bottom: 1.5rem; }
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-darker);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.newsletter-form .btn:hover {
    background: var(--light-gray);
    color: var(--primary-darker);
}

/* Footer */
footer {
    background: var(--dark-gray);
}

footer h5, footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar-brand img {
        height: 28px !important;
        max-width: 32px;
    }
    .brand-text {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    .company-name {
        font-size: 1rem;
    }
    .navbar-toggler {
        margin-right: 0.5rem;
        font-size: 1.5rem;
    }
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .hero-section {
        padding-top: 70px; /* Adjusted for mobile navbar */
        min-height: 80vh;
    }
    .hero-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .search-container {
        margin-bottom: 1.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}
@media (max-width: 576px) {
    .navbar {
        padding: 0.25rem 0;
    }
    .navbar-brand img {
        height: 22px !important;
        max-width: 26px;
    }
    .brand-text {
        font-size: 0.8rem;
    }
    .company-name {
        font-size: 0.9rem;
    }
    .navbar-toggler {
        font-size: 1.3rem;
        margin-right: 0.25rem;
    }
    .hero-section {
        padding-top: 60px; /* Adjusted for smaller mobile navbar */
        min-height: 70vh;
    }
    .hero-content {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .hero-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--text-success);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--text-error);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.border-danger {
    border-color: var(--danger-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
} 

.navbar-nav .nav-link {
    font-weight: 500;
    color: #fff !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar.bg-white .nav-link,
.navbar.bg-white .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-orange) !important;
}

.navbar.bg-white .nav-link:hover,
.navbar.bg-white .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar.bg-white .nav-link::after {
    background: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    color: #fff;
    transition: all 0.3s ease;
}

.navbar.bg-white .navbar-toggler {
    color: var(--primary-color);
}

.navbar-toggler:hover {
    color: var(--secondary-orange);
}

.navbar.bg-white .navbar-toggler:hover {
    color: var(--primary-dark);
}

.navbar-toggler:focus {
    box-shadow: none;
} 

/* Availability Alerts and Status Badges */
.availability-status {
    margin-top: 10px;
}

.availability-status .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    background: var(--accent-gold);
    color: var(--primary-darker);
}

.availability-status .badge i {
    margin-right: 4px;
}

.availability-alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.availability-alert.success { 
    background-color: #d4edda; 
    border-color: #28a745; 
    color: #155724;
}

.availability-alert.warning { 
    background-color: #fff3cd; 
    border-color: #ffc107; 
    color: #856404;
}

.availability-alert.danger { 
    background-color: #f8d7da; 
    border-color: #dc3545; 
    color: #721c24;
}

/* Product Card Availability Indicators */
.product-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock::after {
    content: "SOLD OUT";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

.product-card.low-stock::after {
    content: "LOW STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

/* Stock Level Indicators */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-indicator.high {
    color: #28a745;
}

.stock-indicator.medium {
    color: #ffc107;
}

.stock-indicator.low {
    color: #dc3545;
}

/* Availability Filter Styles */
.availability-filter {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.availability-filter .form-label {
    font-weight: 600;
    color: var(--primary-darker);
    margin-bottom: 8px;
}

/* Responsive Availability Alerts */
@media (max-width: 768px) {
    .availability-alert {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .availability-alert .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .availability-alert i {
        margin-bottom: 10px;
    }
    
    .product-card::after {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}

.top-info-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.3em 0;
  font-size: 1rem;
  color: var(--primary-darker);
  z-index: 100;
}
.top-info-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 2em;
  padding-right: 2em;
}
.top-info-bar .info-left {
  display: flex;
  gap: 1.5em;
  align-items: center;
}
.top-info-bar .info-right {
  display: flex;
  gap: 0.7em;
  align-items: center;
}
.top-info-bar .info-right a {
  color: #1976d2;
  font-size: 1.2em;
  transition: color 0.2s;
}
.top-info-bar .info-right a:hover {
  color: var(--primary-color);
}
@media (max-width: 900px) {
  .top-info-bar {
    margin-left: 60px;
    font-size: 0.95rem;
  }
  .top-info-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
  }
} 

/* Blog category horizontal scroll fix */
.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    flex-wrap: nowrap !important;
    padding-bottom: 8px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #256029 #e0e0e0;
}
.category-scroll .btn {
    margin-right: 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
} 

/* Blog filter bar modern redesign */
.blog-filter-bar {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.07);
    margin-bottom: 2rem;
    padding: 1.2rem 2rem;
    gap: 1.5rem;
    align-items: center;
}
@media (max-width: 767.98px) {
    .blog-filter-bar {
        flex-direction: column;
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
}

.search-input {
    border-radius: 2rem !important;
    box-shadow: none !important;
    border: 1.5px solid #e0e0e0;
    font-size: 1.08rem;
    padding: 0.7rem 1.2rem;
    background: #f8f9fa;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: #256029;
    background: #fff;
}
.search-btn {
    border-radius: 2rem !important;
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    margin-left: 0.2rem;
}

/* Hide scrollbar for category bar */
.category-scroll {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

/* Footer Background Image - Responsive */
.footer-bg-image {
    background-image: url('../assets/images/11443-NNB1F0.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
}

/* Mobile Footer Background */
@media (max-width: 768px) {
    .footer-bg-image {
        background-image: url('../assets/images/mobile footer bg.png');
        background-size: contain;
        background-position: center;
    }
} 
  @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;500&display=swap');

    .slogan-ribbon {
        background: linear-gradient(90deg, #0F3D2E 0%, #1F5E3B 100%);
        color: white;
        padding: 1rem 0;
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: 0 2px 15px rgba(15, 61, 46, 0.4);
        border-top: 2px solid #C9A43B;
        border-bottom: 2px solid #C9A43B;
    }

    .ribbon-content {
        display: flex;
        width: max-content;
        animation: scrollLeft 30s linear infinite;
        white-space: nowrap;
        padding: 0 2rem;
    }

    .slogan-text {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 0 2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .slogan-separator {
        color: #C9A43B;
        font-weight: bold;
        font-size: 1.5rem;
        text-shadow: none;
    }

    /* Keyframes for smooth scrolling */
    @keyframes scrollLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    /* Pause animation on hover */
    .slogan-ribbon:hover .ribbon-content {
        animation-play-state: paused;
    }

    /* Enhanced fade edges for smoother look */
    .slogan-ribbon::before,
    .slogan-ribbon::after {
        content: '';
        position: absolute;
        top: 0;
        width: 120px;
        height: 100%;
        z-index: 3;
        pointer-events: none;
    }

    .slogan-ribbon::before {
        left: 0;
        background: linear-gradient(to right, #0F3D2E, transparent);
    }

    .slogan-ribbon::after {
        right: 0;
        background: linear-gradient(to left, #1F5E3B, transparent);
    }

    /* Add slight glow effect for better text visibility */
    .slogan-text span:not(.slogan-separator) {
        position: relative;
    }

    .slogan-text span:not(.slogan-separator)::after {
        content: '';
        position: absolute;
        left: -2px;
        right: -2px;
        top: -1px;
        bottom: -1px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
        z-index: -1;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .slogan-text {
            font-size: 1rem;
            gap: 1.5rem;
            font-weight: 500;
        }
        
        .ribbon-content {
            animation-duration: 40s;
        }
        
        .slogan-separator {
            font-size: 1.3rem;
        }
    }

    @media (max-width: 480px) {
        .slogan-text {
            font-size: 0.95rem;
            gap: 1rem;
            padding: 0 1rem;
        }
        
        .ribbon-content {
            animation-duration: 50s;
            padding: 0 1rem;
        }
        
        .slogan-ribbon::before,
        .slogan-ribbon::after {
            width: 60px;
        }
        
        .slogan-separator {
            font-size: 1.2rem;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .slogan-ribbon {
            background: linear-gradient(90deg, #0A2D1F 0%, #15482A 100%);
        }
        
        .slogan-text {
            text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
            font-weight: 700;
        }
    }