@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #e80805;
    --primary-dark: #b60604;
    --primary-light: #ff3b38;
    --primary-lighter: #ff6b68;
    --accent: #0057d8;
    --green-blue-gradient: linear-gradient(135deg, #e80805 0%, #e80805 40%, #0057d8 100%);
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f5f7fb;
    --text-dark: #2b2b2b;
    --text-body: #3c463c;
    --text-muted: #7b7b7b;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --container: 1290px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.84) 72%, rgba(248, 250, 252, 0) 100%);
    backdrop-filter: blur(18px);
}

.main {
    padding-top: 7.2rem;
}
.header-inner {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 6.6rem;
    padding: 1.2rem 1.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}
.header-logo {
    flex-shrink: 0;
    min-width: 0;
}
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}
.header-brand__mark {
    width: 3.35rem;
    height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.header-brand__mark img,
.header-brand__mark svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.header-brand__copy {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
}
.header-brand__copy strong {
    color: #25367f;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.header-brand__copy small {
    color: #617198;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.header-brand .header-brand__mark {
    color: #2f3fb7;
}

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto;
}
.header-nav > li,
.header-nav > a {
    list-style: none;
    position: relative;
}
.header-nav > a,
.nav-top-link {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 2.95rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #243046;
    text-decoration: none;
    line-height: 1;
    transition:
        color 180ms ease,
        background-color 180ms ease;
    white-space: nowrap;
    cursor: pointer;
}
.header-nav > a:hover,
.nav-top-link:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    text-decoration: none;
}
.header-nav > a.active { color: #243046; }
.nav-top-link .chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.25s;
}
.nav-item-dropdown:hover .nav-top-link .chevron { transform: rotate(180deg); }
.nav-item-dropdown:hover .nav-top-link {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

/* Right icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}
.icon-btn {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: 1px solid rgba(37, 48, 70, 0.14);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
    color: #243046;
}
.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.icon-btn svg { width: 1.55rem; height: 1.55rem; }
.cart-btn {
    position: relative;
}
.cart-btn__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}
.cart-btn__badge.is-empty {
    display: none;
}
.icon-btn.hamburger {
    display: none;
    background: #2f3fb7;
    border-color: #2f3fb7;
    color: #fff;
}
.icon-btn.hamburger:hover {
    background: #24339b;
    border-color: #24339b;
    color: #fff;
}
.hamburger-lines { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hamburger-lines span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
.hamburger-lines span:nth-child(2) { width: 14px; }

.global-cart {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: none;
}
.global-cart.is-open {
    display: block;
}
.global-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}
.global-cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -24px 0 50px rgba(15, 23, 42, 0.18);
}
.global-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #f7fafc);
}
.global-cart__header h2 {
    margin: 0;
    color: #243046;
    font-size: 1.25rem;
    font-weight: 800;
}
.global-cart__header p {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}
.global-cart__close {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #243046;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}
.global-cart__items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f7fafc;
}
.global-cart__empty {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.global-cart__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: #243046;
    font-size: 0.86rem;
    font-weight: 800;
}
.global-cart__toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}
.global-cart__toolbar input,
.global-cart__select {
    width: 1rem;
    height: 1rem;
    accent-color: #2f3fb7;
}
.global-cart__item {
    display: grid;
    grid-template-columns: auto 4.25rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.global-cart__image {
    width: 4.25rem;
    height: 4.25rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    object-fit: cover;
    background: #eef2f7;
}
.global-cart__name {
    margin: 0 0 0.35rem;
    color: #243046;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}
.global-cart__price {
    margin: 0 0 0.65rem;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 800;
}
.global-cart__controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.global-cart__qty {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: #fff;
    color: #243046;
    font-weight: 800;
    cursor: pointer;
}
.global-cart__qty-value {
    min-width: 1.75rem;
    text-align: center;
    color: #243046;
    font-weight: 800;
}
.global-cart__remove {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #b42318;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.global-cart__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 -16px 34px rgba(15, 23, 42, 0.1);
}
.global-cart__total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: #243046;
    font-weight: 800;
}
.global-cart__selected {
    margin: -0.35rem 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}
.global-cart__browse {
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    background: #2f3fb7;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.global-cart__checkout {
    width: 100%;
    min-height: 3.35rem;
    margin-bottom: 0.7rem;
    border: 0;
    border-radius: 0.35rem;
    background: #f97316;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}
.global-cart__checkout:hover {
    background: #ea580c;
}
.global-cart__checkout:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}
.global-cart__browse:hover {
    background: #24339b;
    color: #fff;
    text-decoration: none;
}
.global-checkout {
    position: fixed;
    inset: 0;
    z-index: 330;
    display: none;
}
.global-checkout.is-open {
    display: block;
}
.global-checkout__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.global-checkout__modal {
    position: relative;
    width: min(980px, calc(100% - 1.75rem));
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}
.global-checkout__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #f7fafc);
}
.global-checkout__header h2 {
    margin: 0;
    color: #243046;
    font-size: 1.25rem;
    font-weight: 800;
}
.global-checkout__header p {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.global-checkout__close {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #243046;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}
.global-checkout__body {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 1rem;
}
.global-checkout__summary,
.global-checkout__form-panel {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
}
.global-checkout__summary {
    align-self: start;
    overflow: hidden;
}
.global-checkout__summary h3,
.global-checkout__section h3 {
    margin: 0;
    color: #243046;
    font-size: 0.95rem;
    font-weight: 800;
}
.global-checkout__summary h3 {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--border);
    background: #f7fafc;
}
.global-checkout__summary [data-global-checkout-items] {
    display: grid;
    gap: 0.6rem;
    padding: 0.85rem;
}
.global-checkout__line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    color: #243046;
    font-size: 0.9rem;
}
.global-checkout__line span {
    overflow-wrap: anywhere;
}
.global-checkout__form-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}
.global-checkout__error,
.global-checkout__success {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
}
.global-checkout__error {
    background: #fef2f2;
    color: #991b1b;
}
.global-checkout__success {
    background: #f0fdf4;
    color: #166534;
}
.global-checkout__section {
    display: grid;
    gap: 0.75rem;
}
.global-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.global-checkout__field {
    display: grid;
    gap: 0.4rem;
}
.global-checkout__field--full {
    grid-column: 1 / -1;
}
.global-checkout__field label {
    color: #243046;
    font-size: 0.84rem;
    font-weight: 800;
}
.global-checkout__field--required label::after {
    content: " *";
    color: #b42318;
}
.global-checkout__field input,
.global-checkout__field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    padding: 0.75rem 0.8rem;
    color: #243046;
    font: inherit;
}
.global-checkout__field input:focus,
.global-checkout__field textarea:focus {
    outline: 2px solid rgba(47, 63, 183, 0.14);
    border-color: #2f3fb7;
}
.global-checkout__field textarea {
    min-height: 5.8rem;
    resize: vertical;
}
.global-checkout__actions {
    display: block;
}
.global-checkout__submit {
    width: 100%;
    min-height: 3.35rem;
    padding: 0 1rem;
    border-radius: 0.35rem;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}
.global-checkout__submit {
    border: 0;
    background: #f97316;
    color: #fff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}
.global-checkout__submit:hover {
    background: #ea580c;
}
.global-checkout__submit:disabled {
    opacity: 0.65;
    box-shadow: none;
    cursor: wait;
}
@media (max-width: 760px) {
    .global-checkout__modal {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    .global-checkout__body,
    .global-checkout__grid {
        grid-template-columns: 1fr;
    }
    .global-checkout__submit {
        width: 100%;
    }
}

/* Mega Menu — Premium sidebar + content */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
}
[x-cloak] { display: none !important; }
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    width: 820px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 200;
    overflow: hidden;
    display: flex;
    pointer-events: auto;
}

/* Left sidebar */
.mega-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f4f8 100%);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eaecf0;
}
.mega-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px 13px 22px;
    font-size: 14.5px;
    font-weight: 500;
    color: #4a5568;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-left: 3px solid transparent;
    position: relative;
}
.mega-tab::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mega-tab:hover, .mega-tab.active {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    box-shadow: 2px 0 8px rgba(13,49,172,0.04);
}
.mega-tab:hover::after, .mega-tab.active::after {
    border-right-color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Right content */
.mega-content {
    flex: 1;
    padding: 16px 20px;
    min-height: 200px;
    display: flex;
    align-items: stretch;
}
.mega-panel { display: none; width: 100%; }
.mega-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-content: start;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 68px;
}
.mega-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-color: #d4ddf0;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(13,49,172,0.08);
    transform: translateY(-1px);
}
.mega-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #dde8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid #d0daee;
}
.mega-item:hover .mega-item-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    transform: scale(1.05);
}
.mega-item-icon img { width: 22px; height: 22px; object-fit: contain; }
.mega-item-icon svg { width: 20px; height: 20px; color: var(--primary); transition: color 0.2s; }
.mega-item:hover .mega-item-icon svg { color: #fff; }
.mega-item-title { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.3; transition: color 0.2s; }
.mega-item:hover .mega-item-title { color: var(--primary); }
.mega-item-desc { font-size: 12px; color: #8b95a5; line-height: 1.4; margin-top: 3px; }

/* Mobile nav */
@media (max-width: 968px) {
    .header {
        padding: 0;
    }
    .main {
        padding-top: 5.4rem;
    }
    .header-inner {
        width: min(1240px, calc(100% - 1rem));
        min-height: 0;
        padding: 0.9rem 1rem;
        border-radius: 1.45rem;
        gap: 1rem;
    }
    .header-nav { display: none; }
    .header-brand__mark {
        width: 2.9rem;
        height: 2.9rem;
    }
    .header-brand__copy strong { font-size: 0.88rem; }
    .header-brand__copy small { display: none; }
    .header-right {
        margin-left: auto;
        gap: 0.6rem;
    }
    .icon-btn {
        width: 3.25rem;
        height: 3.25rem;
    }
    .icon-btn.hamburger {
        display: inline-flex;
    }
    .icon-btn svg {
        width: 1.35rem;
        height: 1.35rem;
    }
}
@media (max-width: 520px) {
    .main {
        padding-top: 4.8rem;
    }
    .header-inner {
        width: calc(100% - 0.75rem);
        padding: 0.8rem;
        gap: 0.55rem;
    }
    .header-brand__copy small {
        display: none;
    }
    .header-brand__copy strong {
        font-size: 0.75rem;
    }
    .header-right {
        gap: 0.45rem;
    }
    .icon-btn {
        width: 2.9rem;
        height: 2.9rem;
    }
}
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
}
.mobile-drawer-logo {
    padding: 0 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}
.mobile-drawer-logo .header-brand {
    gap: 0.8rem;
}
.mobile-drawer-logo .header-brand__mark {
    width: 2.4rem;
    height: 2.4rem;
}
.mobile-drawer-logo .header-brand__copy strong {
    font-size: 0.82rem;
}
.mobile-drawer-logo .header-brand__copy small {
    font-size: 0.58rem;
}
.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s;
}
.mobile-nav-link:hover { background: #f5f7fb; color: var(--primary); text-decoration: none; }
.mobile-nav-link.active { color: var(--primary); font-weight: 700; background: rgba(13,49,172,0.05); border-left: 3px solid var(--primary); }
.mobile-nav-group-title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mobile-nav-sub {
    padding: 6px 20px 6px 36px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}
.mobile-nav-sub-title {
    padding-top: 10px;
    font-weight: 600;
    color: var(--text-dark);
}
.mobile-nav-sub:hover { color: var(--primary); text-decoration: none; }
.mobile-nav-divider { height: 1px; background: #f0f0f0; margin: 8px 20px; }

/* Search Overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; align-items: flex-start; justify-content: center; padding-top: 120px; }
.search-overlay.open { display: flex; }
.search-box { background: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.search-box input { width: 100%; padding: 14px 18px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 16px; font-family: inherit; outline: none; }
.search-box input:focus { border-color: var(--primary); }

/* ===== MAIN ===== */
.main { }
.main-inner { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.main-padded { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 250;
    width: 3.15rem;
    height: 3.15rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--green-blue-gradient);
    box-shadow: 0 18px 40px rgba(13, 49, 172, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    box-shadow: 0 22px 48px rgba(13, 49, 172, 0.38);
    transform: translateY(-2px) scale(1.02);
}
.back-to-top:focus-visible {
    outline: 3px solid rgba(107, 140, 255, 0.45);
    outline-offset: 3px;
}
.back-to-top svg {
    width: 1.35rem;
    height: 1.35rem;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.9rem;
        height: 2.9rem;
    }
}
