/* Avenixr eBook storefront. Everything is scoped to .avx-store.avx-store.avx-store so themes are not affected. */
/* Rules repeat .avx-store three times so they outrank typical theme selectors such as ".woocommerce a.button" without !important. */
.avx-store.avx-store.avx-store {
	--avx-brand: #1a64f0;
	--avx-brand-soft: color-mix(in srgb, var(--avx-brand) 10%, #fff);
	--avx-brand-dark: color-mix(in srgb, var(--avx-brand) 82%, #000);
	--avx-ink: #111827;
	--avx-ink-2: #374151;
	--avx-muted: #6b7280;
	--avx-line: #e5e7eb;
	--avx-bg: #f6f7fb;
	--avx-sale: #e11d48;
	--avx-ok: #15803d;
	--avx-star: #f59e0b;
	--avx-radius: 14px;
	--avx-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--avx-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
	background: var(--avx-bg);
	color: var(--avx-ink);
	font-size: 15px;
	line-height: 1.6;
	padding-bottom: 56px;
	width: 100%;
}
.avx-store.avx-store.avx-store *, .avx-store.avx-store.avx-store *::before, .avx-store.avx-store.avx-store *::after { box-sizing: border-box; }
.avx-store.avx-store.avx-store a { color: inherit; text-decoration: none; }
.avx-store.avx-store.avx-store img { max-width: 100%; height: auto; display: block; }
.avx-store.avx-store.avx-store h1, .avx-store.avx-store.avx-store h2, .avx-store.avx-store.avx-store h3 { color: var(--avx-ink); font-family: inherit; text-transform: none; letter-spacing: -.3px; }
.avx-store.avx-store.avx-store ul { list-style: none; margin: 0; padding: 0; }
.avx-store.avx-store.avx-store :focus-visible { outline: 3px solid color-mix(in srgb, var(--avx-brand) 45%, transparent); outline-offset: 2px; }
.avx-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Buttons, including WooCommerce's own */
.avx-store.avx-store.avx-store .avx-btn,
.avx-store.avx-store.avx-store .button,
.avx-store.avx-store.avx-store button.button,
.avx-store.avx-store.avx-store .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer;
	border: 1px solid transparent; padding: 11px 18px; text-decoration: none; text-transform: none;
	background: var(--avx-brand); color: #fff; box-shadow: none; min-height: 0; height: auto; width: auto;
	transition: background .15s, border-color .15s, color .15s;
}
.avx-store.avx-store.avx-store .avx-btn:hover, .avx-store.avx-store.avx-store .button:hover, .avx-store.avx-store.avx-store .single_add_to_cart_button:hover { background: var(--avx-brand-dark); color: #fff; }
.avx-store.avx-store.avx-store .avx-btn--outline { background: #fff; color: var(--avx-ink); border-color: var(--avx-line); }
.avx-store.avx-store.avx-store .avx-btn--outline:hover { background: #fff; color: var(--avx-brand); border-color: var(--avx-brand); }
.avx-store.avx-store.avx-store .avx-btn--light { background: #fff; color: #4c1d95; }
.avx-store.avx-store.avx-store .avx-btn--light:hover { background: #f5f3ff; color: #4c1d95; }
.avx-store.avx-store.avx-store .avx-btn--block { width: 100%; }
.avx-store.avx-store.avx-store .button.loading { opacity: .7; }
.avx-store.avx-store.avx-store .button.added { background: var(--avx-ok); }
.avx-store.avx-store.avx-store .added_to_cart { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--avx-brand); }
.avx-store.avx-store.avx-store .button.disabled, .avx-store.avx-store.avx-store .button:disabled, .avx-store.avx-store.avx-store .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.avx-link { color: var(--avx-brand) !important; font-size: 13px; font-weight: 600; }
.avx-icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--avx-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--avx-ink); padding: 0; }

/* Breadcrumb */
.avx-store.avx-store.avx-store .avx-breadcrumb { font-size: 13px; color: var(--avx-muted); padding: 20px 0 6px; margin: 0; }
.avx-store.avx-store.avx-store .avx-breadcrumb a:hover { color: var(--avx-brand); }
.avx-store.avx-store.avx-store .avx-breadcrumb span { margin: 0 6px; opacity: .6; }
.avx-store.avx-store.avx-store .avx-breadcrumb--light { color: rgba(255, 255, 255, .72); padding-top: 0; }
/* Themes that print the breadcrumb as list items (no delimiter) */
.avx-store.avx-store.avx-store .avx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; }
.avx-store.avx-store.avx-store .avx-breadcrumb li { list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; background: none; }
.avx-store.avx-store.avx-store .avx-breadcrumb li + li::before { content: "/"; margin: 0 6px; opacity: .6; }
.avx-store.avx-store.avx-store .avx-breadcrumb .active { color: inherit; opacity: .8; }
.avx-store.avx-store.avx-store .avx-breadcrumb--light a:hover { color: #fff; }

/* Stars and badges */
.avx-stars { --pct: 90%; position: relative; display: inline-block; font-size: 15px; letter-spacing: 2px; line-height: 1; color: #d1d5db; font-family: Arial, sans-serif; }
.avx-stars::before { content: "★★★★★"; }
.avx-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--avx-star); }
.avx-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--avx-muted); }
.avx-rating strong { color: var(--avx-ink); }
.avx-rating a { color: var(--avx-brand); font-weight: 600; }
.avx-rating--small { font-size: 13px; }
.avx-rating--small .avx-stars { font-size: 13px; }
.avx-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.avx-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--avx-ink); }
.avx-badge--sale { background: var(--avx-sale); color: #fff; }
.avx-badge--new { background: #facc15; color: #422006; }

/* Prices (WooCommerce markup) */
.avx-store.avx-store.avx-store .avx-price { margin: 0; font-weight: 800; color: var(--avx-ink); }
.avx-store.avx-store.avx-store .avx-price del { color: var(--avx-muted); font-weight: 500; font-size: .7em; margin-right: 6px; opacity: 1; }
.avx-store.avx-store.avx-store .avx-price ins { text-decoration: none; color: var(--avx-sale); background: none; }

/* Generated covers for products without an image */
.avx-cover, .avx-bookcover { position: absolute; inset: 0; display: flex; color: #fff; }
.avx-cover { flex-direction: column; justify-content: flex-end; padding: 18px; }
.avx-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 45%); }
.avx-cover small { position: relative; z-index: 1; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; opacity: .85; }
.avx-cover b { position: relative; z-index: 1; font-size: 20px; line-height: 1.2; max-width: 85%; }
.avx-cover--1 { background: linear-gradient(135deg, var(--avx-brand), #0b1b3f); }
.avx-cover--2 { background: linear-gradient(135deg, #0f766e, #134e4a); }
.avx-cover--3 { background: linear-gradient(135deg, #7c3aed, #312e81); }
.avx-cover--4 { background: linear-gradient(135deg, #ea580c, #7c2d12); }
.avx-cover--5 { background: linear-gradient(135deg, #db2777, #6b21a8); }
.avx-cover--6 { background: linear-gradient(135deg, #0891b2, #1e3a8a); }
.avx-cover--7 { background: linear-gradient(135deg, #16a34a, #14532d); }
.avx-cover--8 { background: linear-gradient(135deg, #475569, #0f172a); }

/* ---------- Archive ---------- */
.avx-hero { background: linear-gradient(120deg, #0b1b3f 0%, #13317a 55%, var(--avx-brand) 100%); color: #fff; padding: 36px 0 40px; }
.avx-store.avx-store.avx-store .avx-hero__title { color: #fff; margin: 6px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.avx-hero__text { max-width: 640px; color: rgba(255, 255, 255, .85); }
.avx-hero__text p { margin: 0; }
.avx-store.avx-store.avx-store .avx-search { margin-top: 22px; display: flex; max-width: 560px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--avx-shadow-lg); }
.avx-store.avx-store.avx-store .avx-search input[type="search"] { flex: 1; border: 0; padding: 10px 12px; outline: none; color: var(--avx-ink); background: transparent; box-shadow: none; height: auto; margin: 0; min-width: 0; }
.avx-store.avx-store.avx-store .avx-search button { border: 0; background: var(--avx-brand); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.avx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.avx-store.avx-store.avx-store .avx-pills a { padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: #fff; }
.avx-store.avx-store.avx-store .avx-pills a:hover, .avx-store.avx-store.avx-store .avx-pills a[aria-current="true"] { background: #fff; color: var(--avx-brand); }

.avx-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 28px; }
.avx-sidebar { align-self: start; position: sticky; top: 24px; }
.avx-filter-card { background: #fff; border: 1px solid var(--avx-line); border-radius: var(--avx-radius); padding: 18px; }
.avx-filter-head { display: flex; justify-content: space-between; align-items: center; }
.avx-store.avx-store.avx-store .avx-filter-head h2 { font-size: 16px; margin: 0; }
.avx-filter-group { border-top: 1px solid var(--avx-line); padding: 14px 0 6px; margin: 14px 0 0; }
.avx-store.avx-store.avx-store .avx-filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--avx-muted); margin: 0 0 10px; }
.avx-store.avx-store.avx-store .avx-cat-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--avx-ink-2); }
.avx-store.avx-store.avx-store .avx-cat-list a:hover, .avx-store.avx-store.avx-store .avx-cat-list a[aria-current="true"] { background: var(--avx-brand-soft); color: var(--avx-brand); }
.avx-count { margin-left: auto; font-size: 12px; color: var(--avx-muted); background: var(--avx-bg); padding: 1px 8px; border-radius: 99px; }
.avx-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.avx-store.avx-store.avx-store .avx-price-inputs label { font-size: 12px; color: var(--avx-muted); }
.avx-store.avx-store.avx-store .avx-price-inputs input { width: 100%; border: 1px solid var(--avx-line); border-radius: 8px; padding: 8px 10px; margin-top: 4px; background: #fff; height: auto; }
.avx-promo { margin-top: 16px; border-radius: var(--avx-radius); padding: 18px; color: #fff; background: linear-gradient(135deg, #6d28d9, var(--avx-brand)); }
.avx-promo strong { display: block; font-size: 16px; margin-bottom: 4px; }
.avx-promo p { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.avx-drawer-close, .avx-filters-toggle, .avx-backdrop { display: none !important; }

.avx-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.avx-store.avx-store.avx-store .woocommerce-result-count { margin: 0; color: var(--avx-muted); font-size: 14px; float: none; }
.avx-toolbar__right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.avx-store.avx-store.avx-store .woocommerce-ordering { margin: 0; float: none; }
.avx-store.avx-store.avx-store .woocommerce-ordering select { border: 1px solid var(--avx-line); border-radius: 10px; padding: 9px 34px 9px 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; cursor: pointer; height: auto; font-size: 14px; color: var(--avx-ink); }
.avx-view { display: flex; border: 1px solid var(--avx-line); border-radius: 10px; overflow: hidden; background: #fff; }
.avx-store.avx-store.avx-store .avx-view button { border: 0; background: none; width: 40px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--avx-muted); padding: 0; border-radius: 0; }
.avx-store.avx-store.avx-store .avx-view button[aria-pressed="true"] { background: var(--avx-brand-soft); color: var(--avx-brand); }
.avx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.avx-store.avx-store.avx-store .avx-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--avx-line); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.avx-store.avx-store.avx-store .avx-chip:hover { border-color: var(--avx-sale); color: var(--avx-sale); }

/* Product grid and cards */
.avx-store.avx-store.avx-store .avx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.avx-store.avx-store.avx-store .avx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.avx-store.avx-store.avx-store .avx-card { position: relative; background: #fff; border: 1px solid var(--avx-line); border-radius: var(--avx-radius); overflow: hidden; display: flex; flex-direction: column; margin: 0; padding: 0; width: auto; float: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.avx-store.avx-store.avx-store .avx-card:hover { box-shadow: var(--avx-shadow-lg); transform: translateY(-3px); border-color: transparent; }
.avx-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--avx-bg); }
.avx-store.avx-store.avx-store .avx-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.avx-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.avx-format { display: inline-block; font-weight: 700; color: var(--avx-brand); background: var(--avx-brand-soft); padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
.avx-store.avx-store.avx-store .avx-card__title { font-size: 16px; line-height: 1.35; margin: 0; padding: 0; font-weight: 700; }
.avx-store.avx-store.avx-store .avx-card__title a:hover { color: var(--avx-brand); }
.avx-card__excerpt { margin: 0; font-size: 13px; color: var(--avx-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avx-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; border-top: 1px dashed var(--avx-line); }
.avx-store.avx-store.avx-store .avx-card__foot .avx-price { font-size: 18px; }
.avx-store.avx-store.avx-store .avx-card__foot .button { padding: 9px 14px; font-size: 13px; margin: 0; }
.avx-grid.is-list { grid-template-columns: 1fr; }
.avx-grid.is-list .avx-card { flex-direction: row; }
.avx-grid.is-list .avx-card__media { width: 260px; flex: none; aspect-ratio: auto; min-height: 200px; }
.avx-grid.is-list .avx-card__excerpt { -webkit-line-clamp: 3; }

.avx-pagination { margin-top: 32px; }
.avx-store.avx-store.avx-store .woocommerce-pagination { text-align: center; }
.avx-store.avx-store.avx-store .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; border: 0; margin: 0; }
.avx-store.avx-store.avx-store .woocommerce-pagination ul.page-numbers li { border: 0; float: none; }
.avx-store.avx-store.avx-store .woocommerce-pagination .page-numbers a, .avx-store.avx-store.avx-store .woocommerce-pagination .page-numbers span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--avx-line); background: #fff; font-weight: 600; font-size: 14px; color: var(--avx-ink); }
.avx-store.avx-store.avx-store .woocommerce-pagination .page-numbers .current { background: var(--avx-brand); color: #fff; border-color: var(--avx-brand); }
.avx-empty { background: #fff; border: 1px dashed var(--avx-line); border-radius: var(--avx-radius); padding: 48px 24px; text-align: center; }
.avx-store.avx-store.avx-store .avx-empty h2 { margin: 0 0 6px; font-size: 20px; }
.avx-empty p { color: var(--avx-muted); margin: 0 0 16px; }

/* ---------- Single product ---------- */
.avx-store.avx-store.avx-store .avx-product { margin: 0; padding: 0; float: none; width: auto; }
.avx-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 14px 0 40px; }
.avx-gallery { position: sticky; top: 24px; align-self: start; }
.avx-gallery__main { position: relative; aspect-ratio: 4 / 3.4; border-radius: 20px; overflow: hidden; box-shadow: var(--avx-shadow-lg); background: #fff; }
.avx-slide { position: absolute; inset: 0; display: none; }
.avx-slide.is-active { display: block; }
.avx-store.avx-store.avx-store .avx-slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avx-bookcover { display: none; place-items: center; }
.avx-bookcover.is-active { display: grid; }
.avx-book { width: 52%; aspect-ratio: 3 / 4.2; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, #fff 0%, #eef3fe 100%); box-shadow: -10px 18px 40px rgba(0, 0, 0, .35), inset 6px 0 0 rgba(0, 0, 0, .12); padding: 22px 18px; display: flex; flex-direction: column; color: var(--avx-ink); transform: perspective(900px) rotateY(-12deg); }
.avx-book small { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--avx-brand); font-weight: 700; }
.avx-book b { font-size: clamp(16px, 2vw, 22px); line-height: 1.15; margin-top: 10px; }
.avx-book i { margin-top: auto; font-style: normal; font-size: 11px; color: var(--avx-muted); }
.avx-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.avx-store.avx-store.avx-store .avx-thumbs button { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; padding: 0; overflow: hidden; background: #fff; box-shadow: var(--avx-shadow); }
.avx-store.avx-store.avx-store .avx-thumbs button[aria-current="true"] { border-color: var(--avx-brand); }
.avx-store.avx-store.avx-store .avx-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.avx-summary { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.avx-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.avx-store.avx-store.avx-store .avx-cats a { font-size: 12px; font-weight: 700; color: var(--avx-brand); background: var(--avx-brand-soft); padding: 4px 10px; border-radius: 99px; }
.avx-store.avx-store.avx-store .avx-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.6px; margin: 0; padding: 0; }

.avx-buy { background: #fff; border: 1px solid var(--avx-line); border-radius: 18px; padding: 22px; box-shadow: var(--avx-shadow); display: flex; flex-direction: column; gap: 16px; }
.avx-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.avx-store.avx-store.avx-store .avx-buy .avx-price { font-size: 32px; letter-spacing: -.5px; }
.avx-save { font-size: 13px; font-weight: 700; color: var(--avx-sale); background: #ffe4e9; padding: 4px 10px; border-radius: 99px; }
.avx-short { color: var(--avx-ink-2); }
.avx-short p { margin: 0 0 8px; }
.avx-short p:last-child { margin: 0; }

/* WooCommerce add-to-cart form */
.avx-store.avx-store.avx-store form.cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; padding: 0; border: 0; }
.avx-store.avx-store.avx-store form.cart::before, .avx-store.avx-store.avx-store form.cart::after { display: none; }
.avx-store.avx-store.avx-store form.cart .quantity { display: flex; align-items: center; margin: 0; float: none; }
.avx-store.avx-store.avx-store form.cart .quantity .qty { width: 72px; height: 50px; border: 1px solid var(--avx-line); border-radius: 12px; text-align: center; font-size: 16px; padding: 0 6px; background: #fff; color: var(--avx-ink); margin: 0; }
.avx-store.avx-store.avx-store form.cart .single_add_to_cart_button { flex: 1 1 180px; align-self: flex-end; height: 50px; min-height: 50px; min-width: 0; font-size: 16px; padding: 0 22px; border-radius: 12px; float: none; margin: 0; }
/* Themes that print a "Quantity" label above the box: keep label and box stacked, box 50px tall like the button. */
.avx-store.avx-store.avx-store form.cart .quantity { flex-direction: column; align-items: flex-start; gap: 6px; }
.avx-store.avx-store.avx-store form.cart .quantity label:not(.screen-reader-text) { margin: 0; font-size: 13px; color: var(--avx-muted); font-weight: 600; }
.avx-store.avx-store.avx-store form.cart table.variations { width: 100%; margin: 0 0 6px; border: 0; }
.avx-store.avx-store.avx-store form.cart table.variations th, .avx-store.avx-store.avx-store form.cart table.variations td { border: 0; padding: 4px 0; background: none; text-align: left; vertical-align: middle; }
.avx-store.avx-store.avx-store form.cart table.variations select { width: 100%; border: 1px solid var(--avx-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.avx-store.avx-store.avx-store .single_variation_wrap { width: 100%; }
.avx-store.avx-store.avx-store .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.avx-store.avx-store.avx-store .reset_variations { font-size: 13px; color: var(--avx-muted); margin-left: 8px; }
.avx-store.avx-store.avx-store .stock { font-size: 13px; margin: 0; }
.avx-store.avx-store.avx-store .stock.out-of-stock { color: var(--avx-sale); }

.avx-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; color: var(--avx-ink-2); }
.avx-perks li { display: flex; gap: 8px; align-items: center; }
.avx-perks li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: var(--avx-ok); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.avx-voucher { margin: 0; font-size: 13px; color: var(--avx-muted); border-top: 1px dashed var(--avx-line); padding-top: 14px; }
.avx-store.avx-store.avx-store .avx-voucher a { color: var(--avx-brand); font-weight: 600; }
.avx-included { background: #fff; border: 1px solid var(--avx-line); border-radius: var(--avx-radius); padding: 16px 18px; }
.avx-store.avx-store.avx-store .avx-included h2 { font-size: 15px; margin: 0 0 8px; }
.avx-store.avx-store.avx-store .avx-included li[hidden] { display: none; }
.avx-store.avx-store.avx-store .avx-more { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--avx-brand); font-weight: 600; font-size: 13px; cursor: pointer; }
.avx-store.avx-store.avx-store .avx-more:hover { text-decoration: underline; }
.avx-included li { padding: 4px 0 4px 22px; position: relative; color: var(--avx-ink-2); font-size: 14px; }
.avx-included li::before { content: "📘"; position: absolute; left: 0; font-size: 13px; }
.avx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avx-facts div { background: #fff; border: 1px solid var(--avx-line); border-radius: 12px; padding: 12px; text-align: center; }
.avx-facts strong { display: block; font-size: 15px; }
.avx-facts span { font-size: 12px; color: var(--avx-muted); }
.avx-store.avx-store.avx-store .product_meta { font-size: 13px; color: var(--avx-muted); display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; }
.avx-store.avx-store.avx-store .product_meta a { color: var(--avx-ink-2); }
.avx-store.avx-store.avx-store .product_meta a:hover { color: var(--avx-brand); }

/* WooCommerce tabs and reviews */
.avx-store.avx-store.avx-store .woocommerce-tabs { background: #fff; border: 1px solid var(--avx-line); border-radius: 20px; margin: 0 0 40px; overflow: hidden; padding: 0; clear: both; width: 100%; max-width: none; float: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs { display: flex; gap: 4px; margin: 0; padding: 0 12px; border-bottom: 1px solid var(--avx-line); overflow-x: auto; scrollbar-width: none; background: none; list-style: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs::before, .avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs::after, .avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs li::before, .avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs li::after { display: none; border: 0; box-shadow: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; float: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs li a { display: block; padding: 18px 16px 15px; font-weight: 600; color: var(--avx-muted); border-bottom: 3px solid transparent; white-space: nowrap; background: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs ul.wc-tabs li.active a { color: var(--avx-brand); border-bottom-color: var(--avx-brand); }
.avx-store.avx-store.avx-store .woocommerce-tabs .woocommerce-Tabs-panel { padding: 28px 32px 32px; margin: 0; border: 0; background: none; box-shadow: none; }
.avx-store.avx-store.avx-store .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { font-size: 22px; margin: 0 0 12px; }
.avx-store.avx-store.avx-store .woocommerce-tabs .woocommerce-Tabs-panel p { color: var(--avx-ink-2); max-width: 780px; }
.avx-store.avx-store.avx-store .woocommerce-tabs table.shop_attributes { border: 1px solid var(--avx-line); border-radius: 12px; border-collapse: separate; overflow: hidden; width: 100%; }
.avx-store.avx-store.avx-store .woocommerce-tabs table.shop_attributes th, .avx-store.avx-store.avx-store .woocommerce-tabs table.shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--avx-line); background: none; text-align: left; }
.avx-store.avx-store.avx-store #reviews .commentlist { margin: 0 0 24px; padding: 0; }
.avx-store.avx-store.avx-store #reviews .commentlist li { list-style: none; border-bottom: 1px solid var(--avx-line); padding: 0 0 18px; margin: 0 0 18px; }
.avx-store.avx-store.avx-store #reviews .commentlist .avatar { border-radius: 50%; float: left; margin-right: 12px; width: 40px; height: 40px; padding: 0; border: 0; position: static; }
.avx-store.avx-store.avx-store #reviews .comment-text { margin: 0 0 0 52px; border: 0; padding: 0; }
.avx-store.avx-store.avx-store #reviews .comment-form input[type="text"], .avx-store.avx-store.avx-store #reviews .comment-form input[type="email"], .avx-store.avx-store.avx-store #reviews .comment-form textarea, .avx-store.avx-store.avx-store #reviews .comment-form select { width: 100%; border: 1px solid var(--avx-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.avx-store.avx-store.avx-store #reviews .comment-form .submit { background: var(--avx-brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; cursor: pointer; }

/* Related */
.avx-store.avx-store.avx-store .avx-related h2 { font-size: 24px; margin: 0 0 18px; }
.avx-store.avx-store.avx-store .avx-related .avx-card__excerpt { display: none; }

/* Sticky buy bar (mobile) */
.avx-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--avx-line); padding: 10px 16px; display: none; align-items: center; gap: 12px; z-index: 999; box-shadow: 0 -8px 24px rgba(16, 24, 40, .08); transform: translateY(110%); transition: transform .25s; }
.avx-sticky.is-visible { transform: none; }
.avx-sticky__text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.avx-sticky__text span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avx-sticky__text strong del { font-weight: 400; color: var(--avx-muted); margin-right: 4px; }
.avx-sticky__text strong ins { text-decoration: none; }

/* Notices */
.avx-store.avx-store.avx-store .woocommerce-message, .avx-store.avx-store.avx-store .woocommerce-info, .avx-store.avx-store.avx-store .woocommerce-error { border-radius: 12px; margin: 12px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.avx-store.avx-store.avx-store .avx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.avx-store.avx-store.avx-store .avx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.avx-top { grid-template-columns: 1fr; gap: 28px; }
	.avx-gallery { position: static; }
}
@media (max-width: 860px) {
	.avx-layout { grid-template-columns: 1fr; }
	.avx-filters-toggle { display: inline-flex !important; }
	.avx-drawer-close { display: flex !important; justify-content: flex-end; margin-bottom: 10px; }
	.avx-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); z-index: 100000; background: var(--avx-bg); padding: 16px; overflow-y: auto; transform: translateX(-105%); transition: transform .25s; }
	.avx-sidebar.is-open { transform: none; box-shadow: var(--avx-shadow-lg); }
	.avx-backdrop { display: block !important; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 99999; opacity: 0; pointer-events: none; transition: opacity .25s; }
	.avx-backdrop.is-visible { opacity: 1; pointer-events: auto; }
	.avx-grid.is-list .avx-card { flex-direction: column; }
	.avx-grid.is-list .avx-card__media { width: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 760px) {
	.avx-perks { grid-template-columns: 1fr; }
	.avx-store.avx-store.avx-store .woocommerce-tabs .woocommerce-Tabs-panel { padding: 22px 18px 24px; }
	.avx-sticky { display: flex; }
	.avx-single { padding-bottom: 80px; }
}
@media (max-width: 560px) {
	.avx-store.avx-store.avx-store .avx-grid, .avx-store.avx-store.avx-store .avx-grid--4 { grid-template-columns: 1fr; }
	.avx-view { display: none; }
	.avx-toolbar__right { margin-left: 0; width: 100%; }
	.avx-store.avx-store.avx-store .woocommerce-ordering, .avx-store.avx-store.avx-store .woocommerce-ordering select { width: 100%; }
	.avx-facts { grid-template-columns: 1fr 1fr 1fr; }
	.avx-store.avx-store.avx-store .avx-buy .avx-price { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .avx-store.avx-store.avx-store *, .avx-sticky, .avx-sidebar { transition: none !important; } }

/* ---------- Theme-proof layer ----------
 * Themes (Eduma, Educrat, Astra, …) give .summary, .product and WooCommerce buttons their own widths,
 * floats, colours and letter case, sometimes with very specific selectors. The few properties the
 * layout depends on are locked here with !important, only inside .avx-store, so the rest of the site
 * is not affected. The :is(#avx-boost-…) parts never match an element; they only lift specificity
 * above theme rules (including ones with an ID such as #main) while still matching .avx-store alone. */
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-product { display: block !important; width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-top { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; gap: 40px !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-top > .avx-gallery,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-top > .avx-summary { width: auto !important; max-width: none !important; min-width: 0 !important; float: none !important; clear: none !important; margin: 0 !important; padding: 0 !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-summary { display: flex !important; flex-direction: column; gap: 16px; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-buy { width: auto !important; max-width: none !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .woocommerce-tabs,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-related { width: 100% !important; max-width: none !important; float: none !important; }

/* Product images keep their own shape: no empty bands, no cropping. */
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-gallery__main:not(.is-cover) { aspect-ratio: auto; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-gallery__main:not(.is-cover) .avx-slide { position: absolute; inset: 0; display: none; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-gallery__main:not(.is-cover) .avx-slide.is-active { position: relative; inset: auto; display: block; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-gallery__main:not(.is-cover) .avx-slide img { width: 100% !important; height: auto !important; max-height: 720px; object-fit: contain; margin: 0 auto !important; }

/* WooCommerce buttons inside the storefront: accent colour, rounded, normal letter case. */
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .button,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) button.button,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) a.button,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .single_add_to_cart_button {
	background-color: var(--avx-brand) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	font-family: inherit;
}
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .button:hover,
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .single_add_to_cart_button:hover { background-color: var(--avx-brand-dark) !important; color: #fff !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .button.added { background-color: var(--avx-ok) !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) form.cart .single_add_to_cart_button { height: 50px !important; min-height: 50px !important; line-height: 1.2 !important; padding: 0 22px !important; }

@media (max-width: 900px) {
	.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-top { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ---------- Product page: info row, Buy now, quantity stepper, facts ---------- */
.avx-store.avx-store.avx-store .avx-info-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; font-size: 14px; color: var(--avx-muted); white-space: nowrap; overflow: hidden; margin: 0; }
.avx-store.avx-store.avx-store .avx-info-row__item { display: inline-flex; align-items: center; gap: 6px; }
.avx-store.avx-store.avx-store .avx-info-row__item + .avx-info-row__item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #c4c8d0; margin: 0 12px; flex: none; }
.avx-store.avx-store.avx-store .avx-info-row strong { color: var(--avx-ink); }
.avx-store.avx-store.avx-store .avx-info-row a { color: var(--avx-brand); font-weight: 600; }
.avx-store.avx-store.avx-store .avx-info-row:empty { display: none; }
@media (max-width: 420px) {
	.avx-store.avx-store.avx-store .avx-info-row { flex-wrap: wrap; white-space: normal; row-gap: 6px; }
}

/* Add to cart and quantity share a row; Buy now takes the full row below. */
.avx-store.avx-store.avx-store form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; width: 100%; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-buy-now {
	flex: 1 0 100% !important; width: 100% !important; height: 50px !important; margin: 0 !important; padding: 0 22px !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	background: #fff !important; color: var(--avx-ink) !important; border: 1px solid var(--avx-line) !important; border-radius: 12px !important;
	font: inherit; font-size: 16px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; cursor: pointer;
}
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-buy-now:hover { border-color: var(--avx-brand) !important; color: var(--avx-brand) !important; }
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) .avx-buy-now.is-disabled { opacity: .5; cursor: not-allowed; }

/* Quantity stepper added by storefront.js (skipped when the theme has its own − / + buttons). */
.avx-store.avx-store.avx-store .quantity.avx-stepper { flex-direction: row !important; align-items: center !important; gap: 0 !important; height: 50px; border: 1px solid var(--avx-line); border-radius: 12px; background: #fff; overflow: hidden; }
.avx-store.avx-store.avx-store .quantity.avx-stepper label:not(.screen-reader-text) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.avx-store.avx-store.avx-store .quantity.avx-stepper .qty { width: 44px !important; height: 48px !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; text-align: center; -moz-appearance: textfield; appearance: textfield; background: transparent !important; box-shadow: none !important; }
.avx-store.avx-store.avx-store .quantity.avx-stepper .qty::-webkit-inner-spin-button,
.avx-store.avx-store.avx-store .quantity.avx-stepper .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.avx-store.avx-store.avx-store .avx-step { width: 42px; height: 48px; border: 0; background: none; color: var(--avx-ink-2); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; border-radius: 0; }
.avx-store.avx-store.avx-store .avx-step:hover { background: var(--avx-bg); color: var(--avx-brand); }

/* Facts: as many tiles as there are values. */
.avx-store.avx-store.avx-store .avx-facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.avx-store.avx-store.avx-store .avx-facts strong { font-size: 18px; font-weight: 800; }
.avx-store.avx-store.avx-store .avx-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Live price: "£21.99 each" under the total, Extra information checklist. */
.avx-store.avx-store.avx-store .avx-each { flex-basis: 100%; margin-top: -4px; font-size: 13px; color: var(--avx-muted); }
.avx-store.avx-store.avx-store .avx-each[hidden] { display: none; }
.avx-store.avx-store.avx-store .avx-perks li span { min-width: 0; }
.avx-store.avx-store.avx-store .avx-perks a { color: var(--avx-brand); font-weight: 600; }

/* Checklist icon colours (eBooks → Shop design → Checklist icon). */
.avx-store.avx-store.avx-store .avx-perks li::before { background: var(--avx-check-bg, #dcfce7); color: var(--avx-check-color, #15803d); }

/* Category badge beside the format badge on cards. */
.avx-store.avx-store.avx-store .avx-card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.avx-store.avx-store.avx-store .avx-card__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--avx-ink-2); background: #eef0f4; padding: 2px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* WooCommerce's inline "View cart" link is replaced by the popup, so cards stay aligned. */
.avx-store:is(#avx-boost-1, .avx-store):is(#avx-boost-2, .avx-store) a.added_to_cart { display: none !important; }
.avx-store.avx-store.avx-store .avx-notice-moved { display: none !important; }

/* "Added to cart" popup (outside .avx-store, so it has its own scoped class). */
body .avx-toast {
	--avx-brand: #1a64f0;
	position: fixed; z-index: 100001; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
	display: flex; align-items: center; gap: 12px; max-width: min(92vw, 520px);
	padding: 12px 12px 12px 14px; border-radius: 14px; background: #111827; color: #fff;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .25); font-size: 14px; line-height: 1.35;
	opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
body .avx-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body .avx-toast .avx-toast__icon { width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
body .avx-toast .avx-toast__text { flex: 1; min-width: 0; }
body .avx-toast a.avx-toast__link { flex: none; background: var(--avx-brand); color: #fff !important; text-decoration: none !important; text-transform: none; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 9px; white-space: nowrap; }
body .avx-toast a.avx-toast__link:hover { filter: brightness(.92); }
body .avx-toast .avx-toast__close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
body .avx-toast .avx-toast__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 760px) { body .avx-toast { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { body .avx-toast { transition: none; } }
