/* Hide Woostify Topbar as requested */
.woostify-topbar {
    display: none !important;
}

/* We hide the default WooCommerce search form so we rely entirely on the icon trigger */
/* .woocommerce-product-search display none removed */

/* Base Dropdown Styles */
.dmp-ajax-search-wrap {
    position: relative;
    width: 100%;
}

.dmp-search-input {
    width: 100% !important;
    height: 60px !important;
    padding: 0 60px 0 25px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 18px !important;
    font-weight: 500;
    outline: none !important;
    background: #f4f6f8 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
.dmp-search-input:focus {
    background: #fff !important;
    box-shadow: 0 8px 25px rgba(0,86,179,0.15) !important;
}

/* Loader */
.dmp-loading .dmp-search-icon-btn { background: transparent; border: 2px solid #e0e0e0; }
.dmp-loading .dmp-search-icon-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top-color: #0056b3;
    border-radius: 50%;
    animation: dmp-spin 0.6s linear infinite;
    position: absolute;
}
@keyframes dmp-spin { to { transform: rotate(360deg); } }
.dmp-loading .dmp-search-icon-btn svg { display: none; }

/* Desktop Results Layout */
.dmp-search-results-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    z-index: 99999;
    overflow: hidden;
}

.dmp-results-inner {
    display: flex;
    flex-direction: row;
    min-height: 300px;
}

.dmp-results-left {
    width: 35%;
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 30px;
}

.dmp-results-right {
    width: 65%;
    padding: 30px;
}

.dmp-result-section { margin-bottom: 30px; }
.dmp-result-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

/* Suggestions & Vendors */
.dmp-suggest-list { list-style: none; margin: 0; padding: 0; }
.dmp-suggest-list li { margin-bottom: 12px; }
.dmp-suggest-list a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.dmp-suggest-list a::before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
    color: #0056b3;
}
.dmp-suggest-list a:hover { color: #0056b3; }
.dmp-suggest-list a:hover::before { opacity: 1; transform: translateX(0); }

.dmp-vendor-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.dmp-vendor-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-color: #d0d0d0; transform: translateY(-2px); }
.dmp-vendor-card img { width: 42px; height: 42px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.dmp-vendor-card span { font-size: 15px; font-weight: 600; }

/* Premium Horizontal Product Matches */
.dmp-product-grid { display: flex; flex-direction: column; gap: 15px; }
.dmp-product-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}
.dmp-product-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #0056b3;
}
.dmp-pc-img {
    width: 70px;
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.dmp-pc-img img { width: 100%; height: 100%; object-fit: contain; }
.dmp-pc-info { flex: 1; }
.dmp-pc-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #111;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dmp-pc-price { font-size: 16px; font-weight: 800; color: #b12704; }

.dmp-no-results { padding: 50px; text-align: center; color: #888; font-size: 18px; font-weight: 500; }

.dmp-results-footer {
    display: block;
    background: #f4f6f8;
    text-align: center;
    padding: 18px 20px;
    color: #0056b3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}
.dmp-results-footer:hover { background: #e9ecef; }

/* =========================================
   Universal Full Screen Overlay (Desktop & Mobile)
========================================= */
.dmp-universal-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.dmp-universal-search-overlay.dmp-active {
    opacity: 1;
    visibility: visible;
}

.dmp-overlay-header {
    display: flex;
    align-items: center;
    padding: 30px 50px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: transparent;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.dmp-overlay-close {
    background: #f0f0f0;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.dmp-overlay-close:hover { background: #e0e0e0; }
.dmp-overlay-close svg { width: 26px; height: 26px; fill: #333; }

.dmp-overlay-search-wrap {
    flex: 1;
    position: relative;
}
.dmp-overlay-search-wrap .dmp-search-results-wrap {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    height: calc(100vh - 120px);
    overflow-y: auto;
    width: 100% !important;
    transform: none !important;
    background: transparent;
}


/* =========================================
   Mobile Bottom Navigation Bar
========================================= */
.dmp-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999999;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid #eaeaea;
}

.dmp-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666; text-decoration: none; flex: 1; height: 100%; transition: color 0.2s;
}
.dmp-nav-item.active { color: #0056b3; }
.dmp-nav-icon { margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.dmp-nav-icon svg { width: 22px; height: 22px; fill: currentColor; }
.dmp-nav-label { font-size: 11px; font-weight: 500; }

.dmp-mobile-location-trigger { display: none; color: currentColor; margin-left: 15px; cursor: pointer; }
.dmp-mobile-location-trigger svg { width: 24px; height: 24px; fill: currentColor; }

/* Responsive Overrides */
@media (max-width: 768px) {
    .dmp-mobile-bottom-nav { display: flex; }
    /* .site-search { display: none !important; } Removed to restore default Woostify search */
    .dmp-mobile-location-trigger { display: inline-flex; }
    .site-tools .tools-icon.my-account, .site-tools .tools-icon.shopping-bag-button { display: none !important; }

    .dmp-overlay-header { padding: 15px; flex-direction: row; }
    .dmp-overlay-close { width: 40px; height: 40px; margin-right: 15px; }
    .dmp-search-input { height: 50px !important; font-size: 16px !important; padding: 0 45px 0 20px !important; }
    
    .dmp-results-inner { flex-direction: column; min-height: auto; }
    .dmp-results-left, .dmp-results-right { width: 100%; border-right: none; padding: 15px 0; }
    .dmp-results-left { border-bottom: 1px solid #eee; }
    
    body { padding-bottom: 65px !important; }
}
