:root {
    --nds-blue: #2563eb;
    --nds-blue-dark: #1d4ed8;
    --nds-ink: #0f172a;
    --nds-muted: #64748b;
    --nds-border: #e5eaf1;
    --nds-soft: #f8fafc;
    --nds-white: #ffffff;
    --nds-dark: #08111f;
}

* { box-sizing: border-box; }

body.nds-site {
    margin: 0;
    min-width: 320px;
    background: #fff;
    color: var(--nds-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.nds-site a { text-decoration: none; }
body.nds-site button, body.nds-site input { font: inherit; }

.nds-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.nds-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 8px 30px rgba(15,23,42,.04);
}

.nds-topbar {
    background: #0b1324;
    color: rgba(255,255,255,.78);
    font-size: 12px;
}

.nds-topbar-inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nds-topbar a { color: #fff; font-weight: 700; }

.nds-navbar { background: #fff; }

.nds-navbar-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.nds-logo { display: flex; align-items: center; }
.nds-logo img { width: 150px; max-height: 80px; object-fit: contain; display: block; }

.nds-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nds-navigation > a {
    padding: 10px 13px;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.nds-navigation > a:hover,
.nds-navigation > a.is-active {
    color: var(--nds-blue);
    background: #eff6ff;
}

.nds-mobile-account { display: none; }

.nds-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.nds-cart-link {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nds-border);
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
}

.nds-cart-link:hover { color: var(--nds-blue); border-color: #bfdbfe; }
.nds-cart-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nds-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.nds-login {
    padding: 10px 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
}

.nds-login:hover { color: var(--nds-blue); }

.nds-header-primary,
.nds-mobile-primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--nds-blue), #3b82f6);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37,99,235,.18);
}

.nds-user-wrap { position: relative; }

.nds-user-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 9px 5px 6px;
    border: 1px solid var(--nds-border);
    border-radius: 12px;
    background: #fff;
    color: var(--nds-ink);
    cursor: pointer;
}

.nds-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nds-blue), #60a5fa);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.nds-user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.nds-user-text small { color: #94a3b8; font-size: 9px; font-weight: 700; }
.nds-user-text strong { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.nds-chevron { color: #94a3b8; font-size: 14px; }

.nds-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 235px;
    display: none;
    padding: 8px;
    border: 1px solid var(--nds-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15,23,42,.14);
}

.nds-user-menu.is-open { display: block; }
.nds-user-summary { padding: 8px 9px 10px; border-bottom: 1px solid #edf2f7; margin-bottom: 5px; }
.nds-user-summary strong, .nds-user-summary span { display: block; }
.nds-user-summary strong { color: var(--nds-ink); font-size: 13px; }
.nds-user-summary span { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-size: 11px; }
.nds-user-menu > a { display: block; padding: 9px; border-radius: 9px; color: #334155; font-size: 12px; font-weight: 700; }
.nds-user-menu > a:hover { background: #f8fafc; color: var(--nds-blue); }
.nds-danger-link { color: #dc2626 !important; }

.nds-menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--nds-border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.nds-menu-button span { width: 18px; height: 2px; display: block; border-radius: 99px; background: #0f172a; transition: .2s ease; }
.nds-menu-button.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nds-menu-button.is-open span:nth-child(2) { opacity: 0; }
.nds-menu-button.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nds-footer {
    margin-top: 0;
    background: radial-gradient(circle at 12% 0%, rgba(37,99,235,.17), transparent 30%), var(--nds-dark);
    color: #94a3b8;
}

.nds-footer-grid {
    padding: 68px 0 48px;
    display: grid;
    grid-template-columns: minmax(280px, 1.65fr) 1fr 1fr minmax(240px, 1.2fr);
    gap: 48px;
}

.nds-footer-logo { display: inline-flex; padding: 7px 10px; border-radius: 11px; background: #fff; }
.nds-footer-logo img { width: 145px; display: block; }
.nds-footer-brand-column > p, .nds-footer-cta-column > p { max-width: 420px; margin: 20px 0; font-size: 13px; line-height: 1.8; }
.nds-footer h4 { margin: 2px 0 17px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.nds-footer-grid > div:not(.nds-footer-brand-column):not(.nds-footer-cta-column) > a { display: block; margin: 11px 0; color: #94a3b8; font-size: 13px; }
.nds-footer-grid a:hover { color: #fff; }

.nds-trust-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nds-trust-pills span { padding: 7px 9px; border: 1px solid rgba(148,163,184,.16); border-radius: 9px; background: rgba(255,255,255,.04); color: #cbd5e1; font-size: 10px; font-weight: 750; }

.nds-footer-button { display: inline-flex; padding: 11px 14px; border: 1px solid rgba(96,165,250,.32); border-radius: 10px; background: rgba(37,99,235,.15); color: #dbeafe; font-size: 12px; font-weight: 800; }
.nds-footer-button:hover { background: var(--nds-blue); }

.nds-footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(148,163,184,.14);
    color: #64748b;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .nds-navbar-inner { gap: 18px; }
    .nds-navigation { gap: 2px; }
    .nds-navigation > a { padding-inline: 10px; }
    .nds-user-text { display: none; }
    .nds-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .nds-footer-cta-column { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .nds-container { width: min(100% - 28px, 1180px); }
    .nds-topbar-inner { justify-content: center; text-align: center; }
    .nds-topbar-inner a { display: none; }
    .nds-navbar-inner { min-height: 70px; grid-template-columns: 1fr auto; }
    .nds-logo img { width: 135px; }
    .nds-menu-button { display: flex; }
    .nds-login, .nds-header-primary, .nds-user-wrap { display: none; }

    .nds-navigation {
        position: absolute;
        top: 102px;
        left: 14px;
        right: 14px;
        display: none;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border: 1px solid var(--nds-border);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 20px 45px rgba(15,23,42,.12);
    }

    .nds-navigation.is-open { display: flex; }
    .nds-navigation > a { padding: 11px 12px; }
    .nds-mobile-account { display: grid; gap: 2px; margin-top: 7px; padding-top: 8px; border-top: 1px solid #edf2f7; }
    .nds-mobile-account a { padding: 10px 12px; border-radius: 9px; color: #334155; font-size: 13px; font-weight: 750; }
    .nds-mobile-primary { margin-top: 4px; }

    .nds-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
}

@media (max-width: 680px) {
    .nds-topbar-message { font-size: 10px; }
    .nds-footer-grid { grid-template-columns: 1fr 1fr; padding-top: 52px; }
    .nds-footer-brand-column, .nds-footer-cta-column { grid-column: 1 / -1; }
    .nds-footer-bottom { padding: 20px 0; min-height: 0; flex-direction: column; align-items: flex-start; }
}
