/* Critical overrides for Bootstrap navbar */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    background-color: var(--primary-dark) !important;
    padding: 0.75rem 0;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Main styles */
/* Contact page specific styles */
.contact-info a {
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-green) !important;
    text-decoration: none;
}

.contact-section .card {
    background: linear-gradient(145deg, var(--primary-light) 0%, #ffffff 100%);
    border: none;
}

.contact-section .form-control,
.contact-section .form-select {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0,166,81,0.25);
}

.contact-section .btn-success {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-section .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.business-hours-section .table {
    margin: 0;
}

.business-hours-section .table td {
    padding: 1rem;
    border-color: rgba(0,0,0,0.05);
}

.faq-section .accordion-button {
    background: linear-gradient(145deg, var(--primary-light) 0%, #ffffff 100%);
    border: none;
    padding: 1.25rem;
    font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-green);
    background: linear-gradient(145deg, #ffffff 0%, var(--primary-light) 100%);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-green);
}
:root {
    --primary-dark: #1C1C1C;
    --primary-green: #00A651;
    --primary-blue: #00BBD6;
    --primary-light: #F2F2F2;
    --header-height: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--primary-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height) !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* Header styles */
.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-green) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--primary-light) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
}

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

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

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Override Bootstrap navbar styles */
.navbar.navbar-expand-lg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
}

.navbar > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Remove any default margins from body and html */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Ensure main content starts below navbar */
main, .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix for any potential Bootstrap conflicts */
.navbar-collapse {
    background-color: var(--primary-dark) !important;
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

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

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 166, 81, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu collapse styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 1rem 0;
    }
    
    .navbar-nav {
        padding: 0 1rem;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        font-size: 1.1rem;
        border-bottom: none;
        min-height: 50px;
        justify-content: flex-start;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.05);
        border-radius: 8px;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Search form mobile styles */
    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
        margin: 1rem 0;
    }
    
    .navbar .d-flex form {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar .d-flex .input-group {
        width: 100%;
    }
    
    .navbar .d-flex .btn {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
    }
    
    /* Cart buttons mobile styles */
    .navbar .d-flex > div:last-child {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar .d-flex > div:last-child .btn {
        flex: 1;
        margin: 0;
    }
}

/* Ensure proper spacing for mobile */
@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-collapse {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
}

/* Additional mobile menu fixes */
.navbar {
    position: relative;
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

.navbar-collapse.show {
    display: block !important;
}

/* Fix for mobile menu positioning */
@media (max-width: 991.98px) {
    .navbar > .container {
        position: relative;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 1rem 0;
        margin: 0;
        width: 100%;
    }
    
    /* Ensure menu appears above other content */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        z-index: 1050;
    }
    
    /* Improve button spacing on mobile */
    .navbar .d-flex > div:last-child {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar .d-flex > div:last-child .btn {
        margin: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-width: 60px;
        height: 50px;
    }
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Desktop navigation improvements */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .navbar-nav .nav-link {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .navbar .d-flex {
        align-items: center;
    }
    
    .navbar .d-flex > div:last-child {
        display: flex;
        align-items: center;
    }
}

.form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-light);
    padding-left: 1rem;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-control:focus {
    background-color: rgba(255,255,255,0.15);
    box-shadow: none;
    color: var(--primary-light);
}

.input-group .btn {
    border-radius: 0 20px 20px 0;
    padding: 0.375rem 1rem;
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-dark);
}

/* Cart button styles */
.snipcart-checkout {
    position: relative;
    transition: transform 0.2s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snipcart-checkout:hover {
    transform: scale(1.05);
}

.snipcart-items-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
}

.snipcart-total-price {
    display: none;
}

/* Footer styles */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-green) !important;
    text-decoration: none;
}

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

/* Cookie consent styles */
.cookie-consent {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-consent a:hover {
    color: var(--primary-green) !important;
}

/* Enhanced Carousel Styles */
.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.carousel-item img {
    filter: brightness(0.9);
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(255,255,255,0.9) 50%, 
        rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.carousel-caption:hover {
    transform: translateY(-5px);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.carousel-caption h1,
.carousel-caption h2 {
    color: var(--primary-dark) !important;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
    font-size: 2.5rem;
    line-height: 1.2;
}

.carousel-caption .lead {
    color: var(--primary-dark) !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: none;
    font-size: 1.2rem;
    line-height: 1.4;
}

.carousel-caption .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,166,81,0.4);
}

/* Carousel Controls Enhancement */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(140deg);
    width: 30px;
    height: 30px;
}



/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.5rem 1rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1rem 0.75rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.9rem;
    }
    
    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Enhanced Product Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.card-body {
    padding: 1.5rem;
    position: relative;
}

.card-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-green);
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: block;
}

.card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.card .btn:hover::before {
    left: 100%;
}

.card .btn-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00c853 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}

.card .btn-success:hover {
    background: linear-gradient(135deg, #00c853 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,166,81,0.4);
}

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

.card .btn-outline-success:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,166,81,0.3);
}

/* Product card badges */
.card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Product card image overlay */
.card .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,166,81,0.1) 0%, rgba(0,187,214,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover .img-overlay {
    opacity: 1;
}

/* Product card loading animation */
.card.loading {
    animation: cardPulse 1.5s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Featured products section */
.featured-products .card {
    margin-bottom: 1rem;
}

.featured-products .row {
    margin: 0 -0.75rem;
}

.featured-products .col-md-4,
.featured-products .col-lg-4 {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* Categories section cards */
.categories-section .card {
    border-radius: 20px;
    overflow: hidden;
}

.categories-section .card-img-top {
    height: 200px;
}

.categories-section .card-body {
    padding: 2rem;
    text-align: center;
}

.categories-section .card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Shop page specific styles */
.shop-page .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-page .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-page .card .btn {
    margin-top: auto;
}

/* Responsive card adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card .price {
        font-size: 1.1rem;
    }
    
    .card .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .featured-products .col-md-4,
    .featured-products .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Additional enhancements for cards */
.card .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card .btn:hover::after {
    opacity: 1;
}

/* Badge enhancements */
.badge {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00c853 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #212529 !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* Section enhancements */
.featured-products,
.categories-section {
    position: relative;
}

.featured-products::before,
.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,166,81,0.2), transparent);
}

/* Container spacing improvements */
.container {
    position: relative;
}

/* Main content spacing for fixed header */
main {
    padding-top: 2rem;
}

/* Enhanced breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-green);
    font-weight: 600;
}

/* Page title enhancements */
h1, h2 {
    position: relative;
    margin-bottom: 1.5rem;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00c853 100%);
    border-radius: 2px;
}

.text-center h1::after, .text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}
