:root {
    --bg: #0a0a0b;
    --panel: #161618;
    --panel-soft: #1d1d20;
    --panel-faint: #202024;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --ink: #ffffff;
    --muted: #a1a1aa;
    --muted-deep: #71717a;
    --accent: #f59e0b;
    --accent-strong: #fbbf24;
    --green: #22c55e;
    --danger: #ef4444;
    --cyan: #22d3ee;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --font-family: "Inter", "Microsoft YaHei UI", sans-serif;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(251, 191, 36, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, rgba(10, 10, 11, 0) 100%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-family);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.hidden {
    display: none !important;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(15, 15, 17, 0.94);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: min(1440px, calc(100vw - 30px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-strong);
    color: #050505;
    display: grid;
    place-items: center;
}

.brand-logo-icon {
    font-size: 24px;
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand-title span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.nav-links a {
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--ink);
}

.nav-links a.is-active {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    transition: background 160ms ease;
}

.cart-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-button iconify-icon {
    font-size: 26px;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #050505;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent-strong);
    color: #050505;
    font-size: 14px;
    font-weight: 800;
    transition: filter 160ms ease;
}

.login-button:hover {
    filter: brightness(1.05);
}

.store-gradient-bg {
    min-height: calc(100vh - 64px);
}

.page-shell {
    width: min(1440px, calc(100vw - 30px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 38px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    box-shadow: var(--shadow);
}

.hero-banner::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    filter: blur(80px);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-text {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button,
.buy-button {
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.hero-button:hover,
.buy-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.hero-button {
    background: var(--accent-strong);
    color: #050505;
}

.hero-link,
.ghost-button,
.pay-button {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.hero-link:hover,
.ghost-button:hover,
.pay-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
}

.hero-announcement {
    margin-top: 18px;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.hero-symbol {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    margin-top: auto;
    margin-bottom: auto;
}

.hero-symbol-icon {
    font-size: 120px;
    color: rgba(251, 191, 36, 0.25);
}

.hero-stats {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.stat-label {
    color: var(--muted-deep);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-value {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.layout-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr) minmax(300px, 320px);
    gap: 22px;
    align-items: start;
}

.sidebar-column,
.catalog-column,
.checkout-column {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.catalog-column,
.sidebar-column,
.checkout-column {
    overflow: hidden;
}

.sidebar-card,
.checkout-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.sidebar-card,
.checkout-card,
.catalog-toolbar {
    padding: 18px;
}

.checkout-card {
    position: sticky;
    top: 84px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.card-head h3,
.order-card h4,
.card-head p,
.selected-account h4 {
    margin: 0;
}

.card-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
}

.card-head-icon {
    font-size: 20px;
}

.card-head-icon.amber {
    color: var(--accent);
}

.card-head-icon.green {
    color: var(--green);
}

.card-note,
.support-card,
.selected-account p,
.account-subline,
.order-card p,
.product-desc {
    color: var(--muted);
}

.card-note {
    max-width: 26ch;
    font-size: 13px;
    line-height: 1.7;
}

.search-field,
.product-search-field {
    position: relative;
    display: block;
}

.search-field input,
.product-search-field input,
.field input,
.field textarea,
.tracker-form input,
.sort-group select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    padding: 13px 14px;
    outline: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.search-field input,
.product-search-field input {
    padding-left: 42px;
}

.search-field input::placeholder,
.product-search-field input::placeholder,
.field input::placeholder,
.field textarea::placeholder,
.tracker-form input::placeholder {
    color: var(--muted-deep);
}

.search-field input:focus,
.product-search-field input:focus,
.field input:focus,
.field textarea:focus,
.tracker-form input:focus,
.sort-group select:focus {
    border-color: rgba(251, 191, 36, 0.36);
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-deep);
    font-size: 20px;
}

.search-results,
.category-links,
.hot-list,
.products-grid,
.checkout-form,
.cart-list,
.order-grid,
.order-actions {
    display: grid;
    gap: 12px;
}

.account-option,
.selected-account,
.order-card,
.support-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
}

.account-option {
    padding: 14px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.account-option:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.22);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.12);
}

.account-avatar,
.selected-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--panel-faint);
    border: 1px solid rgba(255,255,255,0.08);
}

.account-name {
    font-size: 16px;
    font-weight: 700;
}

.account-option > div,
.selected-account > div {
    min-width: 0;
}

.account-subline {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.account-select {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.selected-account {
    padding: 16px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
}

.selected-account h4 {
    font-size: 20px;
}

.selected-account p {
    font-size: 13px;
    line-height: 1.65;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.category-links {
    gap: 6px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.category-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--ink);
}

.category-link.active {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-strong);
    font-weight: 600;
}

.category-link iconify-icon {
    color: inherit;
    font-size: 18px;
}

.hot-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
}

.hot-rank {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--panel-faint);
    font-weight: 800;
    color: var(--muted);
}

.hot-rank.top {
    color: var(--accent);
}

.hot-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.hot-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted-deep);
    font-size: 12px;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    min-width: 0;
}

.product-search-field {
    flex: 1 1 280px;
    min-width: 0;
}

.toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    min-width: 0;
    flex: 1 1 360px;
    justify-content: flex-end;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.sort-group select {
    min-width: 160px;
    color: var(--ink);
    max-width: 100%;
}

.product-count {
    color: var(--muted-deep);
    font-size: 14px;
    min-width: 0;
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    min-width: 0;
}

.product-card {
    display: grid;
    gap: 0;
    border: 1px solid rgba(126, 189, 232, 0.09);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #173349 0%, #1b3a52 100%);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    min-width: 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 199, 255, 0.24);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.product-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: transparent;
    padding: 16px 16px 4px;
}

.product-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 400ms ease;
    background: rgba(7, 15, 22, 0.3);
}

.product-card:hover .product-cover-image {
    transform: scale(1.03);
}

.product-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(130, 187, 228, 0.35);
    font-size: 72px;
    border-radius: 6px;
    background: rgba(10, 21, 31, 0.26);
}

.product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-body {
    padding: 10px 16px 16px;
    display: grid;
    gap: 14px;
}

.product-body.compact {
    gap: 16px;
}

.product-summary {
    display: grid;
    gap: 10px;
    text-align: center;
}

.product-title,
.product-card h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    color: #ffffff;
}

.product-price-wrap {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-original {
    color: #ff5e5e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.product-price-current {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.product-actions-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.detail-button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #2490f5;
    color: #ffffff;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.detail-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.detail-button iconify-icon {
    font-size: 20px;
}

.buy-button.wide {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    border-radius: 6px;
    background: #4db05c;
    color: #ffffff;
    padding: 0 16px;
}

.buy-button.wide iconify-icon {
    font-size: 18px;
}

.product-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.product-visuals {
    display: grid;
    gap: 10px;
}

.product-visuals-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-visual-kicker,
.product-visual-total,
.card-kicker,
.product-price-label {
    color: var(--muted-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.card-kicker {
    margin: 0 0 8px;
}

.product-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-visual-chip {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.product-visual-image {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    padding: 7px;
}

.product-visual-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    font-size: 24px;
}

.product-visual-meta {
    display: grid;
    gap: 4px;
}

.product-visual-meta strong {
    font-size: 12px;
    line-height: 1.35;
}

.product-visual-count {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.product-points {
    display: grid;
    gap: 8px;
}

.product-point {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
}

.product-price-value {
    margin-top: 6px;
    font-size: 32px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.product-delivery {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted-deep);
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--muted-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.field textarea {
    resize: vertical;
    min-height: 92px;
}

.cart-box {
    margin-top: 18px;
}

.cart-list {
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
}

.cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    padding: 7px;
}

.cart-thumb-fallback {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: grid;
    place-items: center;
    color: rgba(251, 191, 36, 0.5);
    font-size: 24px;
}

.cart-info {
    min-width: 0;
}

.cart-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.cart-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.cart-side {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.cart-price {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.cart-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cart-pay,
.cart-remove {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.cart-pay {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent);
}

.cart-remove {
    background: rgba(255,255,255,0.06);
    color: var(--muted);
}

.payment-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-card {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
}

.order-card.empty {
    text-align: center;
}

.order-card h4 {
    margin: 0;
    font-size: 20px;
}

.order-card p {
    font-size: 14px;
    line-height: 1.75;
}

.order-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.status-pill {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-pill.unpaid {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
}

.status-pill.paid,
.status-pill.delivered,
.status-pill.completed {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.status-pill.pending,
.status-pill.processing,
.status-pill.waiting_online {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

.status-pill.retry,
.status-pill.expired,
.status-pill.cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.order-grid {
    margin-top: 14px;
}

.order-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.order-row:last-child {
    border-bottom: 0;
}

.order-label {
    color: var(--muted-deep);
    font-size: 13px;
}

.order-value {
    font-weight: 600;
    word-break: break-word;
}

.pay-button {
    justify-self: start;
}

.support-box {
    margin-top: 18px;
}

.support-card {
    padding: 14px;
    font-size: 14px;
    line-height: 1.8;
}

.empty-state {
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    text-align: center;
    line-height: 1.75;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 10px;
    z-index: 60;
}

.toast {
    min-width: 280px;
    padding: 14px 16px;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
}

.toast.info { background: #18181b; }
.toast.success { background: #166534; }
.toast.error { background: #991b1b; }

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.product-modal.hidden {
    display: none !important;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.7);
    backdrop-filter: blur(10px);
}

.product-modal-dialog {
    position: relative;
    width: min(980px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(126, 189, 232, 0.12);
    background: linear-gradient(180deg, #132d41 0%, #102536 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.product-modal-close {
    position: sticky;
    top: 14px;
    margin-left: auto;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 18, 27, 0.7);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.product-modal-close iconify-icon {
    font-size: 22px;
}

.product-modal-content {
    padding: 0 24px 24px;
    display: grid;
    gap: 22px;
}

.product-modal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.product-modal-cover-wrap .product-cover {
    padding: 0;
    aspect-ratio: 16 / 10;
    min-height: 260px;
}

.product-modal-cover-wrap .product-cover-image,
.product-modal-cover-wrap .product-cover-fallback {
    height: 100%;
}

.product-modal-main {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.product-modal-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-category,
.modal-badge,
.product-modal-section-head span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-category {
    background: rgba(36, 144, 245, 0.14);
    color: #88c9ff;
}

.modal-badge {
    background: rgba(239, 68, 68, 0.18);
    color: #ff9d9d;
}

.product-modal-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.product-modal-description {
    margin: 0;
    color: #cfdae3;
    font-size: 15px;
    line-height: 1.85;
}

.product-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-modal-meta-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 8px;
}

.product-modal-meta-card span {
    color: #86a3ba;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-modal-meta-card strong {
    font-size: 16px;
    line-height: 1.5;
}

.product-modal-cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.modal-buy-button {
    max-width: 240px;
}

.product-modal-section {
    display: grid;
    gap: 12px;
}

.product-modal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-modal-section-head span {
    background: rgba(255, 255, 255, 0.06);
    color: #c7d3dd;
}

.modal-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-visuals.is-modal {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1600px) {
    .layout-grid {
        grid-template-columns: minmax(240px, 270px) minmax(0, 1fr);
    }

    .checkout-column {
        grid-column: 1 / -1;
    }

    .checkout-card {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 1120px) {
    .nav-inner,
    .hero-banner,
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        width: min(1440px, calc(100vw - 24px));
        height: auto;
        padding: 12px 0;
    }

    .nav-brand,
    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav-brand {
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .toolbar-meta {
        width: 100%;
        justify-content: space-between;
    }

    .product-modal-hero,
    .product-modal-meta,
    .modal-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100vw - 16px, 100%);
        padding-top: 16px;
    }

    .catalog-toolbar {
        padding: 14px;
    }

    .product-visual-grid {
        grid-template-columns: 1fr;
    }

    .product-footer,
    .order-title,
    .toolbar-meta,
    .card-head {
        flex-direction: column;
        align-items: start;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-side {
        justify-items: start;
    }

    .cart-actions {
        justify-content: flex-start;
    }

    .tracker-form {
        grid-template-columns: 1fr;
    }

    .order-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-modal {
        padding: 10px;
    }

    .product-modal-content {
        padding: 0 14px 16px;
    }

    .product-actions-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}
