:root {
    --taee-header-accent: #660033;
    --taee-header-accent-dark: #4F0028;
    --taee-header-bg: #0d1114;
    --taee-header-surface: #ffffff;
    --taee-header-surface-2: #23292e;
    --taee-header-border: rgba(255, 255, 255, .11);
    --taee-header-text: #17000B;
    --taee-header-muted: #aeb6bd;
}

/* --------------------------------------------------------------------------
   Top announcement
   -------------------------------------------------------------------------- */
.taee-announcement {
    position: relative;
    z-index: 100001;
    min-height: 32px;
    background: linear-gradient(90deg, #4F0028 0%, var(--taee-header-accent) 52%, #4F0028 100%);
    color: #fff;
    direction: rtl;
    box-shadow: inset 0 -1px rgba(0, 0, 0, .12);
}

.taee-announcement[hidden] {
    display: none !important;
}

.taee-announcement-inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 44px;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.5;
}

.taee-announcement-inner i {
    font-size: 1rem;
}

.taee-announcement-close {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .9;
    transition: background .18s ease, opacity .18s ease;
}

.taee-announcement-close:hover,
.taee-announcement-close:focus-visible {
    background: rgba(255, 255, 255, .16);
    opacity: 1;
    outline: none;
}

/* --------------------------------------------------------------------------
   Desktop header
   -------------------------------------------------------------------------- */
.taee-header-v2 {
    position: relative;
    z-index: 10000;
    padding: 0 !important;
    margin: 0;
    direction: rtl;
    background: var(--taee-header-bg);
    color: var(--taee-header-text);
}

.taee-header-v2 .taee-header-main {
    margin: 0 !important;
    background: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.taee-header-main-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 42px);
    padding-top: 9px;
    padding-bottom: 9px;
}

.taee-header-logo {
    flex: 0 0 auto;
    width: clamp(145px, 14vw, 190px);
    display: flex;
    align-items: center;
}

.taee-header-logo img {
    display: block;
    width: 100%;
    height: 51px;
    object-fit: contain;
    border-radius: 8px;
}

.taee-header-search-wrapper {
    position: relative;
    flex: 1 1 480px;
    max-width: 650px;
    min-width: 280px;
}

.taee-header-search {
    position: relative;
    width: 100%;
    height: 43px;
    margin: 0;
}

.taee-header-search input {
    width: 100% !important;
    height: 43px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 17px 0 65px !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 7px !important;
    outline: 0 !important;
    background: #fff !important;
    font-size: .92rem !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.taee-header-search input::placeholder {
    color: #a7afb5;
    opacity: 1;
}

.taee-header-search input:focus {
    border-color: var(--taee-header-accent) !important;
    box-shadow: 0 0 0 3px rgba(239, 23, 55, .13) !important;
}

.taee-header-search button {
    position: absolute !important;
    z-index: 2;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 54px;
    height: 43px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px 0 0 7px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--taee-header-accent) !important;
    color: #fff !important;
    cursor: pointer;
}

.taee-header-search button:hover {
    background: var(--taee-header-accent-dark) !important;
}

.taee-header-search button i {
    position: static !important;
    margin: 0 !important;
    font-size: 1.15rem;
    color: #fff !important;
}

.taee-header-v2 #search-results {
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    z-index: 100005;
}

.taee-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 2px;
    white-space: nowrap;
}

.taee-header-action {
    position: relative;
    min-width: 76px;
    min-height: 56px;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    color: var(--taee-header-text) !important;
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.taee-header-action:hover,
.taee-header-action:focus-visible {
    background: rgba(255, 255, 255, .075);
    color: #660033 !important;
    outline: none;
}

.taee-header-action-icon {
    position: relative;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.taee-header-action-icon > i {
    position: static !important;
    margin: 0 !important;
    font-size: 1.65rem;
    color: #17000B !important;
}

.taee-header-action-icon > b {
    position: absolute;
    top: -7px;
    right: -12px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--taee-header-bg);
    border-radius: 999px;
    background: var(--taee-header-accent);
    color: #fff;
    font-size: .68rem;
    line-height: 1;
}

.taee-user-action-wrapper {
    display: flex;
}

.taee-header-v2 .taee-user-dropdown {
    top: calc(100% - 1px);
    right: 0;
    width: 220px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.taee-header-v2 .taee-user-dropdown a,
.taee-header-v2 .taee-user-dropdown button {
    color: #282d31 !important;
}

.taee-header-v2 .taee-user-dropdown form {
    margin: 0 !important;
    padding: 0 !important;
}

.taee-header-v2 .taee-user-dropdown button {
    width: 100%;
    padding: 11px 15px !important;
    border: 0;
    background: transparent;
    text-align: right;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Main navigation
   -------------------------------------------------------------------------- */
.taee-header-v2 .taee-header-nav {
    margin: 0 !important;
    background: var(--taee-header-surface);
    border-top: 1px solid rgba(255, 255, 255, .035);
    border-bottom: 1px solid rgba(0, 0, 0, .22);
}

.taee-header-nav-list {
    min-height: 43px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch !important;
    flex-wrap: nowrap;
    overflow: visible;
    list-style: none;
}

.taee-header-nav-list > li {
    display: flex;
    align-items: stretch;
}

.taee-header-nav-list > li > a {
    min-height: 43px;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px; 
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.taee-header-nav-list > li > a:hover,
.taee-header-nav-list > li.active > a {
    background: rgba(255, 255, 255, .06);
    color: #fff !important;
}

.taee-header-nav-list > li > a::after {
    display: none !important;
}

.taee-header-nav-list .taee-nav-chevron {
    position: static !important;
    margin: 0 !important;
    font-size: 1.4rem; 
}

.taee-all-categories-item > a {
    min-width: 180px;
    padding-right: 15px !important;
    padding-left: 15px !important;
    background: var(--taee-header-surface-2);
    color: #fff !important;
    font-weight: 700 !important;
}

.taee-all-categories-item > a > i:first-child {
    position: static !important;
    margin: 0 !important;
    font-size: 1.08rem;
    color: #fff !important;
}

.taee-selected-category > a:hover {
    color: #fff !important;
}

.taee-brand-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100010;
    width: min(620px, 80vw);
    padding: 18px;
    border: 1px solid #e3e6e8;
    border-top: 3px solid var(--taee-header-accent);
    border-radius: 0 0 10px 10px;
    background: #fff;
    color: #222;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .19);
}

.taee-brands-item:hover > .taee-brand-dropdown {
    display: block;
}

.taee-brand-dropdown-title {
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eceff1;
    color: #2a2f33;
    font-weight: 700;
}

.taee-brand-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 14px;
}

.taee-brand-dropdown-grid a {
    padding: 8px 9px;
    border-radius: 6px;
    color: #40464b !important;
    font-size: .9rem;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease;
}

.taee-brand-dropdown-grid a:hover {
    background: #f6f7f8;
    color: var(--taee-header-accent) !important;
}

.taee-header-v2 .mega-menu {
    right: 0;
    width: min(1000px, calc(100vw - 40px));
    min-width: min(1000px, calc(100vw - 40px));
    max-width: min(1000px, calc(100vw - 40px));
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--taee-header-accent);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.taee-header-v2 .mega-menu-main-cats > .mega-main-cat-item img {
    width: 27px !important;
    height: 27px;
    object-fit: contain;
}

.taee-empty-menu,
.taee-mega-empty {
    display: block;
    padding: 14px;
    color: #747b80;
}

/* --------------------------------------------------------------------------
   Mobile header
   -------------------------------------------------------------------------- */
.taee-header-v2 #mobile-header.taee-mobile-header {
    display: none;
    padding: 0;
    background: var(--taee-header-bg);
    box-shadow: none;
}

.taee-mobile-header-row {
    min-height: 60px;
    padding: 7px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.taee-header-v2 .mobile-burger-menu {
    width: 42px;
    height: 42px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.taee-header-v2 .mobile-burger-menu span {
    width: 23px;
    height: 2px;
    background: #fff !important;
}

.taee-mobile-logo {
    justify-self: center;
    width: 126px;
}

.taee-mobile-logo img {
    display: block;
    width: 100%;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.taee-mobile-actions {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 2px;
}

.taee-mobile-actions > a {
    position: relative;
    width: 34px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff !important;
    text-decoration: none !important;
}

.taee-mobile-actions > a:hover {
    background: rgba(255, 255, 255, .07);
}

.taee-mobile-actions i {
    position: static !important;
    margin: 0 !important;
    font-size: 1.25rem;
    color: #fff !important;
}

.taee-mobile-cart-link b {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--taee-header-accent);
    color: #fff;
    font-size: .61rem;
}

.taee-mobile-header-search {
    position: relative;
    margin: 0;
    padding: 0 14px 11px;
}

.taee-mobile-header-search input {
    width: 100%;
    height: 40px;
    padding: 0 13px 0 53px;
    border: 1px solid #41484e;
    border-radius: 7px;
    outline: 0;
    background: #23292e;
    color: #fff;
    font-size: .87rem;
}

.taee-mobile-header-search input::placeholder {
    color: #9ca5ab;
}

.taee-mobile-header-search button {
    position: absolute;
    top: 0;
    bottom: 11px;
    left: 14px;
    width: 44px;
    border: 0;
    border-radius: 7px 0 0 7px;
    background: var(--taee-header-accent);
    color: #fff;
}

.taee-mobile-main-menu-list > li > a i {
    width: 26px;
    margin-left: 8px;
    text-align: center;
    color: var(--taee-header-accent);
}

.taee-mobile-details-item details {
    width: 100%;
}

.taee-mobile-details-item summary {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #20262a;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.taee-mobile-details-item summary::-webkit-details-marker {
    display: none;
}

.taee-mobile-details-item summary > i:first-child {
    width: 26px;
    color: var(--taee-header-accent);
    text-align: center;
}

.taee-mobile-details-item summary > i:last-child {
    margin-right: auto;
    transition: transform .18s ease;
}

.taee-mobile-details-item details[open] summary > i:last-child {
    transform: rotate(180deg);
}

.taee-mobile-brand-links {
    padding: 5px 46px 14px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.taee-mobile-brand-links a,
.taee-mobile-brand-links span {
    padding: 7px 8px;
    border-radius: 6px;
    background: #f5f6f7;
    color: #3e454a !important;
    font-size: .88rem;
}

/* --------------------------------------------------------------------------
   Hero CTA and service/advantage strip
   -------------------------------------------------------------------------- */
.home-hero-cta {
    width: max-content;
    max-width: 100%;
    margin-top: 20px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 6px;
    background: var(--taee-header-accent);
    color: #fff;
    box-shadow: 0 9px 20px rgba(239, 23, 55, .22);
    font-size: .95rem;
    font-weight: 700;
    text-shadow: none;
}

.home-hero-cta i {
    position: static !important;
    margin: 0 !important;
}

.home-page-main > .home-hero { order: 1; }
.home-page-main > .taee-store-advantages { order: 2; }
.home-page-main > .home-deal--primary { order: 3; }
.home-page-main > .home-quad-banners { order: 4; }
.home-page-main > .home-categories { order: 5; }
.home-page-main > .home-new-products { order: 6; }
.home-page-main > .pastel-full-banner { order: 7; }
.home-page-main > .home-deal--secondary { order: 8; }
.home-page-main > .home-brands { order: 9; }
.home-page-main > .pastel-banner-section { order: 10; }
.home-page-main > .pastel-categories-wrapper { order: 11; }
.home-page-main > .pastel-blog-section { order: 12; }

.taee-store-advantages {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eceff1;
    box-shadow: 0 3px 11px rgba(17, 24, 39, .045);
}

.taee-store-advantages-grid {
    min-height: 96px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.taee-store-advantage {
    position: relative;
    min-width: 0;
    min-height: 96px;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.taee-store-advantage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19%;
    bottom: 19%;
    left: 0;
    width: 1px;
    background: #e5e8eb;
}

.taee-store-advantage-icon {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.taee-store-advantage-icon img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.taee-store-advantage-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.taee-store-advantage-copy strong {
    overflow: hidden;
    color: #22272b;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taee-store-advantage-copy small {
    overflow: hidden;
    color: #7c858c;
    font-size: .86rem;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dark .taee-store-advantages {
    background: #202428;
    border-color: #383d41;
}

.dark .taee-store-advantage:not(:last-child)::after {
    background: #3b4044;
}

.dark .taee-store-advantage-icon {
    background: #fff;
    border-radius: 14px;
}

.dark .taee-store-advantage-copy strong {
    color: #f5f6f7 !important;
}

.dark .taee-store-advantage-copy small {
    color: #aeb5ba;
}

/* Remove the previous negative header/content offset. */
.taee-header-v2 + main,
.home-page-main {
    margin-top: 0 !important;
}

@media (max-width: 1199px) {
    .taee-header-main-inner {
        gap: 16px;
    }

    .taee-header-action {
        min-width: 68px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: .72rem;
    }

    .taee-header-nav-list > li > a {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: .79rem !important;
    }

    .taee-all-categories-item > a {
        min-width: 164px;
    }
}

@media (max-width: 1023px) {
    .taee-header-v2 .taee-desktop-header {
        display: none !important;
    }

    .taee-header-v2 #mobile-header.taee-mobile-header {
        display: block !important;
    }

    .taee-announcement-inner {
        min-height: 34px;
        padding-right: 38px;
        padding-left: 38px;
        font-size: .78rem;
    }

    .taee-store-advantages-grid {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .taee-store-advantage {
        min-height: 82px;
        padding: 13px 18px;
        gap: 13px;
    }

    .taee-store-advantage-icon {
        width: 54px;
        height: 54px;
    }

    .taee-store-advantage-icon img {
        width: 46px;
        height: 46px;
    }

    .taee-store-advantage:nth-child(2n)::after {
        display: none;
    }

    .taee-store-advantage:nth-child(n+3) {
        border-top: 1px solid #eceff1;
    }

    .dark .taee-store-advantage:nth-child(n+3) {
        border-top-color: #3b4044;
    }
}

@media (max-width: 767px) {
    .home-hero-caption {
        right: 16px !important;
        max-width: 75% !important;
    }

    .home-hero-cta {
        margin-top: 13px;
        padding: 8px 14px;
        font-size: .82rem;
    }

    .taee-store-advantage {
        min-height: 74px;
        padding: 11px 10px;
        gap: 10px;
    }

    .taee-store-advantage-icon {
        width: 46px;
        height: 46px;
    }

    .taee-store-advantage-icon img {
        width: 38px;
        height: 38px;
    }

    .taee-store-advantage-copy strong {
        font-size: .84rem;
    }

    .taee-store-advantage-copy small {
        font-size: .73rem;
    }
}

@media (max-width: 420px) {
    .taee-mobile-logo {
        width: 112px;
    }

    .taee-mobile-header-row {
        padding-right: 9px;
        padding-left: 9px;
    }

    .taee-mobile-actions > a {
        width: 30px;
    }

    .taee-announcement-inner {
        justify-content: flex-start;
        padding-right: 12px;
        padding-left: 42px;
        text-align: right;
    }

    .taee-announcement-inner i {
        display: none;
    }

    .taee-mobile-brand-links {
        grid-template-columns: 1fr;
    }
}

/* Keep the new dark navigation colors above legacy #right-menu active rules. */
.taee-header-v2 #right-menu > li.active > a,
.taee-header-v2 #right-menu > li > a:hover {
    color: #660033 !important;
}


/* --------------------------------------------------------------------------
   Desktop header balance fix
   Keep top-row items distributed across available width and override the
   legacy ID-based search wrapper rule that collapses the search field.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .taee-header-v2 #header-top > .taee-header-main-inner {
        justify-content: space-around !important;
        align-items: center !important;
        gap: 22px !important;
    }

    .taee-header-v2 #search-input-wrapper.taee-header-search-wrapper {
        position: relative;
        flex: 0 1 48% !important;
        width: 48% !important;
        min-width: 420px !important;
        max-width: 760px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .taee-header-v2 .taee-header-logo,
    .taee-header-v2 .taee-header-actions {
        flex: 0 0 auto !important;
    }

    .taee-header-v2 .taee-header-actions {
        justify-content: center !important;
        gap: 10px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .taee-header-v2 #search-input-wrapper.taee-header-search-wrapper {
        width: 44% !important;
        flex-basis: 44% !important;
        min-width: 360px !important;
        max-width: 560px !important;
    }
}
