/*
Theme Name: Kadence Child
Theme URI: https://citylinkdelivery.ca
Description: Child theme for Kadence. Used for custom JS, CSS, and PHP modifications.
Author: M. Jones
Template: kadence
Version: 1.0.0
*/

/* -----------------------------------
   CUSTOM GLOBAL CSS (you may add to this)
----------------------------------- */

/* Fix for CLD Category Grid Spacing */
.cld-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    padding: 10px;
}

/* Wishlist Icon */
#cld-wishlist-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    font-size: 20px;
}

/* Search Bar */
.cld-search-wrapper {
    margin: 10px auto 20px;
    width: 100%;
    text-align: center;
}

.cld-search-bar {
    width: 70%;
    max-width: 380px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 16px;
}

/* Wishlist Drawer */
#cld-wishlist-drawer {
    position: fixed;
    right: -350px;
    top: 0;
    height: 100%;
    width: 320px;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 99999;
    transition: right 0.3s ease;
}

#cld-wishlist-drawer.active {
    right: 0;
}

/* ============================================================
   🔥 UberEats GOLD Theme for Live Search Bar (FINAL)
   ============================================================ */

#cld-search-results {
    border: 2px solid #000 !important; /* Strong black border */
    border-top: 4px solid #d4a647 !important; /* GOLD highlight */
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
    overflow: hidden !important;
    max-height: 340px;
}

/* Search results items */
.cld-search-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
    text-decoration: none !important;
    color: #111 !important;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Product image */
.cld-search-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

/* Product name */
.cld-search-item div div:first-child {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

/* Product price */
.cld-search-item div div:last-child {
    color: #666;
    font-size: 14px;
}

/* Hover effects – Black + Gold */
.cld-search-item:hover {
    background: #000 !important; /* Black hover */
    color: #d4a647 !important; /* Gold text */
}

.cld-search-item:hover div div:first-child,
.cld-search-item:hover div div:last-child {
    color: #d4a647 !important;
}

/* Image zoom on hover */
.cld-search-item:hover img {
    transform: scale(1.08);
}
/* ============================================================
   🔥 Enhancements: Gold Glow + Fade-In Animation + Top Hit Label
   ============================================================ */

/* 1. Gold Glow Focus on Search Bar */
.cld-search-bar:focus {
    border-color: #d4a647 !important;
    box-shadow: 0 0 6px rgba(212,166,71,0.8) !important;
    outline: none !important;
}

/* 2. Fade-in Animation for Dropdown */
#cld-search-results {
    animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 4. Top Hit Box Styling */
.cld-top-hit {
    background: #fff7e0; /* light gold background */
    padding: 12px;
    border-bottom: 1px solid #e9d7a3;
}

.cld-top-hit-label {
    font-size: 12px;
    font-weight: 700;
    color: #d4a647;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.6px;
}
