/* ==========================================================================
   Afro Takeout — marketplace UI
   ========================================================================== */

:root {
	--afro-ink: #1d1916;
	--afro-ink-2: #3a332d;
	--afro-muted: #6f655c;
	--afro-bg: #fbf7f2;
	--afro-surface: #ffffff;
	--afro-surface-2: #f5efe7;
	--afro-line: #ebe2d6;
	--afro-primary: #d9481f;
	--afro-primary-600: #b93a15;
	--afro-primary-50: #fdeee8;
	--afro-gold: #f2a541;
	--afro-green: #1f8a70;
	--afro-green-50: #e6f4ef;
	--afro-danger: #c0392b;
	--afro-danger-50: #fbeceb;
	--afro-warn: #b7791f;
	--afro-warn-50: #fdf4e3;
	--afro-info: #2b6cb0;
	--afro-info-50: #ebf3fb;
	--afro-radius: 14px;
	--afro-radius-sm: 10px;
	--afro-shadow: 0 1px 2px rgba(29, 25, 22, .06), 0 6px 24px rgba(29, 25, 22, .06);
	--afro-shadow-lg: 0 20px 60px rgba(29, 25, 22, .18);
	--afro-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cat: var(--afro-primary);
}

/* ---- Base reset (replaces Hello Elementor reset.css) ---------------------- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; border-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.4; margin: 0; }
button { cursor: pointer; }
a { color: var(--afro-primary); }
table { border-collapse: collapse; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: #fff; padding: 10px; top: 5px; left: 5px; }

/* ---- Base / Hello Elementor overrides ----------------------------------- */
body { background: var(--afro-bg); color: var(--afro-ink); font-family: var(--afro-font); -webkit-font-smoothing: antialiased; }
body.afro-page .site-main,
body.afro-page .page-content,
body.afro-page main#content { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.afro-page .page-header { display: none; }
.afro-app, .afro-app * , .afro-topbar *, .afro-footer * { box-sizing: border-box; }
.afro-app { font-family: var(--afro-font); color: var(--afro-ink); font-size: 15px; line-height: 1.55; }
.afro-app h1, .afro-app h2, .afro-app h3, .afro-app h4 { font-family: var(--afro-font); color: var(--afro-ink); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
.afro-app h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.afro-app h2 { font-size: 24px; font-weight: 800; }
.afro-app h3 { font-size: 18px; font-weight: 700; }
.afro-app h4 { font-size: 15px; font-weight: 700; }
.afro-app p { margin: 0 0 1em; }
.afro-app a { color: var(--afro-primary); text-decoration: none; }
.afro-app a:hover { text-decoration: underline; }
.afro-app img { max-width: 100%; display: block; }
.afro-muted { color: var(--afro-muted); }
.afro-small { font-size: 13px; }
.afro-center { text-align: center; }
.afro-right { text-align: right; }
.afro-hidden { display: none !important; }
.afro-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.afro-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; }
.afro-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.afro-row--between { justify-content: space-between; }
.afro-stack > * + * { margin-top: 16px; }
.afro-grid { display: grid; gap: 18px; }
.afro-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afro-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.afro-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.afro-grid--cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 900px) { .afro-grid--3, .afro-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .afro-grid--2, .afro-grid--3, .afro-grid--4 { grid-template-columns: 1fr; } .afro-wrap { padding: 18px 14px 48px; } }

/* ---- Loading --------------------------------------------------------------- */
.afro-loading { padding: 60px 20px; text-align: center; color: var(--afro-muted); font-family: var(--afro-font); }
.afro-spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--afro-line); border-top-color: var(--cat); border-radius: 50%; animation: afro-spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes afro-spin { to { transform: rotate(360deg); } }
.afro-skel { background: linear-gradient(90deg, var(--afro-surface-2), #fff, var(--afro-surface-2)); background-size: 200% 100%; animation: afro-skel 1.2s infinite; border-radius: 8px; }
@keyframes afro-skel { to { background-position: -200% 0; } }

/* ---- Buttons --------------------------------------------------------------- */
.afro-btn, .afro-app button.afro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--cat); background: var(--cat); color: #fff !important; font: 700 14px/1 var(--afro-font); cursor: pointer; text-decoration: none !important; transition: transform .08s ease, filter .15s ease, background .15s; white-space: nowrap; }
.afro-btn:hover { filter: brightness(.94); }
.afro-btn:active { transform: translateY(1px); }
.afro-btn:disabled, .afro-btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.afro-btn.afro-btn--ghost, .afro-app button.afro-btn.afro-btn--ghost { background: transparent; color: var(--afro-ink) !important; border-color: var(--afro-line); }
.afro-btn.afro-btn--ghost:hover, .afro-app button.afro-btn.afro-btn--ghost:hover { background: var(--afro-surface-2); filter: none; }
.afro-btn.afro-btn--soft, .afro-app button.afro-btn.afro-btn--soft { background: color-mix(in srgb, var(--cat) 12%, #fff); border-color: transparent; color: var(--cat) !important; }
.afro-btn.afro-btn--danger, .afro-app button.afro-btn.afro-btn--danger { background: var(--afro-danger); border-color: var(--afro-danger); }
.afro-btn.afro-btn--dark, .afro-app button.afro-btn.afro-btn--dark { background: var(--afro-ink); border-color: var(--afro-ink); }
.afro-btn--sm { padding: 8px 13px; font-size: 13px; }
.afro-btn--xs { padding: 5px 10px; font-size: 12px; }
.afro-btn--block { width: 100%; }
.afro-link { color: var(--afro-ink); font-weight: 600; text-decoration: none; }
.afro-iconbtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--afro-line); background: #fff; cursor: pointer; color: var(--afro-ink); font-size: 18px; line-height: 1; }
.afro-iconbtn:hover { background: var(--afro-surface-2); }

.afro-app button:not(.afro-btn):not(.afro-add) { font-family: var(--afro-font); }
.afro-app button:focus-visible, .afro-app a:focus-visible { outline: 3px solid color-mix(in srgb, var(--cat) 40%, transparent); outline-offset: 2px; }

/* ---- Forms ----------------------------------------------------------------- */
.afro-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.afro-field > label, .afro-label { font-weight: 600; font-size: 13px; color: var(--afro-ink-2); }
.afro-field .afro-hint { font-size: 12px; color: var(--afro-muted); }
.afro-app input[type=text], .afro-app input[type=email], .afro-app input[type=password], .afro-app input[type=number], .afro-app input[type=tel], .afro-app input[type=search], .afro-app input[type=datetime-local], .afro-app input[type=date], .afro-app select, .afro-app textarea {
	width: 100%; padding: 11px 13px; border: 1.5px solid var(--afro-line); border-radius: var(--afro-radius-sm); background: #fff; font: 500 14px/1.4 var(--afro-font); color: var(--afro-ink); transition: border-color .15s, box-shadow .15s; }
.afro-app textarea { min-height: 96px; resize: vertical; }
.afro-app input:focus, .afro-app select:focus, .afro-app textarea:focus { outline: none; border-color: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 18%, transparent); }
.afro-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.afro-check input { margin-top: 3px; accent-color: var(--cat); }
.afro-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.afro-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--afro-line); background: #fff; font: 600 13px/1 var(--afro-font); cursor: pointer; color: var(--afro-ink-2); }
.afro-chip input { display: none; }
.afro-chip.is-on, .afro-chip:has(input:checked) { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, #fff); color: var(--cat); }
.afro-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.afro-form-grid .afro-span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .afro-form-grid { grid-template-columns: 1fr; } }
.afro-error { background: var(--afro-danger-50); color: var(--afro-danger); padding: 10px 14px; border-radius: var(--afro-radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.afro-success { background: var(--afro-green-50); color: var(--afro-green); padding: 10px 14px; border-radius: var(--afro-radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.afro-notice { background: var(--afro-warn-50); color: #7a5112; padding: 12px 16px; border-radius: var(--afro-radius-sm); font-size: 14px; margin-bottom: 16px; }
.afro-notice--info { background: var(--afro-info-50); color: var(--afro-info); }

/* ---- Cards & surfaces ------------------------------------------------------ */
.afro-card { background: var(--afro-surface); border: 1px solid var(--afro-line); border-radius: var(--afro-radius); padding: 22px; box-shadow: var(--afro-shadow); }
.afro-card--flat { box-shadow: none; }
.afro-card--pad-lg { padding: 32px; }
.afro-card h3:first-child { margin-top: 0; }
.afro-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.afro-card__head h3 { margin: 0; }
.afro-gate { max-width: 520px; margin: 40px auto; }
.afro-divider { height: 1px; background: var(--afro-line); margin: 18px 0; border: 0; }

/* ---- Badges ------------------------------------------------------------- */
.afro-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 700 11.5px/1.5 var(--afro-font); background: var(--afro-surface-2); color: var(--afro-ink-2); text-transform: none; white-space: nowrap; }
.afro-badge--green { background: var(--afro-green-50); color: var(--afro-green); }
.afro-badge--red { background: var(--afro-danger-50); color: var(--afro-danger); }
.afro-badge--amber { background: var(--afro-warn-50); color: var(--afro-warn); }
.afro-badge--blue { background: var(--afro-info-50); color: var(--afro-info); }
.afro-badge--cat { background: color-mix(in srgb, var(--cat) 12%, #fff); color: var(--cat); }
.afro-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- Tables ---------------------------------------------------------------- */
.afro-table-wrap { overflow-x: auto; border: 1px solid var(--afro-line); border-radius: var(--afro-radius); background: #fff; }
.afro-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.afro-table th { text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--afro-muted); padding: 12px 14px; background: var(--afro-surface-2); border-bottom: 1px solid var(--afro-line); white-space: nowrap; }
.afro-table td { padding: 12px 14px; border-bottom: 1px solid var(--afro-line); vertical-align: middle; }
.afro-table tr:last-child td { border-bottom: 0; }
.afro-table tr.is-click { cursor: pointer; }
.afro-table tr.is-click:hover td { background: #fffaf5; }
.afro-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.afro-empty { text-align: center; padding: 42px 16px; color: var(--afro-muted); }
.afro-empty__icon { font-size: 34px; margin-bottom: 6px; }

/* ---- Top bar & footer ---------------------------------------------------- */
.afro-topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--afro-line); font-family: var(--afro-font); }
.admin-bar .afro-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .afro-topbar { top: 46px; } }
.afro-topbar__inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.afro-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--afro-ink) !important; font-size: 19px; text-decoration: none !important; letter-spacing: -.02em; }
.afro-brand strong { color: var(--afro-primary); font-weight: 800; }
.afro-brand__mark { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(from 210deg, var(--afro-primary), var(--afro-gold), #2a9d8f, #7b2cbf, var(--afro-primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.afro-brand--light { color: #fff !important; }
.afro-topbar__nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.afro-topbar__nav a { padding: 8px 12px; border-radius: 999px; font: 600 14px/1 var(--afro-font); color: var(--afro-ink-2); text-decoration: none; white-space: nowrap; }
.afro-topbar__nav a:hover { background: color-mix(in srgb, var(--cat) 10%, #fff); color: var(--cat); }
.afro-topbar__actions { display: flex; align-items: center; gap: 14px; }
.afro-cart-link { position: relative; color: var(--afro-ink); display: inline-flex; padding: 6px; }
.afro-cart-count { position: absolute; top: -4px; right: -6px; background: var(--afro-primary); color: #fff; font: 800 11px/18px var(--afro-font); min-width: 18px; height: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
@media (max-width: 860px) {
	.afro-topbar__inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; }
	.afro-topbar__nav { order: 3; flex-basis: 100%; }
	.afro-topbar__actions { margin-left: auto; }
	.afro-topbar__actions .afro-btn { display: none; }
	.afro-topbar__actions .afro-btn:first-of-type:only-of-type { display: inline-flex; }
}
.afro-footer { background: #1d1916; color: #d9cfc4; font-family: var(--afro-font); font-size: 14px; margin-top: 40px; }
.afro-footer__inner { max-width: 1240px; margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 28px; }
.afro-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.afro-footer a:not(.afro-brand) { display: block; color: #d9cfc4; text-decoration: none; padding: 3px 0; }
.afro-footer a:hover { color: #fff; }
.afro-footer p { margin: 12px 0 0; line-height: 1.6; }
.afro-footer__base { border-top: 1px solid #3a332d; text-align: center; padding: 16px; font-size: 13px; color: #9c9087; }
@media (max-width: 760px) { .afro-footer__inner { grid-template-columns: 1fr 1fr; } }

/* ---- Hero & home ---------------------------------------------------------- */
.afro-hero { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 60px); background: radial-gradient(1200px 400px at 90% -10%, rgba(242, 165, 65, .35), transparent 60%), radial-gradient(800px 380px at -10% 110%, rgba(42, 157, 143, .25), transparent 60%), linear-gradient(135deg, #2b1a12, #5a2414 55%, #8a3517); color: #fff; margin-bottom: 34px; }
.afro-hero h1 { color: #fff; max-width: 720px; }
.afro-hero p { color: #f4e5d6; font-size: 17px; max-width: 620px; }
.afro-hero__pattern { position: absolute; right: -40px; top: -40px; width: 340px; height: 340px; opacity: .14; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); border-radius: 50%; }
.afro-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; max-width: 640px; margin-top: 22px; box-shadow: var(--afro-shadow-lg); }
.afro-search input { border: 0 !important; box-shadow: none !important; padding-left: 16px !important; background: transparent !important; }
.afro-search select { border: 0 !important; width: auto !important; background: var(--afro-surface-2) !important; border-radius: 999px !important; }
.afro-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
@media (max-width: 900px) { .afro-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.afro-cat-tile { position: relative; display: block; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--afro-line); color: var(--afro-ink) !important; text-decoration: none !important; overflow: hidden; transition: transform .15s, box-shadow .15s; min-height: 140px; }
.afro-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--afro-shadow); }
.afro-cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--cat); opacity: .12; }
.afro-cat-tile__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--cat); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.afro-cat-tile h3 { margin: 0 0 4px; }
.afro-cat-tile p { margin: 0; color: var(--afro-muted); font-size: 13px; }
.afro-section { margin-bottom: 44px; }
.afro-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.afro-section__head h2 { margin: 0; }

/* ---- Listing & store cards ---------------------------------------------- */
.afro-lcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--afro-line); border-radius: 16px; overflow: hidden; color: var(--afro-ink) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; cursor: pointer; text-align: left; padding: 0; font: inherit; }
.afro-lcard:hover { transform: translateY(-2px); box-shadow: var(--afro-shadow); }
.afro-lcard__img { aspect-ratio: 4 / 3; background: var(--afro-surface-2) center / cover no-repeat; position: relative; }
.afro-lcard__img--ph { display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 18%, #fff), color-mix(in srgb, var(--cat) 6%, #fff)); }
.afro-lcard__date { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 10px; padding: 6px 10px; text-align: center; font-weight: 800; line-height: 1.05; box-shadow: var(--afro-shadow); }
.afro-lcard__date small { display: block; font-size: 10px; text-transform: uppercase; color: var(--cat); letter-spacing: .06em; }
.afro-lcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.afro-lcard__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.afro-lcard__meta { font-size: 13px; color: var(--afro-muted); }
.afro-lcard__price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 16px; color: var(--afro-ink); }
.afro-lcard__price s { color: var(--afro-muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.afro-scard__logo { width: 54px; height: 54px; border-radius: 14px; background: var(--afro-surface-2) center / cover; border: 3px solid #fff; box-shadow: var(--afro-shadow); margin-top: -40px; position: relative; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--cat); font-size: 20px; }

/* ---- Store page ----------------------------------------------------------- */
.afro-storehead { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--afro-line); margin-bottom: 26px; }
.afro-storehead__banner { height: 200px; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 70%, #000), var(--cat)) center / cover; }
.afro-storehead__body { display: flex; gap: 18px; align-items: flex-end; padding: 0 24px 22px; flex-wrap: wrap; }
.afro-storehead__logo { width: 96px; height: 96px; border-radius: 22px; background: #fff center / cover; border: 4px solid #fff; box-shadow: var(--afro-shadow); margin-top: -48px; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: var(--cat); }
.afro-storehead h1 { font-size: 30px; margin: 10px 0 4px; }
.afro-store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
@media (max-width: 960px) { .afro-store-layout { grid-template-columns: 1fr; } }
.afro-sticky { position: sticky; top: 90px; }
.afro-menu-section { margin-bottom: 28px; }
.afro-menu-section h3 { padding-bottom: 8px; border-bottom: 2px solid var(--afro-line); }
.afro-item { display: flex; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--afro-line); border-radius: 14px; margin-bottom: 10px; align-items: center; cursor: pointer; transition: border-color .15s; text-align: left; width: 100%; font: inherit; color: inherit; }
.afro-item:hover { border-color: var(--cat); }
.afro-item__img { width: 92px; height: 92px; border-radius: 12px; background: var(--afro-surface-2) center / cover; flex-shrink: 0; }
.afro-item__body { flex: 1; min-width: 0; }
.afro-item__title { font-weight: 700; }
.afro-item__desc { font-size: 13px; color: var(--afro-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px; }
.afro-item__price { font-weight: 800; }
.afro-add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cat); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.afro-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--afro-surface-2); color: var(--afro-ink-2); margin-right: 4px; }

/* ---- Basket ---------------------------------------------------------------- */
.afro-basket-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--afro-line); }
.afro-basket-line:last-child { border-bottom: 0; }
.afro-basket-line__name { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; }
.afro-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--afro-line); border-radius: 999px; overflow: hidden; }
.afro-qty button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer; font-size: 16px; color: var(--afro-ink); }
.afro-qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.afro-totals { margin-top: 12px; font-size: 14px; }
.afro-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.afro-totals .is-grand { font-weight: 800; font-size: 17px; border-top: 1px solid var(--afro-line); margin-top: 6px; padding-top: 10px; }
.afro-segment { display: inline-flex; background: var(--afro-surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.afro-segment button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 700 13px/1 var(--afro-font); cursor: pointer; color: var(--afro-ink-2); }
.afro-segment button.is-on { background: #fff; color: var(--cat); box-shadow: var(--afro-shadow); }

/* ---- Modal & toast ------------------------------------------------------- */
.afro-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(29, 25, 22, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: afro-fade .15s ease; font-family: var(--afro-font); }
.afro-modal__box { background: #fff; border-radius: 20px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--afro-shadow-lg); animation: afro-pop .18s ease; }
.afro-modal__box--wide { max-width: 860px; }
.afro-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--afro-line); position: sticky; top: 0; background: #fff; z-index: 1; }
.afro-modal__head h3 { margin: 0; }
.afro-modal__body { padding: 22px; }
.afro-modal__foot { padding: 14px 22px; border-top: 1px solid var(--afro-line); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.afro-modal__hero { aspect-ratio: 16 / 8; background: var(--afro-surface-2) center / cover; }
@keyframes afro-fade { from { opacity: 0; } }
@keyframes afro-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.afro-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; font-family: var(--afro-font); }
.afro-toast { background: var(--afro-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--afro-shadow-lg); animation: afro-pop .2s ease; max-width: 92vw; }
.afro-toast--error { background: var(--afro-danger); }
.afro-toast--ok { background: var(--afro-green); }

/* ---- Auth pages ------------------------------------------------------------ */
.afro-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; max-width: 1100px; margin: 30px auto; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--afro-line); box-shadow: var(--afro-shadow); }
.afro-auth__side { background: radial-gradient(600px 300px at 100% 0, rgba(242, 165, 65, .4), transparent 60%), linear-gradient(160deg, #2b1a12, #8a3517); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.afro-auth__side h2 { color: #fff; font-size: 30px; }
.afro-auth__side p, .afro-auth__side li { color: #f4e5d6; }
.afro-auth__side ul { padding-left: 18px; }
.afro-auth__form { padding: 44px; }
@media (max-width: 860px) { .afro-auth { grid-template-columns: 1fr; margin: 16px; } .afro-auth__side { display: none; } .afro-auth__form { padding: 26px 20px; } }
.afro-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.afro-choice label { border: 1.5px solid var(--afro-line); border-radius: 14px; padding: 14px; cursor: pointer; font-size: 13px; }
.afro-choice label strong { display: block; font-size: 15px; margin-bottom: 2px; }
.afro-choice input { display: none; }
.afro-choice label:has(input:checked) { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 6%, #fff); }
.afro-catpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.afro-catpick label { border: 1.5px solid var(--afro-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.afro-catpick input { accent-color: var(--cat); }
.afro-catpick label:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.afro-pw-meter { height: 5px; border-radius: 3px; background: var(--afro-line); overflow: hidden; margin-top: 4px; }
.afro-pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---- Dashboards ------------------------------------------------------------ */
.afro-dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 80vh; max-width: 1440px; margin: 0 auto; }
.afro-dash__side { background: #fff; border-right: 1px solid var(--afro-line); padding: 22px 14px; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; }
.admin-bar .afro-dash__side { top: 93px; height: calc(100vh - 93px); }
.afro-dash__who { display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; border-bottom: 1px solid var(--afro-line); margin-bottom: 14px; }
.afro-dash__avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--cat) center / cover; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.afro-dash__who strong { display: block; font-size: 14px; line-height: 1.25; }
.afro-dash__who small { color: var(--afro-muted); font-size: 12px; }
.afro-dash__nav { display: flex; flex-direction: column; gap: 2px; }
.afro-dash__nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; text-align: left; font: 600 14px/1.2 var(--afro-font); color: var(--afro-ink-2); cursor: pointer; width: 100%; }
.afro-dash__nav button:hover { background: var(--afro-surface-2); }
.afro-dash__nav button.is-on { background: color-mix(in srgb, var(--cat) 11%, #fff); color: var(--cat); }
.afro-dash__nav .ico { width: 20px; text-align: center; font-size: 16px; }
.afro-dash__nav .count { margin-left: auto; background: var(--cat); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.afro-dash__navlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--afro-muted); padding: 14px 12px 6px; font-weight: 700; }
.afro-dash__main { padding: 28px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.afro-dash__title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.afro-dash__title h1 { font-size: 26px; margin: 0; }
.afro-dash__title p { margin: 2px 0 0; color: var(--afro-muted); }
@media (max-width: 900px) {
	.afro-dash { grid-template-columns: 1fr; }
	.afro-dash__side { position: static; height: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--afro-line); }
	.afro-dash__who { display: none; }
	.afro-dash__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.afro-dash__nav button { white-space: nowrap; width: auto; }
	.afro-dash__navlabel { display: none; }
}
.afro-stat { background: #fff; border: 1px solid var(--afro-line); border-radius: var(--afro-radius); padding: 18px; }
.afro-stat__label { font-size: 12.5px; color: var(--afro-muted); font-weight: 600; }
.afro-stat__value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.afro-stat__sub { font-size: 12.5px; color: var(--afro-muted); margin-top: 2px; }
.afro-stat--accent { background: linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 70%, #000)); color: #fff; border: 0; }
.afro-stat--accent .afro-stat__label, .afro-stat--accent .afro-stat__sub { color: rgba(255, 255, 255, .82); }
.afro-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.afro-toolbar input[type=search], .afro-toolbar select { width: auto !important; min-width: 180px; }
.afro-pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--afro-muted); }

/* Chart */
.afro-chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.afro-chart__bar { flex: 1; background: color-mix(in srgb, var(--cat) 75%, #fff); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; transition: background .15s; }
.afro-chart__bar:hover { background: var(--cat); }
.afro-chart__bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--afro-ink); color: #fff; font-size: 11px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.afro-chart__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--afro-muted); margin-top: 6px; }

/* Order kanban / timeline */
.afro-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.afro-kanban__col { background: var(--afro-surface-2); border-radius: var(--afro-radius); padding: 12px; min-height: 200px; }
.afro-kanban__col h4 { display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.afro-ocard { background: #fff; border: 1px solid var(--afro-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.afro-ocard:hover { border-color: var(--cat); }
.afro-ocard__top { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.afro-ocard__items { font-size: 13px; color: var(--afro-muted); margin: 6px 0; }
.afro-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--afro-line); }
.afro-timeline li { position: relative; padding: 0 0 14px 12px; font-size: 14px; }
.afro-timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cat); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--cat); }
.afro-timeline small { color: var(--afro-muted); display: block; }
.afro-steps { display: flex; gap: 0; margin: 10px 0 18px; }
.afro-steps span { flex: 1; height: 6px; background: var(--afro-line); margin-right: 4px; border-radius: 3px; }
.afro-steps span.is-on { background: var(--cat); }

/* Tickets */
.afro-ticket { display: grid; grid-template-columns: 1fr auto; background: #fff; border: 1px solid var(--afro-line); border-radius: 18px; overflow: hidden; position: relative; }
.afro-ticket__main { padding: 18px 20px; border-right: 2px dashed var(--afro-line); }
.afro-ticket__qr { padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--afro-surface-2); }
.afro-ticket__qr img, .afro-ticket__qr svg { width: 110px; height: 110px; }
.afro-ticket__code { font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.afro-ticket.is-used { opacity: .6; }
@media (max-width: 520px) { .afro-ticket { grid-template-columns: 1fr; } .afro-ticket__main { border-right: 0; border-bottom: 2px dashed var(--afro-line); } }

/* 2FA */
.afro-qrbox { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.afro-qrbox__img { background: #fff; padding: 10px; border: 1px solid var(--afro-line); border-radius: 12px; }
.afro-qrbox__img img { width: 180px; height: 180px; image-rendering: pixelated; }
.afro-code { font: 700 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--afro-surface-2); padding: 8px 12px; border-radius: 8px; letter-spacing: .06em; word-break: break-all; }
.afro-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.afro-otp { font: 800 26px/1 ui-monospace, monospace !important; letter-spacing: .4em; text-align: center; }

/* Security checks */
.afro-check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--afro-line); }
.afro-check-row:last-child { border-bottom: 0; }
.afro-check-row__ico { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: 13px; }

.afro-kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 14px; }
.afro-kv dt { color: var(--afro-muted); }
.afro-kv dd { margin: 0; font-weight: 600; word-break: break-word; }

.afro-imgpick { display: flex; gap: 14px; align-items: center; }
.afro-imgpick__prev { width: 96px; height: 96px; border-radius: 12px; background: var(--afro-surface-2) center / cover; border: 1.5px dashed var(--afro-line); display: flex; align-items: center; justify-content: center; color: var(--afro-muted); font-size: 26px; flex-shrink: 0; }

@media print { .afro-topbar, .afro-footer, .afro-dash__side, .afro-btn { display: none !important; } .afro-dash { display: block; } }
