/*
 * Al Noor Dent base: fonts, tokens, reset, layout, buttons, header, menus, search, footer,
 * product card, drawers, notices, forms and prose. Loaded on every page.
 * Page styles: home.css, shop.css, product.css, cart.css, checkout.css, pages.css, account.css.
 * Breakpoints: phones < 768px, tablets 768 to 1099px, desktop from 1100px.
 */

/* ========== Fonts ==========
 * IBM Plex Sans for everything (IBM Plex Sans Arabic pairs with it for a later Arabic version).
 * Loaded from Google Fonts in functions.php (an-fonts).
 */

/* ========== Tokens (Al Noor Dent: marketplace layout, deep teal header, noor gold buy buttons) ========== */
:root {
	--an-bg:#e9eef0;            /* ice page background */
	--an-surface: #ffffff;       /* cards, header, product tiles */
	--an-ink:#0f1f26;           /* main text (no pure black) */
	--an-ink-2:#33464f;
	--an-muted:#56676f;
	--an-faint:#8a989f;
	--an-line:#d5dde1;
	--an-line-2:#bcc8ce;

	--an-brand:#0a6c87;         /* teal: links, icons, solid buttons */
	--an-brand-deep:#0d2731;    /* deep teal: footer, hero, dark bands, text on gold */
	--an-brand-soft:#e4f1f5;    /* soft teal tint: bands, selected states */
	--an-accent:#ffc845;        /* noor gold: buy / add to cart, highlights */
	--an-accent-deep:#f2b31a;   /* gold hover */
	--an-accent-soft:#fff5d6;
	--an-accent-line:#f3d98a;
	--an-saffron:#c8322a;       /* deal red: offer tags and sale badges */
	--an-cream:#f2f7f9;         /* text on deep teal */
	--an-save: #0f8a6a;
	--an-save-soft: #e2f5ee;
	--an-err: #c2410c;
	--an-err-soft: #fdede4;
	--an-nav: #164556;           /* second header strip */
	--an-deal: #c8322a;          /* deal badges (white text) */
	--an-link: #0a6c87;
	--an-link-hover: #c45500;    /* link hover: warm orange, marketplace style */
	--an-ok: #007a5e;            /* in stock, delivery dates */

	--an-display: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--an-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--an-r-sm:4px;
	--an-r-md:8px;
	--an-r-lg:10px;
	--an-r-pill: 999px;
	--an-r-btn:8px;
	--an-r-tag:4px;

	--an-shadow: 0 10px 30px rgba(16, 48, 59, .08);
	--an-shadow-lg: 0 24px 60px rgba(16, 48, 59, .18);
	--an-ease: cubic-bezier(.2, .7, .2, 1);

	--an-max: 1480px;
	--an-gut: 16px;
	--an-header-h: 112px;
}
@media (min-width: 768px) { :root { --an-gut: 24px; } }
@media (min-width: 1100px) { :root { --an-gut: 32px; --an-header-h: 132px; } }

/* ========== Reset & base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--an-header-h) + 12px); }
html.an-locked { overflow: hidden; }
body {
	margin: 0; background: var(--an-bg); color: var(--an-ink);
	font: 400 15px/1.5 var(--an-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4, h5, h6) { margin: 0 0 .5em; font-family: var(--an-display); font-weight: 700; line-height: 1.2; letter-spacing: -.005em; color: var(--an-ink); }
:where(p) { margin: 0 0 1em; }
:where(ul, ol) { margin: 0 0 1em; padding-left: 1.25em; }
:where(img, svg, video) { max-width: 100%; height: auto; }
img { display: block; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(table) { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--an-brand); outline-offset: 3px; }
::selection { background: var(--an-accent); color: var(--an-brand-deep); }

.an-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.an-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: var(--an-r-btn); background: var(--an-brand-deep); color: #fff; font-weight: 600; text-decoration: none; }
.an-skip:focus { top: 12px; }
.an-wrap { width: min(100% - 2 * var(--an-gut), var(--an-max)); margin-inline: auto; }
.an-main { display: block; min-height: 50vh; }
.an-icon { display: block; flex: none; }

/* ========== Buttons, chips, badges ========== */
.an-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border: 1.5px solid transparent; border-radius: var(--an-r-btn); background: var(--an-brand); color: #fff;
	font: 700 15px/1 var(--an-sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .18s var(--an-ease), border-color .18s var(--an-ease), color .18s var(--an-ease), transform .12s var(--an-ease), box-shadow .18s var(--an-ease);
}
.an-btn:hover { background: var(--an-brand-deep); }
.an-btn:active { transform: translateY(1px) scale(.99); }
.an-btn--primary { background: var(--an-accent); color: var(--an-brand-deep); }
.an-btn--primary:hover { background: var(--an-accent-deep); }
.an-btn--line { background: var(--an-surface); border-color: var(--an-brand); color: var(--an-brand); }
.an-btn--line:hover { background: var(--an-brand); color: #fff; }
.an-btn--ghost { background: transparent; border-color: var(--an-line-2); color: var(--an-ink); }
.an-btn--ghost:hover { background: var(--an-surface); border-color: var(--an-brand); }
.an-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.an-btn--block { width: 100%; }
.an-btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.an-btn .an-icon { transition: transform .2s var(--an-ease); }
.an-btn:hover .an-icon--arrow { transform: translateX(3px); }

.an-link { display: inline-flex; align-items: center; gap: 6px; color: var(--an-brand); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--an-accent); padding-bottom: 2px; white-space: nowrap; }
.an-link:hover { border-color: var(--an-brand); }
.an-link .an-icon { transition: transform .2s var(--an-ease); }
.an-link:hover .an-icon { transform: translateX(3px); }

.an-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; flex: none;
	border: 1.5px solid var(--an-line); border-radius: var(--an-r-btn); background: var(--an-surface); color: var(--an-ink);
	font: 600 14px/1 var(--an-sans); text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.an-chip:hover { border-color: var(--an-brand); }
.an-chip.is-active, .an-chip[aria-current="page"] { background: var(--an-brand); border-color: var(--an-brand); color: #fff; }
.an-chip--deal { background: var(--an-saffron); border-color: var(--an-saffron); color: var(--an-ink); }

.an-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--an-r-tag); font: 700 12px/1 var(--an-sans); letter-spacing: .01em; white-space: nowrap; }
.an-badge--save { background: var(--an-save-soft); color: var(--an-save); }
.an-badge--deal { background: var(--an-saffron); color: var(--an-ink); }
.an-badge--ink { background: var(--an-brand); color: #fff; }

.an-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
	border: 0; border-radius: var(--an-r-btn); background: transparent; color: var(--an-ink); text-decoration: none; transition: background-color .15s;
}
.an-iconbtn:hover { background: var(--an-bg); }
.an-count {
	position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--an-surface);
	border-radius: var(--an-r-pill); background: var(--an-accent); color: var(--an-brand-deep); font: 800 11px/15px var(--an-sans); text-align: center;
}
.an-count.is-empty { display: none; }

/* Section headings shared by pages */
.an-sec { padding-block: 40px; }
.an-sec--white { background: var(--an-surface); }
.an-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.an-sec__head > :first-child { min-width: 0; }
.an-sec__head > .an-link, .an-sec__head > .an-rail__nav { flex: none; margin-bottom: 4px; }
.an-sec__title { margin: 0; font-size: clamp(26px, 3.2vw, 38px); }
.an-sec__sub { margin: 6px 0 0; max-width: 56ch; color: var(--an-muted); font-size: 16px; }
.an-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 12px/1 var(--an-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--an-brand); }
.an-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--an-accent); }
@media (min-width: 1100px) { .an-sec { padding-block: 56px; } .an-sec__head { margin-bottom: 28px; } }

/* ========== Drawers (menu, cart, filters) ========== */
.an-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.an-drawer.is-open { visibility: visible; pointer-events: auto; }
.an-drawer__scrim { position: absolute; inset: 0; background: rgba(16, 48, 59, .45); opacity: 0; transition: opacity .28s var(--an-ease); }
.an-drawer.is-open .an-drawer__scrim { opacity: 1; }
.an-drawer__panel {
	position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: min(440px, 100%);
	background: var(--an-surface); box-shadow: var(--an-shadow-lg); transform: translateX(100%); transition: transform .32s var(--an-ease);
}
.an-drawer--left .an-drawer__panel { right: auto; left: 0; width: min(380px, 88vw); transform: translateX(-100%); }
.an-drawer.is-open .an-drawer__panel { transform: none; }
.admin-bar .an-drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .an-drawer__panel { top: 46px; } }
.an-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--an-line); }
.an-drawer__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 20px/1.2 var(--an-display); color: var(--an-brand); letter-spacing: -.015em; }
.an-drawer__title small { font: 600 14px/1 var(--an-sans); color: var(--an-muted); }
.an-drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .an-drawer__panel, .an-drawer__scrim { transition: none; } }

/* Menu drawer */
.an-menu__body { padding: 8px 12px 24px; }
.an-menu__label { margin: 18px 8px 8px; font: 800 12px/1 var(--an-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--an-muted); }
.an-menu__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.an-menu__cat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 12px; border-radius: var(--an-r-md); background: var(--an-bg); color: var(--an-ink); text-decoration: none; }
.an-menu__cat:hover { background: var(--an-accent-soft); }
.an-menu__cat-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--an-surface); }
.an-menu__cat strong { font-size: 14px; line-height: 1.25; }
.an-menu__cat small { color: var(--an-muted); font-size: 12px; }
.an-menu__deal { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: var(--an-r-md); background: var(--an-saffron); color: var(--an-ink); font-weight: 800; text-decoration: none; }
.an-menu__links { margin: 0; padding: 0; list-style: none; }
.an-menu__links a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--an-line); color: var(--an-ink); font-weight: 600; text-decoration: none; }
.an-menu__links a:hover { color: var(--an-ink); background: var(--an-bg); }
.an-menu__links .an-icon { color: var(--an-muted); }
.an-menu__help { margin-top: 18px; padding: 16px; border-radius: var(--an-r-md); background: var(--an-bg); font-size: 14px; }
.an-menu__help p { margin: 0 0 10px; }
.an-menu__help .an-btn { min-height: 42px; }

/* ========== Product card ========== */
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .an-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .an-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .an-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.anc {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border: 1px solid var(--an-line); border-radius: var(--an-r-lg); background: var(--an-surface);
	transition: box-shadow .2s var(--an-ease), transform .2s var(--an-ease), border-color .2s;
}
@media (hover: hover) {
	.anc:hover { box-shadow: var(--an-shadow); border-color: var(--an-line-2); }
	.anc:hover .anc__img img { transform: scale(1.04); }
}
.anc__media { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; }
.anc__img { position: absolute; inset: 0; display: block; overflow: hidden; }
.anc__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .45s var(--an-ease); }
.anc__off { position: absolute; top: 10px; left: 10px; z-index: 1; }
.anc__off, .anp-gallery__off { background: var(--an-saffron); color: var(--an-ink); }
.anc__wish {
	position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border: 1px solid var(--an-line); border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--an-ink); transition: color .15s, transform .15s, background-color .15s;
}
.anc__wish:hover { transform: scale(1.06); }
.anc__wish[aria-pressed="true"] { color: var(--an-err); }
.anc__wish[aria-pressed="true"] .an-icon path { fill: currentColor; }
.anc__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 12px 14px; border-top: 1px solid var(--an-line); }
.anc__cat { margin: 0; font: 700 11.5px/1.2 var(--an-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--an-muted); }
.anc__title { margin: 0; font: 600 14.5px/1.35 var(--an-sans); letter-spacing: 0; }
.anc__title a { color: var(--an-ink); text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.anc__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.anc__title a:hover { text-decoration: underline; }
.anc__rating { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 700; }
.anc__rating .an-icon { color: var(--an-accent); }
.anc__rating span { color: var(--an-muted); font-weight: 500; }
.anc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.anc__now { font: 800 18px/1.1 var(--an-sans); color: var(--an-brand-deep); }
.anc__was { font-size: 13px; color: var(--an-muted); }
.anc__save { font-size: 13px; font-weight: 700; color: var(--an-save); }
.anc__foot { margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
.anc__add { width: 100%; min-height: 46px; padding-inline: 12px; font-size: 15px; font-weight: 800; }
.anc__add .an-icon { width: 19px; height: 19px; }
.anc__add.is-added { background: var(--an-save); border-color: var(--an-save); color: #fff; }
@media (min-width: 768px) {
	.anc__body { padding: 14px 16px 16px; }
	.anc__title { font-size: 15px; }
	.anc__now { font-size: 20px; }
	.anc__add { min-height: 48px; font-size: 16px; }
}

/* Horizontal product rail */
.an-rail { position: relative; }
.an-rail__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2.15); gap: 10px; margin: 0; padding: 2px 0 6px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; overscroll-behavior-x: contain;
}
.an-rail__track::-webkit-scrollbar { display: none; }
.an-rail__track > * { scroll-snap-align: start; }
.an-rail__nav { display: none; gap: 8px; }
.an-rail__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--an-line-2); border-radius: 10px; background: var(--an-surface); color: var(--an-ink); }
.an-rail__btn:hover:not(:disabled) { border-color: var(--an-brand); }
.an-rail__btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 640px) { .an-rail__track { grid-auto-columns: calc((100% - 28px) / 3.2); gap: 14px; } }
@media (min-width: 1100px) {
	.an-rail__track { grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; }
	.an-rail__nav { display: flex; }
}

/* ========== Shared commerce bits (quantity stepper, free-delivery bar) ========== */
.an-qty { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--an-line-2); border-radius: var(--an-r-btn); background: var(--an-surface); }
.an-qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 100%; border: 0; background: none; color: var(--an-ink); border-radius: var(--an-r-btn); }
.an-qty__btn:hover:not(:disabled) { background: var(--an-bg); }
.an-qty__btn:disabled { opacity: .35; cursor: default; }
.an-qty .an-qty__input, .an-qty input.qty, .woocommerce .an-qty input.qty.an-qty__input { width: 40px; min-height: 0; height: 100%; padding: 0; border: 0; background: none; text-align: center; font: 800 16px/1 var(--an-sans); -moz-appearance: textfield; appearance: textfield; }
.an-qty input::-webkit-outer-spin-button, .an-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.an-qty input:focus { outline: none; }
.an-qty:focus-within { border-color: var(--an-brand); }

.an-free { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--an-accent-line); border-radius: var(--an-r-md); background: var(--an-accent-soft); }
.an-free__icon { display: flex; padding-top: 1px; }
.an-free__msg { margin: 0; font-size: 14px; line-height: 1.4; }
.an-free__track { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: rgba(16, 48, 59, .1); }
.an-free__track > span { display: block; height: 100%; border-radius: 3px; background: var(--an-brand); transition: width .4s var(--an-ease); }
.an-free.is-done { border-color: #bfe3cf; background: var(--an-save-soft); }
.an-free.is-done .an-free__icon, .an-free.is-done strong { color: var(--an-save); }
.an-free.is-done .an-free__track > span { background: var(--an-save); }


/* ========== Checkout progress (cart + checkout) ========== */
.an-co-progress { max-width: 640px; margin: 22px auto 26px; }
.an-co-progress__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.an-co-progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.an-co-progress__step:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; border-radius: 1px; background: var(--an-line-2); }
.an-co-progress__step.is-done::after { background: var(--an-brand); }
.an-co-progress__dot { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid var(--an-line-2); border-radius: 50%; background: var(--an-surface); font: 800 14px/1 var(--an-sans); color: var(--an-muted); transition: background-color .2s, border-color .2s, color .2s; }
.an-co-progress__dot .an-icon { display: none; }
.an-co-progress__label { font-size: 14px; line-height: 1.2; font-weight: 600; color: var(--an-muted); }
.an-co-progress__step.is-current .an-co-progress__dot { border-color: var(--an-brand); background: var(--an-accent); color: var(--an-brand-deep); box-shadow: 0 0 0 4px rgba(242, 176, 30, .35); }
.an-co-progress__step.is-current .an-co-progress__label { color: var(--an-ink); font-weight: 800; }
.an-co-progress__step.is-done .an-co-progress__dot { border-color: var(--an-brand); background: var(--an-brand); color: #fff; }
.an-co-progress__step.is-done .an-co-progress__dot .an-icon { display: block; }
.an-co-progress__step.is-done .an-co-progress__num { display: none; }
.an-co-progress__step.is-done .an-co-progress__label { color: var(--an-ink); }
@media (max-width: 767px) {
	.an-co-progress { margin: 14px auto 16px; }
	.an-co-progress__dot { width: 28px; height: 28px; font-size: 13px; }
	.an-co-progress__step:not(:last-child)::after { top: 13px; left: calc(50% + 20px); right: calc(-50% + 20px); }
	.an-co-progress__label { font-size: 12.5px; }
}

/* ========== Breadcrumbs, pagination ========== */
.an-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--an-muted); }
.an-crumbs a { color: var(--an-muted); text-decoration: none; }
.an-crumbs a:hover { color: var(--an-ink); text-decoration: underline; }
.an-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--an-line-2); }
.an-crumbs [aria-current] { color: var(--an-ink); font-weight: 600; }

.an-pages { display: flex; justify-content: center; margin-top: 32px; }
.an-pages ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.an-pages a, .an-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--an-line); border-radius: var(--an-r-btn); background: var(--an-surface); color: var(--an-ink); font-weight: 700; text-decoration: none; }
.an-pages a:hover { border-color: var(--an-brand); }
.an-pages .current { background: var(--an-brand); border-color: var(--an-brand); color: #fff; }

/* WooCommerce adds a "View cart" link after AJAX add buttons; the side cart replaces it. */
a.added_to_cart.wc-forward { display: none !important; }

/* ========== Notices (WooCommerce) ========== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 14px 18px; list-style: none;
	border: 1px solid var(--an-line); border-left: 4px solid var(--an-brand); border-radius: var(--an-r-md); background: var(--an-surface); font-size: 15px; line-height: 1.45;
}
.woocommerce-message { border-left-color: var(--an-save); }
.woocommerce-error { border-left-color: var(--an-err); display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button {
	order: 2; margin-left: auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--an-r-btn);
	background: var(--an-brand); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a { font-weight: 700; }

/* ========== Forms (account, contact, cart) ========== */
.an-field, .woocommerce form .form-row { margin: 0 0 16px; }
.an-label, .woocommerce form .form-row label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14.5px; }
.woocommerce form .form-row .required { color: var(--an-err); text-decoration: none; border: 0; }
.an-input, .woocommerce form .input-text, .woocommerce form select, .woocommerce-page form .input-text {
	display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--an-line-2); border-radius: var(--an-r-md);
	background: var(--an-surface); color: var(--an-ink); font-size: 16px; line-height: 1.3; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.an-input, .woocommerce form textarea.input-text { min-height: 120px; resize: vertical; }
.an-input:focus, .woocommerce form .input-text:focus, .woocommerce form select:focus { outline: none; border-color: var(--an-brand); box-shadow: 0 0 0 4px rgba(242, 176, 30, .35); }
.woocommerce form select, select.an-input { padding-right: 40px; background: var(--an-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--an-err); }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--an-r-btn);
	background: var(--an-brand); color: #fff; font: 700 15px/1 var(--an-sans); text-decoration: none; cursor: pointer; transition: background-color .15s;
}
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce .button:hover { background: var(--an-brand-deep); color: #fff; }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--an-accent); color: var(--an-brand-deep); }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--an-accent-deep); color: var(--an-brand-deep); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }
.woocommerce form .form-row .woocommerce-form__label-for-checkbox, .an-check { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--an-brand); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }

/* Loading overlay WooCommerce adds with blockUI */
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; opacity: 1 !important; }

/* ========== Prose (pages, product descriptions) ========== */
.an-prose { font-size: 16.5px; line-height: 1.7; color: var(--an-ink-2); }
.an-prose > * { max-width: 72ch; }
.an-prose h2 { margin: 1.6em 0 .5em; font-size: clamp(22px, 2.4vw, 28px); color: var(--an-brand); }
.an-prose h3 { margin: 1.4em 0 .4em; font-size: 20px; color: var(--an-brand); }
.an-prose > :first-child { margin-top: 0; }
.an-prose a { color: var(--an-brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--an-accent-deep); text-decoration-thickness: 2px; }
.an-prose ul, .an-prose ol { padding-left: 1.3em; }
.an-prose li { margin: .35em 0; }
.an-prose li::marker { color: var(--an-muted); }
.an-prose strong { color: var(--an-ink); }
.an-prose table { width: 100%; max-width: 100%; margin: 1em 0 1.4em; font-size: 15px; }
.an-prose th, .an-prose td { padding: 10px 12px; border: 1px solid var(--an-line); text-align: left; vertical-align: top; }
.an-prose th { background: var(--an-bg); color: var(--an-ink); }
.an-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--an-accent); background: var(--an-surface); border-radius: 0 var(--an-r-md) var(--an-r-md) 0; }
.an-prose img { height: auto; border-radius: var(--an-r-md); }

/* ========== Floating WhatsApp ========== */
.an-fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(16, 48, 59, .22); transition: transform .15s; }
.an-fab:hover { transform: scale(1.06); }
.an-fab .an-icon { stroke-width: 2; }
body.an-sticky-on .an-fab { bottom: 92px; }

/* ========== Toast ========== */
.an-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 300; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
	padding: 12px 18px; border-radius: var(--an-r-btn); background: var(--an-brand-deep); color: var(--an-cream); font-weight: 600; font-size: 14.5px;
	box-shadow: var(--an-shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s var(--an-ease), transform .25s var(--an-ease);
}
.an-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.an-toast .an-icon { color: var(--an-accent); }

/* ========== Generic page frame ========== */
.an-pagehead { padding: 28px 0 24px; background: var(--an-surface); border-bottom: 1px solid var(--an-line); }
.an-pagehead__title { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); }
.an-pagehead__sub { margin: 10px 0 0; max-width: 60ch; color: var(--an-muted); font-size: 16.5px; }
.an-page { padding-block: 32px 56px; }
.an-card { padding: 24px; border: 1px solid var(--an-line); border-radius: var(--an-r-lg); background: var(--an-surface); }
@media (min-width: 768px) { .an-card { padding: 32px; } .an-pagehead { padding: 36px 0 32px; } }

/* 404 */
.an-404 { padding: 72px 0; text-align: center; }
.an-404 .an-404__big { max-width: none; margin: 0 auto; font: 700 clamp(80px, 16vw, 180px)/1 var(--an-display); letter-spacing: -.04em; }
.an-404__big span { display: inline-block; padding: 0 .12em; border-radius: 24px; background: var(--an-accent); color: var(--an-brand-deep); }
.an-404 p { max-width: 46ch; margin: 16px auto 24px; color: var(--an-muted); font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ========== Side cart (inc/cart.php, woocommerce/cart/mini-cart.php, inc/mini-recs.php) ========== */
.an-cartdrawer .an-drawer__panel { width: min(460px, 100%); }
.an-drawer__free:empty { display: none; }
.an-drawer__free { padding: 12px 16px 0; }
.an-cartdrawer__body { display: flex; flex-direction: column; overflow: hidden; }
.an-cartdrawer__body .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.an-mini { flex: 1; min-height: 0; margin: 0; padding: 4px 16px 8px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.an-mini__item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 32px 14px 0; border-bottom: 1px solid var(--an-line); }
.an-mini__img { display: block; }
.an-mini__img img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--an-line); border-radius: 12px; background: #fff; }
.an-mini__info { min-width: 0; }
.an-mini__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--an-ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.an-mini__name:hover { text-decoration: underline; }
.an-mini__unit { display: flex; gap: 6px; align-items: baseline; margin: 4px 0 8px; font-size: 13.5px; font-weight: 700; }
.an-mini__unit del { color: var(--an-faint); font-weight: 400; font-size: 12.5px; }
.an-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.an-mini__line { font-weight: 800; font-size: 15.5px; }
.an-mini__remove { position: absolute; top: 12px; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 10px; background: none; color: var(--an-muted); }
.an-mini__remove:hover { background: var(--an-err-soft); color: var(--an-err); }
.an-qty--sm { height: 36px; }
.an-qty--sm .an-qty__btn { width: 34px; }
.an-qty--sm .an-qty__input { width: 32px; font-size: 14.5px; }
.an-mini__item.is-busy { opacity: .55; pointer-events: none; }
.an-mini dl.variation { margin: 2px 0 0; font-size: 12.5px; color: var(--an-muted); }
.an-mini dl.variation dt, .an-mini dl.variation dd { display: inline; margin: 0; }
.an-mini dl.variation dd p { display: inline; margin: 0; }

.an-mini__foot { flex: none; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--an-line); background: var(--an-surface); box-shadow: 0 -10px 24px rgba(16, 48, 59, .05); }
.an-mini__total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: 16px; }
.an-mini__total strong { font-weight: 600; }
.an-mini__total .amount { font-size: 22px; font-weight: 800; }
.an-mini__save { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--an-save); font-size: 13.5px; font-weight: 600; }
.an-mini__buttons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0 8px; }
.an-mini__buttons .an-btn { width: 100%; min-height: 50px; }
.an-mini__note { margin: 0; font-size: 12.5px; color: var(--an-muted); text-align: center; }

.an-mini__empty { padding: 40px 24px 16px; text-align: center; }
.an-mini__empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%; background: var(--an-accent-soft); }
.an-mini__empty-title { margin: 0 0 6px; font: 700 22px/1.2 var(--an-display); }
.an-mini__empty-text { margin: 0 0 18px; color: var(--an-muted); font-size: 14.5px; }

/* Suggestions row (also in the empty side cart) */
.an-mrecs { list-style: none; padding: 16px 0 6px; }
.an-mrecs--empty { padding: 8px 16px 20px; overflow-y: auto; }
.an-mrecs__box { padding: 14px; border-radius: var(--an-r-lg); background: var(--an-bg); }
.an-mrecs__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.an-mrecs__title { margin: 0; font: 700 16px/1.3 var(--an-display); }
.an-mrecs__title strong { color: var(--an-save); }
.an-mrecs__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--an-muted); }
.an-mrecs__nav { display: flex; gap: 6px; flex: none; }
.an-mrecs__arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid var(--an-line-2); border-radius: 10px; background: var(--an-surface); color: var(--an-ink); }
.an-mrecs__arrow:disabled { opacity: .35; }
.an-mrecs__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; }
.an-mrecs__track::-webkit-scrollbar { display: none; }
.an-mrecs__card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--an-line); border-radius: var(--an-r-md); background: var(--an-surface); scroll-snap-align: start; }
.an-mrecs__media img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; }
.an-mrecs__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.an-mrecs__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--an-ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.an-mrecs__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; font-size: 13px; }
.an-mrecs__now { font-weight: 800; font-size: 15px; }
.an-mrecs__price del { color: var(--an-faint); font-size: 12px; }
.an-mrecs__off { color: var(--an-save); font-weight: 700; font-size: 12px; }
.an-mrecs__add { display: inline-flex; align-items: center; justify-content: center; gap: 4px; align-self: flex-start; height: 32px; padding: 0 14px; border: 1.5px solid var(--an-brand); border-radius: var(--an-r-btn); background: var(--an-surface); color: var(--an-ink); font: 700 13px/1 var(--an-sans); }
.an-mrecs__add:hover { background: var(--an-brand); color: #fff; }
.an-mrecs__add[aria-busy="true"] { opacity: .6; }
