﻿/* ============================
   ROOT / THEME (Desktop)
============================ */
:root {
    --color-primary: #97744b;
    --color-accent: #cdaa82;
    --color-brand: #478778;
    --color-text: #212529;
    --color-bg: #ffffff;
    --color-muted: #f8f9fa;
    --navbar-shadow: 0 4px 6px rgba(0,0,0,.08);
    --banner-height: 48px; /* fixed banner height */
    --navbar-pad-top: 4rem; /* spacing under banner */
    --max-content: 1200px;
}

/* ============================
   BASE
============================ */
html, body {
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

#layout_content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex-grow: 1;
    padding-top: 9rem;
}

a {
    text-decoration: none;
    color: inherit;
}

    a:hover {
        color: var(--color-accent);
    }

/* ============================
   NAVBAR (Desktop)
============================ */
.navbar {
    position:absolute;
    background: #fff;
    width: 100%;
    z-index: 1055;
    padding-top: var(--navbar-pad-top); /* space for fixed banner */
    box-shadow: var(--navbar-shadow);
}

.navbar-topnav .container-fluid {
    max-width: var(--max-content);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 24px;
}

    .navbar-topnav .container-fluid .w-100 {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        gap: 24px;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: 15px;
}

    .navbar-brand img {
        height: 72px;
        width: 82px;
        max-height: 80px;
    }

.title {
    font-family: "Dancing Script",cursive;
    font-size: 1.5rem;
    margin: 0 0 0 .3rem;
    color: var(--color-text);
}

/* desktop menu items */
.navbar-sidenav-menu-Item {
    color: var(--color-brand);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0 15px;
    transition: color .2s ease, transform .2s ease;
}

    .navbar-sidenav-menu-Item:hover {
        color: #d4f0d3;
        transform: translateY(-2px);
    }

/* icons */
.menu-icons {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: color .2s;
}

    .menu-icons:hover {
        color: #d4f0d3;
    }

/* ============================
   FIXED FREE SHIPPING BANNER
============================ */
.fixed-banner {
    background: var(--color-primary);
    padding: 10px 0;
    text-align: center;
    z-index: 1060;
}

.fixed-banner-icon {
    margin-right: 10px;
    color: #fff;
}

.card-one {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================
   FOOTER (Desktop)
============================ */
.footer {
    margin-top: auto;
    background: var(--color-muted);
    padding: 10px 0;
}

    .footer .container {
        max-width: var(--max-content);
        margin-inline: auto;
        padding-inline: 24px;
    }

.footer-links-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    padding: 10px 0;
}

.footer-item {
    flex: 1;
    min-width: 220px;
}

.footer-link {
    color: #343a40;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color .2s;
}

    .footer-link:hover {
        color: var(--color-accent);
        text-decoration: underline;
    }

.footer-icon {
    margin-right: 8px;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.footer-bottom {
    background: #343a40;
    color: #fff;
    padding: 10px 0;
}

    .footer-bottom p {
        margin: 0;
        font-size: .9rem;
    }

/* ============================
   DROPDOWNS (Desktop)
============================ */

/* Base dropdown */
.navbar .dropdown-menu {
    background: #fff;
    border: 1px solid #e1e1e1;
    box-shadow: var(--navbar-shadow);
    padding: 10px 0;
    text-align: left;
    max-height: 18rem;
    overflow-y: auto;
    overflow-x: hidden;
}

    .navbar .dropdown-menu.show {
        display: inline-block;
    }

/* Items */
.navbar .dropdown-item {
    padding: 8px 15px;
    color: var(--color-brand);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .2s, color .2s;
}

    .navbar .dropdown-item:hover {
        background: var(--color-accent);
        color: #fff;
    }

/* Wide, grid-style menus (works for Brands & Categories) */
.navbar .dropdown-menu.dropdown-branches-menu {
    width: 30rem;
    max-height: 25rem;
    padding: 10px;
}

/* Sticky search row */
.navbar .dropdown-menu .search-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 8px 10px;
    margin: 0;
}

    .navbar .dropdown-menu .search-sticky .form-control {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ccc;
        border-radius: 25px;
        background: #f9f9f9;
        font-size: 1rem;
        box-shadow: 0 1px 5px rgba(0,0,0,.1);
        transition: border .2s, box-shadow .2s;
    }

        .navbar .dropdown-menu .search-sticky .form-control:focus {
            outline: none;
            border-color: var(--color-accent);
            box-shadow: 0 0 8px rgba(205,170,130,.5);
        }

/* Picture grid */
.navbar .dropdown-menu .dropdown-pictures > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    padding: 1rem;
    margin: 0;
}

.navbar .dropdown-menu .dropdown-pictures .picture-container {
    width: 100%;
}

.navbar .dropdown-menu .dropdown-pictures .picture-overlay {
    aspect-ratio: 1/1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid var(--color-accent);
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.navbar .dropdown-menu .dropdown-pictures img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    padding: .3rem;
    transition: transform .2s;
}

.navbar .dropdown-menu .dropdown-pictures .image-title {
    position: static !important;
    background: transparent !important;
    color: var(--color-text);
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    line-height: 1.2;
    transition: transform .2s;
}

.navbar .dropdown-menu .dropdown-pictures .picture-overlay:hover img,
.navbar .dropdown-menu .dropdown-pictures .picture-overlay:hover .image-title {
    transform: scale(1.05);
    cursor: pointer;
}

/* Empty state */
.navbar .dropdown-menu .no-brand-results {
    display: none;
    padding: 6px 8px;
}


.category-card {
    width: 8rem;
    border: 1px solid #ceac85;
    border-radius: .5rem;
    overflow: hidden;
    height: 10rem;
}

    .category-card:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    .category-card .card-body {
        padding: .5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.category-thumb {
    width: 100%;
    height: 72px;
    object-fit: contain;
    display: block;
}

.category-card .card-footer {
    background: transparent;
    border-top: 0;
    padding: 0rem .5rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0px;
    font-size: 0.9rem;
}


/* ============================
   DESKTOP RESPONSIVE TWEAKS
============================ */
/* widen content on very large desktops */
@media (min-width:1400px) {
    :root {
        --max-content: 1320px;
    }
}

/* tighten spacing on smaller desktops */
@media (min-width:992px) and (max-width:1199.98px) {
    .navbar-topnav .container-fluid {
        padding-inline: 16px;
    }

    .navbar-sidenav-menu-Item {
        padding: 0 10px;
    }

}

/* ============================
   SCROLLBARS (subtle)
============================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-accent);
    }


.submit-btn {
    background-color: #d4f0d3; /* Light green base */
    border-color: #d4f0d3;
    color: #478778; /* Darker green text */
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem; /* Matches Bootstrap's rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .submit-btn:hover {
        background-color: #478778; /* Dark green on hover */
        border-color: #478778;
        color: #fff; /* White text when hovered */
        transform: scale(1.05); /* Slight pop effect */
    }

    .submit-btn:active {
        background-color: #356358; /* Even darker green when pressed */
        border-color: #356358;
        transform: scale(0.95); /* Press down effect */
    }

    .submit-btn:disabled {
        background-color: #e6f4e6;
        border-color: #e6f4e6;
        color: #9bb9a0;
        cursor: not-allowed;
        opacity: 0.65;
    }


.social-sticky {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1040; /* above content */
}

/* Base icon button */
.social-media-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

    .social-media-icon i {
        font-size: 18px;
        line-height: 1;
    }

    .social-media-icon:hover {
        transform: translateX(-2px) scale(1.05);
        box-shadow: 0 10px 22px rgba(0,0,0,.18);
    }

/* Emphasis for Shop */
.shop-icon {
    background: linear-gradient(135deg,#fd657b 0%, #53265E 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(253,101,123,.35);
    animation: pulse 1.6s infinite;
}

    .shop-icon:hover {
        transform: translateX(-2px) scale(1.12);
    }

    .shop-icon::after {
        content: "Shop";
        position: absolute;
        right: 54px; /* show label to the left of the bubble */
        top: 50%;
        transform: translateY(-50%);
        background: #222;
        color: #fff;
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 999px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }

    .shop-icon:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(-2px);
    }

.favorite-icon {
    position: relative; /* needed for tooltip */
    background: #f9fdfc;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 3px 8px rgba(0,0,0,.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    color: #dc3545;
}

    /* icon color */
    .favorite-icon i {
        font-size: 20px;
        color: #00b894;
        transition: color .15s ease;
    }

    /* tooltip box (LEFT side) */
    .favorite-icon::after {
        content: "Favorites";
        position: absolute;
        top: 50%;
        right: 110%; /* place on left side */
        transform: translateY(-50%);
        background: #333;
        color: #fff;
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 4px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
    }

    /* show tooltip on hover */
    .favorite-icon:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(-2px);
    }



/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253,101,123,.45);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(253,101,123,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(253,101,123,0);
    }
}

/* Small screens: nudge inward a bit */
@media (max-width:576px) {
    .social-sticky {
        right: 8px;
        gap: 8px;
    }

    .social-media-icon {
        width: 40px;
        height: 40px;
    }
}

/*------- Set Favorites ------- */

.add-to-favorites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #cca67c;
    font-size: 1rem;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    z-index: 1;
}

    .add-to-favorites:hover {
        color: #dc3545;
        transform: scale(1.1);
    }

    .add-to-favorites:active {
        color: #dc3545;
        transform: scale(0.95);
    }

.is-favorited {
    color: #dc3545;
}
    .is-favorited:hover {
        color: #cca67c;
        transform: scale(1.1);
    }

#ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #0a84ff; /* brand color */
    z-index: 9999;
    transition: width .25s ease;
    display: none;
}

