/**
 * Custom Components CSS
 * Externalized inline styles for better maintainability and caching.
 */

/* ================================================
   Cart Toast Notification
   ================================================ */
.cart-toast {
    position: fixed;
    top: 30%;
    right: -400px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100000000;
    transition: right 0.5s ease-in-out;
    padding: 15px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.toast-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.toast-details {
    flex-grow: 1;
}

.toast-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.toast-price {
    margin: 5px 0;
    color: #28a745;
    font-weight: bold;
}

.close-toast {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    background: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.show-toast {
    right: 20px !important;
}

/* ================================================
   WhatsApp Floating Button
   ================================================ */
.whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000001;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-chat-label {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .whatsapp-chat {
        right: 12px;
        bottom: 12px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ================================================
   Hero Banner — Gallery Image Circular Crop
   Matches the original banner PNGs (641x609 RGBA with
   pre-baked circular mask on transparent canvas).
   The theme already applies:
     .ul-banner-img img { width: clamp(240px,33.68vw,641px); aspect-ratio: 641/609; }
   We only need to add circular clipping + cover-fill.
   ================================================ */
.hero-gallery-img {
    /* Inherit width & aspect-ratio from .ul-banner-img img (theme CSS) */
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
/* ================================================
   Branch Selector Dropdown Fix
   Ensures the location selector is visible above all other nav elements
   and prevents it from being clipped by the theme's clip-path legacy.
   ================================================ */
.ul-header {
    z-index: 10001 !important; /* Ensure header is above everything */
}

.header-top-bg-wrapper, 
.ul-header-top {
    clip-path: none !important; /* Remove clipping that slices the dropdown */
    overflow: visible !important;
}

#branchSelector + .dropdown-menu {
    z-index: 10002 !important; /* Higher than Bootstrap default */
    position: absolute !important;
    display: none; /* Let Bootstrap/JS toggle it */
}

#branchSelector + .dropdown-menu.show {
    display: block !important;
}
