@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESHENG APPAREL - LUXURY FLOATING HEADER & MOBILE SIDE DRAWER (STANDARDIZED)
   BENCHMARKED 1:1 AGAINST products.html
   ========================================================================== */

.luxury-floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0 12px;
    transition: all 0.3s ease;
}

.header-top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 12px;
}

.header-search-slot {
    color: #5e565a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: 6px;
    outline: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.header-search-slot:hover {
    color: #db2777;
    background-color: rgba(219, 39, 119, 0.06);
}
.header-search-slot:focus-visible {
    outline: 2px solid #db2777;
    outline-offset: 2px;
    background-color: rgba(219, 39, 119, 0.06);
}

.header-center-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 4px;
}

.brand-avatar-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
}

.header-center-brand:hover .brand-avatar-img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 6px 16px rgba(219, 39, 119, 0.45));
}

.brand-name-text {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: #1c191b;
    text-shadow: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.brand-name-text span {
    color: #fbcfe8;
    transition: color 0.3s ease;
}

.header-right-slot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-contact-link {
    color: #5e565a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.header-nav-row {
    display: flex;
    justify-content: center;
}

.luxury-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 46px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.luxury-nav-menu > li {
    position: relative;
}

.luxury-nav-menu > li > a {
    display: block;
    padding: 8px 2px 10px;
    color: #1c191b;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    text-shadow: none;
    transition: all 0.25s ease;
}

.luxury-nav-menu > li.active > a {
    color: #1c191b;
    border-bottom: 2.5px solid #1c191b;
}

.luxury-nav-menu > li:hover > a {
    color: #db2777;
    border-bottom: 2.5px solid #db2777;
}

/* SCROLLED & HOVER STATE */
.luxury-floating-header:hover,
.luxury-floating-header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0 12px;
}

.luxury-floating-header:hover .header-search-slot,
.luxury-floating-header.scrolled .header-search-slot,
.luxury-floating-header:hover .header-contact-link,
.luxury-floating-header.scrolled .header-contact-link {
    color: #5e565a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.luxury-floating-header:hover .header-search-slot:hover,
.luxury-floating-header.scrolled .header-search-slot:hover,
.luxury-floating-header:hover .header-contact-link:hover,
.luxury-floating-header.scrolled .header-contact-link:hover {
    color: #db2777;
}

.luxury-floating-header:hover .brand-name-text,
.luxury-floating-header.scrolled .brand-name-text {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: #1c191b;
    text-shadow: none;
    transition: color 0.3s ease;
}

.luxury-floating-header:hover .brand-name-text span,
.luxury-floating-header.scrolled .brand-name-text span {
    color: #db2777;
}

.luxury-floating-header:hover .luxury-nav-menu > li > a,
.luxury-floating-header.scrolled .luxury-nav-menu > li > a {
    display: block;
    padding: 8px 2px 10px;
    color: #1c191b;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    text-shadow: none;
    transition: all 0.25s ease;
}

.luxury-floating-header:hover .luxury-nav-menu > li.active > a,
.luxury-floating-header.scrolled .luxury-nav-menu > li.active > a {
    color: #1c191b;
    border-bottom: 2.5px solid #1c191b;
}

.luxury-floating-header:hover .luxury-nav-menu > li:hover > a,
.luxury-floating-header.scrolled .luxury-nav-menu > li:hover > a {
    color: #db2777;
    border-bottom: 2.5px solid #db2777;
}

/* LUXURY DROPDOWN */
.luxury-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 175px;
    background-color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    padding: 8px 0;
    list-style: none;
}

.luxury-nav-menu > li:hover .luxury-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.luxury-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: #1c191b;
    font-size: 0.80rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: none !important;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.luxury-dropdown li a:hover {
    background-color: #fdf2f8;
    color: #db2777 !important;
    padding-left: 26px;
}

/* MOBILE DRAWER STYLING */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: #111827 !important;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84%;
    max-width: 320px;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.drawer-search-wrap {
    flex: 1;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.drawer-search-wrap i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.drawer-search-wrap input {
    width: 100%;
    padding: 8px 8px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #1f2937;
    outline: none;
    cursor: pointer;
}

.drawer-close-btn {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu-list > li > a,
.drawer-accordion-toggle {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.drawer-menu-list > li > a:hover,
.drawer-accordion-toggle:hover {
    background: #fdf2f8;
    color: #db2777;
    border-left-color: #db2777;
}

.drawer-accordion-toggle {
    justify-content: space-between;
}

.accordion-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.drawer-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.drawer-submenu {
    list-style: none;
    padding: 4px 0 6px 42px;
    margin: 0;
    background: #f8fafc;
    display: none;
}

.drawer-accordion.active .drawer-submenu {
    display: block;
}

.drawer-submenu li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.drawer-submenu li a:hover {
    color: #db2777;
}

.drawer-footer {
    padding: 16px 18px 20px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.drawer-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    margin-bottom: 12px;
}

.drawer-contact-info p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* RESPONSIVE NAV BREAKPOINTS */
@media (max-width: 1024px) {
    .header-nav-row {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
    .header-search-slot,
    .header-contact-link {
        display: none !important;
    }
    .luxury-floating-header {
        padding: 10px 0 !important;
    }
    .header-top-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0 !important;
    }
    .header-center-brand {
        position: static !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .luxury-floating-header {
        padding: 10px 0 8px !important;
    }
    .header-top-row {
        padding: 0 16px !important;
    }
    .brand-name-text {
        font-size: 1.25rem !important;
        letter-spacing: 2px !important;
    }
    .brand-avatar-img {
        height: 38px !important;
    }
    .header-search-slot span,
    .header-contact-link span {
        display: none !important;
    }
}

/* PDP PAGE TOP CLEARANCE ADAPTATION */
main, .pdp-main-wrapper {
    padding-top: 175px !important;
}

@media (max-width: 1024px) {
    main, .pdp-main-wrapper {
        padding-top: 85px !important;
    }
}

@media (max-width: 768px) {
    main, .pdp-main-wrapper {
        padding-top: 75px !important;
    }
}

/* SEARCH HIGHLIGHT PULSE ANIMATION */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.5);
        border-color: #db2777;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(219, 39, 119, 0.22);
        border-color: #db2777;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(219, 39, 119, 0);
        border-color: #d1d5db;
    }
}

.search-highlight-pulse {
    animation: searchPulse 1.6s ease-out !important;
    border-color: #db2777 !important;
}

