/**
 * Header navigation – cleaner, modern style
 * Overrides the default megamenu look for a simpler nav bar.
 */

/* ----- Main nav bar (horizontal menu) ----- */
.typeheader-4 .header-bottom {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.typeheader-4 .header-bottom .header-bottom__inner {
    display: flex;
    align-items: stretch;
    min-height: 52px;
}

.typeheader-4 .container-megamenu.horizontal {
    flex: 1;
    display: flex;
    align-items: center;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu > li {
    margin-right: 0;
    float: none;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu > li > a strong {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Hover: underline + light background */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-bottom-color: #f93355;
}

/* Active / current page (optional – add .active to <li> in PHP if needed) */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.active > a,
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.active_menu > a {
    color: #fff;
    border-bottom-color: #f93355;
}

/* Dropdown caret */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li .caret {
    margin-left: 4px;
    font-size: 0.75em;
    opacity: 0.8;
}

/* ----- User Account (and other) sub-menus ----- */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li .sub-menu {
    top: 100%;
    margin-top: 0;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu > li .sub-menu .content {
    padding: 12px 0;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.typeheader-4 .container-megamenu.horizontal .sub-menu .content .menu--item,
.typeheader-4 .container-megamenu.horizontal .sub-menu .content a.menu--item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.typeheader-4 .container-megamenu.horizontal .sub-menu .content a.menu--item:hover {
    background: #f8f9fa;
    color: #f93355;
}

/* ----- Top bar: Register + Language ----- */
.typeheader-4 .header-top .header-top__inner {
    padding: 10px 0;
}

.typeheader-4 .header-top-right {
    gap: 16px;
}

/* ----- Center: Logo + Login / Account ----- */
.typeheader-4 .header-center .header-center__inner {
    padding: 16px 0;
}

.typeheader-4 .header-links {
    align-items: center;
    gap: 20px;
}

/* Keep top-right account dropdowns fully visible */
.typeheader-4 .header-center,
.typeheader-4 .header-center .header-center__inner,
.typeheader-4 .header-links,
.typeheader-4 .header-links .signin-w,
.typeheader-4 .header-links .signin-w > li {
    overflow: visible !important;
}

.typeheader-4 .header-links .signin-w .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    min-width: 190px;
    margin-top: 1px;
    z-index: 2000;
    padding: 6px 10px;
    border-radius: 10px;
}

.typeheader-4 .header-links .signin-w .dropdown-menu li > a {
    white-space: nowrap;
    padding: 10px 0 10px 8px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.typeheader-4 .wishlist > a,
.typeheader-4 ul.signin-w > li > a {
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.typeheader-4 .wishlist > a:hover,
.typeheader-4 ul.signin-w > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ----- Mobile: keep hamburger usable ----- */
@media (max-width: 991px) {
    .typeheader-4 .container-megamenu.horizontal ul.megamenu > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ----- Wedding Services Mega Menu Premium Styles ----- */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.ws-mega-anchor > .sub-menu {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* Keep Wedding Services mega menu fully inside viewport */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.ws-mega-anchor {
    position: relative;
}

.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.ws-mega-anchor > .sub-menu {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    width: 960px !important;
    min-width: 960px !important;
    max-width: calc(100vw - 24px);
}

.ws-menu-column {
    padding: 0 10px;
}

.ws-menu-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a2c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f93355;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.ws-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-menu-list li {
    margin-bottom: 12px;
}

.ws-menu-item {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.ws-menu-item:hover {
    transform: translateX(5px);
}

.ws-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ws-menu-item:hover .ws-icon-box {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ws-item-text {
    display: flex;
    flex-direction: column;
}

.ws-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.ws-item-desc {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

/* Soft backgrounds for icons */
.bg-primary-soft { background-color: #eef2ff; }
.bg-success-soft { background-color: #ecfdf5; }
.bg-info-soft    { background-color: #f0f9ff; }
.bg-warning-soft { background-color: #fffbeb; }
.bg-danger-soft  { background-color: #fef2f2; }
.bg-purple-soft  { background-color: #faf5ff; }
.bg-blue-soft    { background-color: #eff6ff; }
.bg-indigo-soft  { background-color: #eef2ff; }
.bg-teal-soft    { background-color: #f0fdfa; }
.bg-orange-soft  { background-color: #fff7ed; }
.bg-dark-soft    { background-color: #f3f4f6; }
.bg-pink-soft    { background-color: #fdf2f8; }
.bg-green-soft   { background-color: #f0fdf4; }
.bg-yellow-soft  { background-color: #fefce8; }
.bg-secondary-soft { background-color: #f8fafc; }

/* Icon Colors */
.text-purple { color: #a855f7; }
.text-blue   { color: #3b82f6; }
.text-indigo { color: #6366f1; }
.text-teal   { color: #14b8a6; }
.text-orange { color: #f97316; }
.text-pink   { color: #ec4899; }
.text-green  { color: #22c55e; }
.text-yellow { color: #eab308; }

/* Ensure WS megamenu content rows don't have too much margin on bottom */
.typeheader-4 .container-megamenu.horizontal ul.megamenu > li.ws-mega-anchor > .sub-menu .row > div {
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .sub-menu {
        width: 100% !important;
        padding: 15px 0 !important;
    }
    .ws-menu-column {
        margin-bottom: 25px;
        padding: 0 !important;
    }
}
