/* ==========================================================================
   ROOH COLLECTIONS — UNIFIED SINGLE-ROW HEADER (V3 EXACT MATCH TO MOCKUP)
   ========================================================================== */

:root {
    --rooh-navy-dark: #071D46;
    --rooh-navy-topbar: #061D50;
    --rooh-ivory-bg: #FAF8F5;
    --rooh-ivory-card: #FFFFFF;
    --rooh-gold: #BA925B;
    --rooh-gold-hover: #D4AF37;
    --rooh-border-light: #EDE8E0;
    --rooh-border-card: #E8E2D8;
    --rooh-text-dark: #0F172A;
    --rooh-text-sub: #334155;
    --rooh-text-muted: #64748B;
}

/* 1. Header Sticky Wrapper */
.rooh-header-redesign {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--rooh-ivory-bg);
    box-shadow: 0 2px 10px rgba(7, 29, 70, 0.04);
    transition: all 0.25s ease;
}

/* 2. Top Announcement Strip */
.rooh-topbar-strip {
    background: var(--rooh-navy-topbar);
    color: #FFFFFF;
    padding: 7px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.6px;
    line-height: 1.4;
}
.rooh-topbar-strip__text {
    display: inline-block;
    max-width: 900px;
    margin: 0 auto;
}

/* 3. Main Unified Header Row (Single Horizontal Bar on Desktop) */
.rooh-main-row {
    background: var(--rooh-ivory-bg);
    border-bottom: 1px solid var(--rooh-border-light);
    height: 84px;
    display: flex;
    align-items: center;
}
.rooh-main-row__container {
    width: min(calc(100% - clamp(32px, 5vw, 96px)), 1820px);
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* Fluid Layout Override for 100% site-wide consistency */
body.rooh-layout-fluid .rooh-main-row__container,
body.rooh-layout-fluid .rooh-topbar-strip__text {
    width: min(calc(100% - clamp(32px, 5vw, 96px)), 1820px) !important;
    max-width: 1820px !important;
    padding: 0 clamp(16px, 2vw, 36px) !important;
}

/* Current / Custom Layout: Bounded standard container (~1240px) matching footer */
body.rooh-layout-current .rooh-main-row__container,
body.rooh-layout-current .rooh-topbar-strip__text {
    width: min(calc(100% - clamp(28px, 5.5vw, 64px)), 1240px) !important;
    max-width: 1240px !important;
    padding: 0 24px !important;
}

/* Left: Brand Logo (Large, Clear, and Neatly Contained) */
.rooh-brand-col {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    height: 100% !important;
}
.rooh-header-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    height: 100% !important;
    line-height: 1 !important;
}
.rooh-header-logo-img,
.rooh-brand img,
.custom-logo,
.custom-logo-link img {
    height: 54px !important;
    max-height: 56px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
}

/* Vertical Separator Divider */
.rooh-header-divider {
    width: 1px;
    height: 28px;
    background: #E2DCD5;
    margin: 0 clamp(10px, 1.3vw, 20px);
    flex-shrink: 0;
}

/* Center: Primary Navigation Links */
.rooh-nav-wrapper {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}
.rooh-nav-inline {
    display: flex !important;
    align-items: center !important;
    gap: clamp(14px, 2vw, 32px) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}
.rooh-nav-item {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    list-style: none !important;
}
.rooh-nav-item--has-dropdown {
    position: static !important;
}
.rooh-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--rooh-text-dark) !important;
    text-decoration: none !important;
    font-size: clamp(12.5px, 0.95vw, 13.5px) !important;
    font-weight: 500 !important;
    letter-spacing: clamp(1px, 0.12vw, 1.8px) !important;
    text-transform: uppercase !important;
    padding: 0 4px !important;
    height: 100% !important;
    line-height: 84px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.rooh-nav-link span {
    white-space: nowrap !important;
    display: inline-block !important;
}
.rooh-nav-link:hover {
    color: var(--rooh-navy-dark) !important;
}
.rooh-nav-item.is-active > .rooh-nav-link,
.rooh-nav-item:hover > .rooh-nav-link {
    color: var(--rooh-navy-dark) !important;
    border-bottom-color: var(--rooh-gold) !important;
    font-weight: 600 !important;
}
.rooh-nav-link--sale {
    color: #991B1B !important;
    font-weight: 600 !important;
}
.rooh-nav-arrow {
    transition: transform 0.2s ease;
    opacity: 0.75;
}
.rooh-nav-item--has-dropdown:hover .rooh-nav-arrow {
    transform: rotate(180deg);
}

/* Right Group: Search + Actions */
.rooh-right-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Rectangular Gold-Bordered Search Box */
.rooh-search-rect-form {
    position: relative;
    margin: 0;
}
.rooh-search-rect-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--rooh-gold);
    border-radius: 4px;
    height: 38px;
    width: clamp(190px, 16vw, 250px);
    padding: 0 10px;
    transition: all 0.2s ease;
    position: relative;
}
.rooh-search-rect-box:focus-within {
    border-color: var(--rooh-navy-dark);
    box-shadow: 0 0 0 2px rgba(7, 29, 70, 0.08);
}
.rooh-search-btn-icon {
    background: none;
    border: none;
    padding: 0;
    margin-right: 8px;
    color: var(--rooh-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rooh-search-input-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
}
.rooh-search-input-rect {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    color: var(--rooh-text-dark);
    font-family: inherit;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
}
.rooh-search-input-rect::placeholder,
.rooh-search-input-rect::-webkit-input-placeholder,
.rooh-search-input-rect::-moz-placeholder,
.rooh-search-input-rect:-ms-input-placeholder {
    color: transparent !important;
    opacity: 0 !important;
}
.rooh-animated-placeholder {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none !important;
    user-select: none;
    color: #64748B;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    z-index: 5 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.rooh-placeholder-prefix {
    color: #64748B;
    font-weight: 400;
    flex-shrink: 0;
}
.rooh-placeholder-term {
    color: #071D46;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}
.rooh-placeholder-term.is-transitioning {
    opacity: 0;
    transform: translateY(-3px);
}
.rooh-search-rect-box:focus-within .rooh-animated-placeholder,
.rooh-search-rect-box.has-value .rooh-animated-placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Live Instant Suggestions & Autocomplete Dropdown */
.rooh-search-autocomplete-card {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border: 1px solid var(--rooh-border-card);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 29, 70, 0.12);
    padding: 16px;
    z-index: 1050;
    animation: roohSearchDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes roohSearchDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.rooh-search-suggestions-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--rooh-navy-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.rooh-search-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rooh-search-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 12px;
    color: var(--rooh-text-sub);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}
.rooh-search-tag:hover {
    background: var(--rooh-navy-dark);
    color: #FFFFFF;
    border-color: var(--rooh-navy-dark);
}
.rooh-search-live-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rooh-border-light);
    max-height: 280px;
    overflow-y: auto;
}
.rooh-search-match-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.rooh-search-match-item:hover {
    background: #F8F9FA;
}
.rooh-search-match-img {
    width: 38px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.rooh-search-match-info {
    flex: 1;
    min-width: 0;
}
.rooh-search-match-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rooh-navy-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.rooh-search-match-cat {
    font-size: 11px;
    color: var(--rooh-text-muted);
    display: block;
}
.rooh-search-match-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--rooh-gold);
    display: block;
}
.rooh-search-view-all-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--rooh-navy-dark);
    padding: 8px 0 2px;
    text-decoration: none;
    border-top: 1px solid var(--rooh-border-light);
    margin-top: 8px;
}
.rooh-search-view-all-link:hover {
    color: var(--rooh-gold);
}

/* Actions Icons */
.rooh-actions-col {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rooh-header-icon-action {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    color: var(--rooh-navy-dark);
    text-decoration: none;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rooh-header-icon-action:hover {
    color: var(--rooh-gold);
}
.rooh-header-action-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--rooh-gold);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    text-align: center;
    padding: 0 3px;
}

/* 4. Multi-Column Mega Dropdown Card (Matches Screenshot Exactly) */
.rooh-mega-dropdown {
    position: absolute;
    top: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #FFFFFF;
    border: 1px solid var(--rooh-border-card);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    padding: 30px 36px;
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    min-width: 960px;
    max-width: 95vw;
}
.rooh-mega-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.rooh-nav-item--has-dropdown:hover .rooh-mega-dropdown,
.rooh-nav-item--has-dropdown:focus-within .rooh-mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.rooh-dropdown-col {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1;
}
.rooh-dropdown-col__title {
    font-family: var(--rooh-header-font, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--rooh-navy-dark);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0;
    display: inline-block;
}
.rooh-dropdown-col__underline {
    width: 34px;
    height: 2px;
    background: var(--rooh-gold);
    margin: 6px 0 16px 0;
    display: block;
}
.rooh-dropdown-col__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rooh-mega-sublink {
    color: var(--rooh-text-sub);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.6;
    padding: 2px 0;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.rooh-mega-sublink:hover {
    color: var(--rooh-gold);
    transform: translateX(3px);
}
.rooh-mega-view-all {
    color: var(--rooh-navy-dark) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
    transition: all 0.15s ease;
}
.rooh-mega-view-all:hover {
    color: var(--rooh-gold) !important;
    transform: translateX(3px);
}

.rooh-mega-dropdown__divider {
    width: 1px;
    background: #E8E2D8;
    align-self: stretch;
    margin: 0 4px;
}

/* Featured Column */
.rooh-mega-dropdown__featured {
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.rooh-mega-img-box {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-bottom: 14px;
}
.rooh-mega-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.rooh-mega-featured-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #FFFFFF;
    color: var(--rooh-navy-dark) !important;
    border: 1px solid var(--rooh-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.rooh-mega-featured-btn:hover {
    background: var(--rooh-navy-dark);
    color: #FFFFFF !important;
    border-color: var(--rooh-navy-dark);
}

/* 5. Mobile & Tablet Display Rules */
.rooh-show-mobile {
    display: none !important;
}
.rooh-hide-mobile {
    display: flex !important;
}

@media (max-width: 1024px) {
    .rooh-show-mobile {
        display: flex !important;
    }
    .rooh-hide-mobile {
        display: none !important;
    }
    .rooh-main-row__container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 16px !important;
    }
    .rooh-brand-col {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .rooh-header-logo-img {
        height: 36px;
    }

    /* Mobile Search Bar & Chips Row (Clean Stacking: Search field full width on row 1, horizontal scrollable chips beneath) */
    .rooh-mobile-search-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: var(--rooh-ivory-bg) !important;
        border-bottom: 1px solid var(--rooh-border-light) !important;
        padding: 10px 16px 12px !important;
        position: relative !important;
        z-index: 1010 !important;
        gap: 10px !important;
    }
    .rooh-mobile-search-bar .rooh-search-rect-form {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
    }
    .rooh-mobile-search-bar .rooh-search-rect-box {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 42px !important;
        background: #FFFFFF !important;
        border: 1px solid var(--rooh-gold) !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
    }
    .rooh-mobile-autocomplete-card {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #FFFFFF !important;
        border: 1px solid var(--rooh-border-card) !important;
        border-radius: 8px !important;
        box-shadow: 0 14px 34px rgba(7, 29, 70, 0.16) !important;
        z-index: 1050 !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        padding: 14px !important;
    }
    .rooh-mobile-chips-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 2px 0 2px !important;
        margin: 0 !important;
    }
    .rooh-mobile-chips-row::-webkit-scrollbar {
        display: none !important;
    }
    .rooh-mobile-chip-pill {
        display: inline-flex !important;
        align-items: center !important;
        padding: 6px 14px !important;
        background: var(--rooh-ivory-bg) !important;
        border: 1px solid var(--rooh-gold) !important;
        border-radius: 9999px !important;
        font-size: 12.5px !important;
        color: var(--rooh-text-dark) !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.18s ease !important;
    }
    .rooh-mobile-chip-pill:hover,
    .rooh-mobile-chip-pill:active {
        background: var(--rooh-navy-dark) !important;
        color: #FFFFFF !important;
        border-color: var(--rooh-navy-dark) !important;
    }

    /* Mobile drawer sits above header when open */
    .rooh-mobile-drawer {
        z-index: 1100 !important;
    }
}

/* Mobile Drawer Accordions */
.rooh-drawer-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--rooh-navy-dark);
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
}
.rooh-drawer-accordion-icon {
    font-size: 18px;
    font-weight: 400;
    color: #64748B;
    line-height: 1;
}
.rooh-drawer-sublist {
    display: none;
    flex-direction: column;
    padding: 8px 0 12px 14px;
    gap: 6px;
    list-style: none;
    margin: 0;
}
.rooh-drawer-accordion.is-open .rooh-drawer-sublist {
    display: flex;
}
.rooh-drawer-accordion.is-open .rooh-drawer-accordion-icon {
    color: var(--rooh-navy-dark);
}
.rooh-drawer-sublink {
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    padding: 3px 0;
}
.rooh-drawer-sublink:hover {
    color: var(--rooh-gold);
}
.rooh-drawer-view-all {
    color: var(--rooh-navy-dark) !important;
    font-weight: 500;
    font-size: 13.5px;
    margin-top: 4px;
    display: inline-block;
}

/* Compact on Scroll */
.rooh-header-redesign.is-scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rooh-header-redesign.is-scrolled .rooh-main-row {
    height: 68px !important;
}
.rooh-header-redesign.is-scrolled .rooh-header-logo-img,
.rooh-header-redesign.is-scrolled .rooh-brand img,
.rooh-header-redesign.is-scrolled .custom-logo {
    height: 44px !important;
    max-height: 46px !important;
}
.rooh-header-redesign.is-scrolled .rooh-nav-link {
    line-height: 68px !important;
}
.rooh-header-redesign.is-scrolled .rooh-mega-dropdown {
    top: 68px !important;
}
