:root {
    --ios-navy: #07152f;
    --ios-navy-2: #0b2045;
    --ios-blue: #075bff;
    --ios-blue-dark: #0449d8;
    --ios-blue-soft: #edf4ff;
    --ios-bg: #f5f7fb;
    --ios-card: #fff;
    --ios-text: #101c34;
    --ios-muted: #667085;
    --ios-border: #dce3ef;
    --ios-green: #169b52;
    --ios-green-soft: #ecf8f0;
    --ios-red: #f5222d;
    --ios-orange: #f59e0b;
    --ios-orange-soft: #fff7e8;
    --ios-shadow: 0 10px 30px rgba(18, 38, 72, .065);
    --ios-radius: 12px;
    --ios-container: 1680px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ios-text); background: var(--ios-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
body.ios-modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.ios-site { min-height: 100vh; display: flex; flex-direction: column; }
.ios-container { width: min(calc(100% - 32px), var(--ios-container)); margin: 0 auto; }
.ios-main { flex: 1; padding: 18px 0 22px; }
.ios-icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ios-muted { color: var(--ios-muted); }
.ios-text-blue { color: var(--ios-blue); }
.ios-price { color: var(--ios-red); font-weight: 700; }
.ios-price-lg { font-size: 32px; line-height: 1.15; }
.ios-card { background: var(--ios-card); border: 1px solid #e1e7f0; border-radius: var(--ios-radius); box-shadow: var(--ios-shadow); }
.ios-card-body { padding: 20px; }
.ios-page-title { margin: 8px 0 14px; }
.ios-page-title h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.ios-page-title p { margin: 4px 0 0; color: var(--ios-muted); }
.ios-page-title-icon { color: var(--ios-blue); margin-right: 8px; }
.ios-breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--ios-muted); margin: 0 0 10px; font-size: 14px; }
.ios-breadcrumb a:hover { color: var(--ios-blue); }

/* Header */
.ios-header { background: #fff; }
.ios-header-main { background: var(--ios-navy); color: #fff; }
.ios-header-inner { height: 62px; display: flex; align-items: center; }
.ios-brand { font-size: 23px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.ios-desktop-nav { display: flex; align-self: stretch; gap: 42px; margin-left: 100px; }
.ios-desktop-nav a { display: flex; align-items: center; position: relative; font-weight: 600; color: rgba(255,255,255,.92); }
.ios-desktop-nav a:hover, .ios-desktop-nav a.active { color: #fff; }
.ios-desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: #1681ff; border-radius: 2px; }
.ios-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ios-header-search { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; color: #fff; background: rgba(255,255,255,.06); cursor: pointer; transition: .18s ease; }
.ios-header-search:hover, .ios-header-search[aria-expanded="true"] { color: #fff; border-color: #62a7ff; background: rgba(22,129,255,.2); }
.ios-header-search .ios-icon { width: 19px; height: 19px; }
.ios-header-support { padding: 8px 17px; border: 1px solid rgba(255,255,255,.85); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.ios-header-support:hover { border-color: #62a7ff; color: #9dcbff; }
.ios-mobile-back { display: none; }
.ios-site-search { overflow: hidden; visibility: hidden; pointer-events: none; max-height: 0; border-bottom: 0 solid var(--ios-border); background: #fff; opacity: 0; transform: translateY(-6px); transition: max-height .22s ease, opacity .18s ease, transform .18s ease, border-width .18s ease, visibility 0s linear .22s; }
.ios-site-search.open { visibility: visible; pointer-events: auto; max-height: 78px; border-bottom-width: 1px; opacity: 1; transform: none; transition-delay: 0s; }
.ios-site-search-inner { height: 68px; position: relative; display: flex; align-items: center; }
.ios-site-search-inner > .ios-icon { position: absolute; left: 15px; color: #6a7890; }
.ios-site-search-inner input { width: 100%; height: 44px; padding: 0 48px 0 46px; border: 1px solid #cfd8e6; border-radius: 10px; color: var(--ios-text); background: #f8faff; outline: 0; }
.ios-site-search-inner input:focus { border-color: var(--ios-blue); background: #fff; box-shadow: 0 0 0 3px rgba(7,91,255,.1); }
.ios-site-search-inner button { position: absolute; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; color: #7a879c; background: transparent; font-size: 25px; cursor: pointer; }
.ios-assurance-bar { border-bottom: 1px solid var(--ios-border); background: #fff; }
.ios-assurance-inner { height: 46px; display: flex; justify-content: center; align-items: center; gap: 18px; color: #263550; font-size: 14px; }
.ios-assurance-inner span { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.ios-assurance-inner i { color: #98a2b3; font-style: normal; }

/* Buttons / forms */
.ios-btn { min-height: 42px; padding: 9px 20px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 650; cursor: pointer; transition: .18s ease; background: #fff; }
.ios-btn:hover { transform: translateY(-1px); }
.ios-btn-primary { color: #fff; background: var(--ios-blue); border-color: var(--ios-blue); box-shadow: 0 7px 16px rgba(7,91,255,.16); }
.ios-btn-primary:hover { background: var(--ios-blue-dark); border-color: var(--ios-blue-dark); color: #fff; }
.ios-btn-outline { border-color: var(--ios-blue); color: var(--ios-blue); background: #fff; }
.ios-btn-outline:hover { color: var(--ios-blue-dark); background: var(--ios-blue-soft); }
.ios-btn-ghost { color: var(--ios-blue); background: transparent; }
.ios-btn-danger { background: var(--ios-red); color: #fff; }
.ios-btn-block { width: 100%; }
.ios-field { margin-bottom: 17px; }
.ios-field label, .ios-label { display: block; margin-bottom: 7px; color: #24324a; font-weight: 600; }
.ios-required { color: var(--ios-red); }
.ios-input, .ios-select, .ios-textarea { width: 100%; min-height: 44px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; color: var(--ios-text); padding: 10px 13px; outline: 0; transition: border-color .18s, box-shadow .18s; }
.ios-textarea { min-height: 130px; resize: vertical; }
.ios-input:focus, .ios-select:focus, .ios-textarea:focus { border-color: var(--ios-blue); box-shadow: 0 0 0 3px rgba(7,91,255,.1); }
.ios-input-wrap { position: relative; }
.ios-input-wrap .ios-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #63728d; }
.ios-input-wrap .ios-input { padding-left: 42px; }
.ios-field-help { display: block; color: var(--ios-muted); font-size: 13px; margin-top: 6px; }
.ios-form-actions { display: flex; gap: 10px; }
.ios-form-actions > * { flex: 1; }

/* Categories and products */
.ios-section-head { display: flex; justify-content: space-between; align-items: end; margin: 12px 0 10px; }
.ios-section-head h2 { font-size: 22px; margin: 0; }
.ios-section-head p { margin: 0 0 2px 12px; color: var(--ios-muted); font-size: 13px; }
.ios-section-title-group { display: flex; align-items: end; }
.ios-section-head a { color: var(--ios-blue); font-size: 14px; }
.ios-category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 2px 0 18px; }
.ios-category-item { min-height: 118px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 9px; border: 1px solid #e1e7f0; border-radius: 12px; background: linear-gradient(180deg,#fff 0%,#fbfcff 100%); text-align: center; box-shadow: 0 6px 20px rgba(30,55,90,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ios-category-item:hover, .ios-category-item.active { transform: translateY(-2px); border-color: #b7cdf8; box-shadow: 0 12px 28px rgba(7,91,255,.1); }
.ios-category-icon { width: 50px; height: 50px; position: relative; display: grid; place-items: center; margin-bottom: 9px; border-radius: 15px; font-size: 27px; line-height: 1; box-shadow: inset 0 0 0 1px rgba(17,35,67,.045), 0 7px 16px rgba(25,49,84,.07); transition: transform .18s ease, box-shadow .18s ease; }
.ios-category-item:hover .ios-category-icon, .ios-category-item.active .ios-category-icon { transform: translateY(-2px) scale(1.04); box-shadow: inset 0 0 0 1px rgba(17,35,67,.04), 0 10px 20px rgba(25,49,84,.12); }
.ios-category-icon .ios-icon { width: 27px; height: 27px; }
.ios-category-tone-1 { color: #1769e0; background: linear-gradient(145deg,#f2f7ff,#dceaff); }
.ios-category-tone-2 { color: #0d8a63; background: linear-gradient(145deg,#f1fbf7,#d9f3e9); }
.ios-category-tone-3 { color: #7856d8; background: linear-gradient(145deg,#f7f4ff,#e8e0ff); }
.ios-category-tone-4 { color: #d46b18; background: linear-gradient(145deg,#fff8f1,#ffe5cf); }
.ios-category-tone-5 { color: #d23d74; background: linear-gradient(145deg,#fff5f8,#ffe0ec); }
.ios-category-tone-6 { color: #526174; background: linear-gradient(145deg,#f6f8fa,#e5eaf0); }
.ios-category-item strong { font-size: 14px; }
.ios-category-item small { display: block; margin-top: 3px; color: var(--ios-muted); font-size: 11px; white-space: nowrap; }
.ios-category-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ios-blue); color: #fff; font: 700 11px/18px sans-serif; }
.ios-catalog-actions { display: flex; justify-content: flex-end; margin: 0; }
.ios-catalog-actions .ios-select { width: 176px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.ios-products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.ios-product-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.ios-product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18,38,72,.1); }
.ios-product-card.sold-out { opacity: .7; }
.ios-product-cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(140deg,#061632,#0a51b9); }
.ios-product-cover img { width: 100%; height: 100%; object-fit: cover; }
.ios-product-content { flex: 1; display: flex; flex-direction: column; padding: 8px 10px 10px; }
.ios-product-name { margin: 0 0 5px; font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ios-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: var(--ios-blue-soft); color: var(--ios-blue); font-size: 10px; white-space: nowrap; }
.ios-badge-green { background: var(--ios-green-soft); color: var(--ios-green); }
.ios-badge-orange { background: var(--ios-orange-soft); color: #c77500; }
.ios-badge-gray { background: #f0f2f5; color: #667085; }
.ios-product-sold { margin-top: 4px; color: #778399; font-size: 10px; }
.ios-product-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 5px; }
.ios-product-bottom .ios-price { font-size: 15px; }
.ios-product-buy { min-height: 29px; padding: 4px 10px; border-radius: 5px; background: var(--ios-blue); color: #fff; font-size: 11px; }
.ios-product-buy { border: 0; cursor: pointer; }
.ios-empty { padding: 50px 20px; text-align: center; color: var(--ios-muted); }
.ios-product-search-empty { padding: 38px 20px; color: var(--ios-muted); text-align: center; }
.ios-product-loader { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #738098; font-size: 13px; text-align: center; }
.ios-product-spinner { width: 18px; height: 18px; border: 2px solid #cfddf5; border-top-color: var(--ios-blue); border-radius: 50%; animation: iosProductSpin .7s linear infinite; }
.ios-product-spinner[hidden] { display: none; }
.ios-product-load-more { min-height: 34px; padding: 5px 15px; border: 1px solid #bfd2f5; border-radius: 6px; color: var(--ios-blue); background: #f4f8ff; cursor: pointer; }
.ios-product-load-more:disabled { cursor: wait; opacity: .65; }
.ios-product-pagination { padding: 12px 0 20px; text-align: center; }
@keyframes iosProductSpin { to { transform: rotate(360deg); } }

/* Alerts and shared panels */
.ios-alert { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.ios-alert .ios-icon { flex: 0 0 auto; margin-top: 1px; }
.ios-alert-info { color: var(--ios-blue); background: var(--ios-blue-soft); border: 1px solid #c9dcff; }
.ios-alert-warning { color: #d87200; background: var(--ios-orange-soft); border: 1px solid #f5d59b; }
.ios-alert-danger { color: #d92d20; background: #fff1f0; border: 1px solid #ffc9c6; }
.ios-divider { height: 1px; background: var(--ios-border); margin: 16px 0; }

/* Buy */
.ios-buy-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 16px; align-items: start; }
.ios-buy-main { min-width: 0; display: grid; gap: 14px; }
.ios-buy-overview { display: grid; grid-template-columns: 230px minmax(0,1fr); column-gap: 22px; row-gap: 12px; padding: 18px; overflow: hidden; }
.ios-buy-image { grid-row: 1 / span 2; overflow: hidden; border-radius: 8px; background: var(--ios-navy); aspect-ratio: 1 / 1; }
.ios-buy-image img { width: 100%; height: 100%; object-fit: cover; }
.ios-buy-summary { min-width: 0; }
.ios-buy-summary h1 { margin: 0 0 11px; font-size: 24px; line-height: 1.25; }
.ios-buy-summary .ios-badges { margin-bottom: 16px; }
.ios-buy-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 0; }
.ios-buy-price-row del { color: #8b95a7; }
.ios-buy-delivery-note { grid-column: 2; align-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid #c9dcff; border-left: 4px solid var(--ios-blue); border-radius: 8px; color: #184f9f; background: linear-gradient(135deg,#f4f8ff 0%,#eaf2ff 100%); box-shadow: 0 6px 18px rgba(38,103,214,.08); }
.ios-buy-delivery-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--ios-blue); box-shadow: 0 5px 12px rgba(38,103,214,.25); }
.ios-buy-delivery-copy { min-width: 0; display: grid; gap: 2px; line-height: 1.35; }
.ios-buy-delivery-copy strong { font-size: 14px; font-weight: 700; color: #174788; }
.ios-buy-delivery-copy small { font-size: 12px; color: #526a8d; }
.ios-buy-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 2px -18px -18px; padding: 15px 18px; border-top: 1px solid var(--ios-border); background: #fbfcff; }
.ios-buy-meta-item { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; }
.ios-buy-meta-item + .ios-buy-meta-item { border-left: 1px solid var(--ios-border); }
.ios-buy-meta-icon { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ios-blue); background: var(--ios-blue-soft); }
.ios-buy-meta-item > span:last-child { min-width: 0; display: grid; gap: 2px; }
.ios-buy-meta-item small { color: #738098; font-size: 11px; }
.ios-buy-meta-item strong { overflow: hidden; color: #1b2940; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ios-buy-details { padding: 14px; }
.ios-buy-form-card { padding: 18px; position: sticky; top: 16px; }
.ios-card-title { margin: 0 0 15px; font-size: 20px; }
.ios-buy-form-product { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; margin: -2px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ios-border); }
.ios-buy-form-product img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--ios-navy); }
.ios-buy-form-product strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ios-buy-form-product .ios-price { font-size: 15px; white-space: nowrap; }
.ios-qty { display: grid; grid-template-columns: 46px 1fr 46px; height: 44px; }
.ios-qty button { border: 1px solid #cfd8e6; background: #f8fafc; cursor: pointer; font-size: 20px; }
.ios-qty button:first-child { border-radius: 6px 0 0 6px; }
.ios-qty button:last-child { border-radius: 0 6px 6px 0; }
.ios-qty input { min-width: 0; border: solid #cfd8e6; border-width: 1px 0; text-align: center; outline: 0; }
.ios-pay-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.ios-pay-option { min-height: 50px; position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ios-border); border-radius: 6px; background: #fff; cursor: pointer; }
.ios-pay-option.active { border-color: var(--ios-blue); color: var(--ios-blue); background: var(--ios-blue-soft); box-shadow: inset 0 0 0 1px var(--ios-blue); }
.ios-pay-option.active::after { content: "✓"; position: absolute; right: -1px; bottom: -1px; width: 19px; height: 19px; border-radius: 10px 0 5px 0; color: #fff; background: var(--ios-blue); font: 700 11px/19px sans-serif; }
.ios-summary-price { display: flex; justify-content: space-between; align-items: baseline; margin: 15px 0; }
.ios-details-list { display: grid; gap: 8px; }
.ios-details-list details { border: 1px solid var(--ios-border); border-radius: 6px; background: #fff; }
.ios-details-list summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.ios-details-list summary::-webkit-details-marker { display: none; }
.ios-details-list summary::after { content: "⌄"; color: var(--ios-blue); }
.ios-details-list details[open] summary::after { transform: rotate(180deg); }
.ios-details-content { border-top: 1px solid var(--ios-border); padding: 14px; color: #42526b; }
.ios-details-content img { max-width: 100%; height: auto; cursor: zoom-in; }
.ios-process-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ios-process-row span { padding: 9px; border-radius: 6px; text-align: center; background: #f4f7fb; color: #546177; font-size: 12px; }
.ios-mobile-buybar { display: none; }

/* Order flow */
.ios-order-steps { display: flex; align-items: center; margin: 4px 0 18px; padding: 0 58px; }
.ios-order-step { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: #7a8699; }
.ios-step-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ccd5e2; border-radius: 50%; background: #fff; font-size: 13px; }
.ios-order-step.active { color: var(--ios-blue); font-weight: 650; }
.ios-order-step.completed { color: var(--ios-text); }
.ios-order-step.active .ios-step-dot, .ios-order-step.completed .ios-step-dot { color: #fff; border-color: var(--ios-blue); background: var(--ios-blue); }
.ios-step-line { height: 1px; flex: 1; margin: 0 18px; background: #ccd5e2; }
.ios-step-line:has(+ .completed), .ios-step-line:has(+ .active) { background: var(--ios-blue); }
.ios-order-grid { display: grid; grid-template-columns: minmax(0,1.55fr) 360px; gap: 16px; align-items: start; }
.ios-order-main, .ios-payment-card, .ios-query-card, .ios-help-card { padding: 20px; }
.ios-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ios-border); }
.ios-order-number { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ios-copy-button { border: 0; padding: 3px; color: #65728a; background: transparent; cursor: pointer; }
.ios-order-product { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 16px; align-items: center; padding: 14px 0; }
.ios-order-product-image { border-radius: 7px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ios-navy); }
.ios-order-product-image img { width: 100%; height: 100%; object-fit: cover; }
.ios-order-product h2 { margin: 0 0 8px; font-size: 20px; }
.ios-data-rows { border-top: 1px solid var(--ios-border); }
.ios-data-row { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #edf0f4; }
.ios-data-row span:first-child { color: #536075; }
.ios-data-row.total { min-height: 46px; font-weight: 700; }
.ios-payment-card { position: sticky; top: 16px; }
.ios-payment-card h2 { margin: 0 0 5px; }
.ios-secure-line { display: flex; gap: 7px; align-items: center; color: #6b778c; font-size: 13px; margin-bottom: 14px; }
.ios-countdown { padding: 10px 12px; margin-bottom: 16px; color: #36445b; border: 1px solid #c7d9fa; border-radius: 6px; background: #f3f7ff; }
.ios-countdown strong { color: var(--ios-blue); font-size: 18px; }
.ios-payment-choice { min-height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border: 1px solid var(--ios-blue); border-radius: 6px; }
.ios-payment-choice i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--ios-blue); color: #fff; font: 700 10px/1 sans-serif; }
.ios-order-actions { display: flex; justify-content: center; margin-top: 14px; }

/* QR */
.ios-qr-card { padding: 14px 20px 16px; text-align: center; }
.ios-qr-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ios-border); text-align: left; }
.ios-qr-box { width: 236px; min-height: 236px; display: grid; place-items: center; margin: 16px auto 5px; padding: 9px; border: 1px solid #e4e8ef; background: #fff; }
.ios-qr-box img { width: 218px; height: 218px; image-rendering: pixelated; }
.ios-waiting { margin: 10px 0; color: #455269; }
.ios-waiting-dots { display: inline-flex; gap: 8px; margin-right: 8px; }
.ios-waiting-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ios-blue); animation: iosPulse 1.2s infinite; }
.ios-waiting-dots i:nth-child(2) { animation-delay: .2s; }.ios-waiting-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes iosPulse { 0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1)} }
.ios-qr-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.ios-qr-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--ios-border); color: #647086; font-size: 12px; }
.ios-qr-guide span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ios-qr-guide i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #cdd6e2; border-radius: 50%; font-style: normal; }

/* Search */
.ios-query-layout { display: grid; grid-template-columns: minmax(0,2fr) 340px; gap: 16px; align-items: start; }
.ios-query-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ios-query-card-head h2 { margin: 0; font-size: 20px; }
.ios-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 16px; border: 1px solid var(--ios-border); border-radius: 6px; overflow: hidden; }
.ios-tab-button { min-height: 52px; border: 0; border-right: 1px solid var(--ios-border); background: #fff; color: #3d4c64; cursor: pointer; }
.ios-tab-button:last-child { border-right: 0; }
.ios-tab-button.active { color: var(--ios-blue); box-shadow: inset 0 -2px var(--ios-blue); background: #fbfdff; font-weight: 650; }
.ios-tab-panel { display: none; }
.ios-tab-panel.active { display: block; }
.ios-help-card h2, .ios-methods h2 { margin: 0 0 12px; font-size: 20px; }
.ios-number-list { display: grid; gap: 10px; margin-bottom: 16px; }
.ios-number-list div { display: flex; gap: 9px; align-items: center; }
.ios-number-list i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ios-blue); color: #fff; font: 700 11px/1 sans-serif; }
.ios-help-list { margin: 7px 0 16px; padding-left: 18px; color: #526077; }
.ios-methods { margin-top: 14px; padding: 14px 18px; }
.ios-method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ios-method-item { display: flex; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--ios-border); border-radius: 6px; }
.ios-method-item > .ios-icon { flex: 0 0 auto; color: var(--ios-blue); font-size: 27px; }
.ios-method-item strong, .ios-method-item small { display: block; }
.ios-method-item small { color: var(--ios-muted); }

/* Order info and errors */
.ios-order-list { display: grid; gap: 16px; }
.ios-orderinfo-card { padding: 20px; }
.ios-orderinfo-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 20px; }
.ios-carmi { padding: 16px; border-radius: 7px; background: #f7f9fc; border: 1px solid var(--ios-border); }
.ios-carmi h3 { margin: 0 0 8px; }
.ios-error-card { max-width: 980px; margin: 8px auto 16px; padding: 36px 60px; }
.ios-error-hero { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: center; gap: 28px; }
.ios-error-symbol { width: 150px; height: 150px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: #ec3f28; background: #fff3f0; }
.ios-error-symbol .ios-icon { width: 90px; height: 90px; stroke-width: 1.5; }
.ios-error-content h1 { margin: 5px 0; font-size: 34px; }
.ios-error-content p { color: #546177; }
.ios-error-actions { display: flex; gap: 12px; margin-top: 16px; }
.ios-error-reasons { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 980px; margin: 0 auto 14px; }
.ios-error-reason { padding: 16px; }
.ios-error-reason h3 { font-size: 16px; margin: 0 0 5px; }
.ios-error-reason p { margin: 0; color: var(--ios-muted); font-size: 13px; }

/* Trust/footer */
.ios-trust { padding: 0 0 12px; background: var(--ios-bg); }
.ios-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ios-border); border-radius: var(--ios-radius); background: #fff; box-shadow: var(--ios-shadow); }
.ios-trust-item { min-height: 82px; display: flex; justify-content: center; align-items: center; gap: 12px; position: relative; padding: 12px; }
.ios-trust-item:not(:last-child)::after { content: ""; position: absolute; right: 0; height: 42px; width: 1px; background: var(--ios-border); }
.ios-trust-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ios-blue); background: var(--ios-blue-soft); font-size: 23px; }
.ios-trust-item strong, .ios-trust-item small { display: block; }
.ios-trust-item small { color: var(--ios-muted); font-size: 11px; }
.ios-footer { background: var(--ios-bg); padding-bottom: 12px; }
.ios-footer-inner { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--ios-navy); border-radius: 7px; }
.ios-footer nav { display: flex; align-items: center; gap: 28px; }
.ios-footer nav span { width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.ios-footer button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; }
.ios-footer p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
.ios-footer-custom { color: rgba(255,255,255,.72); font-size: 11px; }
.ios-bottom-nav { display: none; }

/* Modal / toast */
.ios-modal { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.ios-modal.open { display: flex; }
.ios-modal-backdrop { position: absolute; inset: 0; background: rgba(9,19,38,.48); backdrop-filter: blur(2px); }
.ios-modal-dialog { position: relative; width: min(100%,560px); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border: 1px solid var(--ios-border); border-radius: 12px; background: #fff; box-shadow: 0 25px 80px rgba(8,24,52,.25); animation: iosModalIn .2s ease; }
.ios-modal-sm { width: min(100%,440px); }
@keyframes iosModalIn { from{opacity:0;transform:translateY(8px) scale(.98)} to{opacity:1;transform:none} }
.ios-modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #68758a; font-size: 25px; cursor: pointer; }
.ios-modal-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.ios-modal-heading h2 { margin: 0; font-size: 23px; }
.ios-modal-heading p { margin: 4px 0 0; color: var(--ios-muted); }
.ios-heading-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ios-blue); border-radius: 50%; font-size: 22px; }
.ios-modal-content { color: #34425a; }
.ios-modal-content img { max-width: 100%; height: auto; }
.ios-contact-list { display: grid; gap: 8px; margin-bottom: 16px; }
.ios-contact-list div { display: flex; justify-content: space-between; padding: 12px; border-radius: 6px; background: #f5f7fb; }
.ios-toast-stack { position: fixed; z-index: 1200; top: 18px; right: 18px; display: grid; gap: 8px; }
.ios-toast { min-width: 260px; max-width: 380px; padding: 12px 15px; color: #fff; border-radius: 7px; background: var(--ios-navy); box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: iosToast .25s ease; }
.ios-toast.success { background: #16834a; }.ios-toast.warning { background: #c87300; }.ios-toast.error { background: #d92d20; }
@keyframes iosToast { from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none} }
.ios-image-modal .ios-modal-dialog { width: auto; max-width: min(1100px,96vw); padding: 8px; background: #fff; }
.ios-image-modal img { max-height: 88vh; }

@media (min-width: 1280px) {
    .ios-products-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (min-width: 1560px) {
    .ios-products-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .ios-desktop-nav { margin-left: 50px; gap: 25px; }
    .ios-products-grid { grid-template-columns: repeat(3,1fr); }
    .ios-category-grid { grid-template-columns: repeat(3,1fr); }
    .ios-buy-grid, .ios-order-grid, .ios-query-layout { grid-template-columns: 1fr; }
    .ios-buy-main { display: contents; }
    .ios-buy-overview { order: 0; }
    .ios-buy-form-card { order: 1; }
    .ios-buy-details { order: 2; }
    .ios-buy-form-card, .ios-payment-card { position: static; }
}

@media (max-width: 767px) {
    body { font-size: 14px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .ios-container { width: min(calc(100% - 24px), var(--ios-container)); }
    .ios-main { padding: 12px 0 15px; }
    .ios-header-main { background: #fff; color: var(--ios-text); border-bottom: 1px solid #edf0f4; }
    .ios-header-inner { height: 58px; justify-content: center; position: relative; }
    .ios-brand { font-size: 20px; }
    .ios-brand { max-width: calc(100% - 190px); overflow: hidden; text-overflow: ellipsis; }
    .ios-desktop-nav { display: none; }
    .ios-mobile-back { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 24px; }
    body.ios-home .ios-mobile-back { display: none; }
    .ios-header-actions { position: absolute; right: 0; gap: 6px; }
    .ios-header-search { width: 34px; height: 34px; border-color: #d9e2ef; color: var(--ios-blue); background: #f4f7fb; }
    .ios-header-search:hover, .ios-header-search[aria-expanded="true"] { color: var(--ios-blue); border-color: #aac7ff; background: var(--ios-blue-soft); }
    .ios-header-support { padding: 4px 0; border: 0; color: var(--ios-blue); background: transparent; font-size: 13px; font-weight: 600; }
    .ios-site-search.open { max-height: 70px; }
    .ios-site-search-inner { height: 60px; }
    .ios-site-search-inner > .ios-icon { left: 13px; }
    .ios-site-search-inner input { height: 42px; padding-left: 42px; }
    .ios-site-search-inner button { right: 7px; }
    .ios-assurance-inner { height: 42px; gap: 10px; font-size: 12px; }
    .ios-assurance-inner .ios-icon { width: 1.1em; }
    .ios-breadcrumb { margin-bottom: 8px; }
    .ios-page-title { margin: 6px 0 12px; }
    .ios-page-title h1 { font-size: 24px; }
    .ios-page-title p { font-size: 13px; }
    .ios-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .ios-category-item { min-height: 108px; padding: 10px 4px; border-radius: 10px; }
    .ios-category-icon { width: 44px; height: 44px; margin-bottom: 7px; border-radius: 13px; font-size: 25px; }
    .ios-category-icon .ios-icon { width: 24px; height: 24px; }
    .ios-category-item strong { font-size: 13px; }
    .ios-category-item small { font-size: 10px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
    .ios-catalog-actions .ios-select { width: 142px; min-height: 38px; }
    .ios-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .ios-product-cover { aspect-ratio: 1 / 1; }
    .ios-product-content { padding: 8px; }
    .ios-product-name { font-size: 13px; }
    .ios-product-bottom .ios-price { font-size: 16px; }
    .ios-product-sold { display: none; }
    .ios-card-body, .ios-order-main, .ios-payment-card, .ios-query-card, .ios-help-card, .ios-orderinfo-card { padding: 15px; }
    .ios-buy-overview { grid-template-columns: 128px minmax(0,1fr); gap: 12px 14px; padding: 13px; }
    .ios-buy-image { grid-row: 1; aspect-ratio: 1/1; }
    .ios-buy-summary h1 { font-size: 18px; }
    .ios-buy-price-row .ios-price-lg { font-size: 27px; }
    .ios-buy-delivery-note { grid-column: 1 / -1; padding: 12px 13px; border-left-width: 4px; border-radius: 9px; }
    .ios-buy-delivery-icon { width: 34px; height: 34px; }
    .ios-buy-delivery-copy strong { font-size: 14px; }
    .ios-buy-delivery-copy small { font-size: 12px; }
    .ios-buy-meta, .ios-buy-form-product { display: none; }
    .ios-buy-grid { gap: 12px; }
    .ios-buy-details { order: 2; padding: 12px; }
    .ios-buy-form-card { order: 1; padding: 14px; }
    .ios-pay-grid { grid-template-columns: 1fr; }
    .ios-mobile-buybar { position: fixed; z-index: 100; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--ios-border); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
    .ios-mobile-buybar strong { color: var(--ios-red); font-size: 24px; }
    .ios-mobile-buybar .ios-btn { min-width: 48%; }
    .ios-buy-page { padding-bottom: 142px; }
    .ios-order-steps { padding: 0 3px; margin-bottom: 14px; }
    .ios-step-label { font-size: 12px; }
    .ios-step-label { max-width: 42px; white-space: normal; text-align: center; line-height: 1.2; }
    .ios-step-dot { width: 26px; height: 26px; }
    .ios-step-line { margin: 0 7px; }
    .ios-order-grid { gap: 12px; }
    .ios-order-product { grid-template-columns: 130px minmax(0,1fr); gap: 12px; }
    .ios-order-product h2 { font-size: 17px; }
    .ios-payment-card { position: static; }
    .ios-qr-card { padding: 13px; }
    .ios-qr-top { align-items: flex-start; gap: 8px; }
    .ios-qr-box { width: 230px; min-height: 230px; }
    .ios-qr-box img { width: 212px; height: 212px; }
    .ios-qr-actions { flex-direction: column; }
    .ios-qr-actions > * { width: 100%; }
    .ios-qr-guide { gap: 2px; }
    .ios-qr-guide span { flex-direction: column; line-height: 1.25; }
    .ios-tabs { margin-bottom: 14px; }
    .ios-tab-button { min-height: 56px; font-size: 13px; }
    .ios-form-actions { flex-direction: column; }
    .ios-methods { padding: 14px; }
    .ios-method-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--ios-border); border-radius: 6px; overflow: hidden; }
    .ios-method-item { border: 0; border-bottom: 1px solid var(--ios-border); border-radius: 0; }
    .ios-method-item:last-child { border-bottom: 0; }
    .ios-orderinfo-grid { grid-template-columns: 1fr; }
    .ios-error-card { padding: 20px 16px; }
    .ios-error-hero { grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-items: start; }
    .ios-error-symbol { width: 100px; height: 100px; }
    .ios-error-symbol .ios-icon { width: 62px; height: 62px; }
    .ios-error-content h1 { font-size: 25px; }
    .ios-error-actions { flex-direction: column; }
    .ios-error-reasons { grid-template-columns: 1fr; gap: 0; }
    .ios-error-reason { border-radius: 0; box-shadow: none; border-bottom: 0; }
    .ios-error-reason:first-child { border-radius: 8px 8px 0 0; }
    .ios-error-reason:last-child { border-bottom: 1px solid var(--ios-border); border-radius: 0 0 8px 8px; }
    .ios-trust { padding-bottom: 10px; }
    .ios-trust-grid { grid-template-columns: repeat(2,1fr); }
    .ios-trust-item { min-height: 72px; justify-content: flex-start; padding: 10px 14px; }
    .ios-trust-item::after { display: none; }
    .ios-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--ios-border); }
    .ios-trust-item:nth-child(odd) { border-right: 1px solid var(--ios-border); }
    .ios-trust-icon { width: 36px; height: 36px; font-size: 20px; }
    .ios-footer { display: none; }
    .ios-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--ios-border); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
    .ios-bottom-nav a, .ios-bottom-nav button { border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #4c586e; background: transparent; font-size: 11px; }
    .ios-bottom-nav .ios-icon { font-size: 22px; }
    .ios-bottom-nav .active { color: var(--ios-blue); }
    .ios-modal { align-items: flex-end; padding: 12px; }
    #order-notice-modal, #buy-prompt-modal { align-items: center; }
    .ios-modal-dialog { width: 100%; max-height: 88vh; border-radius: 14px; padding: 22px 18px; }
    .ios-toast-stack { top: 10px; left: 12px; right: 12px; }
    .ios-toast { min-width: 0; width: 100%; }
}

@media (max-width: 420px) {
    .ios-assurance-inner { gap: 6px; font-size: 11px; }
    .ios-category-item { min-height: 100px; }
    .ios-category-item small { display: none; }
    .ios-products-grid { gap: 7px; }
    .ios-buy-overview { grid-template-columns: 110px minmax(0,1fr); }
    .ios-order-product { grid-template-columns: 105px minmax(0,1fr); }
    .ios-error-hero { grid-template-columns: 1fr; text-align: center; }
}
