/* Global Styles */
:root {
    --bs-success: #006847; /* Green from Senegalese flag */
    --bs-warning: #ffd700; /* Yellow from Senegalese flag */
    --bs-danger: #ce1126; /* Red from Senegalese flag */
    --bs-dark: #212529;
    --bg-light: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    /* font-family: 'Times New Roman', Times, serif;   */
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}
/* Hero Carousel Styles */
.hero-carousel {
    margin-top: 76px; /* Account for fixed navbar */
}

.hero-image {
    height: 100vh;
    object-fit: cover;
    width: 100%;
}
.hero {
    min-height: 80vh;
    padding: 4rem 0;
}

.hero-content {
    margin-top: 2rem;
    padding: 1.5rem;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 104, 71, 0.8),
        rgba(0, 0, 0, 0.4)
    );
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    padding-left: 5rem;
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
    padding: 0;
}

.carousel-caption h1 {
    color: var(--bs-warning);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

.carousel-indicators button.active {
    background-color: var(--bs-warning);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Breadcrumb Header Styles */
.breadcrumb-header {
    position: relative;
    color: white;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-custom a:hover {
    color: var(--bs-warning);
}

.breadcrumb-icon {
    animation: float 3s ease-in-out infinite;
}

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

/* Mobile Responsive for Hero and Breadcrumbs */
@media (max-width: 768px) {
    .hero-image {
        height: 70vh;
    }

    .hero {
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .breadcrumb-header {
        min-height: 150px;
        text-align: center;
    }

    .breadcrumb-icon {
        margin-top: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 60vh;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .carousel-caption {
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .breadcrumb-header h1 {
        font-size: 1.8rem;
    }
}

/* Legacy hero styles for other pages */
.hero .btn-primary {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-success);
    font-weight: 600;
}

.hero .btn-outline-light:hover {
    color: var(--bs-success);
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Navigation Styles */
#mainNav {
    background-color: var(--bs-success);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav.navbar-shrink {
    padding: 0.5rem 0;
    background-color: rgba(0, 104, 71, 0.95);
    backdrop-filter: blur(10px);
}
.nav-link {
    text-transform: uppercase;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(0);
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateX(5px);
}
.logo {
    width: 40px;
}
/* .navbar-brand-logo {
    width: 30px;
    margin-top: -10px;
    object-fit: cover;
} */

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .navbar-brand-text {
        display: none;
    }
}
.navbar-brand-logo {
    width: 40px;
    height: 40px;
    background-color: var(--bs-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    transform: rotate(0deg);
}

.navbar-brand:hover .navbar-brand-logo {
    transform: rotate(360deg);
}

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    position: relative;
}

.navbar-brand-text::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bs-warning);
    transition: var(--transition);
}

.navbar-brand:hover .navbar-brand-text::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.3rem 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 104, 71, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item:hover {
    color: var(--bs-success);
}

/* Header Icons */
.header-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    color: white !important;
    font-size: 1.2rem;
    /* position: relative; */
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.header-icon:hover {
    color: var(--bs-warning) !important;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--bs-danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transition: var(--transition);
}

.header-icon:hover .notification-badge {
    transform: scale(1.2);
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    right: 0 !important;
    left: auto !important;
}

.notification-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.notification-item:hover {
    background-color: rgba(0, 104, 71, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-content h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.user-dropdown {
    right: 0 !important;
    left: auto !important;
    max-height: 400px;
    overflow-y: auto;
}

/* Cart Dropdown */
.cart-dropdown {
    min-width: 320px;
    padding: 1rem;
    right: 0 !important;
    left: auto !important;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: rgba(0, 104, 71, 0.05);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.cart-item:hover .cart-item-image {
    transform: scale(1.1);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-remove {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total {
    padding: 1rem 0;
    border-top: 2px dashed rgba(0, 104, 71, 0.2);
    margin-top: 1rem;
}

.cart-actions {
    padding-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .header-menu {
        gap: 1rem;
        margin-top: 1rem;
        justify-content: center;
    }

    .notification-dropdown,
    .cart-dropdown {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .header-menu {
        gap: 0.5rem;
    }

    .header-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .notification-dropdown,
    .cart-dropdown {
        min-width: 250px;
    }
}
.section-heading {
    position: relative;
    color: var(--bs-success);
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--bs-warning);
    margin: 0 auto 2rem;
    opacity: 1;
}

.section-subheading {
    max-width: 700px;
    margin: 0 auto;
}

#mainNav .navbar-brand {
    font-weight: 700;
    color: white;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: var(--bs-warning);
}

.about-content {
    padding: 1rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bs-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.action-card {
    transition: var(--transition);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.action-card img {
    height: 200px;
    object-fit: cover;
}

.action-card .card-footer {
    background-color: transparent;
    border-top: none;
    padding-top: 0;
}

.product-card {
    transition: var(--transition);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-rating {
    color: var(--bs-warning);
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bs-success);
}

.contact-info {
    background-color: white;
    height: 100%;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bs-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-form {
    background-color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bs-success);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--bs-warning);
    color: var(--bs-success);
    transform: translateY(-3px);
}

footer {
    background-color: var(--bs-dark);
    color: white;
}

.footer-brand {
    text-decoration: none;
}

.navbar-brand-text-footer {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--bs-warning);
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--bs-warning);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bs-warning);
    padding-left: 5px;
}

.btn-primary {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-primary:hover {
    background-color: darken(var(--bs-success), 10%);
    border-color: darken(var(--bs-success), 10%);
}

.btn-outline-primary {
    color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-primary:hover {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-success {
    color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-success:hover {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

@media (max-width: 992px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col-auto,
    .col-sm,
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-auto,
    .col-md,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-auto,
    .col-lg,
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-lg-auto,
    .col-xl,
    .col-xl-1,
    .col-xl-2,
    .col-xl-3,
    .col-xl-4,
    .col-xl-5,
    .col-xl-6,
    .col-xl-7,
    .col-xl-8,
    .col-xl-9,
    .col-xl-10,
    .col-xl-11,
    .col-xl-12,
    .col-xl-auto {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
    }
    .contact-info {
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand-logo {
        width: 35px;
        height: 35px;
    }

    .header-icons {
        gap: 1rem;
    }

    .header-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
    } */
}

@media (max-width: 576px) {
    .social-links {
        justify-content: center;
    }

    .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .product-card img {
        height: 200px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

/* Fix for horizontal scroll issues */
.row {
    --bs-gutter-x: 1.5rem;
}

@media (max-width: 768px) {
    .row {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 576px) {
    .row {
        --bs-gutter-x: 0.5rem;
    }
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for tables on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix for forms on mobile */
.form-control,
.form-select {
    max-width: 100%;
}

/* Fix for buttons on mobile */
.btn {
    word-wrap: break-word;
    white-space: normal;
}

/* Fix for cards on mobile */
.card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Additional AOS-related styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Enhanced animation styles */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.menu {
    color: var(--bs-white);
    font-size: 1rem;
    font-weight: 600;
}

.menu a {
    color: var(--bs-white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.menu a:hover {
    color: var(--bs-warning);
}
/* .menu .nav-link {
    padding: 0.5rem 1rem;
    color: var(--bs-white);
    transition: color 0.3s ease;
}
.menu .nav-link:hover {
    color: var(--bs-warning);
} */
