/* =========================================================================
   All Booked — storefront styles (Astra child)
   Tokens → base → header → components → pages. Mobile first.
   ========================================================================= */

@font-face {
	font-family: "Lexend";
	src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2-variations");
	font-weight: 100 1000;
	font-style: italic;
	font-display: swap;
}

:root {
	--ab-ink: #15122e;
	--ab-ink-2: #3b3658;
	--ab-muted: #5f5880;
	--ab-violet: #6b2cf5;
	--ab-violet-ink: #5320d6;
	--ab-violet-soft: #ece6ff;
	--ab-lav: #f5f2fd;
	--ab-paper: #ffffff;
	--ab-line: #e4ddf6;
	--ab-line-2: #d3c9f0;
	--ab-sun: #ffc85c;
	--ab-sun-ink: #3a2a00;
	--ab-sun-soft: #fff4dc;
	--ab-red: #b42318;
	--ab-green: #13795b;
	--ab-cover: #efeaf9;
	--ab-radius: 14px;
	--ab-radius-sm: 10px;
	--ab-shadow: 0 1px 2px rgba(21, 18, 46, .06), 0 8px 24px -12px rgba(21, 18, 46, .18);
	--ab-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ab-display: "Lexend", "DM Sans", system-ui, sans-serif;
	--ab-gutter: 16px;
	--ab-header-h: 0px;
}
@media (min-width: 768px) { :root { --ab-gutter: 24px; } }

/* ---------- Base ---------- */

body.ab {
	font-family: var(--ab-font);
	color: var(--ab-ink);
	background: var(--ab-lav);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.ab h1, .ab h2, .ab h3, .ab h4,
.ab .entry-title, .ab .product_title {
	font-family: var(--ab-display);
	color: var(--ab-ink);
	letter-spacing: -.015em;
	line-height: 1.15;
	font-weight: 700;
	text-wrap: balance;
}
.ab a { color: var(--ab-violet-ink); }
.ab a:hover { color: var(--ab-ink); }
.ab p { text-wrap: pretty; }
.ab img { max-width: 100%; height: auto; }
.ab :focus-visible { outline: 3px solid var(--ab-violet); outline-offset: 2px; border-radius: 6px; }
.ab .ab-muted { color: var(--ab-muted); }
.ab .ab-center { text-align: center; margin-top: 28px; }
.ab-lock { overflow: hidden; }
.ab .ab-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 1000; background: var(--ab-paper); padding: 10px 14px; clip: auto; width: auto; height: auto; }

.ab-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--ab-gutter); box-sizing: border-box; }

/* Astra containers: let our templates own the width on store pages. */
.ab-store .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ab-store #primary, .ab-store .site-main { margin: 0; padding: 0; width: 100%; }
.ab-store.woocommerce-cart .site-content > .ast-container,
.ab-store.woocommerce-checkout .site-content > .ast-container,
.ab-store.woocommerce-account .site-content > .ast-container,
.ab .site-content > .ast-container { max-width: 1280px; margin-inline: auto; padding-inline: var(--ab-gutter); }
.ab-store.home .site-content > .ast-container,
.ab-store.woocommerce-shop .site-content > .ast-container,
.ab-store.tax-product_cat .site-content > .ast-container,
.ab-store.single-product .site-content > .ast-container,
.ab-store.search .site-content > .ast-container { max-width: none; padding: 0; }
.ab .site-content { background: transparent; }
.ab .ast-separate-container .ast-article-single, .ab .ast-separate-container .ast-article-post,
.ab.ast-separate-container .ast-article-single { background: var(--ab-paper); border-radius: var(--ab-radius); padding: clamp(20px, 4vw, 40px); }
.ab.ast-separate-container .site-main > .ast-row { margin: 0; }

/* ---------- Buttons ---------- */

.ab .ab-btn,
.ab .woocommerce a.button, .ab .woocommerce button.button, .ab .woocommerce input.button,
.ab a.button, .ab button.button, .ab .woocommerce #respond input#submit,
.ab .woocommerce .single_add_to_cart_button, .ab #place_order, .ab .checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: var(--ab-font);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	box-shadow: none;
}
.ab .ab-btn:active, .ab .button:active { transform: translateY(1px); }
.ab .ab-btn--primary,
.ab .woocommerce .single_add_to_cart_button, .ab .single_add_to_cart_button.button,
.ab #place_order, .ab .checkout-button, .ab .woocommerce a.checkout-button {
	background: var(--ab-sun);
	color: var(--ab-sun-ink);
	border-color: var(--ab-sun);
}
.ab .ab-btn--primary:hover, .ab .single_add_to_cart_button:hover, .ab #place_order:hover, .ab .checkout-button:hover {
	background: #ffbb33; border-color: #ffbb33; color: var(--ab-sun-ink);
}
.ab .ab-btn--dark { background: var(--ab-ink); color: #fff; border-color: var(--ab-ink); }
.ab .ab-btn--dark:hover { background: #2a2550; color: #fff; }
.ab .ab-btn--outline,
.ab .woocommerce a.button, .ab .woocommerce button.button, .ab a.button, .ab button.button {
	background: var(--ab-paper);
	color: var(--ab-ink);
	border-color: var(--ab-ink);
}
.ab .ab-btn--outline:hover, .ab .woocommerce a.button:hover, .ab .woocommerce button.button:hover, .ab a.button:hover, .ab button.button:hover {
	background: var(--ab-ink); color: #fff; border-color: var(--ab-ink);
}
.ab .ab-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ab .ab-btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.ab .ab-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.ab .ab-btn--block { width: 100%; }
.ab .button.loading { opacity: .7; }
.ab .button.added::after { content: none; }
.ab .added_to_cart { display: none; }
.ab .ab-link { background: none; border: 0; padding: 0; color: var(--ab-violet-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

.ab .ab-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ab-ink); cursor: pointer; padding: 0; }
.ab .ab-iconbtn:hover { background: var(--ab-violet-soft); color: var(--ab-ink); }

.ab .ab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ab-violet); color: #fff; font: 700 11px/1 var(--ab-font); }

.ab .ab-eyebrow { margin: 0 0 6px; font: 700 12px/1.3 var(--ab-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-violet-ink); }
.ab .ab-eyebrow--pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ab-sun-soft); color: #7a4b00; }

.ab .ab-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--ab-violet-soft); color: var(--ab-violet-ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.ab .ab-chip:hover { background: var(--ab-violet); color: #fff; }
.ab .ab-chip--x { background: var(--ab-paper); border: 1.5px solid var(--ab-line-2); color: var(--ab-ink); }
.ab .ab-chiprow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Announcement + header ---------- */

.ab-announce { background: var(--ab-ink); color: #ece6ff; font-size: 13.5px; position: relative; }
.ab-announce p { margin: 0; padding: 9px 48px; text-align: center; line-height: 1.4; }
.ab-announce__close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: #b9b1e3; cursor: pointer; border-radius: 999px; }
.ab-announce__close:hover { color: #fff; background: rgba(255,255,255,.1); }

.ab-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ab-line); }
.admin-bar .ab-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ab-header { top: 32px; } }
.ab-header__bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo icons" "search search search"; align-items: center; gap: 8px 10px; padding-block: 10px; }
.ab-header__menu { grid-area: menu; }
.ab-header__logo { grid-area: logo; text-decoration: none; justify-self: start; }
.ab-header__search { grid-area: search; min-width: 0; }
.ab-header__icons { grid-area: icons; display: flex; align-items: center; gap: 4px; }
.ab-wordmark { display: inline-flex; flex-direction: column; border-left: 3px solid var(--ab-ink); padding-left: 8px; font: 800 18px/.92 var(--ab-display); letter-spacing: -.02em; color: var(--ab-ink); }
.ab-wordmark em { font-style: normal; color: var(--ab-violet); }
.ab-iconlink { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 10px; color: var(--ab-ink) !important; text-decoration: none; font-size: 11.5px; font-weight: 600; }
.ab-iconlink:hover { background: var(--ab-violet-soft); }
.ab-iconlink .ab-badge { position: absolute; top: 0; right: 4px; }
.ab-hide-sm { display: none !important; }
.ab-bag { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--ab-ink); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.ab-bag:hover { background: #2a2550; }
.ab-bag .ab-bag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ab-sun); color: var(--ab-sun-ink); font-size: 12px; }
.ab-bag .ab-bag-total { display: none; }
.ab-bag .ab-bag-total .woocommerce-Price-amount { color: #fff; }

/* Search (FiboSearch or WooCommerce form). */
.ab-header__search .dgwt-wcas-search-wrapp { max-width: none; }
.ab-header__search .dgwt-wcas-sf-wrapp { background: var(--ab-lav) !important; border: 1.5px solid var(--ab-line-2) !important; border-radius: 999px !important; padding: 0 !important; }
.ab-header__search .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { height: 46px; border: 0 !important; background: transparent !important; border-radius: 999px !important; padding-left: 44px !important; font: 500 15px var(--ab-font); color: var(--ab-ink); }
.ab-header__search .dgwt-wcas-sf-wrapp input[type=search]::placeholder { color: var(--ab-muted); opacity: 1; }
.ab-header__search .dgwt-wcas-ico-magnifier { left: 16px !important; max-width: 18px; }
.ab-header__search .dgwt-wcas-sf-wrapp:focus-within { border-color: var(--ab-violet) !important; box-shadow: 0 0 0 3px var(--ab-violet-soft); }
.ab-header__search .woocommerce-product-search { display: flex; gap: 6px; }
.ab-header__search .woocommerce-product-search input[type=search] { flex: 1; height: 46px; border-radius: 999px; border: 1.5px solid var(--ab-line-2); background: var(--ab-lav); padding: 0 18px; }

.ab-genres { border-top: 1px solid var(--ab-line); }
.ab-genres__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ab-genres ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ab-genres__list { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ab-genres__list::-webkit-scrollbar { display: none; }
.ab-genres a { display: block; white-space: nowrap; padding: 11px 10px; font-size: 14px; font-weight: 600; color: var(--ab-ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.ab-genres a:hover { color: var(--ab-violet-ink); }
.ab-genres a[aria-current="page"] { color: var(--ab-ink); border-bottom-color: var(--ab-violet); }
.ab-genres__util { display: none !important; }
.ab-genres__util a { color: var(--ab-muted); font-weight: 500; }

@media (min-width: 900px) {
	.ab-header__bar { grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: "logo search icons"; gap: 24px; padding-block: 14px; }
	.ab .ab-header__menu { display: none; }
	.ab-wordmark { font-size: 20px; }
	.ab-hide-sm { display: inline-flex !important; }
	.ab-bag .ab-bag-total { display: inline; }
	.ab-genres__util { display: flex !important; }
	.ab-genres__list { mask-image: none; }
}

/* Mobile menu */
.ab-menu { width: min(360px, 88vw); height: 100dvh; max-height: none; margin: 0 auto 0 0; padding: 0; border: 0; background: var(--ab-paper); color: var(--ab-ink); overflow-y: auto; }
.ab-menu::backdrop { background: rgba(21,18,46,.45); }
.ab-menu[open] { animation: ab-slide .2s ease-out; }
@keyframes ab-slide { from { transform: translateX(-24px); opacity: 0; } }
.ab-menu__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--ab-line); position: sticky; top: 0; background: var(--ab-paper); }
.ab-menu nav { padding: 8px 20px 32px; }
.ab-menu__label { margin: 18px 0 6px; font: 700 12px var(--ab-font); letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); }
.ab-menu__list { list-style: none; margin: 0; padding: 0; }
.ab-menu__list a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ab-line); color: var(--ab-ink); font-weight: 600; text-decoration: none; }
.ab-menu__list a span { color: var(--ab-muted); font-weight: 500; font-size: 13px; }
.ab-menu__list--plain a { font-weight: 500; }

/* ---------- Product cards ---------- */

.ab ul.products,
.woocommerce .ab ul.products,
.ab .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ab ul.products::before, .ab ul.products::after { content: none !important; display: none !important; }
@media (min-width: 640px) { .ab ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1000px) { .ab ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ab-home ul.products, .ab-section ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ab ul.products li.product.ab-card,
.woocommerce .ab ul.products li.product.ab-card {
	width: auto; float: none; margin: 0; padding: 0;
	display: flex; flex-direction: column;
	background: transparent; text-align: left;
}
.ab-card__media { position: relative; }
.ab-card__cover { display: grid; place-items: end center; aspect-ratio: 2 / 3; padding: 10px 10px 0; background: var(--ab-cover); border-radius: var(--ab-radius); overflow: hidden; }
.ab-card__cover img, .ab ul.products li.product .ab-card__cover img {
	width: auto; height: auto; max-width: 100%; max-height: 100%;
	object-fit: contain; margin: 0 !important; border-radius: 4px 4px 0 0;
	box-shadow: 0 10px 22px -10px rgba(21,18,46,.45);
	transition: transform .25s ease;
}
.ab-card:hover .ab-card__cover img { transform: translateY(-4px); }
.ab-card__flag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; background: var(--ab-violet); color: #fff; font: 700 12px/1.3 var(--ab-font); }
.ab-card__flag--out { background: var(--ab-paper); color: var(--ab-ink-2); border: 1px solid var(--ab-line-2); }
.ab-heart { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); color: var(--ab-ink); cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(21,18,46,.15); }
.ab-heart svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s ease; }
.ab-heart:hover { color: var(--ab-violet); }
.ab-heart[aria-pressed="true"] { color: #e0245e; }
.ab-heart[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.08); }
.ab-card__body { padding: 12px 2px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ab-card__author { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ab-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab .ab-card__title, .ab ul.products li.product .ab-card__title { margin: 0; padding: 0; font: 600 15px/1.3 var(--ab-font); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card__title a { color: var(--ab-ink); text-decoration: none; }
.ab-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ab-card { position: relative; }
.ab-card__heart, .ab-card__actions { position: relative; z-index: 2; }
.ab-card__price { margin: 4px 0 0; font-size: 15px; }
.ab .ab-card__inst { margin: 0; font-size: 12px; color: var(--ab-muted); line-height: 1.4; }
.ab .ab-card__inst .woocommerce-Price-amount { color: var(--ab-ink-2); font-weight: 600; }
.ab .ab-card__stock { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; }
.ab .is-low { color: var(--ab-red); }
.ab-card__actions .button, .ab-card__actions .ab-btn { width: 100%; min-height: 42px; font-size: 14px; padding: 8px 12px; }

/* Prices */
.ab .price, .ab .price .woocommerce-Price-amount { color: var(--ab-ink); font-weight: 700; }
.ab .price del { color: var(--ab-muted); font-weight: 500; opacity: 1; margin-right: 6px; font-size: .86em; }
.ab .price del .woocommerce-Price-amount { color: var(--ab-muted); font-weight: 500; }
.ab .price ins { text-decoration: none; }
.ab .ab-save { color: var(--ab-green); font-weight: 700; font-size: 14px; margin: 0; }
.ab .ab-save .woocommerce-Price-amount { color: inherit; }

/* ---------- Sections ---------- */

.ab-section { margin-block: 48px; }
.ab-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ab .ab-section__title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.ab .ab-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ab-ink); text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--ab-ink); border-radius: 999px; }
.ab .ab-more:hover { background: var(--ab-ink); color: #fff; }

/* ---------- Homepage ---------- */

.ab-hero { display: grid; gap: 16px; padding-top: 20px; }
@media (min-width: 1000px) { .ab-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; padding-top: 28px; } }
.ab-hero__feature { display: grid; gap: 20px; align-items: center; background: var(--ab-paper); border-radius: 22px; padding: 24px; box-shadow: var(--ab-shadow); }
@media (min-width: 640px) { .ab-hero__feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 36px; } }
.ab .ab-hero__title { margin: 12px 0 6px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; }
.ab-hero__title a { color: var(--ab-ink); text-decoration: none; }
.ab-hero__author { margin: 0 0 8px; font-weight: 600; color: var(--ab-muted); }
.ab-hero__text { margin: 0 0 16px; color: var(--ab-ink-2); max-width: 46ch; }
.ab .ab-hero__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 18px; font-size: 26px; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ab .ab-hero__inst { margin: 12px 0 0; font-size: 13.5px; color: var(--ab-muted); }
.ab-hero__cover { display: grid; place-items: center; background: var(--ab-cover); border-radius: 18px; padding: 20px; aspect-ratio: 1 / 1; order: -1; }
@media (min-width: 640px) { .ab-hero__cover { order: 0; } }
.ab-hero__cover img { max-height: 100%; width: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 40px -18px rgba(21,18,46,.5); }
.ab-hero__side { display: grid; gap: 16px; }
@media (min-width: 640px) and (max-width: 999px) { .ab-hero__side { grid-template-columns: 1fr 1fr; } }
.ab-promo { display: flex; flex-direction: column; gap: 8px; justify-content: space-between; padding: 24px; border-radius: 22px; background: var(--ab-paper); color: var(--ab-ink) !important; text-decoration: none; box-shadow: var(--ab-shadow); min-height: 170px; transition: transform .15s ease; }
.ab-promo:hover { transform: translateY(-2px); }
.ab-promo strong { font: 700 21px/1.25 var(--ab-display); letter-spacing: -.01em; }
.ab-promo__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ab-violet-ink); }
.ab-promo--violet { background: var(--ab-violet); color: #fff !important; }
.ab-promo--violet .ab-eyebrow, .ab-promo--violet .ab-promo__go { color: #efe8ff; }

.ab-trust { list-style: none; margin: 20px 0 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px; background: var(--ab-paper); border-radius: var(--ab-radius); box-shadow: var(--ab-shadow); }
.ab-trust li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.ab-trust .ab-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ab-violet-soft); color: var(--ab-violet-ink); }
.ab-trust div { display: flex; flex-direction: column; line-height: 1.3; }
.ab-trust strong { font-size: 14.5px; }
.ab-trust span { font-size: 13px; color: var(--ab-muted); }

.ab-moods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ab-moods a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--ab-paper); border: 1.5px solid var(--ab-line); color: var(--ab-ink); font-weight: 600; text-decoration: none; }
.ab-moods a:hover { border-color: var(--ab-violet); color: var(--ab-violet-ink); }
.ab-moods__n { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; background: var(--ab-sun-soft); color: #7a4b00; font-size: 12px; font-weight: 700; }

.ab-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ab-paper); border: 1px solid var(--ab-line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ab-tabs [role="tab"] { flex: none; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ab-ink-2); font: 600 14px var(--ab-font); cursor: pointer; }
.ab-tabs [role="tab"]:hover { color: var(--ab-ink); background: var(--ab-lav); }
.ab-tabs [role="tab"][aria-selected="true"] { background: var(--ab-ink); color: #fff; }

.ab-band { margin-block: 48px; padding: 28px 32px; border-radius: 22px; background: var(--ab-sun); color: var(--ab-sun-ink); }
.ab .ab-band__title { margin: 0; font: 800 clamp(20px, 2.4vw, 28px)/1.2 var(--ab-display); letter-spacing: -.02em; color: var(--ab-sun-ink); }
.ab .ab-band__sub { margin: 6px 0 0; font-weight: 600; color: #5c4300; }

.ab-shelves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .ab-shelves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.ab-shelves a { display: flex; flex-direction: column; height: 100%; padding: 16px; border-radius: var(--ab-radius); background: var(--ab-paper); color: var(--ab-ink); text-decoration: none; box-shadow: var(--ab-shadow); transition: transform .15s ease; }
.ab-shelves a:hover { transform: translateY(-3px); color: var(--ab-ink); }
.ab-shelves__covers { display: flex; justify-content: center; align-items: flex-end; height: 120px; margin-bottom: 14px; background: var(--ab-cover); border-radius: var(--ab-radius-sm); padding-top: 12px; overflow: hidden; }
.ab-shelves__covers img { width: 30%; max-width: 72px; height: auto; margin: 0 -6px; border-radius: 3px 3px 0 0; box-shadow: 0 6px 14px -6px rgba(21,18,46,.5); }
.ab-shelves__covers img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-6px); }
.ab-shelves__name { font: 700 17px/1.2 var(--ab-display); }
.ab-shelves__count { font-size: 13px; color: var(--ab-muted); margin-top: 2px; }

.ab-authorlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .ab-authorlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ab-authorlist { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ab-authorlist a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border-radius: var(--ab-radius); background: var(--ab-paper); text-decoration: none; color: var(--ab-ink); border: 1px solid var(--ab-line); }
.ab-authorlist a:hover { border-color: var(--ab-violet); }
.ab-authorlist__cover { grid-row: span 2; width: 48px; height: 64px; display: grid; place-items: center; background: var(--ab-cover); border-radius: 6px; overflow: hidden; }
.ab-authorlist__cover img { max-height: 100%; width: auto; }
.ab-authorlist__name { font-weight: 700; font-size: 14.5px; line-height: 1.25; align-self: end; }
.ab-authorlist__count { font-size: 12.5px; color: var(--ab-muted); align-self: start; }

.ab-request { margin-block: 48px 64px; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--ab-ink); color: #ece6ff; display: grid; gap: 20px; align-items: center; }
@media (min-width: 800px) { .ab-request { grid-template-columns: 1fr auto; } }
.ab .ab-request h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.ab-request p { margin: 0; color: #c9c1ee; max-width: 60ch; }
.ab-request__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ab-recent { margin-top: 56px; }

/* ---------- Listing (shop / category / author / search) ---------- */

.ab-listing { padding-top: 20px; padding-bottom: 56px; }
.ab-listing__head { margin-bottom: 18px; }
.ab .ab-listing__title { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.ab-listing__head .term-description, .ab-listing__head .page-description { max-width: 70ch; color: var(--ab-ink-2); margin-top: 8px; }
.ab-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ab-muted); }
.ab-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--ab-line-2); }
.ab-crumbs a { color: var(--ab-muted); text-decoration: none; }
.ab-crumbs a:hover { color: var(--ab-violet-ink); text-decoration: underline; }
.ab-listing__body { display: block; }
@media (min-width: 1000px) { .ab-listing__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; } }

.ab-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.ab-toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.ab .ab-toolbar .woocommerce-result-count { margin: 0 auto 0 0; font-size: 14px; color: var(--ab-muted); float: none; }
.ab .ab-toolbar .woocommerce-ordering { margin: 0; float: none; }
.ab .woocommerce-ordering select, .ab select.orderby { min-height: 42px; padding: 0 36px 0 14px; border-radius: 999px; border: 1.5px solid var(--ab-line-2); background-color: var(--ab-paper); font: 600 14px var(--ab-font); color: var(--ab-ink); }
.ab-toolbar__filters { min-height: 42px !important; }
@media (min-width: 1000px) { .ab-toolbar__filters { display: none !important; } }

.ab-activechips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Filter panel: sidebar on desktop, drawer on mobile */
.ab-filterpanel { background: var(--ab-paper); }
.ab-filterpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--ab-line); }
.ab .ab-filterpanel__head h2 { margin: 0; font-size: 18px; }
@media (max-width: 999px) {
	.ab-filterpanel { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(380px, 90vw); overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; visibility: hidden; }
	.ab-filterpanel.is-open { transform: none; visibility: visible; }
	.ab-filterpanel__scrim { position: fixed; inset: 0; z-index: 99; background: rgba(21,18,46,.45); }
	.ab-filters { padding: 8px 20px 0; }
	.ab-filters__actions { position: sticky; bottom: 0; background: var(--ab-paper); padding: 14px 0 18px; border-top: 1px solid var(--ab-line); }
}
@media (min-width: 1000px) {
	.ab-filterpanel { position: sticky; top: calc(var(--ab-header-h) + 130px); max-height: calc(100vh - 150px); overflow-y: auto; border-radius: var(--ab-radius); padding: 6px 18px 18px; border: 1px solid var(--ab-line); scrollbar-width: thin; }
	.ab-filterpanel__head { display: none; }
	.ab-filterpanel__scrim { display: none !important; }
}
.ab-filter { border: 0; border-bottom: 1px solid var(--ab-line); margin: 0; padding: 10px 0; }
.ab-filter:last-of-type { border-bottom: 0; }
.ab-filter summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 36px; font: 700 15px var(--ab-font); }
.ab-filter summary::-webkit-details-marker { display: none; }
.ab-filter summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .15s ease; }
.ab-filter[open] summary::after { transform: rotate(-135deg); }
.ab-filter__options { display: flex; flex-direction: column; padding-top: 4px; }
.ab-filter__options--scroll { max-height: 260px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.ab-check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14.5px; cursor: pointer; }
.ab-check input { width: 18px; height: 18px; accent-color: var(--ab-violet); flex: none; margin: 0; }
.ab-check__count { margin-left: auto; font-size: 12.5px; color: var(--ab-muted); }
.ab-filter__price { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.ab-filter__price label { flex: 1; }
.ab-filter__price input { width: 100%; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--ab-line-2); padding: 0 10px; font: 500 15px var(--ab-font); }
.ab-filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
@media (min-width: 1000px) { .ab-filters__actions .ab-btn { min-height: 40px; font-size: 14px; } }

/* Pagination */
.ab .woocommerce-pagination { margin-top: 36px; text-align: center; }
.ab .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; border: 0; }
.ab .woocommerce-pagination ul.page-numbers li { border: 0; }
.ab .woocommerce-pagination .page-numbers a, .ab .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--ab-line-2); background: var(--ab-paper); color: var(--ab-ink); font-weight: 700; padding: 0 10px; }
.ab .woocommerce-pagination .page-numbers span.current { background: var(--ab-ink); color: #fff; border-color: var(--ab-ink); }

/* Empty states */
.ab-empty { text-align: center; padding: 40px 20px; background: var(--ab-paper); border-radius: var(--ab-radius); }
.ab .ab-empty h2 { margin: 0 0 8px; font-size: 24px; }
.ab-empty p { color: var(--ab-ink-2); margin: 0 auto 18px; max-width: 52ch; }
.ab .ab-empty__label { margin: 28px 0 10px; font-size: 13px; font-weight: 700; color: var(--ab-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Product page ---------- */

.ab.single-product .site-main > .product,
.ab.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; padding: 20px var(--ab-gutter) 0; box-sizing: border-box; }
@media (min-width: 900px) { .ab.single-product div.product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding-top: 32px; } }
.ab.single-product div.product > *:not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
.ab.single-product div.product .woocommerce-product-gallery,
.ab.single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.ab .woocommerce-product-gallery { position: relative; }
.ab.single-product div.product .woocommerce-product-gallery { top: auto; }
@media (min-width: 900px) { .ab.single-product div.product .woocommerce-product-gallery { align-self: start; } } /* not sticky: it floated over the sections below */
.ab .woocommerce-product-gallery__wrapper { background: var(--ab-cover); border-radius: 22px; overflow: hidden; }
.ab .woocommerce-product-gallery__image { display: grid !important; place-items: center; padding: clamp(20px, 5vw, 48px); }
.ab .woocommerce-product-gallery__image img { width: auto !important; max-height: 560px; object-fit: contain; border-radius: 6px; box-shadow: 0 28px 48px -22px rgba(21,18,46,.55); }
.ab .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
.ab .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; float: none !important; }
.ab .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; background: var(--ab-cover); opacity: .6; }
.ab .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--ab-violet); }
.ab .woocommerce-product-gallery__trigger { top: 14px !important; right: 14px !important; background: var(--ab-paper) !important; border-radius: 999px !important; }

.ab .summary .ab-crumbs { margin-bottom: 14px; }
.ab .summary .ab-chips { margin: 0 0 8px; }
.ab .ab-pdp__title { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.025em; }
.ab .ab-pdp__author { margin: 8px 0 0; font-size: 17px; color: var(--ab-ink-2); }
.ab .ab-pdp__author a { font-weight: 700; }
.ab .summary .woocommerce-product-rating { margin: 10px 0 0; }
.ab-pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; }
.ab .summary .ab-pdp__price .price { margin: 0; font-size: 30px; }
.ab .ab-pdp__inst { margin: 6px 0 0; font-size: 14px; color: var(--ab-muted); }
.ab .ab-pdp__inst .woocommerce-Price-amount { color: var(--ab-ink); font-weight: 700; }
.ab .ab-stock { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 700; font-size: 14.5px; color: var(--ab-green); }
.ab-stock__dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.ab .ab-stock--low { color: var(--ab-red); }
.ab .ab-stock--out { color: var(--ab-ink-2); }
.ab .ab-pdp__oos { margin: 6px 0 0; color: var(--ab-ink-2); font-size: 14.5px; }
.ab .summary .stock, .ab .summary .ast-stock-detail { display: none; } /* WooCommerce's own line; ours is above */

.ab .summary form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0 !important; padding: 0; border: 0; }
.ab .summary form.cart .quantity { display: flex; align-items: center; margin: 0 !important; }
.ab .summary form.cart .qty { width: 72px; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--ab-line-2); text-align: center; font: 700 16px var(--ab-font); background: var(--ab-paper); }
.ab .summary .single_add_to_cart_button, .ab .summary .ab-buy-now { flex: 1 1 160px; min-height: 52px !important; font-size: 16px !important; }
.ab .summary .ab-buy-now { background: var(--ab-ink); color: #fff; border-color: var(--ab-ink); }
.ab .summary .ab-buy-now:hover { background: #2a2550; color: #fff; }
.ab .summary .ast-qty-placeholder, .ab .summary .qty-label { display: none; }
.ab-anchor { display: block; position: relative; top: -160px; }

.ab-savebtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--ab-ink); font: 600 15px var(--ab-font); cursor: pointer; }
.ab-savebtn:hover { background: var(--ab-violet-soft); }
.ab-savebtn svg { fill: none; }
.ab-savebtn[aria-pressed="true"] { color: #c0174f; }
.ab-savebtn[aria-pressed="true"] svg { fill: currentColor; }
.ab-savebtn__on { display: none; }
.ab-savebtn[aria-pressed="true"] .ab-savebtn__on { display: inline; }
.ab-savebtn[aria-pressed="true"] .ab-savebtn__off { display: none; }

.ab-assure { list-style: none; margin: 18px 0 0; padding: 4px 18px; border-radius: var(--ab-radius); background: var(--ab-paper); border: 1px solid var(--ab-line); }
.ab-assure li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.ab-assure li + li { border-top: 1px solid var(--ab-line); }
.ab-assure .ab-icon { flex: none; color: var(--ab-violet-ink); margin-top: 1px; }
.ab-assure div { display: flex; flex-direction: column; line-height: 1.35; }
.ab-assure strong { font-size: 14.5px; }
.ab-assure span { font-size: 13.5px; color: var(--ab-muted); }
.ab-assure--compact { margin-top: 16px; }

/* Back-in-stock form (CWG plugin) */
.ab .cwginstock-subscribe-form .panel { border-radius: var(--ab-radius); border-color: var(--ab-line); box-shadow: none; }
.ab .cwginstock-subscribe-form .panel-heading { background: var(--ab-violet-soft) !important; color: var(--ab-ink) !important; border-radius: var(--ab-radius) var(--ab-radius) 0 0; }
.ab .cwginstock-subscribe-form input[type=email], .ab .cwginstock-subscribe-form input[type=text] { min-height: 46px; border-radius: 10px; }
.ab .cwginstock-subscribe-form input[type=submit] { background: var(--ab-ink) !important; color: #fff !important; border-radius: 999px !important; min-height: 46px; }

.ab-pdp__about { display: grid; gap: 28px; margin-top: 40px; padding: clamp(20px, 4vw, 36px); border-radius: 22px; background: var(--ab-paper); }
@media (min-width: 900px) { .ab-pdp__about { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; } }
.ab .ab-pdp__about h2 { margin: 0 0 14px; font-size: 22px; }
.ab-prose { color: var(--ab-ink-2); font-size: 16.5px; line-height: 1.7; max-width: 68ch; }
.ab-prose p { margin: 0 0 1em; }
.ab-prose ul { margin: 0 0 1em 1.2em; }
.ab-prose.is-clamped { max-height: 380px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.ab-readmore { margin-top: 8px; }
.ab-dl { margin: 0; }
.ab-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ab-line); }
.ab-dl dt { color: var(--ab-muted); font-size: 14px; }
.ab-dl dd { margin: 0; font-weight: 600; font-size: 14.5px; }

.ab-pdp__reviews { margin-top: 40px; padding: clamp(20px, 4vw, 36px); border-radius: 22px; background: var(--ab-paper); }
.ab .ab-pdp__reviews #reviews h2 { font-size: 22px; }
.ab .ab-pdp__reviews .comment-form input, .ab .ab-pdp__reviews .comment-form textarea { border-radius: 10px; border: 1.5px solid var(--ab-line-2); }
.ab-wrap-inner { margin-left: 0; margin-right: 0; }
.ab.single-product .ab-section { margin-block: 48px 0; }

.ab-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--ab-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ab-paper); border-top: 1px solid var(--ab-line); box-shadow: 0 -8px 24px -12px rgba(21,18,46,.25); }
.ab-stickybuy[hidden] { display: none; }
.ab-stickybuy__price { font: 800 20px var(--ab-display); }
.ab-stickybuy .ab-btn { flex: 1; max-width: 260px; }
@media (min-width: 900px) { .ab-stickybuy { display: none !important; } }

/* ---------- Cart & checkout ---------- */

.ab-shipbar { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--ab-radius); background: var(--ab-paper); border: 1px solid var(--ab-line); }
.ab .ab-shipbar__msg { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.ab-shipbar__track { height: 8px; border-radius: 999px; background: var(--ab-violet-soft); overflow: hidden; }
.ab-shipbar__track span { display: block; height: 100%; background: var(--ab-violet); border-radius: inherit; transition: width .3s ease; }
.ab-shipbar.is-unlocked .ab-shipbar__track span { background: var(--ab-green); }
.ab-shipbar.is-unlocked .ab-shipbar__msg { color: var(--ab-green); }

.ab .woocommerce-cart-form, .ab .cart-collaterals .cart_totals, .ab .woocommerce-checkout #customer_details, .ab .woocommerce-checkout-review-order, .ab .woocommerce form.checkout_coupon, .ab .woocommerce form.login, .ab .woocommerce form.register {
	background: var(--ab-paper); border-radius: var(--ab-radius); border: 1px solid var(--ab-line);
}
.ab .woocommerce-cart-form { padding: 8px 18px; }
.ab .woocommerce table.shop_table { border: 0; border-radius: 0; }
.ab .woocommerce table.shop_table th { font-family: var(--ab-font); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ab-muted); }
.ab .woocommerce table.shop_table td { border-top: 1px solid var(--ab-line); }
.ab .woocommerce-cart table.cart img { width: 64px; border-radius: 6px; background: var(--ab-cover); }
.ab .woocommerce-cart table.cart .product-name a { font-weight: 700; color: var(--ab-ink); text-decoration: none; }
.ab .woocommerce a.remove { color: var(--ab-muted) !important; border: 1.5px solid var(--ab-line-2); }
.ab .woocommerce a.remove:hover { background: var(--ab-red) !important; color: #fff !important; border-color: var(--ab-red); }
.ab .cart-collaterals .cart_totals { padding: 22px; }
.ab .cart-collaterals .cart_totals h2 { font-size: 20px; }
.ab .woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 54px; font-size: 17px; }
.ab .woocommerce .coupon input.input-text, .ab .woocommerce form .form-row input.input-text, .ab .woocommerce form .form-row textarea, .ab .woocommerce form .form-row select, .ab .select2-container .select2-selection--single {
	min-height: 46px; border-radius: 10px; border: 1.5px solid var(--ab-line-2); background: var(--ab-paper); font: 500 15px var(--ab-font); color: var(--ab-ink); padding: 8px 12px;
}
.ab .select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; padding-left: 0; }
.ab .woocommerce form .form-row input.input-text:focus, .ab .woocommerce form .form-row textarea:focus { border-color: var(--ab-violet); box-shadow: 0 0 0 3px var(--ab-violet-soft); outline: 0; }
.ab .woocommerce form .form-row label { font-weight: 600; font-size: 14px; }
.ab .woocommerce-checkout #customer_details { padding: clamp(16px, 3vw, 28px); }
.ab .woocommerce-checkout #order_review_heading { font-size: 20px; margin-top: 8px; }
.ab .woocommerce-checkout-review-order { padding: 18px; }
.ab .woocommerce-checkout #payment { background: var(--ab-lav); border-radius: var(--ab-radius); }
.ab .woocommerce-checkout #payment div.payment_box { background: var(--ab-paper); color: var(--ab-ink-2); border-radius: 10px; }
.ab .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ab-paper); }
.ab .woocommerce-checkout #place_order { width: 100%; min-height: 56px; font-size: 17px; }
.ab .ab-checkout-promise { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--ab-violet-soft); font-weight: 600; font-size: 14px; color: var(--ab-ink); }
.ab .woocommerce-info, .ab .woocommerce-message, .ab .woocommerce-error { border-radius: var(--ab-radius-sm); border-top-width: 0; border-left: 4px solid var(--ab-violet); background: var(--ab-paper); color: var(--ab-ink); box-shadow: var(--ab-shadow); }
.ab .woocommerce-error { border-left-color: var(--ab-red); }
.ab .woocommerce-message { border-left-color: var(--ab-green); }
.ab .woocommerce-info::before, .ab .woocommerce-message::before { color: inherit; }

.ab-next { margin: 24px 0; padding: 22px; border-radius: var(--ab-radius); background: var(--ab-paper); border: 1px solid var(--ab-line); }
.ab .ab-next h2 { margin: 0 0 10px; font-size: 20px; }
.ab-next ol { margin: 0 0 0 1.2em; color: var(--ab-ink-2); }
.ab-next li { margin: 6px 0; }

/* ---------- Account ---------- */

.ab-why { margin-bottom: 24px; padding: 22px; border-radius: var(--ab-radius); background: var(--ab-paper); border: 1px solid var(--ab-line); }
.ab .ab-why h2 { margin: 0 0 12px; font-size: 20px; }
.ab-why ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.ab-why li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ab-why .ab-icon { color: var(--ab-violet-ink); }
.ab-why p { margin: 0; font-size: 14px; }
.ab .woocommerce form.login, .ab .woocommerce form.register { padding: 22px; margin-top: 12px; }
.ab .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 6px; background: var(--ab-paper); border-radius: var(--ab-radius); border: 1px solid var(--ab-line); }
.ab .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ab-ink); font-weight: 600; text-decoration: none; }
.ab .woocommerce-MyAccount-navigation li.is-active a, .ab .woocommerce-MyAccount-navigation li a:hover { background: var(--ab-violet-soft); color: var(--ab-violet-ink); }
.ab-tiles { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ab-tiles a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--ab-radius); background: var(--ab-paper); border: 1px solid var(--ab-line); text-decoration: none; color: var(--ab-ink); }
.ab-tiles a:hover { border-color: var(--ab-violet); }
.ab-tiles .ab-icon { color: var(--ab-violet-ink); margin-bottom: 6px; }
.ab-tiles span { font-size: 13.5px; color: var(--ab-muted); }

/* ---------- Wishlist & authors pages ---------- */

.ab-wishlist__note { margin-top: 20px; text-align: center; color: var(--ab-muted); font-size: 14px; }
.ab-wishlist .ab-empty { box-shadow: none; }
.ab-authors__jump ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ab-authors__jump a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ab-violet-soft); color: var(--ab-violet-ink); font-weight: 700; text-decoration: none; }
.ab-authors__jump a:hover { background: var(--ab-violet); color: #fff; }
.ab-authors__group { scroll-margin-top: 140px; }
.ab .ab-authors__group h2 { font-size: 22px; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ab-line); }
.ab-authors__group ul { list-style: none; margin: 0; padding: 0; columns: 220px 3; column-gap: 24px; }
.ab-authors__group li { break-inside: avoid; padding: 6px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--ab-line); }
.ab-authors__group li a { color: var(--ab-ink); font-weight: 600; text-decoration: none; }
.ab-authors__group li a:hover { color: var(--ab-violet-ink); text-decoration: underline; }
.ab-authors__group li span { color: var(--ab-muted); font-size: 13px; white-space: nowrap; }

/* ---------- Footer & mobile tab bar ---------- */

.ab-footer { margin-top: 64px; background: var(--ab-ink); color: #c9c1ee; padding: 48px 0 0; font-size: 14.5px; }
.ab-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ab-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.ab-footer .ab-wordmark { color: #fff; border-color: #fff; }
.ab-footer__logo { text-decoration: none; display: inline-block; margin-bottom: 14px; }
.ab-footer__brand p { max-width: 36ch; margin: 0 0 16px; }
.ab .ab-footer h2 { color: #fff; font: 700 14px var(--ab-font); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.ab-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ab-footer a { color: #e6e0ff; text-decoration: none; }
.ab-footer a:hover { color: #fff; text-decoration: underline; }
.ab-footer__pay li { color: #e6e0ff; }
.ab-footer__ship { margin: 14px 0 0; color: #ffc85c; font-weight: 600; }
.ab-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.ab-footer__legal p { margin: 0; }

.ab-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--ab-line); padding-bottom: env(safe-area-inset-bottom); }
.ab-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--ab-muted); text-decoration: none; font-size: 11px; font-weight: 600; }
.ab-tabbar a[aria-current="page"] { color: var(--ab-violet-ink); }
.ab-tabbar .ab-badge, .ab-tabbar .ab-bag-count { position: absolute; top: 3px; left: calc(50% + 4px); }
.ab-tabbar .ab-bag-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ab-violet); color: #fff; font-size: 11px; font-weight: 700; }
.ab-tabbar .ab-bag-count[data-count="0"] { display: none; }
body.ab { padding-bottom: 64px; }
.ab-has-sticky .ab-tabbar { display: none; }
@media (min-width: 900px) { .ab-tabbar { display: none; } body.ab { padding-bottom: 0; } }

/* Toast */
.ab-toast { position: fixed; left: 50%; bottom: 84px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 18px; border-radius: 999px; background: var(--ab-ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--ab-shadow); transition: opacity .2s ease, transform .2s ease; }
.ab-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ab-toast a { color: var(--ab-sun) !important; text-decoration: underline; }
@media (min-width: 900px) { .ab-toast { bottom: 28px; } }

/* FunnelKit floating cart button would sit on top of the mobile tab bar. */
@media (max-width: 899px) { .fkcart-toggler, #fkcart-floating-toggler { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
	.ab *, .ab *::before, .ab *::after { animation: none !important; transition: none !important; }
}

/* ---------- Instant search ---------- */
.ab-search { position: relative; display: flex; align-items: center; gap: 0; background: var(--ab-lav); border: 1.5px solid var(--ab-line-2); border-radius: 999px; height: 48px; padding: 0 5px 0 0; transition: border-color .15s ease, box-shadow .15s ease; }
.ab-search:focus-within { border-color: var(--ab-violet); box-shadow: 0 0 0 3px var(--ab-violet-soft); background: var(--ab-paper); }
.ab-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ab-muted); display: grid; pointer-events: none; }
.ab .ab-search__input, .ab .ab-search input[type=search].ab-search__input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important; padding: 0 12px 0 44px; font: 500 16px var(--ab-font); color: var(--ab-ink); border-radius: 999px; -webkit-appearance: none; appearance: none; }
.ab-search__input::placeholder { color: var(--ab-muted); opacity: 1; }
.ab-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ab-search__go { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ab-violet); color: #fff; font: 700 14px var(--ab-font); cursor: pointer; }
.ab-search__go:hover { background: var(--ab-violet-ink); }
@media (max-width: 520px) { .ab-search__go { display: none; } .ab-search { padding-right: 0; } }

.ab-search__panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); max-height: min(72vh, 560px); overflow-y: auto; background: var(--ab-paper); border: 1px solid var(--ab-line); border-radius: var(--ab-radius); box-shadow: 0 18px 40px -12px rgba(21,18,46,.35); padding: 6px; overscroll-behavior: contain; }
.ab-search__panel[hidden] { display: none; }
@media (min-width: 900px) { .ab-search__panel { left: -6px; right: -6px; } }
.ab-sg__title { padding: 10px 12px 4px; font: 700 11px var(--ab-font); letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); }
.ab .ab-sr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ab-ink); text-decoration: none; min-height: 60px; }
.ab .ab-sr--author { grid-template-columns: minmax(0, 1fr); min-height: 46px; }
.ab .ab-sr.is-active, .ab .ab-sr:hover { background: var(--ab-violet-soft); color: var(--ab-ink); }
.ab-sr__img { width: 40px; height: 60px; display: grid; place-items: center; background: var(--ab-cover); border-radius: 4px; overflow: hidden; }
.ab-sr__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 3px 8px -3px rgba(21,18,46,.5); }
.ab-sr__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ab-sr__title { font-weight: 600; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-sr__meta { font-size: 12.5px; color: var(--ab-muted); }
.ab-sr__price { display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; white-space: nowrap; }
.ab-sr__price del { color: var(--ab-muted); font-size: 12px; }
.ab-sr__oos { font-size: 12px; font-weight: 700; color: var(--ab-muted); }
.ab-sr mark { background: var(--ab-sun-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.ab .ab-sr__all { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 0; border-top: 1px solid var(--ab-line); background: transparent; border-radius: 0 0 10px 10px; font: 600 14px var(--ab-font); color: var(--ab-violet-ink); text-align: left; cursor: pointer; }
.ab .ab-sr__all.is-active, .ab .ab-sr__all:hover { background: var(--ab-violet-soft); }
.ab-sg__none { padding: 18px 16px 14px; text-align: center; }
.ab .ab-sg__msg { margin: 0 0 4px; font-weight: 700; }
.ab .ab-sg__hint { margin: 0 0 14px; color: var(--ab-muted); font-size: 14px; }
.ab .ab-sg__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0; }
.ab-header__search .ab-search { max-width: 760px; margin-inline: auto; }

/* Respect the hidden attribute on elements that set their own display. */
.ab [hidden], .ab .ab-badge[hidden] { display: none !important; }

/* Accessibility: contrast and link affordance. */
.ab .price del, .ab .price del .woocommerce-Price-amount, .ab ul.products li.product .price del { opacity: 1 !important; color: var(--ab-muted) !important; }
.ab .woocommerce-breadcrumb, .ab .woocommerce-breadcrumb a { color: var(--ab-muted); }
.ab .woocommerce-privacy-policy-text a, .ab .woocommerce-privacy-policy-link, .ab .ab-wishlist__note a, .ab .ab-sg__hint a, .ab .woocommerce-terms-and-conditions-link, .ab .lost_password a, .ab .woocommerce-form-login__rememberme + a { text-decoration: underline; text-underline-offset: 3px; color: var(--ab-violet-ink); }
.ab-footer .ab-wordmark em { color: #b9a0ff; }

/* Speed: WooCommerce hides the gallery until its script runs, which delays the cover (LCP). The image is already in the HTML. */
.ab .woocommerce-product-gallery { opacity: 1 !important; }

/* Phones have the bottom tab bar and the sticky buy bar; Astra's scroll-to-top square only gets in the way. */
@media (max-width: 899px) { .ab #ast-scroll-top { display: none !important; } }

/* ---------- Contact / suggest forms and plain pages ---------- */
.ab .ab-page { max-width: 760px; margin: 0 auto; padding: 32px var(--ab-gutter) 64px; }
.ab .ab-page h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 12px; }
.ab .ab-page__lead { color: var(--ab-ink-2); font-size: 17px; margin: 0 0 24px; }
.ab .ab-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 32px; }
.ab .ab-contact-cards a { display: block; padding: 16px 18px; background: var(--ab-paper); border: 1.5px solid var(--ab-line); border-radius: var(--ab-radius); color: var(--ab-ink); font-weight: 700; text-decoration: none; }
.ab .ab-contact-cards span { display: block; font-size: 13px; font-weight: 600; color: var(--ab-muted); margin-bottom: 2px; }
.ab .ab-form { display: grid; gap: 4px; }
.ab .ab-form__row { margin: 0 0 12px; }
.ab .ab-form label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.ab .ab-form input[type=text], .ab .ab-form input[type=email], .ab .ab-form input[type=tel], .ab .ab-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ab-line-2); border-radius: 12px; font: 500 16px var(--ab-font); background: var(--ab-paper); color: var(--ab-ink); }
.ab .ab-form input:focus, .ab .ab-form textarea:focus { outline: 0; border-color: var(--ab-violet); box-shadow: 0 0 0 3px var(--ab-violet-soft); }
.ab .ab-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ab .ab-form__note { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin: 0 0 16px; }
.ab .ab-form__note--ok { background: #e6f6ee; color: #14633d; }
.ab .ab-form__note--err { background: #fdeaea; color: #a11c1c; }
