@media (min-width: 969px) {
    nav:has(> .nav-container) {
        border-top: 3px solid #172033;
        background: rgba(251, 252, 254, 0.94);
        box-shadow: 0 7px 22px rgba(23, 32, 51, 0.06);
    }

    nav > .nav-container {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
        align-items: center;
        width: 100%;
        max-width: 1440px;
        height: 68px;
        padding: 0 32px;
    }

    nav > .nav-container > .nav-logo {
        justify-self: start;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    nav > .nav-container > .nav-links {
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 5px;
        border: 1px solid #dfe6ee;
        border-radius: 16px;
        background: #f1f4f8;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    nav > .nav-container > .nav-links li {
        margin: 0;
        padding: 0;
    }

    nav > .nav-container > .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 14px;
        border-radius: 11px;
        color: #3e4652;
        font-size: 1.04rem;
        font-weight: 600;
        line-height: 1;
        opacity: 1;
        white-space: nowrap;
        transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    nav > .nav-container > .nav-links a:hover,
    nav > .nav-container > .nav-links a:focus-visible,
    nav > .nav-container > .nav-links a.active,
    nav > .nav-container > .nav-links a[aria-current="page"] {
        color: #0871d8;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(29, 48, 75, 0.1);
        transform: none;
    }

    nav > .nav-container > .nav-links .nav-cta {
        min-height: 42px;
        padding: 0 20px;
        border-radius: 11px;
        color: #ffffff !important;
        background: #087cf0;
        box-shadow: 0 7px 16px rgba(8, 124, 240, 0.22);
    }

    nav > .nav-container > .nav-links .nav-cta:hover,
    nav > .nav-container > .nav-links .nav-cta:focus-visible {
        color: #ffffff !important;
        background: #0565c7;
        box-shadow: 0 9px 20px rgba(8, 101, 199, 0.25);
    }
}

@media (min-width: 1180px) {
    .tc-header {
        border-top: 3px solid #172033;
        background: rgba(251, 252, 254, 0.94);
        box-shadow: 0 7px 22px rgba(23, 32, 51, 0.06);
    }

    .tc-header > .tc-nav {
        display: grid;
        grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
        align-items: center;
        width: 100%;
        max-width: 1440px;
        min-height: 68px;
        padding: 7px 32px;
    }

    .tc-header > .tc-nav > .tc-header-logo {
        justify-self: start;
    }

    .tc-header > .tc-nav > .tc-header-logo img {
        width: 160px;
    }

    .tc-header > .tc-nav .tc-brand-products {
        display: none;
    }

    .tc-header > .tc-nav > .tc-nav-list {
        justify-self: center;
        flex: 0 0 auto;
        gap: 2px;
        margin: 0;
        padding: 5px;
        border: 1px solid #dfe6ee;
        border-radius: 16px;
        background: #f1f4f8;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .tc-header > .tc-nav .tc-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 11px;
        border-radius: 11px;
        color: #3e4652;
        font-size: 0.96rem;
        font-weight: 600;
        line-height: 1;
    }

    .tc-header > .tc-nav .tc-nav-link:hover,
    .tc-header > .tc-nav .tc-nav-link:focus-visible,
    .tc-header > .tc-nav .tc-nav-link.active,
    .tc-header > .tc-nav .tc-nav-link[aria-current="page"] {
        color: #0871d8;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(29, 48, 75, 0.1);
    }

    .tc-header > .tc-nav > .tc-header-right {
        justify-self: end;
    }

    .tc-header > .tc-nav .tc-header-cart {
        min-height: 42px;
        padding: 0 14px;
        border-radius: 11px;
        box-shadow: 0 7px 16px rgba(8, 124, 240, 0.2);
    }
}

body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0871d8;
    text-decoration: none;
}

body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo img {
    display: none;
}

body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url('../favicon.ico') center / contain no-repeat;
}

body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo::after {
    content: 'TaylorCom';
    font-size: 21.5px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 901px) {
    body > .tc-header:has(+ .tc-nav:not([aria-label])) {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 72px;
        padding: 0 32px;
        border-top: 3px solid #172033;
        border-bottom: 1px solid #e3e8ef;
        background: rgba(251, 252, 254, 0.96);
        box-shadow: 0 7px 22px rgba(23, 32, 51, 0.06);
        backdrop-filter: saturate(160%) blur(18px);
    }

    body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo img {
        width: auto;
        height: 32px;
        max-width: 180px;
        object-fit: contain;
    }

    body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-shop {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 18px;
        border-radius: 11px;
        background: #087cf0;
        color: #ffffff;
        font-size: 15.5px;
        font-weight: 700;
        box-shadow: 0 7px 16px rgba(8, 124, 240, 0.22);
    }

    body > .tc-header + .tc-nav:not([aria-label]) {
        position: sticky;
        top: 0;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 72px;
        margin-top: -72px;
        padding: 0 32px;
        border: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }

    body > .tc-header + .tc-nav:not([aria-label]) > .tc-nav-list {
        display: flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        margin: 0 auto;
        padding: 5px;
        border: 1px solid #dfe6ee;
        border-radius: 16px;
        background: #f1f4f8;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        pointer-events: auto;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 14px;
        border-radius: 11px;
        color: #3e4652;
        font-size: 16.5px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-nav-link:hover,
    body > .tc-header + .tc-nav:not([aria-label]) .tc-nav-link:focus-visible,
    body > .tc-header + .tc-nav:not([aria-label]) .tc-nav-item:hover > .tc-nav-link {
        color: #0871d8;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(29, 48, 75, 0.1);
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-dropdown {
        top: 100%;
        padding: 6px;
        border: 1px solid #e3e8ef;
        border-radius: 12px;
        box-shadow: 0 16px 36px rgba(23, 32, 51, 0.16);
        pointer-events: auto;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-dropdown a {
        border: 0;
        border-radius: 8px;
    }
}

@media (max-width: 900px) {
    body > .tc-header:has(+ .tc-nav:not([aria-label])) {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 56px;
        padding: 0 10px;
        border-top: 3px solid #172033;
        border-bottom: 1px solid #e3e8ef;
        background: rgba(251, 252, 254, 0.98);
        box-shadow: 0 5px 16px rgba(23, 32, 51, 0.06);
    }

    body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-logo img {
        width: auto;
        height: 30px;
        max-width: 155px;
        object-fit: contain;
    }

    body > .tc-header:has(+ .tc-nav:not([aria-label])) .tc-header-shop {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        margin-right: 48px;
        padding: 0 13px;
        border-radius: 999px;
        background: #087cf0;
        color: #ffffff;
        font-size: 13.5px;
        font-weight: 700;
    }

    body > .tc-header + .tc-nav:not([aria-label]) {
        position: sticky;
        top: 0;
        z-index: 1001;
        height: 56px;
        margin-top: -56px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-hamburger {
        position: absolute;
        top: 9px;
        right: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 38px;
        padding: 0;
        pointer-events: auto;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-hamburger span {
        width: 25px;
        height: 3px;
        margin: 3px 0;
        border-radius: 2px;
        background: #172033;
    }

    body > .tc-header + .tc-nav:not([aria-label]) > .tc-nav-list {
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1002;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: auto;
        padding: 18px 24px 32px;
        overflow-y: auto;
        background: rgba(251, 252, 254, 0.99);
        pointer-events: auto;
    }

    body > .tc-header + .tc-nav:not([aria-label]) > .tc-nav-list.active {
        display: flex;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-nav-link {
        display: flex;
        align-items: center;
        min-height: 58px;
        padding: 0 2px;
        border-bottom: 1px solid #e3e8ef;
        color: #172033;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
    }

    body > .tc-header + .tc-nav:not([aria-label]) .tc-dropdown {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    nav > .nav-container > .nav-links a,
    .tc-header > .tc-nav .tc-nav-link {
        transition: none;
    }
}
