/* Abboud Block: styles not expressible in theme.json. Logical properties only (RTL-safe). */
:root {
	/* Aliases of the theme.json presets (single source of truth: theme.json). */
	--ab-primary: var(--wp--preset--color--accent-1); --ab-primary-hover: var(--wp--preset--color--accent-3); --ab-primary-tint: var(--wp--preset--color--accent-2);
	--ab-ink: var(--wp--preset--color--contrast); --ab-surface: var(--wp--preset--color--accent-5); --ab-line: var(--wp--preset--color--accent-6); --ab-focus: var(--wp--preset--color--focus);
	--ab-whatsapp: var(--wp--preset--color--whatsapp); --ab-whatsapp-hover: var(--wp--preset--color--whatsapp-hover);
	--ab-field: var(--wp--preset--color--field-border);
	--ab-radius-md: var(--wp--custom--radius--md); --ab-radius-lg: var(--wp--custom--radius--lg); --ab-tap-min: var(--wp--custom--tap-min);
	--ab-control: var(--wp--custom--control--height);
}
/* Shared by the Abboud blocks (abboud/hero, section, promo, product-carousel, the tiles) and the pages that use them. Block CSS reads these; it never defines them. */
:root {
	--h-ink: var(--wp--preset--color--contrast); --h-soft: var(--wp--preset--color--ink-soft); --h-muted: var(--wp--preset--color--accent-4);
	--h-line: var(--wp--preset--color--accent-6); --h-cream: var(--wp--preset--color--accent-5); --h-cream2: var(--wp--preset--color--cream-deep);
	--h-red: var(--wp--preset--color--accent-1); --h-gold: var(--wp--preset--color--gold); --h-sale: var(--wp--preset--color--sale);
	--h-gut: var(--wp--preset--spacing--gutter); --h-sec: var(--wp--preset--spacing--section);
	--h-e1: var(--wp--preset--shadow--resting); --h-e2: var(--wp--preset--shadow--raised);
	--h-pad: max(var(--h-gut), calc((100% - 1200px) / 2 + var(--h-gut)));
}
/* Template wrappers (front page, 404, search) may change --h-gut for everything inside; --h-pad is resolved again where they do. */
.ab-home { --h-pad: max(var(--h-gut), calc((100% - 1200px) / 2 + var(--h-gut))); }
/* Front page / 404 / search wrapper: the bands inside touch each other and the header/footer, whatever the blockGap. */
.ab-home { margin-block: 0; }
.ab-home, .ab-home * { box-sizing: border-box; }
.ab-home :is(h1, h2, h3) { margin: 0; line-height: 1.12; letter-spacing: -.01em; }
@media (prefers-reduced-motion: reduce) { .ab-home *, .ab-home *::before, .ab-home *::after { transition: none !important; } }
.wp-site-blocks > .ab-home + * { margin-block-start: 0; }
.ab-home.ab-home > *, .ab-home.ab-home > .wp-block-post-content > * { margin-block: 0; }
/* Sticky footer: the page is at least one screen tall (minus the admin bar when logged in) and <main> takes the free space, so the footer never floats mid-screen on short pages. */
.wp-site-blocks { display: flex; flex-direction: column; min-block-size: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-block-size: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
.wp-site-blocks > main { flex: 1 0 auto; }
:focus-visible { outline: 3px solid var(--ab-focus); outline-offset: 2px; }
/* Mouse and touch focus shows no ring (browser / WooCommerce defaults drew a thin one on click); keyboard focus keeps the rules below. */
:focus:not(:focus-visible) { outline: none; }
/* White ring on dark / brand-red surfaces (blue fails 3:1 there, see contrast-r1.js). */
.has-contrast-background-color :focus-visible, .has-accent-1-background-color :focus-visible, .has-brand-band-gradient-background :focus-visible,
.ab-headline-strip :focus-visible, .ab-footer :focus-visible { outline-color: var(--wp--preset--color--base); }
.wp-block-woocommerce-product-collection .wp-block-post-title { margin-block: .5rem; }
.wp-block-woocommerce-product-collection .wc-block-components-product-image img { border-radius: var(--ab-radius-md); background: var(--ab-surface); }
/* Home tiles */
.ab-tiles { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); max-inline-size: var(--wp--style--global--wide-size, 1200px); }
@media (min-width: 768px) { .ab-tiles--cat { grid-template-columns: repeat(4, 1fr); } }
.ab-cat-tile { display: flex; flex-direction: column; block-size: 100%; border: 1px solid var(--ab-line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ab-ink); overflow: hidden; }
.ab-cat-tile:hover { border-color: var(--ab-primary); box-shadow: 0 1px 2px rgba(27,31,36,.06), 0 4px 12px rgba(27,31,36,.1); color: var(--ab-ink); }
.ab-cat-tile__img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: .75rem; }
.ab-cat-tile__img img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.ab-cat-tile__body { padding: .75rem 1rem 1rem; border-block-start: 1px solid var(--ab-line); }
.ab-cat-tile__name { display: block; font-weight: 800; }
.ab-cat-tile__count { font-size: .875rem; color: #5B6470; }
.ab-tiles--brand { gap: .75rem; }
@media (min-width: 640px) { .ab-tiles--brand { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .ab-tiles--brand { grid-template-columns: repeat(6, 1fr); } }
.ab-brand-tile { display: flex; align-items: center; justify-content: center; min-block-size: 56px; padding: .5rem; border: 1px solid var(--ab-line); border-radius: 10px; background: #fff; color: var(--ab-ink); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center; font-size: .8125rem; }
.ab-brand-tile:hover { border-color: var(--ab-primary); color: var(--ab-primary); }
.ab-trust a { color: #fff; }
.ab-hero--home h1 { max-inline-size: 18ch; }
.ab-archive-cols { gap: 2rem; }
.ab-archive-filters { min-inline-size: 0; overflow: hidden; }
/* Note: "left"/"right" below are WooCommerce class names (price-slider__left, grid area names), not CSS properties. */
.ab-archive-filters .wc-block-product-filter-price-slider__content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; grid-template-areas: "price-slider price-slider" "left-input right-input" !important; gap: .5rem; max-inline-size: 100%; }
.ab-archive-filters .wc-block-product-filter-price-slider__range { grid-column: 1 / -1; }
.ab-archive-filters .wc-block-product-filter-price-slider__content input[type="text"] { inline-size: 100%; min-inline-size: 0; box-sizing: border-box; min-block-size: 40px; padding-inline: .5rem; }
.ab-archive-filters .wc-block-product-filter-price-slider__left, .ab-archive-filters .wc-block-product-filter-price-slider__right { min-inline-size: 0; inline-size: auto; max-inline-size: none; position: static; margin: 0; justify-self: stretch; text-align: start; }
.ab-archive-filters .wc-block-product-filter-price-slider__content input[type="text"] { display: block; inline-size: 100%; }
.abboud-catnav { margin-block: 1rem 1.5rem; }
@media (max-width: 781px) { .ab-archive-filters { flex-basis: 100% !important; } }

/* ===== P1 foundations: shared component styles (tokens come from theme.json) ===== */
/* Links in running text: heavier, thicker underline (colour/hover come from theme.json). Not on the home page: its content is tiles and cards styled in home.css (:where keeps the specificity unchanged). */
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(:where(.ab-home *, [class*="wp-block-abboud-"] *)), .wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(:where(.ab-home *, [class*="wp-block-abboud-"] *)) { font-weight: 700; text-underline-offset: .2em; text-decoration-thickness: 2px; }
/* Buttons: geometry that theme.json cannot express in logical terms. 48px, 3px border set in theme.json. */
.wp-block-button .wp-block-button__link, .wp-block-button .wp-element-button, .wc-block-components-button:not(.is-link), button.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; box-sizing: border-box;
	min-block-size: var(--ab-control); padding-block: .5rem; padding-inline: 1.5rem; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
/* WooCommerce product-button sets border-style:none (specificity 0,3,0); restore the 3px token border. */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button.wp-element-button { border-style: solid; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--whatsapp); }
/* Call variant of the WhatsApp style (class added by the plugin, inc/contact-buttons.php, when the Customer service number is a landline):
   ink instead of green, handset instead of the chat icon wherever a pattern draws the icon with ::before. */
.wp-block-button.is-style-whatsapp.ab-contact--call .wp-block-button__link { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wp-block-button.is-style-whatsapp.ab-contact--call .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-whatsapp.ab-contact--call .wp-block-button__link::before { -webkit-mask-image: url("../img/icon-phone.svg"); mask-image: url("../img/icon-phone.svg"); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--base); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent-1); }
.wp-block-button .wp-block-button__link[disabled], .wp-block-button .wp-block-button__link[aria-disabled="true"], .wc-block-components-button[disabled] {
	background: var(--wp--preset--color--cream-deep); border-color: var(--wp--preset--color--line-strong); color: var(--wp--preset--color--accent-4); cursor: not-allowed;
}
/* Fields: 48px, 1px #7D848E border (3:1 on white and cream), 10px radius. Focus: blue border + the global 3px ring. */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], textarea, select),
.wp-block-search__input, .wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-blocks-components-select__select {
	box-sizing: border-box; min-block-size: var(--ab-control); border: 1px solid var(--ab-field); border-radius: var(--ab-radius-md);
	background: var(--wp--preset--color--base); color: var(--ab-ink); font-family: inherit; font-size: var(--wp--preset--font-size--medium); transition: border-color .15s, box-shadow .15s;
}
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], textarea, select) { padding-block: .5rem; padding-inline: .875rem; line-height: 1.4; }
textarea { min-block-size: 88px; }
:where(input, textarea, select):focus-visible, .wc-block-components-text-input input:focus-visible { border-color: var(--ab-focus); }
::placeholder { color: var(--wp--preset--color--accent-4); opacity: 1; }
/* Cards (WooCommerce product-collection items keep their block classes; shell only). */
.wc-block-product, .ab-card {
	box-sizing: border-box; background: var(--wp--preset--color--base); border: 1px solid var(--ab-line); border-radius: var(--ab-radius-lg);
	box-shadow: var(--wp--preset--shadow--resting); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.wc-block-product:hover, .wc-block-product:focus-within, .ab-card:hover, .ab-card:focus-within {
	border-color: var(--ab-primary); box-shadow: 0 0 0 1px var(--ab-primary), var(--wp--preset--shadow--raised);
}
/* Badges. Sale = teal pill with a white halo so it stays visible on any photo. */
.wc-block-components-product-sale-badge, .ab-badge {
	padding: .25rem .8rem; border-radius: var(--wp--custom--radius--pill); font-weight: 800; font-size: var(--wp--preset--font-size--small); line-height: 1.4;
}
.wc-block-components-product-sale-badge { background: var(--wp--preset--color--sale); color: var(--wp--preset--color--base); border: 0; box-shadow: 0 0 0 3px var(--wp--preset--color--base); text-transform: none; }
.ab-badge--quote { background: var(--wp--preset--color--cream-deep); color: var(--ab-ink); border: 1px solid var(--wp--preset--color--line-strong); }
.ab-badge--oos { background: var(--wp--preset--color--ink-soft); color: var(--wp--preset--color--base); }
/* Notices: full 1px state border, tinted fill, 10px radius (proposal section 5; not in the mockups). */
.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--ab-line); border-radius: var(--ab-radius-md); background: var(--ab-surface); color: var(--ab-ink);
}
.wc-block-components-notice-banner.is-success, .woocommerce-message { border-color: var(--wp--preset--color--success); background: var(--wp--preset--color--success-tint); }
.wc-block-components-notice-banner.is-error, .woocommerce-error { border-color: var(--wp--preset--color--danger); background: var(--wp--preset--color--accent-2); }
.wc-block-components-notice-banner.is-info, .woocommerce-info { border-color: var(--wp--preset--color--focus); background: var(--wp--preset--color--info-tint); }
.wc-block-components-notice-banner.is-warning { border-color: var(--wp--preset--color--warning); background: var(--wp--preset--color--warning-tint); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }

/* One WhatsApp icon everywhere: the mockup's stroke chat icon. The plugin prints its own filled glyph inside every WhatsApp button; it becomes a mask here so the mockup icon follows the text colour. Plugin markup is untouched. */
.abboud-wa-icon path { display: none; }
.abboud-wa-icon { background: currentColor; -webkit-mask: url("../img/icon-whatsapp.svg") center / contain no-repeat; mask: url("../img/icon-whatsapp.svg") center / contain no-repeat; }

/* WhatsApp button style (Button block, style "WhatsApp"): the mockup's chat icon drawn with a mask so it follows the text colour. The call variant below swaps the icon. */
.wp-block-button.is-style-whatsapp .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.wp-block-button.is-style-whatsapp .wp-block-button__link::before { content: ""; inline-size: 1.375rem; block-size: 1.375rem; flex: none; background: currentColor; -webkit-mask: url("../img/icon-whatsapp.svg") center / contain no-repeat; mask: url("../img/icon-whatsapp.svg") center / contain no-repeat; }

/* ---------- Product card (.ab-pop): the Product Collection restyled as the mockup's .pcard. Also the default look of every other Product Collection (a block inserted in the editor): the :is() second branch matches collections outside the shop grids, related row and carousel, at the same specificity as .ab-pop, so those are untouched. Used by the home featured row, the 404 and empty search popular rows and the empty cart.
   The grid / swipe row around the cards is the abboud/product-carousel block's own CSS. ":root" keeps the specificity the cards had inside the home scope (above WooCommerce's block CSS). ---------- */
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))), :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) * { box-sizing: border-box; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-product-template > li { position: relative; display: flex; flex-direction: column; inline-size: auto; margin: 0; padding: 0; background: #fff; border: 1px solid var(--h-line); border-radius: 16px; box-shadow: var(--h-e1); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-product-template > li:hover, :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-product-template > li:focus-within { border-color: var(--h-red); box-shadow: 0 0 0 1px var(--h-red), var(--h-e2); }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li > * { margin-block: 0; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-image { position: relative; margin: 0; padding: 0; overflow: hidden; background: #fff; border-block-end: 1px solid var(--h-cream2); aspect-ratio: 5 / 4; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-image a { position: absolute; inset: 8px; display: block; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-image img { inline-size: 100%; block-size: 100%; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 0; background: #fff; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li:hover .wc-block-components-product-image img { transform: scale(1.06); }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-sale-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; inset-inline-end: auto; margin: 0; z-index: 3; padding: .25rem .8rem; border-radius: 999px; font-weight: 800; font-size: .875rem; line-height: 1.4; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .ab-pop__brand { padding: 14px 14px 0; font-size: .875rem; font-weight: 600; color: var(--h-muted); }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .ab-pop__brand a { display: inline-block; min-inline-size: 24px; padding-block: 2px; color: inherit; text-decoration: none; position: relative; z-index: 2; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-post-title { padding: 4px 14px 0; font-size: 1rem; font-weight: 600; line-height: 1.35; min-block-size: calc(2.7em + 4px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: lowercase; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-post-title::first-letter { text-transform: uppercase; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-post-title a { display: inline; color: var(--h-ink); text-decoration: none; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li:hover .wp-block-post-title a { color: var(--wp--preset--color--accent-3); }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-price { padding: 4px 14px 0; margin-block-start: auto; min-block-size: 2rem; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-price { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: start; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-price del { color: var(--h-muted); font-size: .9375rem; font-weight: 400; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-price ins { color: var(--h-sale); text-decoration: none; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button .wp-block-button__link { font-size: 1rem; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button { position: relative; z-index: 2; padding: 6px 14px 14px; margin: 0; text-align: start; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button .wp-block-button__link,
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button .wc-block-components-product-button__button,
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button .abboud-wa-btn { inline-size: 100%; margin: 0; }

/* quote-only: the plugin swaps the whole button wrapper for its own link, so it carries the card padding itself */
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) a.abboud-wa-btn { position: relative; z-index: 2; box-sizing: border-box; inline-size: calc(100% - 28px); margin: 6px 14px 14px; padding-inline: .5rem; font-size: .9375rem; white-space: nowrap; }
/* Default collections sit in any column count (editor-set), so the quote button may wrap instead of being clipped (the home row keeps one line). */
:root .wp-block-woocommerce-product-collection:not(:where(.ab-pop, .ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *)) a.abboud-wa-btn { white-space: normal; line-height: 1.25; padding-block: .5rem; }
@media (max-width: 640px) {
	:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .ab-pop__brand, :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-post-title, :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-price { padding-inline: 12px; }
	:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .ab-pop__brand { padding-block-start: 12px; }
	:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wp-block-woocommerce-product-button { padding: 10px 12px 12px; }
	:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) a.abboud-wa-btn { inline-size: calc(100% - 24px); margin: 10px 12px 12px; }
	:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) .wc-block-components-product-price { font-size: 1.125rem; }
}
@media (hover: none) { :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li:hover .wc-block-components-product-image img { transform: none; } }
@media (prefers-reduced-motion: reduce) { :root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li:hover .wc-block-components-product-image img { transform: none; } }
/* a visible ring around the whole card when any of its links has keyboard focus */
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--focus); outline-offset: 2px; }
:root :is(.ab-pop, .wp-block-woocommerce-product-collection:not(:where(.ab-related__list, .ab-archive-main-wrap *, .ab-clist *, .wp-block-abboud-product-carousel *))) li a:focus-visible { outline-offset: 0; }

/* ---------- scroll reveal: product cards (shop / category / brand grids, related, featured carousel, search) ----------
   assets/js/reveal.js sets html.ab-rv-on and toggles .is-in on a card as it enters / leaves the viewport. Transitions (not keyframes) so the card eases back out when it
   leaves (yoyo) and replays on re-entry; --rv-d staggers cards that enter together. Without the script the class is never set and cards just show. Opacity/transform only. */
html.ab-rv-on .wc-block-product-template > li { opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease; }
html.ab-rv-on .wc-block-product-template > li.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms); }

/* scroll reveal: hero carousel (frame, blobs, dots). The slide overlay is in hero-slide/style.css. */
html.ab-rv-on .wp-block-abboud-hero-carousel .ab-hcar__photo { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .4s ease, transform .4s ease; }
html.ab-rv-on .wp-block-abboud-hero-carousel > .ab-deco > :is(.ab-hcar__blob, .ab-hcar__blob-b) { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .4s ease; }
html.ab-rv-on .wp-block-abboud-hero-carousel .ab-hcar__controls { opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in > .ab-deco > :is(.ab-hcar__blob, .ab-hcar__blob-b) { opacity: 1; transform: none; transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1) .1s, transform 1.1s cubic-bezier(.2, .7, .2, 1) .1s; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__controls { opacity: 1; transform: none; transition: opacity .5s cubic-bezier(.2, .7, .2, 1) .7s, transform .5s cubic-bezier(.2, .7, .2, 1) .7s; }

/* scroll reveal: home category tiles. Each tile tips up from its bottom edge (a little 3D), its photo springs in, the icon badge spins in from nothing and the name slides in,
   in a left-to-right wave (--i from reveal.js). Entrance uses transform on the <li> and the individual translate/rotate/scale properties on the parts, so the hover zoom
   (transform) keeps its own timing. Leaving the screen plays it back quickly (yoyo). */
html.ab-rv-on .ab-cats:not(.is-in) > li { opacity: 0; transform: perspective(800px) rotateX(-12deg) translateY(26px) scale(.96); transform-origin: 50% 100%; transition: opacity .25s ease, transform .3s ease; }
html.ab-rv-on .ab-cats.is-in > li { opacity: 1; transform: none; transform-origin: 50% 100%; transition: opacity .6s ease calc(var(--i, 0) * 80ms), transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 80ms); }
html.ab-rv-on .ab-cats:not(.is-in) .ab-ctile__img img { opacity: 0; scale: .85; transition: opacity .2s ease, scale .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
html.ab-rv-on .ab-cats.is-in .ab-ctile__img img { opacity: 1; scale: 1; transition: opacity .5s ease calc(var(--i, 0) * 80ms + 180ms), scale .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 80ms + 180ms), transform .35s cubic-bezier(.2, .7, .2, 1); }
html.ab-rv-on .ab-cats:not(.is-in) .ab-ctile__ic { scale: 0; rotate: -45deg; transition: scale .2s ease, rotate .2s ease, background-color .2s, color .2s; }
html.ab-rv-on .ab-cats.is-in .ab-ctile__ic { scale: 1; rotate: 0deg; transition: scale .7s cubic-bezier(.34, 1.8, .64, 1) calc(var(--i, 0) * 80ms + 420ms), rotate .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 80ms + 420ms), background-color .2s, color .2s; }
html.ab-rv-on .ab-cats:not(.is-in) .ab-ctile__text { opacity: 0; translate: -16px 0; transition: opacity .2s ease, translate .2s ease; }
html.ab-rv-on .ab-cats:not(.is-in) .ab-ctile__text:dir(rtl) { translate: 16px 0; }
html.ab-rv-on .ab-cats.is-in .ab-ctile__text { opacity: 1; translate: 0 0; transition: opacity .5s ease calc(var(--i, 0) * 80ms + 520ms), translate .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 80ms + 520ms); }

/* scroll reveal: home brand tiles. Simple: each tile fades up in a quick wave across the grid (--i from reveal.js); plays back when the grid leaves the screen. */
html.ab-rv-on .ab-brands__grid:not(.is-in) > .ab-btile { opacity: 0; translate: 0 12px; transition: opacity .2s ease, translate .2s ease, border-color .2s, color .2s; }
html.ab-rv-on .ab-brands__grid.is-in > .ab-btile { opacity: 1; translate: 0 0; transition: opacity .5s ease calc(var(--i, 0) * 35ms), translate .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 35ms), border-color .2s, color .2s; }

/* scroll reveal, coming back from above (scrolling up): reveal.js sets .ab-rv-skip so the item and everything in it appear at once, with no entrance */
html.ab-rv-on .ab-rv-skip, html.ab-rv-on .ab-rv-skip * { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: .001s !important; animation-delay: 0s !important; }
