@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');


:root {
    --yellow: #e6cf6f;
    --red: #6e2e28 !important;
    --green: #f5b515 !important;
    --black: #000;
    --white: #fff;
    --dark-yellow: #f5b515;
    --brown: #6e2e28;
    --rose: #ff2300;
}

::selection {
    background-color: var(--rose);
    color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Alata", sans-serif;
}

p {
    text-align: justify;
}

li a {
    text-decoration: none;
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    height: 60px;
    width: 60px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebd5a;
    transform: scale(1.1);
}


.organico-header-wrapper.fixed-top {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.colorful-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* --- Top Bar (Dark Green) --- */
.header-top-colorful {
    background-color: #fff;
    padding: 15px 0;
    color: #E8F5E9;
    border-bottom: 2px solid var(--rose);
}

.logo-colorful img {
    height: 60px;
}

.social-icons-top-center a {
    color: #000;
    margin: 0 8px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.social-icons-top-center a:hover {
    color: var(--rose);
}

.header-actions-top a {
    color: #000;
    font-size: 1.3rem;
    margin-left: 18px;
    text-decoration: none;
    position: relative;
}

.header-actions-top a:hover {
    color: var(--rose);
}

.badge-cart-colorful {
    font-size: 0.65em;
    padding: 0.25em 0.5em;
    background-color: #D32F2F !important;
    color: white !important;
    top: 0px !important;
    right: -8px !important;
}

/* --- Bottom Bar (White with Red Accent) --- */
.header-bottom-colorful {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.main-nav-colorful .nav-link {
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    text-transform: capitalize;
    font-weight: bold;
}

.nav-link.active {
    color: var(--rose) !important;
}

.main-nav-colorful .nav-link:hover,
.main-nav-colorful {
    color: var(--rose);
}

/* Mega Menu Styles */
@media (min-width: 992px) {
    .mega-menu-dropdown-colorful .dropdown-menu {
        width: 700px;
        /* Increased width for mega menu */
        min-width: 700px;
        padding: 25px;
        margin-top: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 8px 8px;
        /* Rounded bottom corners */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav-colorful .nav-item.dropdown.mega-menu-dropdown-colorful:hover>.dropdown-menu {
        display: block;
    }

    .mega-menu-category-item-colorful {
        text-align: center;
        padding: 10px;
    }

    .mega-menu-category-item-colorful img {
        max-width: 100%;
        height: 150px;
        object-fit: contain;
        margin-bottom: 10px;
        border-radius: 6px;
        background-color: #f9f9f9;
        padding: 5px;
        transition: transform 0.2s ease;
    }

    .mega-menu-category-item-colorful a:hover img {
        transform: scale(1.05);
    }

    .mega-menu-category-item-colorful .category-name-mega {
        font-size: 0.9rem;
        font-weight: 500;
        color: #37474F;
        display: block;
        text-decoration: none;
    }

    .mega-menu-category-item-colorful a:hover .category-name-mega {
        color: #D32F2F;
    }
}

.btn-enquiry-now {
    background-color: var(--rose) !important;
    /* Red button */
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
}

.btn-enquiry-now:hover {
    background-color: var(--red) !important;
    color: white !important;
}

/* Mobile Toggler (in top dark bar) */
.header-top-colorful .navbar-toggler {
    background-color: #000;
}

.header-top-colorful .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(232, 245, 233, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Menu Styles */
.offcanvas-colorful {
    background-color: #2E7D32;
    color: #E8F5E9;
}

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

.offcanvas-colorful .offcanvas-title img {
    height: 35px;
}

.offcanvas-colorful .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-colorful .mobile-nav-colorful .nav-link {
    color: var(--black);
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.offcanvas-colorful .mobile-nav-colorful .nav-item:last-child .nav-link {
    border-bottom: none;
}

.offcanvas-colorful .mobile-nav-colorful .nav-link:hover {
    color: var(--red);
}

/* Yellow hover */

.offcanvas-colorful .mobile-submenu-toggle-colorful {
    /* For collapsible category in offcanvas */
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: white;
}

.offcanvas-colorful .mobile-submenu-toggle-colorful::after {
    content: "";
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform .2s ease-in-out;
}

.offcanvas-colorful .mobile-submenu-toggle-colorful[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

.offcanvas-colorful .mobile-submenu-colorful {
    list-style: none;
    padding-left: 1.5rem;
}

.offcanvas-colorful .mobile-submenu-colorful .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 0;
    border-color: rgba(255, 255, 255, 0.05);
}

.offcanvas-colorful .mobile-top-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(7, 7, 7, 0.15);
    text-align: start;
}

.offcanvas-colorful .mobile-top-actions a {
    margin: 0 10px;
    color: var(--black);
    font-size: 1.3rem;
}

.offcanvas-colorful .btn-enquiry-mobile {
    margin-top: 20px;
    background-color: var(--red) !important;
    color: white;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {

    /* Adjust for single top bar on mobile */
    .header-bottom-colorful {
        display: none !important;
    }

    /* Hide bottom nav bar */
    .header-top-colorful .social-icons-top-center {
        display: none;
    }

    /* Hide social icons from top bar center */
    .header-top-colorful .action-icons-main-nav {
        display: none;
    }

    /* Hide desktop action icons */
    .header-top-colorful .navbar-brand {
        margin-right: auto;
        /* Push toggler to right */
    }
}

.collapse:not(.show)+button i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.collapse.show+button i {
    transform: rotate(180deg);
}

.offcanvas-colorful .btn-close {
    filter: brightness(0);
    /* Makes close icon fully black */
    opacity: 1;
    /* Optional: ensures full visibility */
}

@media (max-width: 991px) {
    #productSearchMobile {
        font-size: 0.95em;
    }

    .dropdown-content#searchResultsDropdownMobile {
        max-width: 100%;
    }
}

/* [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled){
    border: none !important;
} */

@media (max-width: 991px) {
    #productSearchMobile {
        font-size: 0.95em;
        border: none;
    }
}


/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}


#productSearch {
    border: none;
    outline: none;
    padding: 8px;
    flex-grow: 1;
    font-size: 1em;
}

#searchButton {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

#searchButton img {
    width: 20px;
    height: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    top: 100%;
    left: 0;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px 0;
}

.dropdown-content.show {
    display: block;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.product-item:hover {
    background-color: #e9e9e9;
}

.product-item img {
    width: 100px;
    height: 100px;
    min-width: 50px;
    /* margin-right: 10px; */
    object-fit: cover;
    border-radius: 3px;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.product-details .product-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name{
    margin-top: 10px;
}

.product-details .product-amount {
    color: #555;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    #productSearch {
        font-size: 0.95em;
    }

    .product-details .product-name {
        font-size: 0.9em;
    }

    .product-details .product-amount {
        font-size: 0.85em;
    }

    .product-item img {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}