/* Updated styles with peach and white color scheme */
:root {
    --peach: #FFDAB9;
    --light-peach: #FFE4D0;
    --grey-text: #666666;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--light-peach);
    color: var(--grey-text);
}

.navbar {
    background-color: var(--peach);
    padding: 1rem 0;
}

.navbar-brand h1 {
    color: var(--grey-text);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-link {
    color: var(--grey-text) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db !important;
}

/* Hero Section */
#hero {
    margin: -20px 0 0;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-carousel .carousel-item.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 15vh;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    border-radius: 25px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

/* Add floating animation to cards */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.category-card {
    animation: float 6s ease-in-out infinite;
}

/* Enhance category cards */
.category-card {
    background: linear-gradient(to bottom, white, #f8f9fa);
    border: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card img {
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Add section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced buttons and interactive elements */
.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Category and Product Cards */
.category-card, .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.category-card:hover, .product-card:hover {
    transform: translateY(-5px);
}

.product-card {
    padding: 12px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: 180px;
    /*object-fit: cover;*/
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--grey-text);
}

.product-card .price {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.price {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: bold;
}

.price::before {
    content: 'Ksh ';
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Animations */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Cart Section */
.cart-items {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

/* Update the Category Cards styling */
.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.category-card img {
    width: 100%;
    height: 100px;
    /*object-fit: cover;*/
}

.category-card h3 {
    padding: 1rem;
    text-align: center;
    color: var(--grey-text);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.category-items {
    list-style: none;
    padding: 0 1rem;
    margin: 0;
}

.category-items li {
    color: var(--grey-text);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-items li:hover {
    color: #3498db;
}

/* Add hover effect for category cards */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Update main content background */
main {
    background-color: white;
    padding: 20px 0;
    margin: 0;
}

/* Update footer styles */
footer {
    background-color: var(--peach);
    color: var(--grey-text);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

/* Update footer links color */
.footer-content a {
    color: var(--grey-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #3498db;
}

/* Update footer bottom section */
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

/* Update container sections for better spacing */
#categories, #featured-products, #cart-section {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Navbar improvements */
.navbar {
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    position: relative;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--grey-text);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-peach);
    color: #3498db;
}

/* Search form styling */
.search-form {
    min-width: 300px;
}

.search-form .input-group {
    border-radius: 20px;
    overflow: hidden;
}

.search-form .form-control {
    border-right: none;
    border-radius: 20px 0 0 20px;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    border-left: none;
    padding: 0.375rem 1rem;
}

/* Nav icons styling */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icons .nav-link {
    position: relative;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.nav-icons .nav-link:hover {
    color: #3498db !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .search-form {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-icons {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand h1 {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .category-items li {
        font-size: 0.8rem;
    }

    .price {
        font-size: 1rem;
    }
}

/* Add these new styles for the updated header */
.top-header {
    background-color: var(--peach);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.contact-info {
    color: var(--grey-text);
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B3E6C;
    margin: 0;
    line-height: 1;
}

.tagline {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
}

.search-section {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.category-select {
    min-width: 180px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--grey-text);
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    position: relative;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.category-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.category-select option {
    padding: 10px;
    font-size: 0.9rem;
    background-color: white;
    color: var(--grey-text);
}

.category-select option:hover {
    background-color: var(--light-peach);
}

/* Search form improvements */
.search-form .input-group {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
}

.search-form .form-control {
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    padding: 0.6rem 1.2rem;
    background-color: #3498db;
    border: none;
    color: white;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-select {
        min-width: 150px;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .search-form .form-control {
        font-size: 0.85rem;
    }
    
    .search-form .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .category-select {
        min-width: 130px;
        font-size: 0.8rem;
    }
}

/* Add styles for the vertical category menu */
.category-sidebar {
    background-color: white;
    padding: 0;
    height: 60vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.vertical-menu {
    height: 100%;
    border-radius: 0;
}

.menu-title {
    background-color: var(--peach);
    color: var(--grey-text);
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.category-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.category-menu-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.category-menu-list li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--grey-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-menu-list li a:hover {
    background-color: var(--light-peach);
    color: #1B3E6C;
    padding-left: 2rem;
}

/* Update hero section for new layout */
#hero {
    margin: -20px 0 0;
    height: 60vh;
}

.hero-carousel {
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .category-sidebar {
        height: auto;
        margin-bottom: 1rem;
    }

    .category-menu-list {
        max-height: 300px;
    }

    #hero {
        height: auto;
    }

    .hero-carousel {
        height: 50vh;
    }
}

/* Scrollbar styling for category menu */
.category-menu-list::-webkit-scrollbar {
    width: 6px;
}

.category-menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-menu-list::-webkit-scrollbar-thumb {
    background: var(--peach);
    border-radius: 3px;
}

.category-menu-list::-webkit-scrollbar-thumb:hover {
    background: #deb59d;
}

/* Update product card button styles */
.product-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    min-width: 120px;
    margin-top: 0.5rem;
}

.product-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Update product card layout */
.product-card {
    padding: 12px;
    text-align: center;
}



.product-card h3 {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--grey-text);
}

.product-card .price {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* Add these styles to your existing CSS */
.categories-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--peach);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li a {
    display: block;
    padding: 8px 0;
    color: var(--grey-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    color: #1B3E6C;
    padding-left: 10px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.products-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-count {
    color: var(--grey-text);
    font-size: 0.9rem;
}

.sort-select {
    min-width: 200px;
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.9rem;
}

.view-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-buttons .btn {
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid #ddd;
}

.view-buttons .btn.active {
    background: var(--peach);
    color: white;
}

/* Product card styles for list view */
.product-grid.list-view .product-card {
    display: flex;
    align-items: center;
}

.product-grid.list-view .product-card img {
    width: 200px;
    margin-right: 2rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-toolbar {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .category-sidebar {
        margin-bottom: 2rem;
    }
    .product-card img {
    width: 100%;
    height: 100px;
}

.product-card h3 {
    margin: 1px 0;
    font-size: 0.8rem;
}
} 