:root {
    --tavish-blue: #0B74E5;
    --tavish-navy: #0A2F6B;
    --tavish-dark: #1F2937;
    --tavish-line: #E5EAF1;
    --tavish-soft: #F5F9FE;
    --tavish-text-muted: #64748B;
}

.tavish-mega-wrap {
    position: relative;
    z-index: 9999;
    font-family: inherit;
}

.tavish-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--tavish-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 12px;
}

.tavish-mega-trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform .2s ease;
}

.tavish-mega-wrap.is-open .tavish-mega-trigger svg {
    transform: rotate(180deg);
}

.tavish-trigger-icon {
    display: grid;
    gap: 3px;
    width: 17px;
}
.tavish-trigger-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--tavish-blue);
}

.tavish-mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(1500px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    background: #fff;
    border: 1px solid var(--tavish-line);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(10, 47, 107, .16);
    overflow: hidden;
}

.tavish-mega-wrap.is-open .tavish-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tavish-mega-grid {
    display: grid;
    grid-template-columns: 1.12fr 1.08fr 1.22fr .96fr 1.08fr;
    min-height: 490px;
}

.tavish-mega-grid > section,
.tavish-mega-categories {
    min-width: 0;
    padding: 22px 20px;
    border-right: 1px solid var(--tavish-line);
}

.tavish-mega-grid > :last-child {
    border-right: 0;
}

.tavish-col-title {
    margin: 0 0 15px;
    color: var(--tavish-navy);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .06em;
    font-weight: 800;
}

.tavish-category-list {
    display: grid;
    gap: 3px;
}

.tavish-cat-item {
    width: 100%;
    display: grid;
    grid-template-columns: 23px minmax(0,1fr) 14px;
    align-items: center;
    gap: 8px;
    padding: 10px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--tavish-dark);
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.tavish-cat-item:hover,
.tavish-cat-item.is-active {
    background: #EEF6FF;
    color: var(--tavish-blue);
}

.tavish-cat-item > svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.tavish-cat-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: currentColor;
}

.tavish-cat-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.tavish-subcat-list {
    display: grid;
    gap: 2px;
}

.tavish-subcat-item {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 4px;
    color: var(--tavish-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
}

.tavish-subcat-item:hover {
    color: var(--tavish-blue);
    background: var(--tavish-soft);
}

.tavish-subcat-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.tavish-view-all {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 7px;
    background: #EEF6FF;
    color: var(--tavish-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.tavish-view-all:hover {
    background: var(--tavish-blue);
    color: #fff;
}

.tavish-featured-list {
    display: grid;
    gap: 7px;
}

.tavish-product-item {
    display: grid;
    grid-template-columns: 70px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    color: var(--tavish-dark);
    text-decoration: none;
}

.tavish-product-image {
    width: 70px;
    height: 63px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #F5F7FA;
}

.tavish-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tavish-product-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.tavish-product-copy strong {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.tavish-product-copy small {
    color: var(--tavish-text-muted);
    font-size: 10px;
}

.tavish-brand-list {
    display: grid;
    gap: 8px;
}

.tavish-brand-item {
    height: 50px;
    display: grid;
    place-items: center;
    padding: 6px 12px;
    border: 1px solid var(--tavish-line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tavish-brand-item:hover {
    border-color: #BFD8F5;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(10,47,107,.07);
}

.tavish-brand-item img {
    max-width: 125px;
    max-height: 34px;
    object-fit: contain;
}

.tavish-brand-item span {
    color: var(--tavish-navy);
    font-weight: 800;
    font-size: 13px;
}

.tavish-banner-inner {
    height: 100%;
    min-height: 445px;
    position: relative;
    overflow: hidden;
    margin: -22px -20px;
    padding: 30px 25px;
    background: var(--tavish-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tavish-banner-content {
    position: relative;
    z-index: 2;
}

.tavish-banner-eyebrow {
    display: block;
    color: #B9D8FA;
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 800;
    margin-bottom: 10px;
}

.tavish-banner-content h3 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(20px, 1.7vw, 27px);
    line-height: 1.1;
    font-weight: 800;
}

.tavish-banner-content p {
    max-width: 260px;
    margin: 0;
    color: #D9E7F8;
    font-size: 12px;
    line-height: 1.55;
}

.tavish-banner-button {
    margin-top: 19px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 6px;
    background: #fff;
    color: var(--tavish-navy);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.tavish-banner-button:hover {
    background: var(--tavish-blue);
    color: #fff;
}

.tavish-banner-image {
    position: absolute;
    right: -14px;
    bottom: -4px;
    width: 92%;
    max-height: 57%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 16px 20px rgba(0,0,0,.2));
}

.tavish-empty {
    padding: 12px 0;
    color: var(--tavish-text-muted);
    font-size: 12px;
}

@media (max-width: 1180px) {
    .tavish-mega-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tavish-mega-grid > section,
    .tavish-mega-categories {
        border-bottom: 1px solid var(--tavish-line);
    }
    .tavish-mega-banner {
        grid-column: span 2;
    }
    .tavish-banner-inner {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    .tavish-mega-panel {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        transform: translateY(-8px);
    }

    .tavish-mega-wrap.is-open .tavish-mega-panel {
        transform: translateY(0);
    }

    .tavish-mega-grid {
        display: block;
    }

    .tavish-mega-grid > section,
    .tavish-mega-categories {
        border-right: 0;
        border-bottom: 1px solid var(--tavish-line);
        padding: 18px 16px;
    }

    .tavish-mega-banner {
        border-bottom: 0 !important;
    }

    .tavish-banner-inner {
        margin: -18px -16px;
        min-height: 300px;
    }

    .tavish-category-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tavish-mega-panel,
    .tavish-cat-item,
    .tavish-subcat-item,
    .tavish-brand-item {
        transition: none !important;
    }
}
