:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 80px;
    padding-top: 70px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.search-container {
    position: relative;
    flex-grow: 1;
    margin: 0 15px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e67e22;
    transform: translateY(-50%) scale(1.1);
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Logo */
.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Offcanvas Menu */
.offcanvas {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: white;
    font-weight: bold;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 15px 20px !important;
    border-radius: 10px;
    margin: 5px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(10px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><rect fill="%23f1c40f" width="1000" height="300"/><rect fill="%2327ae60" width="100%" height="100%" opacity="0.8"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-hero:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Categories */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

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

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h5 {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.category-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #f1c40f, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-add-cart {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-add-cart:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 5px;
}

.nav-item.active, .nav-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Cart Modal */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.quantity-display {
    font-weight: bold;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Owl Carousel Styles */
.owl-carousel {
    margin-bottom: 30px;
}

.owl-nav {
    text-align: center;
    margin-top: 20px;
}

.owl-nav button {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 18px !important;
    margin: 0 10px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow) !important;
}

.owl-nav button:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-hover) !important;
}

.owl-nav button.owl-prev:before,
.owl-nav button.owl-next:before {
    font-family: 'Bootstrap Icons';
}

.owl-nav button.owl-prev:before {
    content: '\f12f'; /* bi-chevron-left */
}

.owl-nav button.owl-next:before {
    content: '\f130'; /* bi-chevron-right */
}

.owl-dots {
    text-align: center;
    margin-top: 15px;
}

.owl-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(46, 204, 113, 0.3) !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

.owl-dot.active {
    background: var(--primary-color) !important;
    transform: scale(1.2) !important;
}

/* Carousel Product Cards */
.carousel-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin: 10px 5px;
    height: 280px;
    display: flex;
    flex-direction: column;
}

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

.carousel-product-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
}

.carousel-product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-product-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.2;
    height:35px;
    overflow:hidden;
}

.carousel-product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.carousel-btn-add-cart {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
}

.carousel-btn-add-cart:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Special offer badge */
.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.owl-carousel .owl-item img{width:auto}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-product-image {
        height: 100px;
        font-size: 2rem;
    }
    
    .carousel-product-card {
        height: 250px;
    }
    
    .carousel-product-info {
        padding: 12px;
    }
    
    .carousel-product-title {
        font-size: 0.9rem;
    }
    
    .carousel-product-price {
        font-size: 1.1rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    color: white;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f5f7fa'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

.footer-content {
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding-left: 0;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    padding-left: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    box-shadow: var(--shadow);
}

.contact-info h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-info p {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-location {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.footer-location h6 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.footer-location p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

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

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        margin-bottom: 12px;
        padding: 8px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
        font-size: 16px;
    }

    .contact-info h6 {
        font-size: 0.8rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .footer-wave {
        top: -30px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 30px 0 15px;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}