/* Shared Rush-inspired site header */
.tpd-rush-shell {
    position: relative;
    z-index: 1100;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tpd-rush-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.tpd-rush-utility {
    background: #f7fafc;
    border-bottom: 1px solid #e5edf2;
    color: #46606d;
    font-size: 0.84rem;
}

.tpd-rush-utility-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 6px 0;
}

.tpd-rush-utility a {
    color: #188980;
    font-weight: 600;
}

.tpd-rush-utility strong {
    color: #102a43;
}

.tpd-rush-utility-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tpd-rush-utility-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.tpd-rush-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5edf2;
    box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
}

.tpd-rush-main {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 12px 0;
}

.tpd-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
}

.tpd-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 179, 168, 0.12);
}

.tpd-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.tpd-brand-copy strong {
    color: #102a43;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.tpd-brand-copy span {
    color: #5f7382;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tpd-rush-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 54px;
    border: 1px solid #c9d6df;
    border-radius: 18px;
    background: #fdfefe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 0 1rem;
}

.tpd-rush-search i {
    color: #7a8c99;
    font-size: 1rem;
}

.tpd-rush-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #102a43;
}

.tpd-rush-search button {
    border: 0;
    background: linear-gradient(135deg, #1fb3a8 0%, #188980 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpd-rush-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 179, 168, 0.2);
}

.tpd-rush-quicklinks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tpd-quicklink {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 54px;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    color: #102a43;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tpd-quicklink:hover {
    background: #f4f8fa;
    transform: translateY(-1px);
}

.tpd-quicklink i {
    font-size: 1rem;
    color: #1fb3a8;
}

.tpd-quicklink-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.tpd-quicklink-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #102a43;
}

.tpd-quicklink-copy span {
    font-size: 0.76rem;
    color: #6b7d89;
}

.tpd-cart-link {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d7e3ea;
    color: #102a43;
    background: #fff;
}

.tpd-cart-link:hover {
    color: #188980;
    border-color: #9ed8d2;
    background: #f5fffd;
}

.tpd-cart-link .cart-count {
    position: absolute;
    top: -5px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff5722;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.tpd-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #d7e3ea;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.tpd-mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #102a43;
}

.tpd-rush-navband {
    border-top: 1px solid #edf3f7;
}

.tpd-rush-navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tpd-rush-nav {
    flex: 1;
}

.tpd-rush-nav > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpd-rush-nav > ul > li {
    position: relative;
}

.tpd-rush-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 56px;
    padding: 0 0.9rem;
    color: #102a43;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tpd-rush-nav > ul > li > a:hover,
.tpd-rush-nav > ul > li > a.active,
.tpd-rush-nav > ul > li.open > a {
    color: #188980;
    border-bottom-color: #1fb3a8;
    background: linear-gradient(180deg, rgba(31, 179, 168, 0.08) 0%, rgba(31, 179, 168, 0) 100%);
}

.tpd-rush-nav > ul > li > a i {
    font-size: 0.7rem;
    color: #728695;
}

.tpd-design-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 134px;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1fb3a8 0%, #188980 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(31, 179, 168, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpd-design-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(31, 179, 168, 0.28);
}

.tpd-nav-panel,
.tpd-submenu-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #dfe9ef;
    border-radius: 18px;
    box-shadow: 0 24px 40px rgba(16, 42, 67, 0.14);
    padding: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover > .tpd-nav-panel,
.nav-dropdown.open > .tpd-nav-panel,
.tpd-submenu:hover > .tpd-submenu-panel,
.tpd-submenu.open > .tpd-submenu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tpd-nav-panel a,
.tpd-submenu-panel a,
.tpd-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    padding: 0.82rem 0.9rem;
    border-radius: 12px;
    color: #163342;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tpd-nav-panel a:hover,
.tpd-submenu-panel a:hover,
.tpd-submenu:hover > .tpd-submenu-trigger,
.tpd-submenu.open > .tpd-submenu-trigger {
    background: #f4fbfb;
    color: #188980;
}

.tpd-submenu {
    position: relative;
}

.tpd-submenu-panel {
    top: 0;
    left: calc(100% + 6px);
}

.tpd-nav-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.65rem;
    min-width: 420px;
}

.tpd-nav-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
    border: 1px solid #e2edf2;
}

.tpd-nav-card:hover {
    border-color: #bfe8e2;
    transform: translateY(-1px);
}

.tpd-nav-card-media {
    aspect-ratio: 1.15 / 1;
    overflow: hidden;
    background: #eef5f7;
}

.tpd-nav-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpd-nav-card-body {
    padding: 0.8rem 0.9rem 0.95rem;
}

.tpd-nav-card-body strong {
    display: block;
    color: #102a43;
    font-size: 0.92rem;
    margin-bottom: 0.16rem;
}

.tpd-nav-card-body span {
    display: block;
    color: #6a7f8d;
    font-size: 0.76rem;
    line-height: 1.45;
}

.tpd-rush-shell + * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1180px) {
    .tpd-rush-main {
        grid-template-columns: auto 1fr;
    }

    .tpd-rush-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .tpd-rush-quicklinks {
        justify-self: end;
    }

    .tpd-quicklink-copy span {
        display: none;
    }
}

@media (max-width: 980px) {
    .tpd-quicklink:not(.tpd-cart-link) {
        display: none;
    }

    .tpd-mobile-toggle {
        display: inline-flex;
    }

    .tpd-rush-navwrap {
        align-items: stretch;
    }

    .tpd-rush-nav {
        position: fixed;
        top: 95px;
        right: 12px;
        width: min(340px, calc(100vw - 24px));
        max-height: calc(100vh - 120px);
        overflow: auto;
        background: #fff;
        border: 1px solid #dce7ed;
        border-radius: 22px;
        box-shadow: 0 30px 50px rgba(16, 42, 67, 0.18);
        padding: 0.9rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .tpd-rush-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tpd-rush-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .tpd-rush-nav > ul > li > a {
        min-height: 48px;
        border-bottom: 0;
        border-radius: 12px;
        justify-content: space-between;
    }

    .tpd-nav-panel,
    .tpd-submenu-panel {
        position: static;
        min-width: 0;
        margin-top: 0.35rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 14px;
        border-color: #edf3f6;
        background: #f9fcfd;
    }

    .nav-dropdown.open > .tpd-nav-panel,
    .tpd-submenu.open > .tpd-submenu-panel {
        display: block;
    }

    .tpd-nav-card-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .tpd-design-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .tpd-rush-container {
        width: min(100% - 20px, 1320px);
    }

    .tpd-rush-utility-inner {
        justify-content: center;
        text-align: center;
    }

    .tpd-rush-main {
        grid-template-columns: 1fr auto;
        gap: 0.9rem;
    }

    .tpd-brand-copy span {
        display: none;
    }

    .tpd-brand-copy strong {
        font-size: 1rem;
    }

    .tpd-rush-search {
        min-height: 50px;
        padding: 0 0.8rem;
    }

    .tpd-rush-search button {
        padding: 0.65rem 0.95rem;
    }

    .tpd-rush-nav {
        top: 88px;
        right: 10px;
        width: calc(100vw - 20px);
    }
}
