/*
Theme Name: fabOink
Theme URI: https://faboink.store
Description: fabOink — fun t-shirts & accessories, printed on demand in India. Child theme of Twenty Twenty-Five.
Author: fabOink
Template: twentytwentyfive
Version: 1.0.14
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faboink
*/

/* =====================================================
   fabOink design system v1 — the fun tee shop
   Canvas: warm cream. Ink text. Oink Red leads,
   mango / teal / bubblegum play support.
   Rounded everything, sticker shadows, a wink of motion.
   ===================================================== */

:root {
	--fab-cream: #fffbf2;
	--fab-ink: #221610;
	--fab-red: #ff3600;
	--fab-mango: #ffc233;
	--fab-peach: #ffefe3;
	--fab-teal: #00a896;
	--fab-pink: #ff7bac;
	--fab-white: #ffffff;
	--fab-line: #f0e0cf;
	--fab-soft: #8a7360;
	--fab-radius: 18px;
	--fab-ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* springy */
	--fab-ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--fab-mango);
	color: var(--fab-ink);
}

/* ---------- Micro-labels (eyebrows) ---------- */

.fab-eyebrow {
	font-family: Fredoka, sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Header ---------- */

.fab-topbar {
	font-family: Fredoka, sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fab-topbar p {
	margin: 0;
}

/* Sticky main bar. With no announcement topbar the header sticks flush at
   the top; when a .fab-topbar is present the negative offset lets that
   34px strip scroll away while the main bar holds. Conditional so adding
   or removing the topbar needs no CSS change. */
:root {
	--fab-header-h: 84px;
}

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 90;
}

header.wp-block-template-part:has(.fab-topbar) {
	top: -35px;
}

/* While the mobile menu is open, nothing outranks the header */
header.wp-block-template-part.menu-open {
	z-index: 100000;
}

/* The blur creates a containing block that traps the fixed-position
   menu inside the header bar — lift it while the menu is open */
header.wp-block-template-part.menu-open .fab-header-main {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.wp-block-navigation__responsive-container.has-modal-open {
	z-index: 100000 !important;
}

/* No injected block-gap inside the header — topbar and main bar sit flush */
header.wp-block-template-part > * {
	margin-block-start: 0 !important;
}

.fab-header-main {
	background: rgba(255, 251, 242, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 2px solid var(--fab-ink);
	transition: box-shadow 0.35s var(--fab-ease-out);
	height: var(--fab-header-h);
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	display: flex;
	align-items: center;
}

header.wp-block-template-part.is-scrolled .fab-header-main {
	box-shadow: 0 6px 24px rgba(34, 22, 16, 0.08);
}

.fab-header-main > .wp-block-group.alignwide {
	width: 100%;
}

/* Logo */
.fab-header-main .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}

.fab-header-main .wp-block-site-logo img {
	max-height: 52px;
	width: auto;
	transition: transform 0.35s var(--fab-ease);
}

.fab-header-main .wp-block-site-logo a:hover img {
	transform: rotate(-4deg) scale(1.06);
}

/* No focus outline on mouse click for the logo + nav links; keyboard
   users still get a visible ring via :focus-visible below. */
.fab-header-main .wp-block-site-logo a:focus,
.fab-header-main .wp-block-navigation-item__content:focus {
	outline: none;
}

.fab-header-main .wp-block-site-logo a:focus-visible,
.fab-header-main .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--fab-red);
	outline-offset: 3px;
	border-radius: 4px;
}

.wp-block-navigation .wp-block-navigation-item__content {
	font-family: Fredoka, sans-serif;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	position: relative;
	padding-bottom: 2px;
}

/* One underline only: kill the browser/theme default, keep our marker */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus {
	text-decoration: none;
}

/* Chunky marker reveal on nav hover */
.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 3px;
	border-radius: 3px;
	background: var(--fab-red);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s var(--fab-ease-out);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .wp-block-navigation-item__content.is-active::after,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Current page: unmistakably marked */
.wp-block-navigation .wp-block-navigation-item__content.is-active,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--fab-red) !important;
	font-weight: 600;
}

.wc-block-cart-link,
.wc-block-customer-account__link {
	color: inherit;
}

/* Mini cart: keep it inky, badge goes red */
.wc-block-mini-cart__button {
	color: inherit;
}

.wc-block-mini-cart__badge {
	background: var(--fab-red);
	color: #fff;
	border: 0;
}

/* Open mobile menu overlay: always ink on cream */
.wp-block-navigation__responsive-container.has-modal-open {
	background-color: var(--fab-cream) !important;
	padding: 1.5rem;
}

.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-search__button,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-container-close {
	color: var(--fab-ink) !important;
}

.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content {
	font-size: 1.35rem;
	padding: 0.45rem 0;
}

/* ---------- Section rhythm ---------- */

.fab-section {
	padding-top: clamp(4rem, 8vw, 6.5rem);
	padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.fab-section--flush-top {
	padding-top: 0;
}

/* Section header row: title left, "view all" right */
.fab-section-head {
	padding-bottom: 1rem;
	margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.fab-section-head h2 {
	margin: 0;
}

.fab-viewall a {
	font-family: Fredoka, sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--fab-ink);
	background: var(--fab-mango);
	border: 2px solid var(--fab-ink);
	border-radius: 999px;
	padding: 0.45em 1.2em;
	display: inline-block;
	box-shadow: 3px 3px 0 var(--fab-ink);
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease);
}

.fab-viewall a:hover {
	color: var(--fab-ink);
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--fab-ink);
}

/* ---------- Marquee ticker ---------- */

.fab-ticker {
	background: var(--fab-ink);
	color: var(--fab-cream);
	overflow: hidden;
	white-space: nowrap;
	border-top: 2px solid var(--fab-ink);
	border-bottom: 2px solid var(--fab-ink);
	margin-block-start: 0 !important;
	padding: 0.7rem 0;
}

.fab-ticker p {
	font-family: Fredoka, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0;
	display: inline-block;
	padding-left: 0;
	animation: fab-marquee 28s linear infinite;
	max-width: none;
	white-space: nowrap;
	width: max-content;
	will-change: transform;
}

.fab-ticker:hover p {
	animation-play-state: paused;
}

@keyframes fab-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.fab-ticker p {
		animation: none;
	}
}

/* ---------- Hero ---------- */

.fab-hero {
	background: var(--fab-red);
	color: var(--fab-cream);
	position: relative;
	overflow: hidden;
	margin-block-start: 0 !important;
}

/* Giant ghost wordmark behind the hero copy */
.fab-hero::before {
	content: "OINK!";
	position: absolute;
	right: -0.08em;
	bottom: -0.22em;
	font-family: Fredoka, sans-serif;
	font-weight: 700;
	font-size: clamp(9rem, 26vw, 24rem);
	line-height: 1;
	color: rgba(255, 251, 242, 0.1);
	pointer-events: none;
	user-select: none;
	transform: rotate(-4deg);
}

.fab-hero h1 {
	max-width: 13ch;
	color: var(--fab-cream);
}

.fab-hero .fab-hero-sub {
	font-size: 1.1rem;
	max-width: 46ch;
	color: rgba(255, 251, 242, 0.92);
}

/* Hand-placed sticker chips floating in the hero */
.fab-sticker {
	display: inline-block;
	font-family: Fredoka, sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	background: var(--fab-mango);
	color: var(--fab-ink);
	border: 2px solid var(--fab-ink);
	border-radius: 999px;
	padding: 0.4em 1.1em;
	box-shadow: 3px 3px 0 var(--fab-ink);
	transform: rotate(-3deg);
}

.fab-sticker--pink {
	background: var(--fab-pink);
	transform: rotate(2.5deg);
}

.fab-sticker--teal {
	background: var(--fab-teal);
	color: #fff;
	transform: rotate(-2deg);
}

/* Hero buttons: cream primary + ghost secondary on red */
.fab-hero .wp-block-button__link {
	background: var(--fab-cream);
	color: var(--fab-ink);
}

.fab-hero .wp-block-button__link:hover {
	background: var(--fab-ink);
	color: var(--fab-cream);
}

.fab-hero .is-style-outline .wp-block-button__link {
	border: 2px solid var(--fab-cream);
	color: var(--fab-cream);
	background: transparent;
	box-shadow: 4px 4px 0 rgba(34, 22, 16, 0.35);
}

.fab-hero .is-style-outline .wp-block-button__link:hover {
	background: var(--fab-cream);
	color: var(--fab-red);
}

/* ---------- Buttons: sticker style everywhere ---------- */

.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button[type="submit"] {
	border-radius: 999px !important;
	border: 2px solid var(--fab-ink);
	box-shadow: 4px 4px 0 var(--fab-ink);
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease),
		background-color 0.25s var(--fab-ease-out), color 0.25s var(--fab-ease-out);
}

.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button[type="submit"]:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--fab-ink);
}

.is-style-outline .wp-block-button__link {
	border-width: 2px;
}

/* Quiet text-link CTA — inherits its parent's color */
.fab-textlink a {
	color: inherit;
	font-family: Fredoka, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
	transition: opacity 0.25s;
}

.fab-textlink a:hover {
	opacity: 0.7;
}

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

/* Shortcode grids ([products]) — replace WC floats with CSS grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.5rem 1.5rem;
	margin: 0;
	width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	text-align: left;
	position: relative;
}

.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }

/* Product Collection block grid */
.wc-block-product-template.wc-block-product-template {
	gap: 2.5rem 1.5rem;
}

/* Card imagery: rounded, on white, playful lift + tilt on hover */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img,
.wc-block-product-template .wc-block-components-product-image img {
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
	background: var(--fab-white);
	border-radius: var(--fab-radius);
	border: 2px solid var(--fab-line);
	transition: transform 0.4s var(--fab-ease), border-color 0.3s, box-shadow 0.4s var(--fab-ease);
	display: block;
}

.woocommerce ul.products li.product a:hover img,
.wc-block-product-template li:hover .wc-block-components-product-image img {
	transform: rotate(-1.2deg) translateY(-4px);
	border-color: var(--fab-ink);
	box-shadow: 5px 6px 0 var(--fab-mango);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
}

/* Card text */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product-template h3 a,
.wc-block-product-template .wp-block-post-title {
	font-family: Fredoka, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
	padding: 0.85rem 0 0.1rem;
	margin: 0;
	color: var(--fab-ink);
	text-decoration: none;
}

.woocommerce ul.products li.product .price,
.wc-block-product-template .wc-block-components-product-price {
	font-family: Nunito, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--fab-red);
	letter-spacing: 0.01em;
	margin: 0;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--fab-red);
	font-weight: 800;
}

.woocommerce ul.products li.product .price del {
	opacity: 0.4;
	color: var(--fab-ink);
	margin-right: 0.45em;
	font-weight: 600;
}

/* No add-to-cart noise on cards — the product page sells */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

/* Sale badge: rotated mango sticker */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	position: absolute;
	top: 14px;
	left: 12px;
	right: auto;
	background: var(--fab-mango);
	color: var(--fab-ink);
	border: 2px solid var(--fab-ink);
	border-radius: 999px;
	font-family: Fredoka, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35em 0.95em;
	line-height: 1.4;
	min-height: 0;
	min-width: 0;
	z-index: 2;
	transform: rotate(-6deg);
	box-shadow: 2px 2px 0 var(--fab-ink);
}

/* Empty-state line for a collection with nothing in it yet (e.g. no
   products starred). Quiet on purpose — it is a nudge, not an error. */
.fab-empty-note {
	font-family: Fredoka, sans-serif;
	font-size: 0.9rem;
	color: var(--fab-soft);
	margin: 0;
}

/* ---------- Shop / category archives ---------- */

.fab-shop-toolbar {
	border-bottom: 2px dashed var(--fab-line);
	padding: 0.9rem 0;
}

/* Archive title lives inside the toolbar as a fun chip */
.fab-shop-toolbar h1 {
	font-family: Fredoka, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--fab-ink);
	line-height: 1.4;
	margin: 0;
}

.woocommerce-result-count,
.wc-block-product-results-count p.woocommerce-result-count {
	font-family: Fredoka, sans-serif;
	font-size: 0.72rem !important;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fab-soft);
	margin: 0 !important;
	line-height: 1.4;
}

/* Kill the root block-gap between header and page content */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Header search: icon trigger + overlay ---------- */

.faboink-search .wp-block-search__button {
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0.3rem;
	margin-left: 0;
	cursor: pointer;
}

.faboink-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.faboink-search .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 0.4rem;
}

.wp-block-navigation .faboink-search {
	margin-left: 0.5rem;
}

/* Once the overlay takes over, the block is just a trigger icon */
.faboink-search--overlay .wp-block-search__input,
.faboink-search--overlay .wp-block-search__inside-wrapper > :not(.wp-block-search__button) {
	display: none !important;
}

body.faboink-no-scroll {
	overflow: hidden;
}

.faboink-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(34, 22, 16, 0.45);
}

.faboink-search-overlay__panel {
	position: relative;
	background: var(--fab-cream);
	border-bottom: 3px solid var(--fab-ink);
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
	max-height: 88vh;
	overflow-y: auto;
}

.faboink-search-overlay__close {
	position: absolute;
	top: clamp(1rem, 2.5vw, 1.75rem);
	right: clamp(1.25rem, 4vw, 3rem);
	background: var(--fab-mango);
	border: 2px solid var(--fab-ink);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fab-ink);
	cursor: pointer;
	box-shadow: 2px 2px 0 var(--fab-ink);
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease);
}

.faboink-search-overlay__close:hover {
	transform: translate(1px, 1px) rotate(90deg);
	box-shadow: 1px 1px 0 var(--fab-ink);
}

.faboink-search-overlay__form {
	max-width: 1280px;
	margin: 0 auto;
}

.faboink-search-overlay__form input[type="search"] {
	width: 100%;
	border: 0;
	border-bottom: 3px solid var(--fab-ink);
	border-radius: 0;
	background: transparent;
	font-family: Fredoka, sans-serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3.6vw, 2.4rem);
	line-height: 1.3;
	padding: 0.3em 0;
	color: var(--fab-ink);
	outline: none;
}

.faboink-search-overlay__form input[type="search"]::placeholder {
	color: var(--fab-soft);
	opacity: 0.6;
}

.faboink-search-overlay__form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.faboink-search-overlay__hint {
	max-width: 1280px;
	margin: 0.9rem auto 0;
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fab-soft);
}

.faboink-search-overlay__results {
	max-width: 1280px;
	margin: 1.75rem auto 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.5rem 1.1rem;
}

.faboink-sr {
	text-decoration: none;
	display: block;
}

.faboink-sr img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--fab-white);
	border-radius: 12px;
	border: 2px solid var(--fab-line);
	display: block;
	margin-bottom: 0.6rem;
	transition: transform 0.3s var(--fab-ease), border-color 0.25s;
}

.faboink-sr:hover img {
	transform: rotate(-1.5deg);
	border-color: var(--fab-ink);
}

.faboink-sr__name {
	display: block;
	font-family: Fredoka, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--fab-ink);
	line-height: 1.35;
}

.faboink-sr__price {
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--fab-red);
	margin-top: 0.15rem;
}

.faboink-search-overlay__all {
	grid-column: 1 / -1;
	justify-self: start;
	font-family: Fredoka, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--fab-ink);
	padding-bottom: 2px;
	margin-top: 0.5rem;
}

.faboink-search-overlay__empty {
	grid-column: 1 / -1;
	color: var(--fab-soft);
	font-size: 0.95rem;
	margin: 0;
}

@media (max-width: 900px) {
	.faboink-search-overlay__results {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.faboink-search-overlay__results {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Custom searchable sort dropdown ---------- */

.has-faboink-sort > select {
	display: none;
}

.faboink-sort {
	position: relative;
}

.faboink-sort__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--fab-white);
	border: 2px solid var(--fab-ink);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	cursor: pointer;
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--fab-ink);
	line-height: 1.4;
	box-shadow: 2px 2px 0 var(--fab-ink);
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease);
}

.faboink-sort__trigger:hover {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 var(--fab-ink);
}

.faboink-sort__panel {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	z-index: 60;
	min-width: 240px;
	background: var(--fab-white);
	border: 2px solid var(--fab-ink);
	border-radius: 14px;
	box-shadow: 4px 4px 0 var(--fab-ink);
	padding: 0.4rem 0 0.5rem;
	overflow: hidden;
}

.faboink-sort__search {
	width: 100%;
	border: 0;
	border-bottom: 2px dashed var(--fab-line);
	background: transparent;
	font-family: Nunito, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.55rem 1rem 0.6rem;
	outline: none;
	color: var(--fab-ink);
}

.faboink-sort__search::placeholder {
	color: var(--fab-soft);
	opacity: 0.6;
}

.faboink-sort__list {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
}

.faboink-sort__list button {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: Fredoka, sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--fab-ink);
	padding: 0.5rem 1rem;
}

.faboink-sort__list button:hover {
	background: var(--fab-peach);
	color: var(--fab-red);
}

.faboink-sort__list button.is-current {
	color: var(--fab-red);
}

.faboink-sort__list button.is-current::after {
	content: "✶";
	margin-left: 0.5rem;
}

/* Selects: custom-drawn, no raw browser chrome */
.wc-block-catalog-sorting select,
.woocommerce-ordering select,
.wc-blocks-components-select select,
form select {
	appearance: none;
	-webkit-appearance: none;
	border: 2px solid var(--fab-line);
	border-radius: 12px;
	background-color: var(--fab-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23221610' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 10px 6px;
	padding: 0.6rem 2.5rem 0.6rem 1rem;
	font-family: Nunito, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fab-ink);
	cursor: pointer;
	transition: border-color 0.25s;
}

.wc-block-catalog-sorting select:hover,
.woocommerce-ordering select:hover,
form select:hover {
	border-color: var(--fab-ink);
}

.wc-block-catalog-sorting select:focus-visible,
form select:focus-visible {
	outline: 2px solid var(--fab-red);
	outline-offset: 2px;
}

/* Pagination: round chips */
.wp-block-query-pagination {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	font-family: Fredoka, sans-serif;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.35em 0.75em;
	border-radius: 999px;
}

.wp-block-query-pagination a:hover {
	background: var(--fab-peach);
}

.wp-block-query-pagination .current {
	background: var(--fab-ink);
	color: var(--fab-cream);
}

/* ---------- Single product ---------- */

.fab-product-main h1 {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	margin: 0.2em 0 0.25em;
}

.fab-product-main .wc-block-components-product-price,
.fab-product-main .wp-block-woocommerce-product-price {
	font-family: Nunito, sans-serif;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--fab-red);
	letter-spacing: 0.01em;
}

.fab-product-main .wp-block-post-excerpt__excerpt {
	color: var(--fab-soft);
	font-size: 0.98rem;
	line-height: 1.75;
}

/* Short description with real markup: label + spec list */
.faboink-short-desc {
	color: var(--fab-soft);
	font-size: 0.98rem;
	line-height: 1.75;
}

.faboink-short-desc p strong:only-child {
	display: block;
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fab-red);
}

.faboink-short-desc ul {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
}

.faboink-short-desc li {
	position: relative;
	padding-left: 1.3rem;
	margin-bottom: 0.2rem;
}

.faboink-short-desc li::before {
	content: "✶";
	position: absolute;
	left: 0;
	color: var(--fab-red);
}

/* Category eyebrow above the title */
.fab-eyebrow.wp-block-post-terms {
	font-size: 0.78rem;
}

.fab-eyebrow.wp-block-post-terms a {
	color: var(--fab-teal);
}

.wp-block-woocommerce-product-image-gallery img {
	background: var(--fab-white);
	border-radius: var(--fab-radius);
}

/* Variation gallery — WooCommerce core (Settings → Advanced → Features →
   Variation gallery). Core swaps the whole gallery once a variation fully
   resolves, and renders through the classic .woocommerce-product-gallery
   markup, so that is what we style. */
/* The block wrapper caps itself at the largest image's pixel width, which
   leaves the gallery narrower than its column. Both it and the gallery
   inside have to be released. */
.fab-product-main .wp-block-woocommerce-product-image-gallery {
	width: 100%;
	max-width: 100% !important;
}

.fab-product-main .woocommerce-product-gallery {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-bottom: 0;
	/* The gallery is position:relative with z-index:auto, so it forms no
	   stacking context and anything positioned inside it is compared against
	   the whole page. WooCommerce gives the zoom trigger z-index:99, which
	   beats the sticky header's 90 — the magnifier scrolled out over the
	   header. Isolating the gallery keeps its children's z-indexes to
	   themselves, whatever values core picks in future. */
	isolation: isolate;
}

.fab-product-main .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.fab-product-main .woocommerce-product-gallery__image img {
	background: var(--fab-white);
	border-radius: var(--fab-radius);
	display: block;
	width: 100%;
	height: auto;
}

/* Thumbnail strip below the main image */
.fab-product-main .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

/* Size the list items, not the images — WooCommerce's own percentage
   widths sit on the li and would out-specify anything set on the img. */
.fab-product-main .flex-control-thumbs li {
	width: calc(25% - 0.45rem);
	margin: 0;
	float: none;
}

.fab-product-main .flex-control-thumbs img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--fab-white);
	border: 2px solid var(--fab-line);
	border-radius: 10px;
	cursor: pointer;
	opacity: 1;
	transition: border-color 0.2s, transform 0.2s var(--fab-ease);
}

.fab-product-main .flex-control-thumbs img:hover {
	transform: translateY(-2px);
	border-color: var(--fab-soft);
}

.fab-product-main .flex-control-thumbs img.flex-active,
.fab-product-main .flex-control-thumbs .flex-active img {
	border-color: var(--fab-ink);
}

/* Zoom / lightbox trigger.
   NOTE: core styles this via `.woocommerce div.product div.images
   .woocommerce-product-gallery__trigger`, which out-specifies the selector
   below, so background / border / width / height here never take effect —
   the button renders as core's plain white 36px circle. Overriding it means
   also repositioning core's ::before/::after, which draw the magnifier at
   coordinates tuned for 36px. Left as-is deliberately. */
.fab-product-main .woocommerce-product-gallery__trigger {
	color: var(--fab-ink);
	background: rgba(255, 251, 242, 0.92);
	border: 2px solid var(--fab-ink);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.fab-product-main .woocommerce-product-gallery__trigger:hover {
	background: var(--fab-mango);
}

/* ---------- Variation picker: size pills + colour swatches ---------- */

/* The native selects drive the logic; the pills are the interface */
.faboink-vf .variations select {
	display: none !important;
}

.faboink-vf table.variations,
.faboink-vf table.variations tbody,
.faboink-vf table.variations tr,
.faboink-vf table.variations th,
.faboink-vf table.variations td {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
}

.faboink-vf table.variations tr {
	margin-bottom: 1.25rem;
}

.faboink-vf table.variations th.label label {
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fab-soft);
}

.faboink-opt-current {
	color: var(--fab-ink);
	text-transform: none;
	letter-spacing: 0.02em;
}

.faboink-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.6rem;
}

/* Size pills */
.faboink-opt {
	border: 2px solid var(--fab-line);
	background: var(--fab-white);
	padding: 0.5rem 1rem;
	font-family: Fredoka, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--fab-ink);
	cursor: pointer;
	border-radius: 999px;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--fab-ease);
}

.faboink-opt:hover {
	border-color: var(--fab-ink);
	transform: translateY(-2px);
}

.faboink-opt.is-selected {
	background: var(--fab-ink);
	border-color: var(--fab-ink);
	color: var(--fab-cream);
}

.faboink-opt.is-soldout {
	text-decoration: line-through;
	opacity: 0.5;
	background: transparent;
}

.faboink-opt.is-soldout.is-selected {
	background: var(--fab-soft);
	border-color: var(--fab-soft);
	color: var(--fab-cream);
	opacity: 1;
}

/* Greyed add-to-cart while an out-of-stock variation is selected */
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-is-unavailable {
	opacity: 0.35;
	cursor: not-allowed;
	background: var(--fab-soft);
}

/* Colour swatches */
.faboink-opt--swatch {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	padding: 0;
	border: 2px solid rgba(34, 22, 16, 0.2);
}

.faboink-opt--swatch:hover {
	transform: translateY(-2px) scale(1.08);
}

.faboink-opt--swatch.is-selected {
	outline: 2px solid var(--fab-ink);
	outline-offset: 3px;
}

.faboink-opt--swatch.is-soldout {
	text-decoration: none;
	opacity: 0.3;
}

/* Keyboard focus for size pills and colour swatches. Declared after the
   selected-swatch outline above so focus stays visible on the chosen
   option — without this, keyboard shoppers can't tell where they are. */
.faboink-opt:focus-visible {
	outline: 2px solid var(--fab-red);
	outline-offset: 3px;
}

/* WooCommerce's reset link + variation price/stock area */
.faboink-vf .reset_variations {
	font-family: Fredoka, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fab-soft);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

.woocommerce-variation.single_variation {
	margin-bottom: 0.75rem;
}

.woocommerce-variation-price .price {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--fab-red);
}

.woocommerce-variation-availability p.stock {
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fab-teal);
	margin: 0.3rem 0 0;
}

.woocommerce-variation-availability p.stock.out-of-stock {
	color: var(--fab-red);
}

/* Add-to-cart form */
.wc-block-add-to-cart-form form.cart,
.woocommerce div.product form.cart {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	flex-wrap: wrap;
	margin: 1.5rem 0 1rem;
}

.woocommerce div.product form.cart .quantity .qty,
.wc-block-add-to-cart-form .quantity .qty {
	height: 100%;
	min-height: 52px;
	width: 4.4rem;
	border: 2px solid var(--fab-ink);
	border-radius: 999px;
	background: var(--fab-white);
	font-family: Fredoka, sans-serif;
	font-size: 1rem;
	text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	background: var(--fab-red);
	color: #fff;
	font-family: Fredoka, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 0.9em 2em;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
	background: var(--fab-ink);
	color: var(--fab-cream);
}

/* Meta: sku / category */
.wp-block-woocommerce-product-meta,
.woocommerce div.product .product_meta {
	border-top: 2px dashed var(--fab-line);
	padding-top: 1.1rem;
	margin-top: 1.4rem;
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fab-soft);
}

.wp-block-woocommerce-product-meta a,
.woocommerce div.product .product_meta a {
	color: var(--fab-ink);
	text-decoration: none;
}

/* Trust lines under the buy box */
.fab-trust p {
	font-family: Fredoka, sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--fab-soft);
	margin: 0;
}

.fab-trust p::before {
	content: "✶ ";
	color: var(--fab-red);
}

/* Details accordion / tabs */
.wp-block-woocommerce-product-details {
	margin-top: clamp(3rem, 6vw, 5rem);
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.wp-block-woocommerce-breadcrumbs {
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem !important;
	letter-spacing: 0.04em;
	color: var(--fab-soft) !important;
}

.woocommerce-breadcrumb a,
.wp-block-woocommerce-breadcrumbs a {
	color: var(--fab-soft);
	text-decoration: none;
}

.fab-related h2 {
	margin-bottom: 0;
}

/* ---------- Category tiles ---------- */

.fab-tile {
	border-radius: 24px;
	border: 2px solid var(--fab-ink);
	box-shadow: 6px 6px 0 var(--fab-ink);
	overflow: hidden;
	position: relative;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: transform 0.3s var(--fab-ease), box-shadow 0.3s var(--fab-ease);
}

.fab-tile:hover {
	transform: translate(3px, 3px) rotate(-0.5deg);
	box-shadow: 2px 2px 0 var(--fab-ink);
}

.fab-tile h3 {
	margin: 0 0 0.2rem;
	font-size: 1.7rem;
}

.fab-tile .fab-tile-emoji {
	font-size: clamp(4rem, 8vw, 6.5rem);
	line-height: 1;
	margin: 0 0 auto;
	transform: rotate(-6deg);
	transition: transform 0.35s var(--fab-ease);
}

.fab-tile:hover .fab-tile-emoji {
	transform: rotate(6deg) scale(1.15);
}

/* Stretched link: the tile's text link covers the whole card, so the
   entire box is one big tap target (one anchor — screen readers still
   announce just "Shop men's tees"). */
.fab-tile .fab-textlink a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.fab-tile .fab-textlink a:focus-visible {
	outline: none;
}

.fab-tile:has(.fab-textlink a:focus-visible) {
	outline: 3px solid var(--fab-red);
	outline-offset: 3px;
}

.fab-tile--mango { background: var(--fab-mango); }
.fab-tile--pink { background: var(--fab-pink); }
.fab-tile--teal { background: var(--fab-teal); }

.fab-tile--teal h3,
.fab-tile--teal p,
.fab-tile--teal .fab-textlink a {
	color: #fff;
}

/* ---------- Why-us columns ---------- */

.fab-why .wp-block-column {
	background: var(--fab-white);
	border: 2px solid var(--fab-ink);
	border-radius: 20px;
	box-shadow: 5px 5px 0 var(--fab-peach);
	padding: 1.75rem 1.5rem;
	transition: transform 0.25s var(--fab-ease), box-shadow 0.25s var(--fab-ease);
}

.fab-why .wp-block-column:hover {
	transform: translateY(-4px) rotate(0.5deg);
	box-shadow: 5px 9px 0 var(--fab-mango);
}

.fab-why-emoji {
	font-size: 2.4rem;
	line-height: 1;
	margin: 0 0 0.75rem;
}

.fab-why h3 {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

.fab-why p:not(.fab-why-emoji) {
	font-size: 0.92rem;
	color: var(--fab-soft);
	line-height: 1.7;
	margin: 0;
}

/* ---------- Dark fun band ---------- */

.fab-dark {
	background: var(--fab-ink);
	color: var(--fab-cream);
}

.fab-dark h2,
.fab-dark h3 {
	color: var(--fab-cream);
}

.fab-dark p {
	color: #cfbfae;
}

.fab-dark .fab-textlink a {
	color: var(--fab-mango);
}

/* ---------- CTA band ---------- */

.fab-cta {
	background: var(--fab-mango);
	border-top: 2px solid var(--fab-ink);
	border-bottom: 2px solid var(--fab-ink);
	text-align: center;
}

.fab-cta h2 {
	margin: 0 0 0.5rem;
}

.fab-cta p {
	margin: 0 auto;
	max-width: 52ch;
}

/* ---------- Footer ---------- */

.fab-footer {
	background: var(--fab-ink);
	color: #cfbfae;
}

.fab-footer a {
	color: #f3e9dc;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.fab-footer a:hover {
	color: var(--fab-mango);
}

.fab-footer p {
	font-size: 0.9rem;
}

.fab-footer-heading {
	font-family: Fredoka, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fab-pink);
}

.fab-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fab-footer-fine p,
.fab-footer-fine a {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #9b8873;
}

/* Oversized closing wordmark — must escape the 720px content column */
.fab-watermark {
	max-width: none !important;
}

.fab-watermark p {
	font-family: Fredoka, sans-serif;
	font-weight: 700;
	font-size: clamp(4.5rem, 16vw, 14rem);
	letter-spacing: 0.02em;
	line-height: 0.95;
	text-align: center;
	color: rgba(255, 54, 0, 0.18);
	margin: 0;
	max-width: none;
	user-select: none;
	white-space: nowrap;
	overflow: hidden;
}

/* ---------- Cart / checkout blocks ---------- */

.wc-block-components-button {
	background: var(--fab-red);
	font-family: Fredoka, sans-serif;
	letter-spacing: 0.03em;
	font-size: 0.95rem;
	font-weight: 600;
}

.wc-block-components-button:hover {
	background: var(--fab-ink);
}

.wc-block-components-order-summary,
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-cart-items {
	border-radius: var(--fab-radius);
}

/* ---------- Notices: fabOink cards instead of default banners ---------- */

/* Block-style notice banners (Woo 8+: account, cart, checkout) */
.wc-block-components-notice-banner {
	border-radius: 16px !important;
	border: 2px solid var(--fab-ink) !important;
	box-shadow: 3px 3px 0 var(--fab-ink);
	padding: 1rem 1.25rem !important;
	font-family: Nunito, sans-serif;
	font-weight: 600;
	color: var(--fab-ink) !important;
}

.wc-block-components-notice-banner.is-info {
	background: var(--fab-peach) !important;
}

.wc-block-components-notice-banner.is-success {
	background: #d9f2ea !important;
}

.wc-block-components-notice-banner.is-error {
	background: #ffe3dd !important;
}

.wc-block-components-notice-banner > svg {
	fill: var(--fab-ink) !important;
	background: transparent !important;
}

/* Classic notices (fallback paths still print these) */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-radius: 16px;
	border: 2px solid var(--fab-ink);
	box-shadow: 3px 3px 0 var(--fab-ink);
	background: var(--fab-peach);
	color: var(--fab-ink);
	font-family: Nunito, sans-serif;
	font-weight: 600;
	padding: 1rem 1.25rem;
}

.woocommerce-message {
	background: #d9f2ea;
}

.woocommerce-error {
	background: #ffe3dd;
}

/* Buttons that ride inside notices: compact mango pills, no underline.
   WooCommerce's own banner CSS loads after ours and re-flattens links
   (transparent bg + underline), so key properties are forced. */
.wc-block-components-notice-banner .button,
.wc-block-components-notice-banner__content .button,
.wc-block-components-notice-banner__content a.wc-forward,
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button {
	display: inline-block;
	background: var(--fab-mango) !important;
	color: var(--fab-ink) !important;
	font-family: Fredoka, sans-serif !important;
	font-size: 0.82rem !important;
	font-weight: 600;
	text-decoration: none !important;
	border: 2px solid var(--fab-ink) !important;
	border-radius: 999px !important;
	box-shadow: 2px 2px 0 var(--fab-ink);
	padding: 0.35em 1.1em !important;
	margin-left: 0.75rem;
	float: none;
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease);
}

.wc-block-components-notice-banner .button:hover,
.wc-block-components-notice-banner__content a.wc-forward:hover,
.woocommerce-info .button:hover,
.woocommerce-message .button:hover,
.woocommerce-error .button:hover {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 var(--fab-ink);
	background: var(--fab-mango) !important;
	color: var(--fab-ink) !important;
}

/* ---------- My Account area ---------- */

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.woocommerce-MyAccount-navigation ul li a {
	display: block;
	font-family: Fredoka, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--fab-ink);
	text-decoration: none !important;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: background-color 0.2s, border-color 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--fab-peach);
	color: var(--fab-ink);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--fab-ink);
	color: var(--fab-cream);
	border-color: var(--fab-ink);
}

.woocommerce-MyAccount-navigation ul li:last-child a {
	color: var(--fab-red);
}

.woocommerce-MyAccount-navigation ul li:last-child a:hover {
	background: #ffe3dd;
}

.woocommerce-MyAccount-content {
	font-size: 0.95rem;
}

.woocommerce-MyAccount-content a:not(.button) {
	font-weight: 700;
}

/* ---------- Checkout / order-pay (Razorpay receipt) ---------- */

/* WooCommerce's order-pay screen: label-over-value row of order facts */
.fab-checkout ul.order_details {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 2.5rem;
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
	padding: 0 0 1.25rem;
	border-bottom: 2px dashed var(--fab-line);
}

.fab-checkout ul.order_details li {
	font-family: Fredoka, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fab-soft);
	margin: 0;
	max-width: none;
}

.fab-checkout ul.order_details li strong {
	display: block;
	font-family: Nunito, sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	color: var(--fab-ink);
	margin-top: 0.2rem;
}

/* The Razorpay plugin prints bare <button> tags with no classes, so they
   render as native OS buttons. Its own IDs are the only stable hook. */
p:has(> #btn-razorpay) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

#btn-razorpay,
#btn-razorpay-cancel {
	font-family: Fredoka, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 999px;
	border: 2px solid var(--fab-ink);
	padding: 0.8em 2.1em;
	min-height: 52px;
	cursor: pointer;
	transition: transform 0.2s var(--fab-ease), box-shadow 0.2s var(--fab-ease),
		background-color 0.25s var(--fab-ease-out), color 0.25s var(--fab-ease-out);
}

#btn-razorpay {
	background: var(--fab-red);
	color: #fff;
	box-shadow: 4px 4px 0 var(--fab-ink);
}

#btn-razorpay:hover:not([disabled]) {
	background: var(--fab-ink);
	color: var(--fab-cream);
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--fab-ink);
}

#btn-razorpay[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: 2px 2px 0 var(--fab-ink);
}

/* Cancel stays quiet — it must not compete with Pay Now */
#btn-razorpay-cancel {
	background: transparent;
	color: var(--fab-soft);
	border-color: rgba(34, 22, 16, 0.25);
	margin-left: 0.25rem;
}

#btn-razorpay-cancel:hover {
	background: var(--fab-peach);
	color: var(--fab-ink);
	border-color: var(--fab-ink);
}

/* The plugin hardcodes an inline grey background + border on this notice,
   so every contested property needs !important to reach it. */
#msg-razorpay-success {
	background: var(--fab-peach) !important;
	border: 2px solid var(--fab-ink) !important;
	border-radius: 16px !important;
	box-shadow: 3px 3px 0 var(--fab-ink);
	padding: 1rem 1.25rem !important;
	color: var(--fab-ink) !important;
	font-family: Nunito, sans-serif;
	font-weight: 600;
}

.fab-checkout-trust {
	padding-top: 1.25rem;
}

.fab-checkout-trust p {
	font-size: 0.78rem;
}

/* ---------- Forms ---------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea {
	border-radius: 12px;
}

/* ---------- Content pages ---------- */

.fab-page-header {
	border-bottom: 2px dashed var(--fab-line);
	padding: 0.9rem 0;
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.fab-page-header h1 {
	font-size: 1.05rem !important;
	font-weight: 600;
	color: var(--fab-ink);
	line-height: 1.4;
	margin: 0;
}

.fab-lead {
	font-size: 1.12rem;
	line-height: 1.75;
	color: var(--fab-soft);
}

.fab-article > p,
.fab-article .fab-lead {
	max-width: 64ch;
}

.fab-article > h2 {
	max-width: 26ch;
}

.fab-article img {
	max-width: 100%;
	height: auto;
	border-radius: var(--fab-radius);
}

.fab-panel {
	background: var(--fab-white);
	border: 2px solid var(--fab-ink);
	border-radius: 20px;
	box-shadow: 5px 5px 0 var(--fab-peach);
}

.fab-panel h3 {
	font-size: 0.85rem;
	font-family: Fredoka, sans-serif;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fab-red);
	margin: 0 0 0.9rem;
}

.fab-panel p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.8;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem 1.1rem;
	}
}

/* Desktop: account icon in the bar, mobile search trigger hidden,
   "My Account" nav link reserved for the mobile overlay */
@media (min-width: 782px) {
	.faboink-search-mobile {
		display: none !important;
	}

	.wp-block-navigation-item.fab-mobile-only {
		display: none;
	}
}

@media (max-width: 781px) {
	/* Bar order: search · cart · hamburger — account lives in the menu */
	.fab-header-main .wp-block-woocommerce-customer-account {
		display: none;
	}

	.faboink-search-mobile {
		order: 1;
	}

	.fab-header-main .wc-block-mini-cart {
		order: 2;
	}

	.fab-header-main .wp-block-navigation {
		order: 3;
	}

	/* The in-nav search is redundant inside the overlay */
	.wp-block-navigation__responsive-container .faboink-search:not(.faboink-search-mobile) {
		display: none;
	}

	.fab-header-main .wp-block-site-logo img {
		max-height: 42px;
	}
}

@media (max-width: 781px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.woocommerce ul.products.columns-3,
	.woocommerce ul.products.columns-2 {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.9rem 0.9rem;
	}

	.fab-hero h1 {
		max-width: 100%;
	}

	.fab-tile {
		min-height: 260px;
	}
}
