/*
 * Artisan Outlet — website styles.
 * Colours, fonts, corner radius and columns come from CSS variables set in
 * Artisan Outlet → Settings (Colours & fonts, Shop display).
 */
:root {
	--ao-accent: #8a4b1f; --ao-accent-text: #fff; --ao-bg: #fbf7f2; --ao-surface: #fff; --ao-soft: #f3e9de;
	--ao-text: #2b211b; --ao-muted: #7a6b60; --ao-line: #eadfd3; --ao-price: #2b211b; --ao-sale: #8a4b1f; --ao-ph: #e9dccb;
	--ao-radius: 14px; --ao-heading-font: Georgia, "Noto Serif", serif;
	--ao-cols: 2; --ao-fs-base: 16px; --ao-fs-heading: 28px; --ao-fs-title: 16px; --ao-fs-price: 16px; --ao-fs-artisan: 14px; --ao-fs-button: 16px;
	--ao-ok: #2f7d4a; --ao-err: #b3261e;
	--ao-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
	--ao-r-sm: calc(var(--ao-radius) * .65);
}
.ao-outlet, .ao-single, .ao-cards, .aos-root { font-size: var(--ao-fs-base); color: var(--ao-text); }
.ao-single h2, .ao-single h3, .ao-single h4, .ao-outlet h2, .aos-root h3 { font-family: var(--ao-heading-font); color: var(--ao-text); }
.ao-muted { color: var(--ao-muted); }
.ao-accent { color: var(--ao-accent); font-weight: 600; }
.ao-ph { display: block; background: var(--ao-ph); }
.ao-empty { color: var(--ao-muted); text-align: center; padding: 24px 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.ao-btn, .aos-btn, .ao-card-add {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px;
	border: 1px solid var(--ao-accent); border-radius: var(--ao-r-sm); background: var(--ao-accent); color: var(--ao-accent-text);
	font: inherit; font-size: var(--ao-fs-button); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.ao-btn:hover, .aos-btn.aos-primary:hover, .ao-card-add:hover { filter: brightness(1.08); color: var(--ao-accent-text); }
.ao-btn:active, .aos-btn:active, .ao-card-add:active { transform: scale(.97); }
.ao-btn-ghost, .aos-btn.aos-ghost, .aos-btn:not(.aos-primary) { background: transparent; color: var(--ao-accent); }
.ao-btn-ghost:hover { color: var(--ao-accent); background: var(--ao-soft); }
.aos-btn.aos-primary { background: var(--ao-accent); color: var(--ao-accent-text); }
.ao-btn:focus-visible, .aos-btn:focus-visible, .ao-card-add:focus-visible, .ao-tablist button:focus-visible { outline: 3px solid color-mix(in srgb, var(--ao-accent) 40%, transparent); outline-offset: 2px; }

/* ---------- Card grid ---------- */
.ao-cards {
	--ao-gap: 18px; --ao-min: 150px; display: grid; gap: var(--ao-gap); margin: 0 0 1.5em;
	grid-template-columns: repeat(auto-fill, minmax(max(var(--ao-min), calc((100% - (var(--ao-cols) - 1) * var(--ao-gap)) / var(--ao-cols))), 1fr));
}
.ao-cards-paired { --ao-min: 300px; }
.ao-cards-list { --ao-min: 300px; }
.ao-cards-overlay { --ao-min: 180px; }
.ao-cards-story { --ao-min: 220px; }
.ao-cards-minimal { --ao-min: 140px; }
.ao-cards-artisans { --ao-min: 260px; }
.ao-card { position: relative; display: flex; flex-direction: column; min-width: 0; animation: aoIn .35s ease both; }
@keyframes aoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ao-card-link { position: relative; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.ao-card-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ao-radius); background: var(--ao-ph); margin-bottom: 8px; transition: transform .3s ease; }
.ao-card-link:hover .ao-card-img { transform: scale(1.015); }
.ao-cname { font-size: var(--ao-fs-title); font-weight: 600; line-height: 1.3; color: var(--ao-text); }
.ao-cprice { font-size: var(--ao-fs-price); font-weight: 700; color: var(--ao-price); }
.ao-cprice del { color: var(--ao-muted); font-weight: 400; font-size: .82em; margin-right: 4px; }
.ao-loop-by { font-size: var(--ao-fs-artisan); color: var(--ao-muted); }
.ao-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: var(--ao-sale); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ao-tag-muted { left: auto; right: 10px; background: rgba(30, 24, 20, .78); }
.ao-card-add { min-height: 40px; margin-top: 10px; padding: 0 14px; }
.ao-card-add.is-added { background: var(--ao-surface); color: var(--ao-accent); }
.ao-card-soldout { margin-top: 10px; font-size: var(--ao-fs-button); font-weight: 600; color: var(--ao-err); }

/* Artisan chip (list / story / product page) */
.ao-chip-artisan { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: inherit; text-decoration: none; font-size: var(--ao-fs-artisan); }
.ao-chip-artisan img, .ao-chip-artisan .ao-ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ao-chip-artisan span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ao-chip-artisan strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-chip-artisan em { font-style: normal; color: var(--ao-muted); font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-chip-lg { padding: 8px 14px 8px 8px; border: 1px solid var(--ao-line); border-radius: 999px; background: var(--ao-surface); }
.ao-chip-lg img, .ao-chip-lg .ao-ph { width: 44px; height: 44px; }

/* Template: paired */
.ao-card-paired { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); box-shadow: var(--ao-shadow); }
.ao-card-paired .ao-card-craft { display: flex; flex-direction: column; padding-bottom: 14px; min-width: 0; }
.ao-card-paired .ao-card-img { aspect-ratio: 1; border-radius: 0; margin: 0 0 10px; }
.ao-card-paired .ao-cname, .ao-card-paired .ao-cprice { padding: 0 14px; }
.ao-card-paired .ao-card-add, .ao-card-paired .ao-card-soldout { margin: 10px 14px 0; }
.ao-card-artisan { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 16px 12px; text-align: center; background: var(--ao-soft); border-left: 1px solid var(--ao-line); color: var(--ao-text); text-decoration: none; font-size: var(--ao-fs-artisan); min-width: 0; }
.ao-card-artisan strong { font-size: 1.1em; line-height: 1.25; }
.ao-card-photo { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ao-surface); margin-bottom: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); background: var(--ao-ph); }
.ao-card-label { font-size: .72em; text-transform: uppercase; letter-spacing: .1em; color: var(--ao-muted); }

/* Template: classic & minimal */
.ao-card-minimal .ao-card-img { aspect-ratio: 1; }
.ao-card-minimal .ao-cname { font-weight: 500; }

/* Template: gallery (overlay) */
.ao-card-overlay .ao-card-link { border-radius: var(--ao-radius); overflow: hidden; }
.ao-card-overlay .ao-card-img { aspect-ratio: 3 / 4; margin: 0; border-radius: 0; }
.ao-card-cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(15, 10, 8, .82), rgba(15, 10, 8, 0)); }
.ao-card-cap .ao-cname, .ao-card-cap .ao-cprice { color: #fff; }
.ao-card-cap .ao-loop-by, .ao-card-cap del { color: rgba(255, 255, 255, .78); }

/* Template: list */
.ao-card-list { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 14px; padding: 10px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); box-shadow: var(--ao-shadow); }
.ao-card-list .ao-card-img { aspect-ratio: 1; margin: 0; border-radius: var(--ao-r-sm); height: 100%; }
.ao-card-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.ao-card-title { color: inherit; text-decoration: none; }
.ao-card-list .ao-card-add { margin-top: 2px; align-self: flex-start; }

/* Template: story */
.ao-card-story { padding-bottom: 4px; }
.ao-card-story .ao-card-img { aspect-ratio: 4 / 3; }
.ao-card-excerpt { color: var(--ao-muted); font-size: .92em; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 4px; }
.ao-card-story .ao-chip-artisan { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ao-line); }

/* Artisan cards */
.ao-artisan-card { display: flex; gap: 14px; padding: 16px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); box-shadow: var(--ao-shadow); height: 100%; box-sizing: border-box; }
.ao-artisan-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ao-artisan-card h3 { margin: 0 0 .2em; font-size: calc(var(--ao-fs-title) * 1.1); }
.ao-artisan-card h3 a { color: inherit; text-decoration: none; }
.ao-artisan-card p { margin: 0 0 .3em; font-size: var(--ao-fs-artisan); }
.ao-artisan-card .ao-loc, .ao-artisan-card .ao-gen { color: var(--ao-muted); }
.ao-artisan-card .ao-tradition { color: var(--ao-accent); font-weight: 600; }

/* ---------- Pagination ---------- */
.ao-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 24px; }
.ao-pager a, .ao-pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); background: var(--ao-surface); color: var(--ao-text); text-decoration: none; font-weight: 600; box-sizing: border-box; }
.ao-pager a:hover { border-color: var(--ao-accent); color: var(--ao-accent); }
.ao-pager span[aria-current] { background: var(--ao-accent); border-color: var(--ao-accent); color: var(--ao-accent-text); }
.ao-pager .ao-gap { border: 0; background: none; min-width: 0; padding: 0 2px; }
.ao-more-wrap { text-align: center; margin: 0 0 24px; }
.ao-more { background: transparent; color: var(--ao-accent); }

/* ---------- [ao_outlet] ---------- */
.ao-outlet { margin: 1em 0 2em; }
.ao-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--ao-line); }
.ao-tabs a { position: relative; padding: 12px 16px; color: var(--ao-muted); text-decoration: none; font-weight: 600; font-size: calc(var(--ao-fs-base) * 1.02); }
.ao-tabs a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.ao-tabs a[aria-current="page"] { color: var(--ao-text); }
.ao-tabs a[aria-current="page"]::after { background: var(--ao-accent); }
.ao-tabs a.ao-help { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--ao-line); border-radius: 999px; color: var(--ao-text); background: var(--ao-surface, #fff); font-weight: 600; font-size: calc(var(--ao-fs-base) * .92); line-height: 1.2; margin-bottom: 6px; }
.ao-tabs a.ao-help::after { content: none; }
.ao-tabs a.ao-help:hover, .ao-tabs a.ao-help:focus-visible { border-color: var(--ao-accent); color: var(--ao-accent); }
.ao-tabs a.ao-help svg { flex: none; }
@media (max-width: 600px) {
	/* Narrow screens: the Help button shrinks to its icon so the tabs keep to one row (the label stays for screen readers). */
	.ao-tabs a.ao-help { padding: 7px; }
	.ao-tabs a.ao-help > span:not(.screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.ao-outlet .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; }
.ao-tab-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ao-accent); color: var(--ao-accent-text); font-size: .72em; line-height: 20px; text-align: center; }
.ao-search { display: flex; gap: 8px; margin: 0 0 12px; }
.ao-search input { flex: 1; min-width: 0; padding: 0 14px; height: 46px; border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); background: var(--ao-surface); color: var(--ao-text); font: inherit; }
.ao-search input:focus { outline: none; border-color: var(--ao-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ao-accent) 18%, transparent); }
.ao-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.ao-chips a { padding: 7px 15px; border: 1px solid var(--ao-line); border-radius: 999px; background: var(--ao-surface); color: var(--ao-text); text-decoration: none; font-size: .92em; }
.ao-chips a:hover { border-color: var(--ao-accent); }
.ao-chips a[aria-current="true"] { background: var(--ao-text); border-color: var(--ao-text); color: var(--ao-surface); }
.ao-app-frame { width: 100%; }
.ao-app-frame iframe { display: block; width: 100%; border: 1px solid var(--ao-line); border-radius: var(--ao-radius); background: var(--ao-bg); }
.ao-app-frame.alignfull, .ao-outlet.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.ao-outlet.alignfull { padding: 0 24px; box-sizing: border-box; }
.ao-app-frame.alignfull iframe { border-radius: 0; border-left: 0; border-right: 0; }

/* ---------- Craft & artisan pages ---------- */
.ao-single { margin: 0 0 2em; }
.ao-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 0 0 32px; }
@media (max-width: 760px) { .ao-hero { grid-template-columns: 1fr; gap: 20px; } }
.ao-main-img { overflow: hidden; border-radius: var(--ao-radius); background: var(--ao-ph); aspect-ratio: 1; }
.ao-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.ao-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ao-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--ao-r-sm); overflow: hidden; background: none; cursor: pointer; }
.ao-thumbs button[aria-current] { border-color: var(--ao-accent); }
.ao-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ao-hero-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ao-kicker { margin: 0; color: var(--ao-accent); font-size: .78em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ao-lead { margin: 0; font-size: 1.08em; line-height: 1.55; color: var(--ao-text); }
.ao-place { margin: 0; color: var(--ao-muted); }
.ao-buy { align-self: stretch; padding: 18px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); box-shadow: var(--ao-shadow); }
.ao-price { margin: 0 0 12px; font-size: calc(var(--ao-fs-price) * 1.6); font-weight: 800; color: var(--ao-price); }
.ao-price del { font-size: .55em; font-weight: 400; color: var(--ao-muted); }
.ao-add { display: flex; gap: 10px; flex-wrap: wrap; }
.ao-add input { width: 76px; height: 46px; padding: 0 10px; border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); font: inherit; text-align: center; }
.ao-add .ao-btn { flex: 1; }
.ao-low { margin: 10px 0 0; color: var(--ao-err); font-size: .9em; }
.ao-direct, .ao-added { margin: 10px 0 0; font-size: .92em; color: var(--ao-muted); }
.ao-added a { color: var(--ao-accent); font-weight: 600; }
.ao-soldout { margin: 0; font-weight: 600; color: var(--ao-err); }
.ao-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; align-self: stretch; margin: 0; }
.ao-quick div, .ao-facts div { padding: 10px 12px; background: var(--ao-soft); border-radius: var(--ao-r-sm); }
.ao-quick dt, .ao-facts dt { font-size: .74em; text-transform: uppercase; letter-spacing: .06em; color: var(--ao-muted); }
.ao-quick dd, .ao-facts dd { margin: 2px 0 0; font-weight: 600; }

/* Artisan hero */
.ao-hero-artisan { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; }
.ao-portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ao-ph); box-shadow: 0 0 0 6px var(--ao-surface), 0 0 0 7px var(--ao-line); max-width: 320px; }
@media (max-width: 760px) { .ao-hero-artisan { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ao-hero-artisan .ao-hero-info { align-items: center; } .ao-portrait { width: 200px; } }
.ao-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ao-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; align-self: stretch; list-style: none; padding: 0; margin: 0; }
.ao-stats li { padding: 10px 12px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); }
.ao-stats strong { display: block; font-family: var(--ao-heading-font); font-size: 1.6em; line-height: 1.1; color: var(--ao-accent); }
.ao-stats span { font-size: .85em; color: var(--ao-muted); }

/* Tabs on craft & artisan pages (all sections show without JavaScript) */
.ao-tabset { margin: 0 0 32px; }
.ao-tablist { display: none; }
.ao-tabs-ready .ao-tablist { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; border-bottom: 1px solid var(--ao-line); scrollbar-width: none; }
.ao-tablist button { position: relative; flex-shrink: 0; padding: 12px 16px; border: 0; background: none; color: var(--ao-muted); font: inherit; font-weight: 600; cursor: pointer; }
.ao-tablist button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; }
.ao-tablist button[aria-selected="true"] { color: var(--ao-text); }
.ao-tablist button[aria-selected="true"]::after { background: var(--ao-accent); }
.ao-tabpanel { margin: 0 0 28px; animation: aoIn .25s ease both; }
.ao-tabs-ready .ao-tabpanel { margin: 0; }
.ao-tabs-ready .ao-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ao-panel-title { font-size: calc(var(--ao-fs-heading) * .8); }
.ao-more-by h2 { font-size: calc(var(--ao-fs-heading) * .8); }

.ao-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 24px; }
.ao-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.ao-steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ao-line); }
.ao-steps li:not(:has(img)) { grid-template-columns: 1fr; }
.ao-steps img { width: 100%; height: auto; border-radius: var(--ao-r-sm); }
.ao-steps h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 .4em; }
.ao-steps h4::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--ao-accent); color: var(--ao-accent-text); font: 700 .8em/1 sans-serif; }
@media (max-width: 600px) { .ao-steps li { grid-template-columns: 1fr; } }
.ao-video { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; border-radius: var(--ao-radius); overflow: hidden; }
.ao-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ao-timeline { list-style: none; padding: 0 0 0 4px; margin: 0 0 24px; }
.ao-timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 22px; }
.ao-timeline li::before { content: ""; position: absolute; left: 96px; top: 6px; bottom: -6px; width: 2px; background: var(--ao-line); }
.ao-timeline li:last-child::before { bottom: 0; }
.ao-timeline li > div { position: relative; padding-left: 20px; }
.ao-timeline li > div::before { content: ""; position: absolute; left: -12px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ao-accent); box-shadow: 0 0 0 4px var(--ao-soft); }
.ao-year { font-family: var(--ao-heading-font); font-weight: 700; color: var(--ao-accent); text-align: right; }
.ao-timeline h4 { margin: 0 0 .3em; }
.ao-timeline img { max-width: 340px; width: 100%; border-radius: var(--ao-r-sm); }
.ao-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 1em 0; }
.ao-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ao-r-sm); display: block; }
.ao-by { margin: 0 0 .6em; font-style: italic; }

/* ---------- Floating cart ---------- */
.ao-cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ao-accent); color: var(--ao-accent-text); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.ao-cart-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ao-cart-fab b { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ao-surface); color: var(--ao-accent); font-size: 12px; line-height: 20px; text-align: center; }

/* ---------- Cart, checkout, payment, tracking (shared with the app) ---------- */
.aos-root { max-width: 680px; }
.aos-block { display: flex; width: 100%; margin: 12px 0; }
.aos-btn:disabled { opacity: .55; cursor: default; }
.aos-link { padding: 0; border: 0; background: none; color: var(--ao-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.aos-danger { color: var(--ao-err); }
.aos-muted, .aos-hint { color: var(--ao-muted); font-size: .92em; }
.aos-error { color: var(--ao-err); }
.aos-ok { padding: 12px 14px; border-radius: var(--ao-r-sm); background: color-mix(in srgb, var(--ao-ok) 12%, var(--ao-surface)); color: var(--ao-ok); }
.aos-notice { padding: 10px 12px; border-radius: var(--ao-r-sm); background: #fff6e0; }
.aos-empty { text-align: center; padding: 30px 0; }
.aos-from { margin: 0 0 8px; }
.aos-lines, .aos-items, .aos-saved { list-style: none; padding: 0; margin: 0 0 14px; }
.aos-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ao-line); }
.aos-line img, .aos-ph { width: 70px; height: 84px; object-fit: cover; border-radius: var(--ao-r-sm); background: var(--ao-soft); flex-shrink: 0; }
.aos-line-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.aos-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.aos-qty { display: inline-flex; align-items: center; align-self: flex-start; border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); background: var(--ao-surface); }
.aos-qty button { width: 36px; height: 36px; border: 0; background: none; color: inherit; font-size: 1.1em; cursor: pointer; }
.aos-qty output { min-width: 26px; text-align: center; font-weight: 600; }
.aos-totals { margin: 12px 0; padding: 12px 16px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-radius); }
.aos-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.aos-totals dt, .aos-totals dd { margin: 0; }
.aos-grand { margin-top: 6px; padding-top: 8px !important; border-top: 1px solid var(--ao-line); font-size: 1.1em; font-weight: 700; }
.aos-checkout h3 { margin: 1.2em 0 .5em; font-size: calc(var(--ao-fs-heading) * .62); }
.aos-field { display: block; margin: 0 0 10px; }
.aos-field span { display: block; margin-bottom: 4px; font-size: .9em; font-weight: 600; }
.aos-field input, .aos-field select, .aos-field textarea, .aos-ref input, .aos-track input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); background: var(--ao-surface); color: var(--ao-text); font: inherit; }
.aos-field input:focus, .aos-field select:focus, .aos-ref input:focus { outline: none; border-color: var(--ao-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ao-accent) 18%, transparent); }
.aos-field.has-error input, .aos-field.has-error select { border-color: var(--ao-err); }
.aos-ferr { display: block; color: var(--ao-err); font-size: .85em; font-style: normal; }
.aos-hp { position: absolute !important; left: -9999px !important; }
.aos-methods { display: grid; gap: 8px; }
.aos-method { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--ao-surface); border: 1px solid var(--ao-line); border-radius: var(--ao-r-sm); cursor: pointer; }
.aos-method:has(input:checked) { border-color: var(--ao-accent); box-shadow: 0 0 0 1px var(--ao-accent); }
.aos-method span { display: flex; flex-direction: column; }
.aos-method small { color: var(--ao-muted); }
.aos-method.is-off { opacity: .6; cursor: default; }
.aos-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.aos-order-head h3 { margin: 0; font-size: calc(var(--ao-fs-heading) * .8); }
.aos-pill { padding: 5px 12px; border-radius: 999px; background: var(--ao-soft); color: var(--ao-accent); font-size: .85em; font-weight: 700; white-space: nowrap; }
.aos-pay { margin: 16px 0; padding: 18px; background: var(--ao-surface); border: 2px solid var(--ao-accent); border-radius: var(--ao-radius); }
.aos-pay h4 { margin: .9em 0 .3em; }
.aos-pay h4:first-child { margin-top: 0; }
.aos-amount { margin: 0; font-size: 2em; font-weight: 800; color: var(--ao-price); }
.aos-vpa { font-size: 1.05em; }
.aos-qr { width: 220px; max-width: 100%; margin: 10px 0; padding: 8px; background: #fff; border-radius: var(--ao-r-sm); }
.aos-qr svg { display: block; width: 100%; height: auto; }
.aos-ref { display: flex; gap: 8px; }
.aos-ref input { flex: 1; text-transform: uppercase; }
.aos-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; padding: 0; margin: 16px 0; color: var(--ao-muted); font-size: .75em; text-align: center; }
.aos-progress li { padding-top: 6px; border-top: 5px solid var(--ao-line); }
.aos-progress li.on { border-color: var(--ao-accent); color: var(--ao-text); font-weight: 600; }
.aos-items li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.aos-items li span:nth-child(2) { flex: 1; }
.aos-items img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.aos-events { list-style: none; padding: 0 0 0 16px; border-left: 2px solid var(--ao-line); }
.aos-events li { position: relative; padding: 0 0 12px; }
.aos-events li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ao-line); }
.aos-events li.now::before { background: var(--ao-accent); }
.aos-events time, .aos-events span { display: block; font-size: .82em; color: var(--ao-muted); }
.aos-events p { margin: 2px 0 0; }
.aos-evimg { width: 90px; height: 90px; margin-top: 6px; object-fit: cover; border-radius: var(--ao-r-sm); }
.aos-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.aos-loading { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.aos-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--ao-accent); animation: aosPulse 1s infinite ease-in-out; }
.aos-loading span:nth-child(2) { animation-delay: .15s; }
.aos-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes aosPulse { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .ao-card, .ao-tabpanel, .ao-card-img { animation: none !important; transition: none !important; } }

/* Artisan contact and social icons (2.7.0) */
.ao-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ao-contact { display: inline-grid; place-items: center; width: calc(var(--ao-icon-size, 18px) + 14px); height: calc(var(--ao-icon-size, 18px) + 14px); border-radius: 50%; background: var(--ao-surface); border: 1px solid var(--ao-line); color: var(--ao-accent); text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); transition: background .15s, color .15s, border-color .15s; }
.ao-contact:hover, .ao-contact:focus-visible { background: var(--ao-accent); border-color: var(--ao-accent); color: var(--ao-accent-text); }
.ao-contact svg { width: var(--ao-icon-size, 18px); height: var(--ao-icon-size, 18px); }
.ao-contact-badge { font: 700 calc(var(--ao-icon-size, 18px) * .62) / 1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; }
.ao-card-side { display: flex; flex-direction: column; min-width: 0; background: var(--ao-soft); border-left: 1px solid var(--ao-line); }
.ao-card-side > .ao-card-artisan { flex: 1; background: none; border-left: 0; padding-bottom: 8px; }
.ao-card-side > .ao-contacts { padding: 0 10px 16px; }
.ao-contacts-page { justify-content: flex-start; margin-top: 14px; }

/* Search as you type (2.8.0) */
.ao-live { transition: opacity .15s; }
.ao-live.is-loading { opacity: .55; }
.ao-result-count { margin: 0 0 12px; color: var(--ao-muted); font-size: calc(var(--ao-fs-base) * .92); }
.ao-result-count:empty { display: none; }
