/* Custom Header System Styles */

:root {
    --dz-pink: #ff006e;
    --dz-glass: rgba(255, 255, 255, 0.15);
    --dz-blur: blur(30px);
    --dz-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.dz-container-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Primary Header */
.dz-header-primary {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.dz-header-grid {
    display: grid;
    grid-template-columns: 180px 150px 1fr 60px;
    align-items: center;
    gap: 20px;
}

.dz-main-logo {
    display: flex;
    align-items: center;
}

.dz-logo-desktop {
    display: block !important;
    max-height: 32px;
    width: auto;
}

.dz-logo-mobile {
    display: none !important;
    max-height: 28px;
    width: auto;
}

/* Category Toggle */
.dz-cat-trigger {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dz-cat-trigger:hover {
    background: #eee;
}

.dz-cat-dropdown {
    position: absolute;
    background: rgba(255, 255, 255, 0.08); /* Sophisticated glass */
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 10px;
    z-index: 1000;
    width: 240px;
    display: none;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-cat-dropdown.dz-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dz-cat-list-parent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dz-cat-item-parent {
    position: relative;
    margin-bottom: 2px;
}

.dz-cat-link-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dz-cat-link-parent:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dz-pink);
}

.dz-cat-link-parent i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dz-cat-item-parent:hover .dz-cat-link-parent i {
    transform: translateX(3px);
}

/* Vertical Accordion Style (Dropdown under them) */
.dz-cat-list-child {
    list-style: none;
    margin: 0;
    padding: 2px 10px 10px 35px; /* Deeper indentation */
    display: none;
    background: transparent;
    position: static;
    width: 100%;
}

.dz-cat-item-parent.dz-active .dz-cat-list-child,
.dz-cat-item-parent:hover .dz-cat-list-child {
    display: block;
}

.dz-cat-link-parent i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dz-cat-item-parent:hover .dz-cat-link-parent i {
    transform: rotate(90deg);
}

/* Mobile Category Adjustments */
@media (max-width: 991px) {
    .dz-cat-dropdown {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .dz-cat-list-child {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.03);
        margin-top: 5px;
    }
    .dz-cat-item-parent.dz-open .dz-cat-list-child {
        display: block;
    }
    .dz-cat-link-parent i {
        transform: rotate(90deg);
    }
}

.dz-cat-item-child a {
    display: block;
    padding: 10px 15px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dz-cat-item-child a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dz-pink);
}

/* Extreme Glassy Search */
.dz-col-search {
    position: relative;
}

.dz-search-glass-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: none !important; /* Remove outline */
    border-radius: 50px;
    padding: 3px 3px 3px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-search-glass-pill:focus-within {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* Neutral shadow */
    transform: scale(1.01);
    border: none !important;
    outline: none !important;
}

.dz-search-hint {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.3);
    margin-right: 15px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dz-search-glass-pill:focus-within .dz-search-hint {
    opacity: 0;
}

.dz-search-glass-pill input {
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    flex: 1;
    font-size: 16px;
    color: #000;
    padding: 10px 0;
}

.dz-search-submit {
    background: var(--dz-pink);
    color: #fff;
    border: none !important;
    outline: none !important;
    box-shadow: none !important; /* Removing shadow in case user sees it as outline */
    width: 38px;
    height: 38px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dz-search-submit:focus, 
.dz-search-submit:active {
    outline: none !important;
    border: none !important;
}

.dz-search-submit:hover {
    transform: rotate(15deg) scale(1.1);
    background: #ff2b85;
}

/* Live Search Results UI */
.dz-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 2005;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dz-search-results.dz-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dz-results-inner {
    padding: 10px;
}

.dz-search-result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.dz-search-result-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.dz-card-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.05);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dz-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dz-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dz-card-price {
    font-size: 14px;
    color: var(--dz-pink);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dz-view-all-results {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dz-pink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dz-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Account Icon */
.dz-account-icon {
    font-size: 28px;
    color: #333;
    display: flex;
    justify-content: center;
    transition: color 0.2s ease;
}

.dz-account-icon:hover {
    color: var(--dz-pink);
}

/* Smart Sticky Mini-Header */
.dz-header-mini {
    position: fixed;
    top: -80px; /* Hidden by default */
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 55px;
    z-index: 2000;
    box-shadow: var(--dz-shadow);
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dz-header-mini.dz-visible {
    top: 20px;
}

.dz-mini-inner {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.dz-mini-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.dz-mini-btn:hover {
    background: rgba(255, 0, 110, 0.1);
    color: var(--dz-pink);
}

.dz-mini-search-bar {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--dz-shadow);
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dz-mini-search-bar.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dz-mini-search-bar input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .dz-header-primary {
        padding: 5px 0;
    }
    .dz-header-grid {
        grid-template-columns: auto 40px 1fr 40px; /* One row: [Logo] [Cat] [Search] [Account] */
        gap: 8px;
        padding: 0 10px;
    }
    .dz-logo-desktop {
        display: none !important;
    }
    .dz-logo-mobile {
        display: block !important;
        max-height: 24px;
    }
    .dz-cat-trigger {
        padding: 8px;
        justify-content: center;
    }
    .dz-col-cats span {
        display: none;
    }
    .dz-search-hint {
        display: none;
    }
    .dz-search-glass-pill {
        padding: 2px 2px 2px 15px;
    }
    .dz-search-submit {
        width: 30px;
        height: 30px;
    }
    .dz-account-icon {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .dz-main-logo {
        font-size: 20px;
    }
}
