/* Layout 3 header — purple COSMOS: utility + white bar, center nav, full-width search */
.ecom-t3-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.ecom-t3-utility {
    background: var(--ecom-t3-purple, #6B2D8B);
    border-bottom: 0;
    font-size: 12px;
    color: #fff;
}

.ecom-t3-utility a {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.ecom-t3-utility a:hover {
    color: #fff;
    opacity: 1;
}

.ecom-t3-main-bar {
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #E4E7E9;
    overflow: visible;
}

.ecom-t3-main-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: visible;
}

.ecom-t3-logo {
    flex-shrink: 0;
}

.ecom-t3-logo-img {
    max-height: 44px;
    width: auto;
}

.ecom-t3-center-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.ecom-t3-nav-item {
    position: relative;
}

.ecom-t3-center-nav-link {
    display: inline-flex;
    align-items: center;
    color: #191C1F;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    white-space: nowrap;
}

.ecom-t3-center-nav-link:hover {
    color: var(--ecom-t3-purple, #6B2D8B);
}

.ecom-t3-nav-caret {
    margin-left: 4px;
    font-size: 10px;
    line-height: 1;
}

.ecom-t3-cat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: 2px solid var(--ecom-t3-purple, #6B2D8B);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    padding: 4px 0;
}

.ecom-t3-nav-item:hover > .ecom-t3-cat-dropdown,
.ecom-t3-nav-item:focus-within > .ecom-t3-cat-dropdown {
    display: block;
}

.ecom-t3-cat-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #191c1f;
    text-decoration: none;
    white-space: nowrap;
}

.ecom-t3-cat-dropdown a:hover {
    background: #f2f4f5;
    color: var(--ecom-t3-purple, #6B2D8B);
}

.ecom-t3-actions {
    margin-left: auto;
}

.ecom-t3-search-pill {
    height: 48px;
    background: #F2F4F5;
    border: 1px solid #E4E7E9;
    border-radius: 4px;
    overflow: visible;
    position: relative;
    width: 100%;
}

.ecom-t3-search-pill .form-control {
    box-shadow: none;
    border: 0;
    background: transparent;
    font-size: 14px;
}

.ecom-t3-search-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--ecom-t3-purple, #6B2D8B);
    color: #fff;
}

.ecom-t3-search-btn:hover {
    background: var(--ecom-t3-purple-dark, #4A1A63);
    color: #fff;
}

.ecom-t3-desktop-search {
    background: #fff;
    border-bottom: 1px solid #E4E7E9;
}

.ecom-t3-desktop-search .ecom-t3-search-pill {
    width: 100%;
}

.ecommerce-header-search-wrap {
    position: relative;
    width: 100%;
}

.ecommerce-header-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 6px 0;
}

.ecommerce-header-search-suggestions[hidden] {
    display: none !important;
}

.ecommerce-header-search-group-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.ecommerce-header-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    text-decoration: none;
    color: #212121;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ecommerce-header-search-item:hover,
.ecommerce-header-search-item.is-active {
    background: #f3f4f6;
    color: #111827;
}

.ecommerce-header-search-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #f2f4f5;
    flex-shrink: 0;
}

.ecommerce-header-search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3e8f8;
    color: var(--ecom-t3-purple, #6B2D8B);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.ecommerce-header-search-item-label {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecommerce-header-search-item-meta {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.ecommerce-header-search-empty {
    padding: 16px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.ecom-t3-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #191C1F;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    position: relative;
    overflow: visible;
}

.ecom-t3-action:hover {
    color: var(--ecom-t3-purple, #6B2D8B);
}

.ecom-t3-action i {
    font-size: 18px;
}

.ecom-t3-action--icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
}

.ecom-t3-action--icon:hover {
    background: #F5F0F8;
}

.ecom-t3-login-btn {
    border: 1.5px solid #E4E7E9;
    border-radius: 4px;
    padding: 6px 12px;
    white-space: nowrap;
}

.ecom-t3-login-btn:hover {
    border-color: var(--ecom-t3-purple, #6B2D8B);
    color: var(--ecom-t3-purple, #6B2D8B);
}

.ecom-t3-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 0;
    overflow: visible;
}

.ecom-t3-cart-icon-wrap > .ecom-t3-icon-outline {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex: 0 0 22px;
    overflow: visible;
    aspect-ratio: 1 / 1;
}

.ecom-t3-icon-outline {
    color: inherit;
}

.ecom-t3-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    /* Flipkart-style: float on the outer top-right tip, mostly outside the icon */
    transform: translate(55%, -45%);
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--ecom-t3-purple, #6B2D8B);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 0 1.5px #fff;
}

.ecom-t3-mobile-icon .ecom-t3-cart-icon-wrap {
    width: 24px;
    height: 24px;
    margin-right: 0;
}

.ecom-t3-mobile-icon .ecom-t3-cart-badge {
    transform: translate(40%, -40%);
}

.ecom-t3-mobile-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.ecom-t3-mobile-icon {
    width: 40px;
    height: 40px;
    border: 0;
    background: #F2F4F5;
    border-radius: 8px;
    color: #191C1F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.ecom-t3-mobile-icon:hover {
    color: var(--ecom-t3-purple, #6B2D8B);
}

.ecom-t3-mobile-search {
    display: none;
    padding: 0 0 12px;
}

.ecom-t3-mobile-search.is-open {
    display: block;
}

@media (max-width: 991.98px) {
    .ecom-t3-utility,
    .ecom-t3-main-bar-desktop,
    .ecom-t3-desktop-search {
        display: none !important;
    }

    .ecom-t3-mobile-bar {
        display: flex;
    }

    .ecom-t3-mobile-title {
        flex: 1;
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 992px) {
    .ecom-t3-mobile-search {
        display: none !important;
    }
}
