/**
 * Section 2 — Header + Nav
 * .tnk-s2 scoped styles
 */

.tnk-s2 {
    --tnk-red: #E31E24;
    --tnk-red-dark: #B81015;
    --tnk-black: #131313;
    --tnk-white: #ffffff;
    --tnk-grey-50: #fafafa;
    --tnk-grey-100: #f5f5f5;
    --tnk-grey-150: #ededed;
    --tnk-grey-200: #e5e5e5;
    --tnk-grey-500: #737373;
    --tnk-grey-700: #404040;

    background: var(--tnk-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: sticky; top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}
.tnk-s2.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
.tnk-s2 *, .tnk-s2 *::before, .tnk-s2 *::after { box-sizing: border-box; }

/* ----- Top utility bar ----- */
.tnk-s2__top {
    background: var(--tnk-grey-50);
    border-bottom: 1px solid var(--tnk-grey-150);
}
.tnk-s2__top-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 8px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    font-size: 11px; color: var(--tnk-grey-500);
    letter-spacing: 0.02em;
}
.tnk-s2__top-links { display: flex; gap: 22px; }
.tnk-s2__top-links a {
    color: var(--tnk-grey-500);
    text-decoration: none;
    transition: color 0.15s ease;
}
.tnk-s2__top-links a:hover { color: var(--tnk-black); }
.tnk-s2__top-right { display: flex; gap: 14px; align-items: center; }
.tnk-s2__currency {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--tnk-grey-200);
    border-radius: 999px;
    background: var(--tnk-white);
    font-size: 11px; font-weight: 500;
    cursor: pointer;
    color: var(--tnk-black);
    font-family: inherit;
    transition: border-color 0.15s ease;
}
.tnk-s2__currency:hover { border-color: var(--tnk-black); }
.tnk-s2__currency-chev { font-size: 8px; opacity: 0.5; }

/* ----- Main header ----- */
.tnk-s2__main {
    max-width: 1280px; margin: 0 auto;
    padding: 18px 32px;
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 24px; align-items: center;
}
.tnk-s2__logo {
    display: flex; align-items: center;
    text-decoration: none;
    color: var(--tnk-black);
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.tnk-s2__logo em {
    font-style: normal;
    color: var(--tnk-red);
    margin-right: 2px;
}
.tnk-s2__search {
    position: relative;
    max-width: 540px;
    width: 100%;
    justify-self: center;
}
.tnk-s2__search-form {
    margin: 0;
    padding: 0;
    width: 100%;
}
.tnk-s2__search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1px solid var(--tnk-grey-200);
    border-radius: 999px;
    background: var(--tnk-grey-100);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    color: var(--tnk-black);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tnk-s2__search input::placeholder { color: var(--tnk-grey-500); }
.tnk-s2__search input:focus {
    border-color: var(--tnk-black);
    background: var(--tnk-white);
}
.tnk-s2__search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--tnk-grey-500);
    pointer-events: none;
    z-index: 1;
}
.tnk-s2__search-icon svg { width: 16px; height: 16px; display: block; }
.tnk-s2__right { display: flex; align-items: center; gap: 18px; }
.tnk-s2__perks { display: flex; gap: 16px; align-items: center; font-size: 11px; }
.tnk-s2__perk {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--tnk-grey-500);
    white-space: nowrap;
}
.tnk-s2__perk strong { color: var(--tnk-black); font-weight: 700; }

.tnk-s2__icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    color: var(--tnk-black);
    background: none; border: none;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
    text-decoration: none;
}
.tnk-s2__icon-btn:hover { background: var(--tnk-grey-100); }
.tnk-s2__icon-btn svg { width: 20px; height: 20px; }
.tnk-s2__wish-count {
    position: absolute;
    top: 2px; right: 2px;
    width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--tnk-red);
    color: var(--tnk-white);
    font-size: 10px;
    font-weight: 700;
    display: grid; place-items: center;
    line-height: 1;
}
.tnk-s2__cart-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--tnk-red);
    color: var(--tnk-white) !important;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; border: none;
    font-family: inherit;
    transition: background-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
}
.tnk-s2__cart-pill:hover {
    background: var(--tnk-red-dark);
    transform: translateY(-1px);
}
.tnk-s2__cart-pill svg { width: 16px; height: 16px; }

/* ----- Black nav bar ----- */
.tnk-s2__nav {
    background: var(--tnk-black);
    position: relative;
}
.tnk-s2__nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 32px;
    display: flex; justify-content: center;
    gap: 36px;
}
.tnk-s2__nav-item { position: static; }
.tnk-s2__nav-item > a,
.tnk-s2__nav-item > .tnk-s2__nav-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 15px 0;
    color: rgba(255,255,255,0.85);
    font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: color 0.15s ease;
    white-space: nowrap;
    background: none; border: none;
    font-family: inherit; cursor: pointer;
}
.tnk-s2__nav-item > a:hover,
.tnk-s2__nav-item > .tnk-s2__nav-trigger:hover { color: var(--tnk-white); }
.tnk-s2__nav-item > a::after,
.tnk-s2__nav-item > .tnk-s2__nav-trigger::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--tnk-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}
.tnk-s2__nav-item:hover > a::after,
.tnk-s2__nav-item:hover > .tnk-s2__nav-trigger::after,
.tnk-s2__nav-item:focus-within > .tnk-s2__nav-trigger::after { transform: scaleX(1); }
.tnk-s2__nav-chev { width: 9px; height: 9px; opacity: 0.6; transition: transform 0.2s ease; }
.tnk-s2__nav-item:hover > .tnk-s2__nav-trigger > .tnk-s2__nav-chev { transform: rotate(180deg); }

/* Mega dropdown */
.tnk-s2__mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--tnk-white); color: var(--tnk-black);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    z-index: 50;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.tnk-s2__nav-item:hover .tnk-s2__mega,
.tnk-s2__nav-item:focus-within .tnk-s2__mega {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.tnk-s2__mega-inner { max-width: 1280px; margin: 0 auto; padding: 40px 32px; display: grid; gap: 40px; }
.tnk-s2__mega-col h5 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--tnk-black);
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--tnk-grey-150);
}
.tnk-s2__mega-col ul { list-style: none; margin: 0; padding: 0; }
.tnk-s2__mega-col li { margin-bottom: 9px; }
.tnk-s2__mega-col a {
    display: inline-block; padding: 2px 0;
    font-size: 13.5px; font-weight: 500;
    color: var(--tnk-grey-700); text-decoration: none;
    transition: color 0.15s ease;
    text-transform: none;
}
.tnk-s2__mega-col a::after { display: none !important; }
.tnk-s2__mega-col a:hover { color: var(--tnk-red); }
.tnk-s2__mega-col a.is-viewall {
    color: var(--tnk-black); font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding-top: 12px;
    border-top: 1px solid var(--tnk-grey-150);
    width: 100%;
}
.tnk-s2__mega-col a.is-viewall:hover { color: var(--tnk-red); }
.tnk-s2__mega-col a.is-viewall::before { content: '→'; font-size: 14px; }

.tnk-s2__mega-feature {
    background: var(--tnk-grey-100);
    border-radius: 12px;
    padding: 24px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    position: relative; overflow: hidden;
}
.tnk-s2__mega-feature::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}
.tnk-s2__mega-feature--wc { background-image: linear-gradient(135deg, #E31E24 0%, #5a0210 100%); }
.tnk-s2__mega-feature--euro { background-image: linear-gradient(135deg, #0e4d92 0%, #14213d 100%); }
.tnk-s2__mega-feature--custom { background-image: linear-gradient(135deg, #131313 0%, #404040 100%); }
.tnk-s2__mega-feature-tag {
    display: inline-block; align-self: flex-start;
    padding: 4px 10px;
    background: rgba(255,255,255,0.95);
    color: var(--tnk-black);
    font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    border-radius: 999px;
    position: relative; z-index: 1;
}
.tnk-s2__mega-feature-body { position: relative; z-index: 1; }
.tnk-s2__mega-feature h6 {
    font-size: 19px; font-weight: 800;
    color: var(--tnk-white);
    margin: 0 0 6px;
    letter-spacing: -0.01em; line-height: 1.15;
}
.tnk-s2__mega-feature p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 14px; line-height: 1.5;
}
.tnk-s2__mega-feature a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--tnk-white) !important; text-decoration: none !important;
    padding-bottom: 4px;
    border-bottom: 1.5px solid var(--tnk-white);
    align-self: flex-start;
}
.tnk-s2__mega-feature a::after { display: none !important; }

.tnk-s2__mega--nations .tnk-s2__mega-inner { grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; }
.tnk-s2__mega--clubs .tnk-s2__mega-inner { grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; }
.tnk-s2__mega--competitions .tnk-s2__mega-inner { grid-template-columns: 1fr 1fr 1fr 1.4fr; }

/* Hamburger */
.tnk-s2__hamburger {
    display: none;
    background: none; border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--tnk-black);
}
.tnk-s2__hamburger svg { width: 24px; height: 24px; }

/* Mobile drawer */
.tnk-s2__drawer-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.tnk-s2__drawer-bg.is-open { opacity: 1; pointer-events: auto; }
.tnk-s2__drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    width: min(86%, 380px);
    background: var(--tnk-white);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.tnk-s2__drawer.is-open { transform: translateX(0); }
.tnk-s2__drawer-head {
    background: var(--tnk-black);
    color: var(--tnk-white);
    padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.tnk-s2__drawer-logo {
    font-size: 18px; font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tnk-white);
    text-decoration: none;
}
.tnk-s2__drawer-logo em {
    font-style: normal;
    color: var(--tnk-red);
    margin-right: 2px;
}
.tnk-s2__drawer-close {
    background: none; border: none;
    color: var(--tnk-white);
    padding: 4px;
    cursor: pointer;
}
.tnk-s2__drawer-close svg { width: 22px; height: 22px; }
.tnk-s2__drawer-promo {
    background: var(--tnk-red);
    color: var(--tnk-white);
    padding: 12px 20px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}
.tnk-s2__drawer-list {
    list-style: none; margin: 0; padding: 8px 0;
    flex: 1; overflow-y: auto;
}
.tnk-s2__drawer-list > li {
    border-bottom: 1px solid var(--tnk-grey-150);
}
.tnk-s2__drawer-list > li > a,
.tnk-s2__drawer-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    color: var(--tnk-black);
    text-decoration: none;
    font-size: 14px; font-weight: 700;
    width: 100%;
    background: none; border: none;
    font-family: inherit; cursor: pointer;
    text-align: left;
}
.tnk-s2__drawer-toggle .tnk-s2__chev {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.5;
}
.tnk-s2__drawer-toggle.is-open .tnk-s2__chev { transform: rotate(180deg); }
.tnk-s2__drawer-sub {
    list-style: none; margin: 0; padding: 0;
    background: var(--tnk-grey-50);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.tnk-s2__drawer-sub.is-open { max-height: 800px; }
.tnk-s2__drawer-sub li { border-top: 1px solid rgba(0,0,0,0.04); }
.tnk-s2__drawer-sub a {
    display: block;
    padding: 12px 20px 12px 36px;
    color: var(--tnk-grey-700);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
}
.tnk-s2__drawer-foot {
    border-top: 1px solid var(--tnk-grey-150);
    padding: 16px 20px;
    display: flex; gap: 14px; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--tnk-grey-500);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .tnk-s2__perks { display: none; }
    .tnk-s2__main { grid-template-columns: auto 1fr auto; gap: 16px; }
}

@media (max-width: 720px) {
    .tnk-s2__top { display: none; }
    .tnk-s2__main {
        padding: 12px 16px;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "menu logo right" "search search search";
        gap: 10px;
    }
    .tnk-s2__hamburger { display: flex; grid-area: menu; }
    .tnk-s2__logo { font-size: 18px; grid-area: logo; justify-self: start; }
    .tnk-s2__right { grid-area: right; }
    .tnk-s2__search {
        grid-area: search;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
    }
    .tnk-s2__search input {
        padding: 10px 16px 10px 40px;
        font-size: 13px;
    }
    .tnk-s2__search-icon { left: 14px; }
    .tnk-s2__search-icon svg { width: 15px; height: 15px; }
    .tnk-s2__cart-pill { padding: 8px 14px; font-size: 11px; }
    .tnk-s2__cart-pill-label { display: none; }
    .tnk-s2__icon-btn--wishlist { display: none; }
    .tnk-s2__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tnk-s2, .tnk-s2 *, .tnk-s2 *::before, .tnk-s2 *::after,
    .tnk-s2__drawer, .tnk-s2__drawer-bg, .tnk-s2__drawer-sub, .tnk-s2__chev {
        transition: none !important;
    }
}
