:root {
    --ofa-canvas: var(--ofa-color-canvas);
    --ofa-surface: var(--ofa-color-surface);
    --ofa-ink: var(--ofa-color-ink);
    --ofa-muted: var(--ofa-color-ink-muted);
    --ofa-line: var(--ofa-color-border);
    --ofa-line-strong: #bcc6d1;
    --ofa-primary: var(--ofa-color-brand);
    --ofa-primary-dark: var(--ofa-color-brand-strong);
    --ofa-success: var(--ofa-color-success);
    --ofa-danger: var(--ofa-color-warning);
    --ofa-radius: var(--ofa-radius-card);
    --ofa-shadow: var(--ofa-shadow-soft);
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--ofa-canvas); }
.ofa-store-body {
    margin: 0;
    color: var(--ofa-ink);
    background: var(--ofa-canvas);
    font-family: var(--ofa-font-body);
    font-size: 16px;
    line-height: 1.5;
}
.ofa-store-body button,
.ofa-store-body input,
.ofa-store-body select { font: inherit; }
.ofa-store-body button,
.ofa-store-body a,
.ofa-store-body input,
.ofa-store-body select,
.ofa-store-body summary { -webkit-tap-highlight-color: transparent; }
.ofa-store-body :focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ofa-store-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 64px;
    padding: 10px clamp(20px, 3vw, 48px);
    border-bottom: 1px solid var(--ofa-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}
.ofa-store-header-shell { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ofa-line); padding: 0 32px; background: rgba(255, 255, 255, 0.97); }
.ofa-store-header-shell .ofa-demo-site-header { flex: 1 1 auto; min-width: 0; margin: 0; border: 0; }
.ofa-store-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ofa-ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}
.ofa-store-brand img { display: block; border-radius: 7px; }
.ofa-store-nav { display: flex; align-items: center; gap: 26px; }
.ofa-store-nav a { color: #394554; font-size: 14px; font-weight: 650; text-decoration: none; }
.ofa-store-nav a:hover { color: var(--ofa-primary); }
.ofa-cart-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--ofa-line-strong);
    border-radius: var(--ofa-radius);
    padding: 8px 12px;
    background: var(--ofa-surface);
    color: var(--ofa-ink);
    font-weight: 700;
    cursor: pointer;
}
.ofa-cart-button strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ofa-success);
    color: #fff;
    font-size: 13px;
}

.ofa-store-main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 44px) 80px; }
.ofa-store-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}
.ofa-store-layout.is-assistant-closed { grid-template-columns: minmax(0, 1fr); }
.ofa-store-content { min-width: 0; }
.ofa-store-hero { padding: 42px 0 28px; border-bottom: 1px solid var(--ofa-line); }
.ofa-store-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 760;
    font-family: var(--ofa-font-heading);
}
.ofa-store-hero > p { max-width: 760px; margin: 16px 0 0; color: var(--ofa-muted); font-size: 18px; line-height: 1.58; }
.ofa-proof-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.ofa-proof-strip li { display: inline-flex; align-items: center; color: #354150; font-size: 13px; font-weight: 700; }
.ofa-proof-strip li::before { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ofa-success); content: ""; }
.ofa-proof-strip li + li::after { order: -1; width: 1px; height: 15px; margin: 0 14px; background: var(--ofa-line-strong); content: ""; }
.ofa-assistant-launch {
    display: none;
    min-height: 44px;
    margin-top: 22px;
    border: 1px solid var(--ofa-primary);
    border-radius: var(--ofa-radius);
    padding: 10px 16px;
    background: var(--ofa-primary);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.ofa-products { padding-top: 28px; }
.ofa-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.ofa-section-heading h2 { margin: 0; font-size: 30px; line-height: 1.2; }
.ofa-section-heading p { margin: 0; color: var(--ofa-muted); font-size: 14px; }
.ofa-product-toolbar { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ofa-product-toolbar label { min-width: 0; }
.ofa-price-field { position: relative; }
.ofa-price-field > span { position: absolute; z-index: 1; top: 5px; left: 12px; color: var(--ofa-muted); font-size: 10px; font-weight: 700; }
.ofa-price-field input { padding-top: 17px; padding-bottom: 3px; }
.ofa-product-toolbar input,
.ofa-product-toolbar select,
.ofa-compare-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--ofa-line-strong);
    border-radius: var(--ofa-radius);
    padding: 10px 12px;
    background: var(--ofa-surface);
    color: var(--ofa-ink);
}
.ofa-product-toolbar input::placeholder { color: #778391; }
.ofa-compare-button { width: auto; border-color: var(--ofa-primary); color: var(--ofa-primary-dark); font-weight: 750; cursor: pointer; }
.ofa-compare-button:disabled { border-color: var(--ofa-line); color: #8b96a3; cursor: not-allowed; }
.ofa-compare-button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; background: currentColor; color: #fff; font-size: 11px; }
.ofa-compare-button:disabled span { background: #8b96a3; }

.ofa-comparison { margin: 0 0 18px; border: 1px solid #a9a3ff; border-radius: var(--ofa-radius); background: #f5f4ff; padding: 18px; }
.ofa-comparison h3 { margin: 0 0 12px; font-size: 21px; }
.ofa-comparison table { width: 100%; border-collapse: collapse; background: #fff; }
.ofa-comparison th,
.ofa-comparison td { border: 1px solid var(--ofa-line); padding: 9px 11px; text-align: left; font-size: 14px; }
.ofa-comparison th { background: #f8f9fb; }

.ofa-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ofa-product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--ofa-line); border-radius: var(--ofa-radius); background: var(--ofa-surface); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.ofa-product-card:hover { border-color: #aaa4ff; box-shadow: 0 14px 35px rgba(23, 32, 42, 0.09); transform: translateY(-2px); }
.ofa-product-card.is-agent-active { border-color: var(--ofa-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16), 0 14px 35px rgba(23, 32, 42, 0.1); }
.ofa-product-card[hidden] { display: none; }
.ofa-compare-check { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; border: 1px solid var(--ofa-line-strong); border-radius: 6px; padding: 5px 8px; background: rgba(255, 255, 255, 0.94); color: #354150; font-size: 12px; font-weight: 700; cursor: pointer; }
.ofa-compare-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ofa-primary); }
.ofa-product-art { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--ofa-line); background: #fff; }
.ofa-product-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ofa-product-art > span { display: grid; width: 100%; height: 100%; place-items: center; background: #eef1f5; color: var(--ofa-primary); font-size: 58px; font-weight: 850; }
.ofa-product-meta { padding: 15px; }
.ofa-product-meta > p:first-child { min-height: 17px; margin: 0; color: var(--ofa-primary-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ofa-product-meta h3 { margin: 6px 0; font-size: 18px; line-height: 1.2; }
.ofa-product-meta h3 + p { min-height: 42px; margin: 0; color: var(--ofa-muted); font-size: 13px; line-height: 1.55; }
.ofa-product-meta dl { display: grid; gap: 7px; margin: 15px 0 0; }
.ofa-product-meta dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #edf0f3; padding-top: 7px; }
.ofa-product-meta dt { color: var(--ofa-muted); font-size: 12px; }
.ofa-product-meta dd { margin: 0; font-size: 12px; font-weight: 750; text-align: right; }
.ofa-product-meta .is-in-stock { color: var(--ofa-success); }
.ofa-product-meta .is-in-stock::before,
.ofa-product-meta .is-low-stock::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; content: ""; }
.ofa-product-meta .is-low-stock { color: #a15c00; }
.ofa-product-meta .is-unavailable { color: var(--ofa-danger); }
.ofa-empty-results { margin: 28px 0 0; border: 1px dashed var(--ofa-line-strong); padding: 24px; color: var(--ofa-muted); text-align: center; }

.ofa-assistant-panel {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: calc(100vh - 98px);
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--ofa-line);
    border-radius: var(--ofa-radius);
    background: var(--ofa-surface);
    box-shadow: var(--ofa-shadow);
}
.ofa-assistant-panel[hidden] { display: none; }
.ofa-assistant-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; border-bottom: 1px solid var(--ofa-line); }
.ofa-assistant-heading p { margin: 0 0 3px; color: var(--ofa-primary-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ofa-assistant-heading h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.ofa-assistant-heading button { min-height: 36px; border: 0; background: transparent; color: var(--ofa-muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.ofa-assistant-controls { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--ofa-line); }
.ofa-assistant-controls button { min-height: 34px; border: 1px solid var(--ofa-line-strong); border-radius: 6px; padding: 6px 9px; background: #fff; color: var(--ofa-ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.ofa-assistant-controls button:disabled { color: #929ca7; cursor: not-allowed; }
.ofa-assistant-status { margin: 10px 16px 0; border-left: 3px solid var(--ofa-primary); padding: 7px 9px; background: #f5f4ff; color: #49436e; font-size: 12px; }
.ofa-assistant-status.is-ready { border-color: var(--ofa-success); background: #effaf4; color: #245d40; }
.ofa-assistant-status.is-error { border-color: var(--ofa-danger); background: #fff2f0; color: #7a271a; }
.ofa-assistant-verification { flex: 0 0 auto; min-height: 65px; margin: 10px 16px 0; }
.ofa-assistant-verification[hidden] { display: none; }
.ofa-assistant-recovery { margin: 12px 16px; padding: 14px; border: 1px solid #f2b8b0; border-radius: 8px; background: #fff7f6; }
.ofa-assistant-recovery[hidden] { display: none; }
.ofa-assistant-recovery strong { display: block; }
.ofa-assistant-recovery p { margin: 4px 0 12px; color: var(--ofa-muted); font-size: 13px; line-height: 1.4; }
.ofa-assistant-recovery button { border: 1px solid var(--ofa-accent); border-radius: 7px; padding: 8px 12px; background: var(--ofa-accent); color: #fff; cursor: pointer; }
.ofa-assistant-panel.is-connection-error .ofa-persona-root { display: none; }
.ofa-cart-panel { flex: 0 0 auto; margin: 10px 16px 0; border: 1px solid var(--ofa-line); border-radius: var(--ofa-radius); padding: 12px; background: #f8f9fb; }
.ofa-cart-panel > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ofa-cart-panel h3 { margin: 0; font-size: 15px; }
.ofa-cart-panel > div > span { color: var(--ofa-muted); font-size: 11px; }
.ofa-cart-panel ul { display: grid; gap: 6px; max-height: 96px; margin: 9px 0; overflow: auto; padding: 0; list-style: none; }
.ofa-cart-panel li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--ofa-line); padding-bottom: 5px; font-size: 11px; }
.ofa-cart-panel li strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofa-cart-panel li span { color: var(--ofa-muted); white-space: nowrap; }
.ofa-cart-panel li.is-empty { display: block; border: 0; color: var(--ofa-muted); }
.ofa-cart-panel dl { display: grid; gap: 3px; margin: 0; }
.ofa-cart-panel dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.ofa-cart-panel dd { margin: 0; font-weight: 750; }
.ofa-cart-panel a { display: inline-block; margin-top: 9px; color: var(--ofa-primary-dark); font-size: 12px; font-weight: 750; }
.ofa-cart-panel > p { margin: 6px 0 0; color: var(--ofa-muted); font-size: 10px; line-height: 1.4; }
.ofa-persona-root { flex: 1 1 auto; min-height: 0; margin: 10px 12px; overflow: hidden; border: 1px solid var(--ofa-line); border-radius: var(--ofa-radius); }
.ofa-proof { flex: 0 0 auto; margin: 0 16px; border-top: 1px solid var(--ofa-line); padding: 9px 0; }
.ofa-proof:last-child { margin-bottom: 6px; }
.ofa-proof summary { color: #354150; font-size: 12px; font-weight: 750; cursor: pointer; }
.ofa-proof ol,
.ofa-proof ul { max-height: 115px; margin: 8px 0 0; overflow: auto; padding-left: 22px; color: var(--ofa-muted); font-size: 12px; line-height: 1.45; }
.ofa-proof li + li { margin-top: 5px; }
.ofa-developer-proof summary { color: var(--ofa-muted); }

.ofa-approval-dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--ofa-line); border-radius: var(--ofa-radius); padding: 0; box-shadow: 0 28px 90px rgba(23, 32, 42, 0.28); }
.ofa-approval-dialog::backdrop { background: rgba(23, 32, 42, 0.66); }
.ofa-approval-dialog form { padding: 24px; }
.ofa-approval-label { margin: 0 0 6px; color: var(--ofa-primary-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.ofa-approval-dialog h2 { margin: 0; font-size: 28px; }
.ofa-approval-dialog h2 + p { color: var(--ofa-muted); }
.ofa-approval-impact { border-left: 3px solid var(--ofa-success); padding: 9px 11px; background: #effaf4; color: #245d40; font-weight: 700; }
.ofa-approval-dialog dl { display: grid; gap: 8px; margin: 18px 0; border: 1px solid var(--ofa-line); border-radius: var(--ofa-radius); padding: 12px; }
.ofa-approval-dialog dl div { display: flex; justify-content: space-between; gap: 16px; }
.ofa-approval-dialog dt { color: var(--ofa-muted); }
.ofa-approval-dialog dd { margin: 0; font-weight: 750; text-align: right; }
.ofa-approval-dialog form > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ofa-approval-dialog button { min-height: 44px; border: 1px solid var(--ofa-line-strong); border-radius: var(--ofa-radius); padding: 9px 15px; background: #fff; color: var(--ofa-ink); font-weight: 750; cursor: pointer; }
.ofa-approval-dialog .ofa-approve { border-color: var(--ofa-primary); background: var(--ofa-primary); color: #fff; }

@media (max-width: 1320px) {
    .ofa-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
    .ofa-store-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; }
    .ofa-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ofa-product-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .ofa-store-header-shell { align-items: flex-start; padding: 0 16px; }
    .ofa-store-header-shell .ofa-demo-site-header { padding-bottom: 8px; }
    .ofa-store-header { grid-template-columns: 1fr auto; gap: 12px; min-height: 58px; padding: 8px 14px; }
    .ofa-store-nav { display: none; }
    .ofa-store-brand { font-size: 15px; }
    .ofa-store-brand img { width: 30px; height: 30px; }
    .ofa-store-main { padding: 0 14px 60px; }
    .ofa-store-layout { display: block; }
    .ofa-store-hero { padding: 30px 0 22px; }
    .ofa-store-hero h1 { font-size: 40px; line-height: 1.03; }
    .ofa-store-hero > p { font-size: 16px; }
    .ofa-proof-strip { gap: 8px 0; }
    .ofa-proof-strip li { width: 50%; }
    .ofa-proof-strip li + li::after { display: none; }
    .ofa-assistant-launch { display: inline-flex; align-items: center; justify-content: center; }
    .ofa-section-heading { margin-bottom: 12px; }
    .ofa-section-heading h2 { font-size: 28px; }
    .ofa-product-toolbar { grid-template-columns: 1fr; }
    .ofa-compare-button { width: 100%; }
    .ofa-product-grid { grid-template-columns: 1fr; }
    .ofa-product-meta h3 + p { min-height: 0; }
    .ofa-assistant-panel {
        position: fixed;
        inset: 0;
        z-index: 100;
        width: auto;
        height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }
    .ofa-assistant-heading { padding-top: max(14px, env(safe-area-inset-top)); }
    .ofa-assistant-heading button { min-width: 48px; min-height: 44px; }
    .ofa-assistant-controls { overflow-x: auto; }
    .ofa-assistant-controls button { flex: 0 0 auto; min-height: 40px; }
    .ofa-persona-root { min-height: 0; }
    .ofa-approval-dialog form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
