:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --ink: #14213d;
    --muted: #64748b;
    --line: #dbe5f4;
    --blue: #1e66d0;
    --blue-dark: #173f97;
    --teal: #1a8f8a;
    --gold: #f3b33d;
    --green: #138a57;
    --warning: #98620d;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(18, 35, 70, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

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

.catalog-card-link,.catalog-detail-link { color:inherit; text-decoration:none; }
.catalog-card-link { display:grid; }
.catalog-detail-link:hover { color:var(--blue); }
.site-footer {
    margin-top: 34px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--muted);
}

.site-footer-inner,
.site-footer .container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
}

.site-footer-copy {
    min-width: 0;
}

.site-footer-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer-mascot {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(18, 35, 70, .12));
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 900;
}

.site-footer-tagline {
    display: block;
    margin-top: 4px;
    line-height: 1.6;
}

.site-footer strong {
    color: var(--blue-dark);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
}

.footer-links a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
    padding: 6px 0;
}

.visitor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.visitor-stats .visitor-stat {
    min-height: 32px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    padding: 5px 10px;
    box-shadow: 0 6px 18px rgba(18, 35, 70, .06);
}

.visitor-stats a.visitor-stat:hover,
.footer-links a:hover {
    color: var(--blue);
}

.visitor-stat-primary {
    border-color: rgba(30, 102, 208, .22) !important;
    background: #eef6ff !important;
}

.visitor-stat-label {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: var(--blue-dark);
    font-weight: 900;
}

.visitor-stats strong {
    color: var(--blue-dark);
}

@media (max-width: 720px) {
    .site-footer-inner,
    .site-footer .container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .site-footer-mascot {
        width: 56px;
        height: 56px;
    }
}

button,
input,
textarea {
    font: inherit;
}

.site-hero {
    min-height: 82vh;
    padding: 18px clamp(18px, 4vw, 54px) 56px;
    display: grid;
    grid-template-rows: auto 1fr;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.92) 0%, rgba(245, 249, 255, 0.72) 46%, rgba(245, 249, 255, 0.18) 100%),
        url("../img/hero-esim-china.png") center / cover no-repeat;
}

.site-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0), var(--bg));
    pointer-events: none;
}

.site-nav {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--blue-dark);
    white-space: nowrap;
}

.brand-mark .fa-sim-card,
.site-footer-brand .fa-sim-card {
    margin-right: .5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d3768;
    font-size: 14px;
    font-weight: 700;
    position: relative;
}

.nav-actions a[aria-current="page"],
.nav-menu a[aria-current="page"] {
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.72);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(30, 102, 208, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--blue-dark);
    display: none;
    place-items: center;
    gap: 4px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(18, 35, 70, 0.08);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.site-nav.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-nav.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-nav.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
    width: min(280px, calc(100vw - 32px));
    position: absolute;
    z-index: 9999;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.site-nav.is-menu-open .nav-menu {
    display: grid;
}

.nav-menu a,
.nav-menu .mode-badge {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 10px 12px;
}

.nav-menu a {
    color: #10285b;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    background: #eef7ff;
    outline: none;
}

@media (max-width: 900px) {
    .site-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
    }

    .nav-actions {
        display: grid;
        gap: 8px;
        justify-content: flex-end;
        justify-items: end;
        position: static;
    }

    .nav-actions > a,
    .nav-actions > .member-pill {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .nav-menu {
        position: static;
        justify-self: end;
        margin-top: 8px;
    }
}

.mode-badge {
    border: 1px solid rgba(30, 102, 208, 0.2);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.72);
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.member-pill,
.login-link {
    border: 1px solid rgba(30, 102, 208, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--blue-dark);
    padding: 7px 11px;
    white-space: nowrap;
}

.hero-copy {
    width: min(760px, 100%);
    align-self: center;
    justify-self: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 900;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.98;
    color: #0f2e68;
    max-width: none;
}

.hero-lead {
    margin-top: 18px;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.55;
    color: #1f365e;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.primary-link,
.secondary-link {
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.primary-link {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 12px 26px rgba(30, 102, 208, 0.26);
}

.secondary-link {
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 102, 208, 0.18);
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    padding-bottom: 54px;
    position: relative;
    z-index: 2;
}

.setup-alert,
.notice {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.setup-alert {
    border: 1px solid #f5c26b;
    background: #fff8e8;
    color: #774900;
}

.notice {
    border: 1px solid #b7d4ff;
    background: #f0f6ff;
    color: #173d72;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.trust-strip div {
    min-height: 104px;
    background: var(--panel);
    padding: 20px;
    display: grid;
    gap: 6px;
    align-content: center;
}

.trust-strip strong {
    font-size: 18px;
    color: var(--blue-dark);
}

.trust-strip span,
.section-heading p,
.network-note,
.notes-grid p,
.info-grid p,
#selectedPlanText {
    color: var(--muted);
    line-height: 1.6;
}

.content-band,
.poster-section,
.order-panel {
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 10px 28px rgba(18, 35, 70, 0.08);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 20px;
}

.currency-switcher {
    width: min(100%, 520px);
    margin-top: 16px;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    gap: 8px 12px;
    align-items: center;
}

.currency-switcher label {
    color: #10285b;
    font-weight: 900;
}

.currency-switcher select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    padding: 0 12px;
    font-weight: 800;
}

.currency-switcher span {
    grid-column: 2;
    color: var(--muted);
    font-size: 13px;
}

.section-heading h2,
.order-panel h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    color: #10285b;
    margin-bottom: 8px;
}

.sales-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}

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

.plan-card {
    min-height: 330px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-rows: auto auto auto auto auto 1fr auto;
    gap: 9px;
    align-content: start;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.plan-card:hover,
.plan-card:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 12px 26px rgba(30, 102, 208, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.plan-card.is-selected {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 2px var(--blue), 0 12px 26px rgba(30, 102, 208, 0.12);
}

.plan-badge {
    width: fit-content;
    border-radius: 999px;
    background: #eef7ff;
    color: var(--blue-dark);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 900;
}

.plan-region {
    color: var(--muted);
    font-size: 14px;
}

.plan-card strong {
    font-size: 25px;
    line-height: 1.2;
    color: #10285b;
}

.carrier {
    font-weight: 900;
    color: var(--teal);
}

.plan-meta {
    font-weight: 900;
    font-size: 18px;
}

.price {
    margin-top: 8px;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    color: var(--blue);
}

.checkout-panel {
    position: sticky;
    top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 20px;
}

.checkout-panel h3 {
    font-size: 24px;
    color: #10285b;
    margin-bottom: 8px;
}

.exchange-note {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.paypal-slot {
    min-height: 150px;
    margin-top: 16px;
}

.login-prompt {
    min-height: 48px;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(30, 102, 208, 0.22);
}

.status-line {
    min-height: 26px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.status-line[data-tone="success"] {
    color: var(--green);
}

.status-line[data-tone="warn"] {
    color: var(--warning);
}

.status-line[data-tone="error"] {
    color: var(--danger);
}

.info-grid,
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-grid article,
.notes-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

.info-grid h3,
.notes-grid h3 {
    color: #10285b;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.info-index {
    display: block;
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 28px;
    font-weight: 900;
}

.poster-section img {
    display: block;
    width: min(100%, 920px);
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.notes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-panel {
    box-shadow: none;
}

dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

dl div {
    min-height: 92px;
    background: #ffffff;
    padding: 16px;
}

dt {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 6px;
}

dd {
    margin: 0;
    min-height: 20px;
    overflow-wrap: anywhere;
}

.catalog-page {
    background:
        linear-gradient(180deg, #f2f7fb 0%, #eef5f3 46%, #f7f4ee 100%);
}

.catalog-top {
    min-height: 360px;
    padding: 18px clamp(18px, 4vw, 54px) 74px;
    border-bottom: 1px solid rgba(219, 229, 244, 0.9);
    background:
        linear-gradient(90deg, rgba(246, 250, 255, 0.98) 0%, rgba(246, 250, 255, 0.86) 48%, rgba(246, 250, 255, 0.32) 100%),
        url("../img/hero-esim-china.png") center right / cover no-repeat;
}

.catalog-top .site-nav {
    margin-bottom: 52px;
}

.catalog-hero {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.catalog-hero h1 {
    max-width: 820px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.05;
}

.catalog-hero p:not(.eyebrow) {
    max-width: 680px;
    margin-top: 14px;
    color: #273f67;
    font-size: 18px;
    line-height: 1.65;
}

.catalog-hero-tags,
.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-hero-tags {
    margin-top: 20px;
}

.catalog-hero-tags span,
.catalog-active-filters span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(30, 102, 208, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--blue-dark);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 900;
}

.catalog-main {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    padding-bottom: 54px;
}

.catalog-tools,
.catalog-results {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 229, 244, 0.92);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 18px 40px rgba(18, 35, 70, 0.12);
}

.catalog-tools {
    backdrop-filter: blur(10px);
}

.catalog-store-select {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.catalog-store-select label,
.catalog-search {
    display: grid;
    gap: 10px;
}

.catalog-search-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-search label,
.catalog-filters span,
.catalog-store-select label,
.catalog-list-controls span {
    color: #10285b;
    font-weight: 900;
    font-size: 13px;
}

.catalog-search-head span {
    color: var(--muted);
    font-size: 13px;
}

.catalog-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
}

.catalog-search input,
.catalog-filters input,
.catalog-filters select,
.catalog-store-select select,
.catalog-list-controls select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    padding: 0 12px;
    box-shadow: inset 0 1px 0 rgba(18, 35, 70, 0.02);
}

.catalog-search input:focus,
.catalog-filters input:focus,
.catalog-filters select:focus,
.catalog-store-select select:focus,
.catalog-list-controls select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 102, 208, 0.12);
    outline: none;
}

.catalog-search input {
    min-height: 52px;
    font-size: 17px;
}

.catalog-filters {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.catalog-filters label {
    display: grid;
    gap: 7px;
}

.catalog-query,
.catalog-reset,
.catalog-login-card,
.catalog-add-cart,
.catalog-page-button,
.catalog-page-number {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    padding: 11px 16px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.catalog-query:hover,
.catalog-add-cart:hover,
.catalog-page-button:hover,
.catalog-page-number:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 20px rgba(30, 102, 208, 0.18);
    transform: translateY(-1px);
}

.catalog-reset {
    background: #f4f7fb;
    color: var(--blue-dark);
    border: 1px solid rgba(30, 102, 208, 0.18);
}

.catalog-reset:hover {
    border-color: rgba(30, 102, 208, 0.4);
    background: #eaf2ff;
}

.catalog-add-cart {
    width: 100%;
}

.catalog-add-cart.is-compact {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.catalog-results {
    margin-top: 18px;
}

.catalog-list-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-list-controls label {
    min-width: 180px;
    display: grid;
    gap: 7px;
}

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

.catalog-summary div {
    display: grid;
    gap: 4px;
}

.catalog-result-tools {
    justify-items: end;
}

.catalog-summary strong {
    color: var(--blue-dark);
    font-size: 23px;
}

.catalog-summary span,
#productPageRange {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.catalog-active-filters {
    margin-bottom: 16px;
}

.catalog-active-filters span {
    background: #fff8e8;
    border-color: #f5c26b;
    color: #774900;
}

.catalog-summary .catalog-view-toggle {
    min-height: 40px;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    border: 1px solid rgba(30, 102, 208, 0.18);
    border-radius: 8px;
    background: #f4f7fb;
    padding: 3px;
}

.catalog-summary .catalog-view-toggle button {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--blue-dark);
    padding: 6px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-summary .catalog-view-toggle button.is-active {
    background: #ffffff;
    color: var(--blue);
    box-shadow: 0 5px 12px rgba(18, 35, 70, 0.1);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-grid.is-table {
    display: block;
}

.catalog-card {
    min-height: 328px;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto auto;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(18, 35, 70, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.catalog-card:hover {
    border-color: rgba(30, 102, 208, 0.36);
    box-shadow: 0 16px 30px rgba(18, 35, 70, 0.1);
    transform: translateY(-2px);
}

.catalog-card-top,
.catalog-card-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-card-top span,
.catalog-card-codes span {
    border-radius: 999px;
    background: #eef7ff;
    color: var(--blue-dark);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.catalog-card-top span.is-on {
    background: #edf9f3;
    color: var(--green);
}

.catalog-card-top span.is-off {
    background: #f5f7fb;
    color: #64748b;
}

.catalog-card h2 {
    color: #10285b;
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.catalog-card-price {
    color: var(--blue);
    font-size: 31px;
    line-height: 1;
    font-weight: 900;
}

.catalog-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.catalog-card-meta div {
    min-height: 74px;
    background: #fbfdff;
    padding: 10px;
}

.catalog-card-meta dt {
    margin-bottom: 4px;
}

.catalog-card-meta dd {
    color: #10285b;
    font-weight: 900;
}

.catalog-card p {
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.catalog-card-codes span {
    background: #f5f7fb;
    color: #475569;
    font-weight: 800;
}

.catalog-empty {
    border: 1px dashed #b7d4ff;
    border-radius: 8px;
    padding: 28px;
    color: var(--muted);
    background: #f8fbff;
    text-align: center;
}

.catalog-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.catalog-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    font-size: 14px;
}

.catalog-table th,
.catalog-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.catalog-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fbff;
    color: #10285b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.catalog-table tbody tr:hover {
    background: #f8fbff;
}

.catalog-table tbody tr:last-child td {
    border-bottom: 0;
}

.catalog-table td:nth-child(6) {
    color: var(--blue);
    font-weight: 900;
    white-space: nowrap;
}

.catalog-table-name {
    min-width: 260px;
}

.catalog-table-name strong,
.catalog-table-name span,
.catalog-table td small {
    display: block;
}

.catalog-table-name strong {
    color: #10285b;
    line-height: 1.35;
}

.catalog-table-name span,
.catalog-table td small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.catalog-table td:last-child span,
.catalog-table td:last-child small {
    overflow-wrap: anywhere;
}

.catalog-pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.catalog-page-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
}

.catalog-pagination .catalog-page-button,
.catalog-pagination .catalog-page-number,
.catalog-page-ellipsis {
    width: 41px;
    min-width: 41px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid #ececec;
    border-radius: 0;
    background: #dedede;
    color: #12324e;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.catalog-pagination .catalog-page-button:first-child {
    border-radius: 5px 0 0 5px;
}

.catalog-pagination .catalog-page-button:last-child {
    border-right: 0;
    border-radius: 0 5px 5px 0;
}

.catalog-pagination .catalog-page-number[aria-current="page"] {
    background: #ff7900;
    color: #ffffff;
    border-right-color: #ff7900;
}

.catalog-page-ellipsis {
    pointer-events: none;
}

.catalog-pagination .catalog-page-button:hover,
.catalog-pagination .catalog-page-number:hover {
    background: #cfcfcf;
    color: #12324e;
    box-shadow: none;
    transform: none;
}

.catalog-pagination .catalog-page-number[aria-current="page"]:hover {
    background: #ff7900;
    color: #ffffff;
}

.catalog-pagination .catalog-page-button:disabled,
.catalog-pagination .catalog-page-number:disabled,
.catalog-query:disabled,
.catalog-reset:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.catalog-login-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 100%);
}

.cart-count-pill {
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 900;
}

.cart-top {
    min-height: 300px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}

.cart-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 18px 40px rgba(18, 35, 70, 0.1);
}

.cart-summary-panel {
    position: sticky;
    top: 18px;
}

.cart-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.cart-panel h2 {
    color: #10285b;
    font-size: 26px;
    line-height: 1.2;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 88px 110px 52px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.cart-item strong,
.cart-item span,
.cart-item small {
    display: block;
}

.cart-item strong {
    color: #10285b;
    line-height: 1.35;
}

.cart-item span,
.cart-item small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.cart-item-price,
.cart-item-total {
    color: var(--blue);
    font-weight: 900;
    white-space: nowrap;
}

.cart-qty-input {
    width: 72px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
}

.cart-qty-readonly {
    width: 72px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: #10285b;
    font-weight: 900;
}

.cart-link-button {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 900;
    cursor: pointer;
}

.cart-empty {
    border: 1px dashed #b7d4ff;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--muted);
    padding: 28px;
    text-align: center;
}

.cart-summary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
}

.cart-summary-list div {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-summary-list .is-total dd {
    color: var(--blue);
    font-size: 28px;
    font-weight: 900;
}

.cart-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.primary-link.is-disabled,
.primary-link[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.cart-checkout-note {
    margin-top: 16px;
    margin-bottom: 0;
}

.catalog-card-loading span,
.catalog-card-loading h2,
.catalog-card-loading .catalog-card-price,
.catalog-card-loading .catalog-card-meta div,
.catalog-card-loading p {
    min-height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #edf3fb 0%, #f8fbff 50%, #edf3fb 100%);
    background-size: 200% 100%;
    animation: catalog-loading 1.2s ease-in-out infinite;
}

.catalog-card-loading h2 {
    min-height: 54px;
}

.catalog-card-loading .catalog-card-price {
    min-height: 31px;
    width: 44%;
}

@keyframes catalog-loading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 980px) {
    .site-hero {
        min-height: 76vh;
        background:
            linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(245, 249, 255, 0.86) 48%, rgba(245, 249, 255, 0.18) 100%),
            url("../img/hero-esim-china.png") center / cover no-repeat;
    }

    .sales-layout,
    .trust-strip,
    .info-grid,
    .notes-grid,
    dl {
        grid-template-columns: 1fr;
    }

    .checkout-panel {
        position: static;
    }

    .currency-switcher {
        grid-template-columns: 1fr;
    }

    .currency-switcher span {
        grid-column: auto;
    }

    .catalog-filters,
    .cart-layout,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-summary-panel {
        position: static;
    }

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

    .catalog-search-row {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(104px, auto));
    }
}

@media (max-width: 680px) {
    .site-hero {
        min-height: 720px;
        padding: 16px 16px 46px;
        background:
            linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(245, 249, 255, 0.9) 45%, rgba(245, 249, 255, 0.2) 100%),
            url("../img/hero-esim-china.png") center bottom / cover no-repeat;
    }

    .site-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
    }

    .nav-actions {
        gap: 8px;
        display: grid;
        justify-content: flex-end;
        justify-items: end;
        position: static;
    }

    .nav-actions > a,
    .nav-actions > .member-pill {
        display: none;
    }

    .nav-menu {
        position: static;
        justify-self: end;
        margin-top: 8px;
    }

    .hero-copy {
        align-self: center;
        padding-top: 22px;
    }

    .hero-actions,
    .plan-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .primary-link,
    .secondary-link {
        width: 100%;
    }

    main {
        width: min(100% - 24px, 1180px);
    }

    .plan-card {
        min-height: 300px;
    }

    .price {
        font-size: 34px;
    }

    .catalog-top {
        padding: 16px 16px 32px;
    }

    .catalog-top .site-nav {
        margin-bottom: 32px;
    }

    .catalog-main {
        width: min(100% - 24px, 1180px);
    }

    .catalog-filters,
    .cart-layout,
    .catalog-grid,
    .catalog-store-select,
    .catalog-search-row,
    .catalog-card-meta {
        grid-template-columns: 1fr;
    }

    .catalog-list-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .catalog-list-controls label {
        min-width: 0;
    }

    .catalog-card {
        min-height: 0;
    }

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

    .catalog-result-tools {
        width: 100%;
        justify-items: stretch;
    }

    .catalog-view-toggle {
        width: 100%;
    }

    .catalog-query,
    .catalog-reset,
    .catalog-add-cart,
    .catalog-page-button {
        width: 100%;
    }

    .catalog-pagination .catalog-page-button {
        width: 41px;
    }

    .catalog-page-list {
        width: auto;
    }
}
