/* Layout 2 header — orange COSMOS shell + mobile patterns */
.ecom-t2-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    overflow: visible;
}

.ecom-t2-utility {
    background: #fff;
    border-bottom: 1px solid #E4E7E9;
    font-size: 12px;
    color: #5F6C72;
}

.ecom-t2-utility a {
    color: #5F6C72;
    text-decoration: none;
}

.ecom-t2-utility a:hover {
    color: var(--ecom-t2-orange, #EF6C00);
}

.ecom-t2-main-bar {
    padding: 14px 0;
}

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

.ecom-t2-search-pill {
    height: 48px;
    background: #F2F4F5;
    border: 1px solid #E4E7E9;
    border-radius: 4px;
    overflow: hidden;
}

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

.ecom-t2-search-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 0;
    background: var(--ecom-t2-orange, #EF6C00);
    color: #fff;
}

.ecom-t2-search-btn:hover {
    background: var(--ecom-t2-orange-dark, #E65100);
    color: #fff;
}

.ecom-t2-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-t2-action:hover {
    color: var(--ecom-t2-orange, #EF6C00);
}

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

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

.ecom-t2-login-btn:hover {
    border-color: var(--ecom-t2-orange, #EF6C00);
    color: var(--ecom-t2-orange, #EF6C00);
}

.ecom-t2-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    /* room so badge sits outside icon and does not collide with "Cart" label */
    margin-right: 10px;
    overflow: visible;
}

.ecom-t2-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-t2-orange, #EF6C00);
    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-t2-mobile-icon .ecom-t2-cart-icon-wrap {
    width: 22px;
    height: 22px;
    margin-right: 0;
}

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

.ecom-t2-nav {
    background: var(--ecom-t2-nav, #EF6C00);
    overflow: visible;
    position: relative;
    z-index: 1020;
}

.ecom-t2-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    overflow: visible;
}

.ecom-t2-cat-btn {
    background: rgba(0,0,0,0.12);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ecom-t2-cat-btn:hover,
.ecom-t2-cat-btn:focus {
    background: rgba(0,0,0,0.2);
    color: #fff;
}

.ecom-t2-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    overflow: visible;
}

.ecom-t2-nav-links--categories {
    margin-left: 0;
    flex: 1;
    min-width: 0;
}

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

.ecom-t2-nav-links--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.ecom-t2-nav-links--scroll::-webkit-scrollbar {
    display: none;
}

.ecom-t2-nav-links--scroll .ecom-t2-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ecom-t2-nav-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    opacity: 0.95;
    white-space: nowrap;
}

.ecom-t2-nav-link:hover {
    opacity: 1;
    text-decoration: underline;
    color: #fff;
}

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

.ecom-t2-cat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: 2px solid var(--ecom-t2-nav, #EF6C00);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1060;
    padding: 4px 0;
}

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

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

.ecom-t2-cat-dropdown a:hover {
    background: #fff3e0;
    color: var(--ecom-t2-nav, #EF6C00);
    text-decoration: none;
}

/* legacy flat link selector (keep hover for any leftover anchors) */
.ecom-t2-nav-links > a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    opacity: 0.95;
}

.ecom-t2-nav-links > a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

.ecom-t2-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-t2-mobile-icon:hover {
    color: var(--ecom-t2-orange, #EF6C00);
}

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

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

.ecom-t2-mobile-nav-sheet {
    display: none;
}

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

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

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

    .ecom-t2-nav-mobile {
        display: block;
        background: var(--ecom-t2-nav, #EF6C00);
    }

    .ecom-t2-nav-mobile .ecom-t2-cat-btn {
        width: 100%;
        justify-content: space-between;
    }
}

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