:root {
    --harvest-green: #16a34a;
    --harvest-green-light: #22c55e;
    --harvest-orange: #ea580c;
    --harvest-cream: #fefdf8;
    --harvest-brown: #8b5a3c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    padding: 20px;
}

.brand-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--harvest-green);
}

.search-input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 2rem;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--harvest-green);
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.qtybox:focus {
    outline: none;
    border-color: var(--harvest-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 5;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--harvest-green);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--harvest-orange);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(
        135deg,
        var(--harvest-green) 0%,
        var(--harvest-green-light) 100%
    );
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.0rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--harvest-green);
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--harvest-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--harvest-green) !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    color: white !important;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.floating-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-content h6 {
    color: var(--harvest-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

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

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: var(--harvest-green);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.category-arrow {
    color: var(--harvest-green);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

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

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card-content {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--harvest-green);
}

.product-original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

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

.btn-add-cart {
    background: var(--harvest-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-add-cart:hover {
    background: var(--harvest-green-light);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--harvest-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--harvest-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.875rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0.5rem 0;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-nav-item.active {
    color: var(--harvest-green);
    background: rgba(22, 163, 74, 0.1);
}

.desktop-nav .active {
    color: var(--harvest-green);
}

.mobile-nav-item:hover {
    color: var(--harvest-green);
    transform: translateY(-2px);
}

/* Product Detail Styles */
.main-image-container {
    border-radius: 1rem;
    overflow: hidden;
    background: #f9fafb;
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--harvest-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.product-category {
    color: var(--harvest-green);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.product-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--harvest-green);
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.savings {
    background: var(--harvest-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-description {
    margin: 1.5rem 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(22, 163, 74, 0.1);
    color: var(--harvest-green);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--harvest-orange);
}
.stock-text {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.quantity-section {
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    border-color: var(--harvest-green);
    color: var(--harvest-green);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-add-to-cart {
    flex: 1;
    background: var(--harvest-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: var(--harvest-green-light);
    transform: translateY(-2px);
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.btn-wishlist:hover {
    border-color: var(--harvest-orange);
    color: var(--harvest-orange);
}

.product-features {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.feature-item i {
    font-size: 1rem;
}

.related-products {
    border-top: 1px solid var(--border-light);
    padding-top: 3rem;
}

/* Background Colors */
.bg-harvest-cream {
    background-color: var(--harvest-cream);
}

/* Responsive Design */
.navbar .fa-shopping-cart {
    font-size: 30px !important;
}

.form-check-input:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

.disable-focus-line:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--harvest-green);
}

.page-sub-title {
    font-size: 24px;
}

.product-card {
    min-height: 565px;
    height: 100%;
}

.category-card {
    min-height: 391px;
}

.menu-logo img {
    width: 55px;
    height: 80px;
}

#bannerCarousel .owl-nav {
    top: 45%;
    transform: translateY(-45%);
}
@media (min-width: 992px) {
    .topBarSearch {
        display: none;
    }
    .sidebarSearch {
        display: block;
    }
    .sticky-desktop {
        position: sticky;
        top: 0;
        z-index: 1020; /* Same as Bootstrap sticky-top */
    }
}
@media (max-width: 991px) {
    #bannerCarousel .owl-nav {
        top: 35%;
        transform: translateY(-35%);
    }

    .md-pb-100 {
        padding-bottom: 90px !important;
    }
    .footer {
        display: none;
    }
    .category-card {
        min-height: 391px;
    }
    #categories {
        padding-bottom: 50px !important;
    }

    #products {
        margin-top: 30px;
        margin-bottom: 50px;
    }
    #searchTitle {
        font-size: 20px;
    }
    .topBarSearch {
        display: block;
    }
    .sidebarSearch {
        display: none;
    }
    .brand-text {
        font-size: 20px;
    }
    header .container {
        padding: 0;
    }
    #cartCount {
        font-size: 10px;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 1.75rem;
    }
    .floating-card {
        margin-top: 50px;
    }
    .hero-gradient {
        padding: 50px;
    }
}

@media (max-width: 767px) {
    #ordersuccess .order-item{
        display: grid !important;
    }
    #ordersuccess .sm-align-items-space-between{
        justify-content:space-between;
    }
    .product-pricing {
        display: block;
    }
    .product-pricing .savings {
        width: 50%;
        text-align: center;
    }
    .main-product-image {
        height: 250px;
    }
    .hero-gradient {
        padding: 0;
    }
    #categories {
        padding-top: 0 !important;
    }
    .banner-section-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    .menu-logo img {
        width: 45px;
        height: 70px;
    }
    .md-pb-100 {
        padding-bottom: unset !important;
    }
    .category-card {
        min-height: auto !important;
    }
    #categories {
        padding-bottom: 20px !important;
    }
    #products {
        margin-top: 0;
        margin-bottom: 0;
    }
    .product-card {
        min-height: auto !important;
    }
    .floating-card {
        margin-top: 50px;
    }
    .hero-gradient .py-5 {
        padding: 0 0 20px !important;
    }
    .navbar {
        padding: 0 20px !important;
    }
    .container {
        padding: 30px;
    }
    .hero-title {
        font-size: 2rem;
    }

    .floating-card {
        max-width: 250px;
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        align-self: flex-start;
    }

    body {
        padding-bottom: 80px;
    }
    #search-results {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    #featuredProducts .col-sm-6{
        width: 50%;
    }

    #featuredProducts .product-image{
        height: 150px;
    }
    #featuredProducts .product-card-content{
        padding: 10px;
    }

    #featuredProducts .stock-badge{
        padding: 5px 10px;
    }

    #featuredProducts .product-price, .product-original-price{
        font-size: 13px;
    }

    #featuredProducts .btn-add-cart{
        padding: 5px 10px;
        font-size: 12px;
    }
    #featuredProducts .product-rating{
        font-size: 13px;
    }
}

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

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

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.footer {
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a42 100%);
    color: #ffffff;
    margin-top: auto;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: #28a745;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-description {
    color: #b8d4c8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-section h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: #b8d4c8;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #28a745;
}

.footer-links a i {
    width: 18px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.contact-info {
    color: #b8d4c8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info i {
    color: #28a745;
    width: 20px;
    margin-right: 10px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8d4c8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #28a745;
    color: #ffffff;
    transform: translateY(-2px);
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.newsletter-form h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-form p {
    color: #b8d4c8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: #b8d4c8;
}

.newsletter-input:focus {
    outline: none;
    border-color: #28a745;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 12px 20px;
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #218838;
}

.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    color: #b8d4c8;
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: #ffffff;
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-methods span {
    color: #b8d4c8;
    font-size: 0.9rem;
    margin-right: 10px;
}

.payment-icon {
    width: 35px;
    height: 24px;
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
}

.organic-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    color: #28a745;
    margin-top: 15px;
}

.organic-badge i {
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
    .mobile-pagination{
        overflow: auto !important;
        display: grid !important;
        justify-content: unset !important;
    }
}

@media (max-width: 576px) {
    .footer-section {
        margin-bottom: 30px;
    }

    .newsletter-form {
        padding: 20px;
    }
}
