/* ============================================================================
 * Kirame Store — iOS 27 Liquid Glass Unified Stylesheet (Always Active)
 * Strict Monochrome Palette · Built on top of iOS 27 Kit (ios.css)
 * Covers: home, store, product, cart, settings, marketplaces, company
 * ============================================================================ */

:root {
    --k-glass-bg: rgba(255, 255, 255, 0.70);
    --k-glass-bg-strong: rgba(255, 255, 255, 0.86);
    --k-glass-bg-subtle: rgba(255, 255, 255, 0.48);
    --k-glass-border: rgba(17, 17, 17, 0.10);
    --k-glass-border-strong: rgba(17, 17, 17, 0.18);
    --k-glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    --k-glass-shadow: 0 10px 32px rgba(0, 0, 0, 0.055), 0 1px 2px rgba(0, 0, 0, 0.04);
    --k-glass-shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(0, 0, 0, 0.06);
    --k-ink: #111111;
    --k-ink-secondary: #52525B;
    --k-ink-muted: #71717A;
    --k-prominent-bg: linear-gradient(180deg, rgba(28, 28, 32, 0.94) 0%, rgba(14, 14, 17, 0.98) 100%);
    --k-prominent-rim: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 18px rgba(0, 0, 0, 0.16);
    --k-blur: blur(26px) saturate(190%);
    --k-blur-sm: blur(16px) saturate(180%);
    --k-blur-lg: blur(34px) saturate(200%);
}

[data-theme="dark"],
body.ios-surface.ios27.dark,
.store-ios-root.dark {
    --k-glass-bg: rgba(26, 26, 30, 0.72);
    --k-glass-bg-strong: rgba(34, 34, 40, 0.86);
    --k-glass-bg-subtle: rgba(255, 255, 255, 0.06);
    --k-glass-border: rgba(255, 255, 255, 0.13);
    --k-glass-border-strong: rgba(255, 255, 255, 0.24);
    --k-glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    --k-glass-shadow: 0 12px 36px rgba(0, 0, 0, 0.44), 0 1px 2px rgba(0, 0, 0, 0.35);
    --k-glass-shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.62);
    --k-ink: #F4F4F5;
    --k-ink-secondary: #D4D4D8;
    --k-ink-muted: #A1A1AA;
    --k-prominent-bg: linear-gradient(180deg, rgba(250, 250, 252, 0.96) 0%, rgba(226, 226, 232, 0.94) 100%);
    --k-prominent-rim: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Full-bleed iOS 27 Liquid Glass ambient surface + Scroll Unlock */
html {
    overflow-x: clip !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100vh !important;
}

body.ios-surface.ios27,
body.ios-surface.ios27.store-ios-root,
.ios-surface.ios27.store-ios-root {
    --ios-accent: #111111;
    --ios-tint: #111111;
    --ios-blue: #111111;
    --ios-green: #111111;
    color-scheme: light;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background:
        radial-gradient(circle at 12% 6%, rgba(196, 202, 214, 0.52) 0%, transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(216, 220, 230, 0.60) 0%, transparent 46%),
        radial-gradient(circle at 52% 94%, rgba(198, 204, 216, 0.42) 0%, transparent 50%),
        #ECEEF2 !important;
    color: var(--k-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}

[data-theme="dark"] body.ios-surface.ios27,
[data-theme="dark"] body.ios-surface.ios27.store-ios-root,
[data-theme="dark"] .ios-surface.ios27.store-ios-root,
body.ios-surface.ios27.dark,
body.ios-surface.ios27.dark.store-ios-root {
    --ios-accent: #F4F4F5;
    --ios-tint: #F4F4F5;
    --ios-blue: #F4F4F5;
    --ios-green: #F4F4F5;
    color-scheme: dark;
    background:
        radial-gradient(circle at 14% 8%, rgba(78, 82, 96, 0.34) 0%, transparent 44%),
        radial-gradient(circle at 86% 18%, rgba(62, 66, 78, 0.30) 0%, transparent 48%),
        radial-gradient(circle at 50% 92%, rgba(50, 54, 66, 0.28) 0%, transparent 52%),
        #09090B !important;
    color: var(--k-ink);
}

/* ============================================================================
 * 1. THIN MONOCHROME iOS 27 LIQUID GLASS SCROLLBARS (6px)
 * ============================================================================ */
html,
body,
.store-ios-root,
.store-ios-root * {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, 0.22) transparent;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
[data-theme="dark"] .store-ios-root,
[data-theme="dark"] .store-ios-root *,
body.ios-surface.ios27.dark,
body.ios-surface.ios27.dark * {
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.store-ios-root::-webkit-scrollbar,
.store-ios-root *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.store-ios-root::-webkit-scrollbar-track,
.store-ios-root *::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.store-ios-root::-webkit-scrollbar-thumb,
.store-ios-root *::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.20);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-clip: padding-box;
    transition: background 0.16s ease;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.store-ios-root::-webkit-scrollbar-thumb:hover,
.store-ios-root *::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 17, 17, 0.42);
}

html[data-theme="dark"]::-webkit-scrollbar-thumb,
html[data-theme="dark"] body::-webkit-scrollbar-thumb,
[data-theme="dark"] .store-ios-root *::-webkit-scrollbar-thumb,
body.ios-surface.ios27.dark::-webkit-scrollbar-thumb,
body.ios-surface.ios27.dark *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] body::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .store-ios-root *::-webkit-scrollbar-thumb:hover,
body.ios-surface.ios27.dark::-webkit-scrollbar-thumb:hover,
body.ios-surface.ios27.dark *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.store-ios-root *::-webkit-scrollbar-corner {
    background: transparent;
}

/* ============================================================================
 * 2. MONOCHROME iOS 27 SWITCHES (50x30px .ios-switch)
 * ============================================================================ */
.store-ios-root input[type="checkbox"].ios-switch {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 50px !important;
    height: 30px !important;
    min-width: 50px !important;
    min-height: 30px !important;
    max-width: 50px !important;
    max-height: 30px !important;
    border-radius: 999px !important;
    border: 1px solid var(--k-glass-border-strong) !important;
    background: rgba(17, 17, 17, 0.14) !important;
    background-image: none !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.10) !important;
    cursor: pointer !important;
    outline: none !important;
    vertical-align: middle !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.store-ios-root input[type="checkbox"].ios-switch::before {
    content: none !important;
    display: none !important;
}

.store-ios-root input[type="checkbox"].ios-switch::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.14) !important;
    transform: translateX(0) !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease !important;
}

.store-ios-root input[type="checkbox"].ios-switch:checked {
    background: #111111 !important;
    border-color: #111111 !important;
}

.store-ios-root input[type="checkbox"].ios-switch:checked::after {
    transform: translateX(20px) !important;
    background: #FFFFFF !important;
}

[data-theme="dark"] .store-ios-root input[type="checkbox"].ios-switch,
body.ios-surface.ios27.dark input[type="checkbox"].ios-switch {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

[data-theme="dark"] .store-ios-root input[type="checkbox"].ios-switch::after,
body.ios-surface.ios27.dark input[type="checkbox"].ios-switch::after {
    background: #E4E4E7 !important;
}

[data-theme="dark"] .store-ios-root input[type="checkbox"].ios-switch:checked,
body.ios-surface.ios27.dark input[type="checkbox"].ios-switch:checked {
    background: #F4F4F5 !important;
    border-color: #F4F4F5 !important;
}

[data-theme="dark"] .store-ios-root input[type="checkbox"].ios-switch:checked::after,
body.ios-surface.ios27.dark input[type="checkbox"].ios-switch:checked::after {
    transform: translateX(20px) !important;
    background: #111111 !important;
}

/* ============================================================================
 * 3. MONOCHROME iOS 27 CHECKBOXES & RADIOS (20x20px)
 * ============================================================================ */
.store-ios-root input[type="checkbox"]:not(.ios-switch) {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: var(--k-glass-bg-strong) !important;
    background-image: none !important;
    border: 1.5px solid var(--k-glass-border-strong) !important;
    box-shadow: var(--k-glass-rim), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.store-ios-root input[type="checkbox"]:not(.ios-switch)::before,
.store-ios-root input[type="checkbox"]:not(.ios-switch)::after {
    content: none !important;
    display: none !important;
}

.store-ios-root input[type="checkbox"]:not(.ios-switch):checked {
    background: #111111 !important;
    border-color: #111111 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 13px 13px !important;
}

[data-theme="dark"] .store-ios-root input[type="checkbox"]:not(.ios-switch):checked,
body.ios-surface.ios27.dark input[type="checkbox"]:not(.ios-switch):checked {
    background: #F4F4F5 !important;
    border-color: #F4F4F5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 13px 13px !important;
}

.store-ios-root input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: var(--k-glass-bg-strong) !important;
    background-image: none !important;
    border: 1.5px solid var(--k-glass-border-strong) !important;
    box-shadow: var(--k-glass-rim) !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    transition: border-color 0.16s ease, background 0.16s ease !important;
}

.store-ios-root input[type="radio"]::before {
    content: none !important;
    display: none !important;
}

.store-ios-root input[type="radio"]::after {
    content: '' !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    transform: scale(0);
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-ios-root input[type="radio"]:checked {
    background: #111111 !important;
    border-color: #111111 !important;
}

.store-ios-root input[type="radio"]:checked::after {
    transform: scale(1) !important;
}

[data-theme="dark"] .store-ios-root input[type="radio"]:checked,
body.ios-surface.ios27.dark input[type="radio"]:checked {
    background: #F4F4F5 !important;
    border-color: #F4F4F5 !important;
}

[data-theme="dark"] .store-ios-root input[type="radio"]:checked::after,
body.ios-surface.ios27.dark input[type="radio"]:checked::after {
    background: #111111 !important;
}

/* ============================================================================
 * 4. GLASS SELECTS (.k-glass-select + unified native selects), SPINNERS & DATE/TIME FIX
 * ============================================================================ */
.store-ios-root input[type="number"]::-webkit-outer-spin-button,
.store-ios-root input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.store-ios-root input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.store-ios-root select:not(.k-native-select-hidden):not(.k-glass-native) {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--k-glass-bg-strong) !important;
    backdrop-filter: var(--k-blur-sm) !important;
    -webkit-backdrop-filter: var(--k-blur-sm) !important;
    border: 1px solid var(--k-glass-border-strong) !important;
    border-radius: 14px !important;
    color: var(--k-ink) !important;
    box-shadow: var(--k-glass-rim), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding-right: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 11px center !important;
    background-size: 15px 15px !important;
    cursor: pointer;
}

[data-theme="dark"] .store-ios-root select:not(.k-native-select-hidden):not(.k-glass-native),
body.ios-surface.ios27.dark select:not(.k-native-select-hidden):not(.k-glass-native) {
    background-color: var(--k-glass-bg-strong) !important;
    border-color: var(--k-glass-border-strong) !important;
    color: #F4F4F5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4D4D8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* Custom Liquid Glass Select (.k-glass-select) — Hidden Native <select> + selectedIndex Tracking */
.k-glass-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    font-family: inherit;
}

.k-glass-select--compact {
    width: auto;
    min-width: 72px;
}

.k-glass-select.is-open {
    z-index: 600;
}

.store-ios-root .k-glass-select select.k-native-select-hidden,
.k-glass-select select.k-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.k-select-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 13px;
    min-height: 38px;
    border-radius: 14px;
    background: var(--k-glass-bg-strong);
    backdrop-filter: var(--k-blur-sm);
    -webkit-backdrop-filter: var(--k-blur-sm);
    border: 1px solid var(--k-glass-border-strong);
    box-shadow: var(--k-glass-rim), 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--k-ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.k-glass-select--compact .k-select-trigger {
    padding: 0 12px;
    min-height: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 0.80rem;
    font-weight: 700;
}

.k-select-trigger:hover {
    border-color: var(--k-ink);
}

.k-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.k-select-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.65;
    transition: transform 0.18s ease;
}

.k-glass-select.is-open .k-select-chevron {
    transform: rotate(180deg);
}

.k-select-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(320px, 90vw);
    max-height: min(340px, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border-radius: 16px;
    background: var(--k-glass-bg-strong);
    backdrop-filter: var(--k-blur-lg);
    -webkit-backdrop-filter: var(--k-blur-lg);
    border: 1px solid var(--k-glass-border-strong);
    box-shadow: var(--k-glass-shadow-lg), var(--k-glass-rim);
    z-index: 999;
    display: none;
}

.k-glass-select.is-open .k-select-popover {
    display: block;
}

.k-glass-select--right .k-select-popover {
    left: auto;
    right: 0;
}

.k-select-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.k-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--k-ink);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease;
}

.k-select-option:hover {
    background: rgba(17, 17, 17, 0.08);
}

[data-theme="dark"] .k-select-option:hover,
body.ios-surface.ios27.dark .k-select-option:hover {
    background: rgba(255, 255, 255, 0.10);
}

.k-select-option.is-selected {
    background: #111111;
    color: #FFFFFF;
}

[data-theme="dark"] .k-select-option.is-selected,
body.ios-surface.ios27.dark .k-select-option.is-selected {
    background: #F4F4F5;
    color: #111111;
}

.store-ios-root select option {
    background: #FFFFFF;
    color: #111111;
}

[data-theme="dark"] .store-ios-root select option,
body.ios-surface.ios27.dark select option {
    background: #18181D;
    color: #F4F4F5;
}

/* Date & Time Pickers — dark-mode native icon fix (filter: none !important) */
.store-ios-root input[type="date"],
.store-ios-root input[type="time"],
.store-ios-root input[type="datetime-local"],
.store-ios-root input[type="month"],
.store-ios-root input[type="week"] {
    color-scheme: light;
    background: var(--k-glass-bg-strong) !important;
    backdrop-filter: var(--k-blur-sm) !important;
    -webkit-backdrop-filter: var(--k-blur-sm) !important;
    border: 1px solid var(--k-glass-border-strong) !important;
    border-radius: 14px !important;
    color: var(--k-ink) !important;
    box-shadow: var(--k-glass-rim), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .store-ios-root input[type="date"],
[data-theme="dark"] .store-ios-root input[type="time"],
[data-theme="dark"] .store-ios-root input[type="datetime-local"],
[data-theme="dark"] .store-ios-root input[type="month"],
[data-theme="dark"] .store-ios-root input[type="week"],
body.ios-surface.ios27.dark input[type="date"],
body.ios-surface.ios27.dark input[type="time"],
body.ios-surface.ios27.dark input[type="datetime-local"],
body.ios-surface.ios27.dark input[type="month"],
body.ios-surface.ios27.dark input[type="week"] {
    color-scheme: dark;
}

[data-theme="dark"] .store-ios-root input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] .store-ios-root input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] .store-ios-root input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.ios-surface.ios27.dark input[type="date"]::-webkit-calendar-picker-indicator,
body.ios-surface.ios27.dark input[type="time"]::-webkit-calendar-picker-indicator,
body.ios-surface.ios27.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: none !important;
    opacity: 0.85 !important;
}

/* ============================================================================
 * 5. SETTINGS, MARKETPLACES & STOREFRONT GLASS CARDS + DARK/LIGHT CONTRAST FIXES
 * ============================================================================ */
.store-ios-root .st-card,
.store-ios-root .settings-card,
.store-ios-root .md-card,
.store-ios-root .mp-card,
.store-ios-root .mp-hero-card,
.store-ios-root .arsh-store-card,
.store-ios-root .arsh-search-card,
.store-ios-root .arsh-mp-strip,
.store-ios-root .ar-card,
.store-ios-root .st-prod-card,
.store-ios-root .st-modal-card {
    background: var(--k-glass-bg) !important;
    backdrop-filter: var(--k-blur) !important;
    -webkit-backdrop-filter: var(--k-blur) !important;
    border: 1px solid var(--k-glass-border) !important;
    box-shadow: var(--k-glass-shadow), var(--k-glass-rim) !important;
    color: var(--k-ink);
}

/* Home & Storefront typography, pills, buttons, search fields (Light & Dark safe) */
.store-ios-root .arsh-hero-title,
.store-ios-root .arsh-meta-item strong,
.store-ios-root .arsh-mp-strip-title,
.store-ios-root .arsh-section-title,
.store-ios-root .arsh-store-name {
    color: var(--k-ink) !important;
}

.store-ios-root .arsh-hero-desc,
.store-ios-root .arsh-title-muted,
.store-ios-root .arsh-meta-item,
.store-ios-root .arsh-mp-strip-sub,
.store-ios-root .arsh-gps-note {
    color: var(--k-ink-muted) !important;
}

.store-ios-root .arsh-hero-pill,
.store-ios-root .arsh-mp-status-pill,
.store-ios-root .arsh-chip,
.store-ios-root .arsh-mp-chip,
.store-ios-root .arsh-mp-car-btn,
.store-ios-root .arsh-btn-ghost,
.store-ios-root .arsh-outline-btn,
.store-ios-root .arsh-gps-btn,
.store-ios-root .arsh-gps-clear {
    background: var(--k-glass-bg-strong) !important;
    backdrop-filter: var(--k-blur-sm) !important;
    -webkit-backdrop-filter: var(--k-blur-sm) !important;
    border: 1px solid var(--k-glass-border-strong) !important;
    box-shadow: var(--k-glass-rim) !important;
    color: var(--k-ink) !important;
}

.store-ios-root .arsh-chip:hover,
.store-ios-root .arsh-mp-chip:hover,
.store-ios-root .arsh-mp-car-btn:hover,
.store-ios-root .arsh-btn-ghost:hover,
.store-ios-root .arsh-outline-btn:hover,
.store-ios-root .arsh-gps-btn:hover,
.store-ios-root .arsh-gps-clear:hover {
    border-color: var(--k-ink) !important;
}

.store-ios-root .arsh-btn-primary,
.store-ios-root .arsh-chip.is-active,
.store-ios-root .arsh-search-submit {
    background: var(--k-prominent-bg) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: var(--k-prominent-rim) !important;
}

[data-theme="dark"] .store-ios-root .arsh-btn-primary,
[data-theme="dark"] .store-ios-root .arsh-chip.is-active,
[data-theme="dark"] .store-ios-root .arsh-search-submit,
body.ios-surface.ios27.dark .arsh-btn-primary,
body.ios-surface.ios27.dark .arsh-chip.is-active,
body.ios-surface.ios27.dark .arsh-search-submit {
    background: var(--k-prominent-bg) !important;
    color: #111111 !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.store-ios-root .arsh-field,
.store-ios-root .arsh-field-loc {
    background: var(--k-glass-bg-strong) !important;
    border: 1px solid var(--k-glass-border-strong) !important;
    color: var(--k-ink) !important;
}

.store-ios-root .arsh-field:focus-within,
.store-ios-root .arsh-field-loc:focus-within {
    border-color: var(--k-ink) !important;
}

.store-ios-root .arsh-field input,
.store-ios-root .arsh-field-loc select,
.store-ios-root .arsh-field-loc input {
    color: var(--k-ink) !important;
}

.store-ios-root .arsh-field input::placeholder,
.store-ios-root .arsh-field-loc input::placeholder {
    color: var(--k-ink-muted) !important;
}

/* Dark mode safety net for legacy inline #FFFFFF / #F7F7F7 blocks across all store pages */
[data-theme="dark"] .store-ios-root [style*="background:#FFFFFF"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background: #FFFFFF"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background:#fff"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background: #fff"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background:#F7F7F7"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background: #F7F7F7"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background:#F5F5F7"]:not(.thermal-paper),
[data-theme="dark"] .store-ios-root [style*="background: #F5F5F7"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background:#FFFFFF"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background: #FFFFFF"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background:#fff"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background: #fff"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background:#F7F7F7"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background: #F7F7F7"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background:#F5F5F7"]:not(.thermal-paper),
body.ios-surface.ios27.dark [style*="background: #F5F5F7"]:not(.thermal-paper) {
    background: var(--k-glass-bg) !important;
    color: var(--k-ink) !important;
    border-color: var(--k-glass-border) !important;
}

[data-theme="dark"] .store-ios-root [style*="color:#111"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
[data-theme="dark"] .store-ios-root [style*="color: #111"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
[data-theme="dark"] .store-ios-root [style*="color:#000"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
[data-theme="dark"] .store-ios-root [style*="color: #000"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
body.ios-surface.ios27.dark [style*="color:#111"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
body.ios-surface.ios27.dark [style*="color: #111"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
body.ios-surface.ios27.dark [style*="color:#000"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active),
body.ios-surface.ios27.dark [style*="color: #000"]:not(.thermal-paper):not(.arsh-btn-primary):not(.arsh-chip.is-active) {
    color: var(--k-ink) !important;
}
