/* ==========================================================================
   PME storefront look "Exercise book + Cozy" (theme 2.17.0, owner 20 Nov 2026)
   Loads after style.css on every page (functions.php, pme_cozy_on()).
   Shop pages (home, listings, series, book, blog, school pages) = exercise book:
     faint grid paper, ruled hero with pink margin line, notebook-label section titles,
     index-tab level chips, sticky-note member offer, Cozy cards.
   Task pages (body.pme-task: cart, checkout, thank-you, order pay, My account) = plain Cozy,
     soft blue-grey background, no grid. Their own parts live in pme-checkout/assets/cozy.css.
   Tokens match the back office skin (pme-erp/assets/admin-skin-cozy.css).
   Red only on prices and buy / pay buttons.
   Emergency off: define( 'PME_STORE_SKIN', 'off' ); in wp-config.php.
   ========================================================================== */
:root {
	--pmc-bg: #EEF2F8;           /* task pages */
	--pmc-paper: #F7F9FE;        /* shop pages, under the grid */
	--pmc-grid: rgba(11, 61, 145, 0.04);
	--pmc-ink: #16223A;
	--pmc-muted: #66728A;        /* AA on white and on #EEF2F8 */
	--pmc-line: #DCE3EF;
	--pmc-soft: #DCE7F8;
	--pmc-tint: #E6EEFB;
	--pmc-r: 18px;
	--pmc-rs: 11px;
	--pmc-rl: 24px;
	--pmc-sh: 0 1px 2px rgba(11, 61, 145, 0.05), 0 8px 24px rgba(11, 61, 145, 0.07);
	--pmc-sh-hover: 0 2px 4px rgba(11, 61, 145, 0.06), 0 14px 32px rgba(11, 61, 145, 0.11);
	--pmc-amber: #FFF1D2;
	--pmc-amber-ink: #8A5300;
	--pmc-margin: #F2A3AE;       /* exercise-book margin line */
	--pmc-rule: #E3EBF7;         /* exercise-book ruled line */
	--pme-gridline: var(--pmc-grid);
	--pme-paper: var(--pmc-paper);
	/* Spacing scale (2.17.17, owner 20 Nov 2026): the ONLY vertical gaps between parts of a page. See section "Spacing scale" at the end. */
	--pme-sp-top: 24px;        /* header card -> first thing on the page */
	--pme-sp-section: 64px;    /* between big sections, and last section -> footer */
	--pme-sp-group: 40px;      /* sub-sections in one column (book-page sections, pagination under a list) */
	--pme-sp-block: 16px;      /* heading -> its content */
	--pme-sp-list: 24px;       /* between cards in a list */
}
@media (max-width: 1024px) {   /* tablet (768-1024) */
	:root { --pme-sp-top: 20px; --pme-sp-section: 48px; --pme-sp-group: 36px; --pme-sp-block: 16px; --pme-sp-list: 20px; }
}
@media (max-width: 767px) {    /* phone */
	:root { --pme-sp-top: 16px; --pme-sp-section: 40px; --pme-sp-group: 32px; --pme-sp-block: 12px; --pme-sp-list: 16px; }
}

/* ---------- 1. Background: faint grid on shop pages, plain on task pages ---------- */
body.pme-task {
	background-color: var(--pmc-bg) !important;
	background-image: none !important;
}

/* ---------- 2. Announcement: small pill on the page, not a dark bar ---------- */
.pme-announce { background: transparent; color: var(--pme-blue); }
.pme-announce__inner { min-height: 40px; padding-top: 8px; }
.pme-announce__track { background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(11, 61, 145, 0.06); padding: 3px 4px; }
.pme-announce a, .pme-announce a:hover { color: var(--pme-blue); }
.pme-announce__msg { font-weight: 600; }
.pme-announce__nav { color: var(--pme-blue); }
.pme-announce a.pme-lang__item { color: var(--pmc-muted); }
.pme-announce a.pme-lang__item:hover { color: var(--pme-blue); }
.pme-announce a.pme-lang__item.is-current { color: var(--pme-blue); border-bottom-color: var(--pme-blue); }
.pme-announce__locator, .pme-announce__locator:hover { color: var(--pme-blue) !important; }

/* ---------- 3. Header: one floating white card, menu as pills inside it ---------- */
@media (min-width: 1025px) {
	.pme-header {
		max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem) + 40px);
		margin: 10px auto 0;
		width: calc(100% - 32px);
		background: #fff;
		border-radius: 22px;
		box-shadow: var(--pmc-sh);
		position: relative;
		z-index: 1000;
	}
	.pme-header .pme-wrap { max-width: none; padding-left: 20px; padding-right: 20px; }
	.pme-header__main { background: transparent; border: 0; }
	.pme-header__main-inner { min-height: 80px; }
	.pme-search__input { border: 1.5px solid transparent !important; background: var(--pmc-bg) !important; box-shadow: none !important; }
	.pme-search__input:focus { border-color: var(--pme-blue) !important; background: #fff !important; }
	.pme-header__nav { background: transparent; border-top: 1px solid var(--pmc-line); border-radius: 0 0 22px 22px; }
	.pme-header__nav .pme-wrap { gap: 10px; min-height: 56px; }
	.pme-allcats { height: 38px; border-radius: 999px; background: var(--pme-blue); box-shadow: 0 6px 14px rgba(11, 61, 145, 0.2); }
	.pme-allcats:hover { background: var(--pme-blue-dark); }
	.pme-menu { gap: 2px; align-items: center; }
	.pme-menu > li > a {
		height: 38px; padding: 0 13px; border: 0; border-radius: 999px;
		color: var(--pmc-ink) !important; font-size: 14.5px;
		transition: background-color .15s ease, color .15s ease;
	}
	.pme-menu > li:first-child > a { padding-left: 13px; }
	.pme-menu > li:hover > a,
	.pme-menu > li:focus-within > a { background: var(--pmc-bg); color: var(--pme-blue) !important; }
	.pme-menu > li.current-menu-item > a,
	.pme-menu > li.current-menu-ancestor > a { background: var(--pmc-soft); color: var(--pme-blue) !important; }
	.pme-menu > li > .sub-menu { top: calc(100% + 9px); border: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh-hover); }
	.pme-menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* hover bridge */
	.pme-menu .sub-menu a { border-radius: 10px; margin: 0 8px; }
}
/* Phones / tablets: Kadence's compact header as a floating card. */
@media (max-width: 1024px) {
	#masthead { border-bottom: 0; background: transparent; padding: 8px 10px 0; }
	#masthead .site-mobile-header-wrap .site-header-row-container-inner { background: #fff; border-radius: 20px; box-shadow: var(--pmc-sh); }
	.pme-header { background: transparent; }
	.pme-header__main { background: transparent; }
	.pme-search__input { border: 1.5px solid transparent !important; background: #fff !important; box-shadow: var(--pmc-sh) !important; }
	.pme-search__input:focus { border-color: var(--pme-blue) !important; }
}

/* ---------- 4. Red only on prices and buy buttons ---------- */
.pme-eyebrow { color: var(--pme-blue); }
.pme-pub { color: var(--pmc-muted); }
.pme-cover .pme-pill--hot { background: var(--pmc-amber); color: var(--pmc-amber-ink); }
.pme-hero2__ticks li::before { background: var(--pme-green); }
.pme-section-title::after { display: none; }
.pme-band--book .pme-band__label { color: var(--pme-blue); }
.pme-ptag__type { border-radius: 999px; padding: 3px 9px; background: var(--pmc-soft); color: var(--pme-blue); }
.pme-ptag__type--hot { background: var(--pmc-amber); color: var(--pmc-amber-ink); }
.pme-dxs__label, .pme-rv__eyebrow { color: var(--pme-blue); }
.pme-cart-count { background: var(--pme-blue); box-shadow: 0 0 0 2px #fff; }

/* ---------- 5. Section titles = notebook-cover labels ---------- */
.pme-section-title,
.pme-band--book .pme-band__title,
.related.products > h2,
.up-sells > h2,
.pme-series-more > h2,
.pme-rv-row > h2 {
	display: inline-block;
	background: #fff;
	border: 2px solid var(--pme-blue);
	border-radius: 12px;
	padding: 3px 18px 6px;
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--pmc-soft), 0 4px 12px rgba(11, 61, 145, 0.08);
	color: var(--pme-blue);
	line-height: 1.25;
}
.pme-home .pme-section-title { font-size: 1.6rem; }
@media (max-width: 767px) {
	.pme-section-title, .pme-home .pme-section-title, .pme-band--book .pme-band__title { font-size: 1.25rem; padding: 2px 13px 4px; border-radius: 10px; }
}
.pme-why__title { display: table; margin-left: auto; margin-right: auto; }

/* ---------- 6. Home ---------- */
.pme-hero2__page {
	border-radius: 28px;
	box-shadow: var(--pmc-sh);
}
/* Category tiles: white rounded cards */
.pme-cats .pme-cat { background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); padding: 16px 6px 14px; transition: box-shadow .2s ease, transform .2s ease; }
.pme-cats .pme-cat:hover { box-shadow: var(--pmc-sh-hover); transform: translateY(-2px); }
.pme-cat__ring { width: 60px; height: 60px; border-radius: 17px; background: var(--tint, var(--pmc-soft)); box-shadow: none; }
.pme-cats .pme-cat:hover .pme-cat__ring { transform: none; }
.pme-cat__ring svg { width: 30px; height: 30px; }
@media (max-width: 1024px) {
	.pme-cats { padding-left: 16px; padding-right: 16px; padding-bottom: 14px; scroll-padding-left: 16px; }
	.pme-cats .pme-cat { flex: 0 0 96px; padding: 12px 4px 10px; }
	.pme-cat__ring { width: 48px; height: 48px; border-radius: 14px; box-shadow: none; }
	.pme-cat__ring svg { width: 24px; height: 24px; }
}

/* Sticky note: member offer under the hero (inc/home.php, guests only) */
.pme-note {
	position: relative;
	display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
	max-width: 760px; margin: 30px auto 4px; padding: 22px 26px;
	background: #FFF3B0; border-radius: 4px 4px 18px 4px;
	transform: rotate(-1.2deg);
	box-shadow: 0 10px 22px rgba(120, 90, 0, 0.14);
}
.pme-note::before {   /* tape */
	content: ""; position: absolute; top: -11px; left: 50%; width: 110px; height: 24px; margin-left: -55px;
	background: rgba(220, 231, 248, 0.85); transform: rotate(2deg); border-radius: 2px;
}
.pme-note__text { min-width: 0; flex: 1 1 320px; }
.pme-note__title { display: block; font-family: var(--pme-serif); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--pmc-ink); }
.pme-note__sub { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #5B4A12; }
.pme-note .pme-btn { min-height: 46px; flex: none; }
@media (max-width: 600px) {
	.pme-note { margin: 26px 16px 4px; padding: 20px 18px; transform: rotate(-0.8deg); }
	.pme-note__title { font-size: 19px; }
	.pme-note .pme-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pme-note { transform: none; } }

/* "Cari ikut tahap": ruled card with margin line; rows as coloured index tabs */
.pme-exbook {
	border: 0;
	background-color: #fff;
	background-image: repeating-linear-gradient(transparent 0 39px, var(--pmc-rule) 39px 40px);
	box-shadow: var(--pmc-sh);   /* 2.17.33: short navy top tab instead of the pink margin edge (item 25c) */
}
.pme-exbook::before { background: var(--pmc-margin); opacity: .55; }
.pme-exbook::after { content: ""; position: absolute; left: 18px; top: 0; width: 44px; height: 5px; border-radius: 0 0 4px 4px; background: var(--pme-blue); }
.pme-band--book .pme-band__head { margin-bottom: 22px; }
.pme-band--book .pme-band__label { font-family: var(--pme-sans); font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pmc-muted); }
/* Level tiles (2.17.20, owner 20 Nov 2026): soft Cozy pills, one calm tint per group (Rendah green, Menengah blue,
   Peperiksaan cream), thin tinted outline + soft shadow instead of the hard bottom edge; 44 px tall on every width. */
.pme-band--book .pme-band__row:nth-child(1) { --pme-tile-bg: #EDF7F0; --pme-tile-line: #CDE6D6; --pme-tile-ink: #1E6B3A; }
.pme-band--book .pme-band__row:nth-child(2) { --pme-tile-bg: #EEF3FC; --pme-tile-line: #D3DFF4; --pme-tile-ink: var(--pme-blue); }
.pme-band--book .pme-band__row:nth-child(n+3) { --pme-tile-bg: #FFF6E2; --pme-tile-line: #F0DDB2; --pme-tile-ink: #7A4B00; }
.pme-band--book .pme-band__chip,
.pme-band--book .pme-band__chip:hover {
	height: 44px; padding: 0 18px;
	border: 1px solid var(--pme-tile-line, #D3DFF4); border-radius: 999px;
	color: var(--pme-tile-ink, var(--pme-blue)) !important;
	box-shadow: 0 1px 2px rgba(11, 61, 145, 0.05), 0 4px 12px rgba(11, 61, 145, 0.07);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pme-band--book .pme-band__chip { background: var(--pme-tile-bg, #EEF3FC); }
.pme-band--book .pme-band__chip:hover { transform: translateY(-1px); box-shadow: var(--pmc-sh-hover); background: #fff; }
@media (prefers-reduced-motion: reduce) { .pme-band--book .pme-band__chip:hover { transform: none; } }
@media (max-width: 767px) {
	.pme-band--book .pme-band__chip, .pme-band--book .pme-band__chip:hover { padding: 0 14px; }
}

/* Why PME + articles: Cozy cards */
.pme-why__card { box-shadow: var(--pmc-sh); }
.pme-post, .pme-article { border: 0 !important; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); overflow: hidden; background: #fff; }

/* ---------- 7. Product cards: white Cozy cards ---------- */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product:hover {
	background: #fff !important;
	border-radius: var(--pmc-r) !important;
	padding: 12px 12px 14px !important;
	box-shadow: var(--pmc-sh) !important;
	transition: box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--pmc-sh-hover) !important; }
.woocommerce ul.products li.product .pme-cover { border: 0; border-radius: 12px; background-color: var(--pmc-paper); }
.pme-pill { background: var(--pmc-soft); color: var(--pme-blue); }
.pme-pill--sale { background: var(--pme-red); color: #fff; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product:hover { padding: 8px 8px 12px !important; border-radius: 16px !important; }
}

/* ---------- 8. Footer: floating rounded blue card ---------- */
.pme-footer {
	max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem) + 40px);
	width: calc(100% - 32px);
	margin: 56px auto 16px;
	border-radius: var(--pmc-rl);
	overflow: hidden;
	box-shadow: 0 10px 26px rgba(11, 61, 145, 0.18);
}
.pme-footer::before { display: none; }
.pme-footer .pme-wrap { max-width: none; }
#colophon .site-footer-wrap,
#colophon .site-bottom-footer-wrap,
#colophon .site-footer-row-container-inner { background: transparent !important; color: var(--pmc-muted); }
#colophon a, #colophon a:hover { color: var(--pme-blue); }
@media (max-width: 767px) {
	.pme-footer { width: calc(100% - 20px); margin-top: 40px; margin-bottom: 10px; border-radius: 20px; }
}

/* ---------- 9. Page frame: no white sheet on shop pages; Cozy card on text pages ---------- */
/* Shop pages (listings, search, series / book pages): grid paper shows, the parts are cards. */
body.pme-cozy:not(.home):not(.pme-task) #primary > .content-container { background: transparent; border: 0; box-shadow: none; }
@media (min-width: 1025px) {
	body.pme-cozy:not(.home):not(.pme-task) #primary > .content-container { border: 0; border-radius: 0; margin-top: 0; }   /* 2.17.17: top gap = --pme-sp-top on #primary */
}
/* Text pages (About, school pages, blog posts, policies): the content sits on one white Cozy card. */
body.pme-cozy.page:not(.home):not(.pme-task) .content-area .entry.content-bg,
body.pme-cozy.single-post .content-area .entry.content-bg,
body.pme-cozy.blog .content-area article.entry,
body.pme-cozy.archive.category .content-area article.entry {
	background: #fff; border-radius: var(--pmc-rl); box-shadow: var(--pmc-sh); overflow: hidden;
}

/* Title band (pages, categories): white rounded card */
.entry-hero .entry-header { background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
@media (max-width: 1024px) { .entry-hero .hero-container { padding: 14px 16px 0 !important; } }

/* ---------- 10. Listings: category, publisher, search ---------- */
.pme-incat input { border-color: transparent; box-shadow: var(--pmc-sh); }
.pme-incat input:focus { border-color: var(--pme-blue); }
.pme-incat button { box-shadow: 0 6px 14px rgba(11, 61, 145, 0.2); }
@media (min-width: 1025px) {
	.pme-filters { border: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
}
.pme-cat__intro.has-logo .pme-cat__logo { border-radius: 12px; }
/* Level chips on listing pages (2.17.20, owner 20 Nov 2026): soft Cozy pills like the home level tiles and the series
   chips bar (no hard bottom edge); the chosen one solid blue; 44 px tap height. */
.pme-chip2 {
	min-height: 44px; padding: 6px 16px;
	border: 1px solid #D3DFF4; border-radius: 999px;
	background: #fff; color: var(--pme-blue);
	box-shadow: 0 1px 2px rgba(11, 61, 145, 0.06), 0 2px 6px rgba(11, 61, 145, 0.06);
}
.pme-chip2:hover { background: var(--pmc-tint); border-color: #B9CCEE; color: var(--pme-blue); }
.pme-chip2.is-on { background: var(--pme-blue); border-color: var(--pme-blue); color: #fff; }
@media (max-width: 767px) {
	.pme-chiprow__chips { padding: 2px 2px 8px; }   /* room for the chips' shadow in the sideways-scrolling row */
}
.pme-lvchips { background: rgba(247, 249, 254, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }   /* series level chips bar: same band as .pme-bp-jump */
/* Pagination: pills */
.pagination .nav-links .page-numbers,
.woocommerce nav.woocommerce-pagination ul.page-numbers .page-numbers { border: 0; border-radius: 999px; box-shadow: var(--pmc-sh); }
.pagination .nav-links .page-numbers.dots,
.woocommerce nav.woocommerce-pagination ul.page-numbers span.dots { box-shadow: none; }
/* Rails (trending, other levels, other series): room so card shadows are not cut off */
.pme-rail ul.products { padding: 6px 6px 22px !important; margin: 0 -6px !important; }

/* ---------- 11. Series page and book page ---------- */
.woocommerce div.product div.images.woocommerce-product-gallery {
	background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); padding: 16px;
}
.pme-gallery .flex-viewport,
.pme-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper { border-color: transparent; }
.woocommerce div.product form.grouped_form table.group_table {
	background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); overflow: hidden;
}
.woocommerce div.product form.grouped_form table.group_table td { border-bottom-color: #EEF2F8; }
.woocommerce div.product form.grouped_form tr:first-child td { border-top: 0; }
.woocommerce div.product form.grouped_form tr:last-child td { border-bottom: 0; }
.woocommerce div.product form.grouped_form table.group_table td:first-child { padding-left: 14px !important; }
.woocommerce div.product form.grouped_form table.group_table td:last-child { padding-right: 14px !important; }
.pme-gthumb { border: 0; border-radius: 8px; background: var(--pmc-paper); }
.pme-gtag { border-radius: 999px; }
.pme-gout { background: var(--pmc-bg); }
.pme-trust { border: 0; background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
.pme-book { border: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
.pme-book__title { background: var(--pmc-tint); border-bottom: 0; }
.pme-bp-chips li { background: var(--pmc-tint); }
.pme-bp-lead { position: relative; background: #fff; border-left: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
/* 2.17.33 navy top tab (item 25c) removed in 2.17.70 (UI round 1, B4): on the faint card edge it read as a stray bar
   floating above the description. Feed tiles keep their tab. */
/* Description tabs as index tabs; the panel is a white card */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 -1px !important; border: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: transparent !important; margin: 0 4px 0 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { border-radius: 12px 12px 0 0; padding: 10px 18px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { background: #fff; color: var(--pme-blue) !important; box-shadow: inset 0 3px 0 var(--pme-blue); }
.woocommerce div.product .woocommerce-tabs .panel {
	background: #fff; border-radius: 0 var(--pmc-r) var(--pmc-r) var(--pmc-r); box-shadow: var(--pmc-sh);
	padding: 24px 26px !important; margin: 0 0 24px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs:not(:has(li + li)) + .panel { border-radius: var(--pmc-r); }
@media (max-width: 767px) {
	.woocommerce div.product div.images.woocommerce-product-gallery { padding: 10px; }
	.woocommerce div.product .woocommerce-tabs .panel { padding: 18px 16px !important; }
}
/* Book page (inc/book-page.php): buy card, facts, features, pages, audience, authors, kits, FAQ as Cozy cards */
.pme-bp-card { border: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); }
.pme-bp-facts div,
.pme-bp-aud li,
.pme-bp-authors li,
.pme-bp-kit a,
.pme-bp-faq { border: 0; border-radius: 14px; box-shadow: var(--pmc-sh); }
.pme-bp-feat li { border: 0; border-radius: 14px; background: #fff; box-shadow: var(--pmc-sh); }
.pme-bp-pages a { border: 0; border-radius: 14px; box-shadow: var(--pmc-sh); }

/* ==========================================================================
   2.17.1 polish (owner review on real pages, 20 Nov 2026)
   ========================================================================== */
/* Announcement: one slim soft-blue strip across the top (message centred, language + store locator on the right),
   not a floating pill with loose links beside it. */
.pme-announce { background: var(--pmc-soft); color: var(--pme-blue); }
@media (min-width: 761px) { .pme-announce__inner { min-height: 36px; padding-top: 0; } }
.pme-announce__track { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.pme-announce__msg { font-weight: 600; }
.pme-announce a.pme-lang__item.is-current { font-weight: 800; }

/* Gallery: no outer card. The main photo is the white Cozy card; thumbnails are small white tiles beside it. */
.woocommerce div.product div.images.woocommerce-product-gallery { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.pme-gallery .flex-viewport,
.pme-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper {
	border: 0 !important; border-radius: var(--pmc-r); background: #fff; box-shadow: var(--pmc-sh);
}
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs { padding: 4px 6px 12px 4px !important; gap: 12px; }
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img {
	border: 0 !important; border-radius: 12px; padding: 6px; box-shadow: var(--pmc-sh);
}
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img:hover { box-shadow: var(--pmc-sh-hover); }
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img.flex-active { box-shadow: 0 0 0 2px var(--pme-blue), var(--pmc-sh); }

/* Level heading inside the subject list ("Tahun 4 (12 buku)"): same left edge as the rows, a clear band. */
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv th { padding: 18px 14px 8px !important; border-bottom: 1px solid #EEF2F8; }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv:first-child th { padding-top: 14px !important; }
.pme-glv__t { font-family: var(--pme-serif); font-variation-settings: 'SOFT' 100; font-size: 17px; font-weight: 600; }
.pme-glv__t span { font-family: var(--pme-sans); }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-note td,
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-more td { padding-left: 14px !important; padding-right: 14px !important; }
.pme-glv-note__t { border-left: 0; border-radius: 12px; background: var(--pmc-tint); }
.pme-glv-more__btn { border: 0; border-radius: 999px; background: var(--pmc-tint); }
/* Menu on one row at laptop widths; if it still wraps (narrow desktops), "Semua kategori" stays on the first row. */
@media (min-width: 1025px) {
	.pme-header { margin-top: 12px; }
	.pme-header__nav .pme-wrap { align-items: flex-start; padding-top: 9px; padding-bottom: 9px; min-height: 0; }
	.pme-menu > li > a { padding: 0 10px; font-size: 14px; gap: 4px; }
	.pme-menu > li:first-child > a { padding-left: 10px; }
}
@media (min-width: 1025px) and (max-width: 1440px) {
	.pme-menu > li > a, .pme-menu > li:first-child > a { padding: 0 8px; font-size: 13.5px; }
	.pme-header__nav .pme-wrap { gap: 8px; }
	.pme-allcats { padding: 0 14px; }
}
/* 1025-1199 px: "Semua kategori" becomes its icon only and the menu a touch tighter, so the 9 items stay on one row (owner 21 Nov 2026, 2.17.30; Blog left the menu in inc/header.php). */
@media (min-width: 1025px) and (max-width: 1199px) {
	.pme-menu > li > a, .pme-menu > li:first-child > a { padding: 0 6px; font-size: 13px; }
	.pme-allcats { flex: 0 0 38px; width: 38px; padding: 0 !important; justify-content: center; gap: 0; font-size: 0; overflow: hidden; }
	.pme-allcats svg { flex: 0 0 20px; width: 20px; height: 20px; margin: 0 !important; }
}
/* Book / series page section jump bar (Sekilas · Apa di dalam · Tentang): a white pill row on the paper, not a full-width white bar. */
.pme-bp-jump { background: rgba(247, 249, 254, 0.94); border: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 8px 0; }
.pme-bp-jump ul { display: flex; width: fit-content; max-width: 100%; padding: 5px; background: #fff; border-radius: 999px; box-shadow: var(--pmc-sh); vertical-align: top; }
.pme-bp-jump a { color: var(--pmc-ink); }
@media (max-width: 1024px) {
	.pme-bp-jump__in::before { background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)); border-radius: 999px 0 0 999px; }
	.pme-bp-jump__in::after { background: linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)); border-radius: 0 999px 999px 0; }
}
/* Long text and table of contents on book pages sit on a white card, never straight on the grid paper. */
.pme-bp-about { background: #fff; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); padding: 20px 24px 10px; }
.pme-bp-toc-card { border: 0; border-radius: var(--pmc-r); background: #fff; box-shadow: var(--pmc-sh); padding: 8px 20px 14px; }
.pme-bp-toc__num { background: var(--pmc-tint); color: var(--pme-blue); }
.pme-bp-toc__title { color: var(--pmc-ink); }
.pme-bp-toc__pg, .pme-bp-toc__sub { color: var(--pmc-muted); }
.pme-bp-toc__toggle { background: #F3F6FC !important; color: var(--pme-blue) !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; }
.pme-bp-toc__toggle:hover, .pme-bp-toc__toggle:focus-visible { background: var(--pmc-tint) !important; color: var(--pme-blue) !important; box-shadow: none !important; }
@media (max-width: 767px) {
	.pme-bp-about { padding: 16px 16px 6px; }
	.pme-bp-toc-card { padding: 6px 14px 12px; }
	.pme-bp-toc > li { gap: 10px; padding: 10px 0; }
}
/* Listing tools: sort menu as a white pill; the "how this list works" note as a soft card. */
.woocommerce .woocommerce-ordering select.orderby {
	height: 40px; padding: 0 36px 0 16px; border: 0 !important; border-radius: 999px !important;
	background-color: #fff !important; box-shadow: var(--pmc-sh); color: var(--pmc-ink); font-weight: 600; font-size: 14px;
}
.pme-collapsed-note { border-radius: 14px; background: #fff; box-shadow: var(--pmc-sh); }
/* Search results: Produk / Artikel as a pill switch, like the account and section bars. */
.pme-search-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 0; background: #fff; border-radius: 999px; box-shadow: var(--pmc-sh); }
.pme-search-tab { border: 0 !important; border-radius: 999px; padding: 7px 16px !important; margin: 0 !important; }
.pme-search-tab.is-current { background: var(--pme-blue); color: #fff !important; }
.pme-search-tab.is-current .pme-search-tab__n { background: rgba(255, 255, 255, 0.2); color: #fff; }
/* About page (its own styles live in the page content): eyebrow blue, red stays for price / buy only. */
.entry-content .pme-ab__eyebrow { color: var(--pme-blue); }
/* Phones: thumbnails in one sideways-scrolling row under the photo (never a lonely second row). */
@media (max-width: 767px) {
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs { flex-wrap: nowrap !important; gap: 10px; padding: 4px 4px 12px !important; scrollbar-width: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 4px; }
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li { scroll-snap-align: start; }
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li { flex: 0 0 64px !important; width: 64px !important; }
}
/* Phones: each book in the subject list is a two-line row — cover | name on top, price + quantity under the name —
   so long names are not squeezed into a narrow column. Hidden levels (tr.is-off) stay hidden. */
@media (max-width: 600px) {
	.woocommerce div.product form.grouped_form table.group_table,
	.woocommerce div.product form.grouped_form table.group_table tbody { display: block; width: 100%; }
	.woocommerce div.product form.grouped_form table.group_table tr:not(.is-off) { display: block; }
	.woocommerce div.product form.grouped_form table.group_table tr.woocommerce-grouped-product-list-item:not(.is-off) {
		display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "thumb label label" "thumb price qty";
		align-items: center; column-gap: 12px; row-gap: 6px; padding: 12px 14px; border-bottom: 1px solid #EEF2F8;
	}
	.woocommerce div.product form.grouped_form table.group_table tr.woocommerce-grouped-product-list-item td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; width: auto; }
	.woocommerce div.product form.grouped_form tr.pme-gset { background: #F4F7FD; }
	.woocommerce div.product form.grouped_form tr.is-picked { background: #FFFBEA; }
	.woocommerce-grouped-product-list-item__thumb { grid-area: thumb; align-self: start; }
	.woocommerce-grouped-product-list-item__label { grid-area: label; }
	.woocommerce-grouped-product-list-item__price { grid-area: price; text-align: left !important; }
	.woocommerce-grouped-product-list-item__quantity { grid-area: qty; }
	.woocommerce div.product form.grouped_form table.group_table tr.pme-glv th,
	.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-note td,
	.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-more td { display: block; width: auto; text-align: left; }
	.woocommerce div.product form.grouped_form table.group_table tr:last-child { border-bottom: 0; }
	.woocommerce-grouped-product-list-item__price { white-space: normal !important; }   /* a sale price wraps instead of running over the quantity box */
	.woocommerce-grouped-product-list-item__price del { display: block; }
}
/* Phones / tablets: header card lines up with the search bar and the page cards below it. */
@media (max-width: 1024px) {
	#masthead { padding: 10px var(--global-content-edge-padding, 1.5rem) 0; }
}
/* Publisher logos (home): fixed square tiles. Safari let the aspect-ratio box grow with the logo's 100% height,
   so the tiles came out as tall rectangles; fixed row heights keep them square in every browser. Cozy cards. */
.pme-brands__list { grid-template-rows: repeat(2, 132px); padding: 6px 6px 14px; }
.pme-brands__list li { height: 100%; min-height: 0; }
.pme-brand-logo { height: 100%; aspect-ratio: auto; min-height: 0; overflow: hidden; border: 0; border-radius: var(--pmc-r); box-shadow: var(--pmc-sh); transition: box-shadow .2s ease; }
.pme-brand-logo:hover { box-shadow: var(--pmc-sh-hover); }
.pme-brand-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
@media (max-width: 600px) {
	.pme-brands__list { grid-template-rows: repeat(2, 104px); }
}

/* ==========================================================================
   2.17.3 position pass (owner, 20 Nov 2026): every label, card edge and line sits where it should,
   checked by script on every page type at 1920 / 1366 / 900 / 768 / 375 / 360.
   ========================================================================== */
/* One side edge on phones: header card, search, title band, product grid, text cards and footer all 16 px from the screen edge
   (was 24 / 16 / 8 px mixed). Tablets keep Kadence's 24 px, desktops line up with the header card. */
@media (max-width: 767px) {
	body.pme-cozy { --global-content-edge-padding: 16px; }
	body.pme-cozy.page:not(.home):not(.pme-task) .content-area .entry.content-bg,
	body.pme-cozy.single-post .content-area .entry.content-bg,
	body.pme-cozy.blog .content-area article.entry,
	body.pme-cozy.archive.category .content-area article.entry { margin-left: 0; margin-right: 0; }   /* Kadence pulls the card out to 8 px */
	body.pme-cozy:not(.pme-task) .entry-content-wrap { padding-left: 20px; padding-right: 20px; }
	.pme-footer { width: calc(100% - 32px); }
}
@media (max-width: 1024px) {
	.entry-hero .hero-container { padding-left: var(--global-content-edge-padding, 1.5rem) !important; padding-right: var(--global-content-edge-padding, 1.5rem) !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.pme-footer { width: calc(100% - 2 * var(--global-content-edge-padding, 1.5rem)); }
}
@media (min-width: 1025px) {   /* title band = same width and edges as the header card and the footer */
	.entry-hero .hero-container { max-width: none; padding-left: 16px !important; padding-right: 16px !important; }
	.entry-hero .entry-header { max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem) + 40px); margin-left: auto !important; margin-right: auto !important; }
}
/* Footer: the strip under the blue card is page paper, not a dark bar. */
#colophon { background: transparent !important; }
#colophon .site-bottom-footer-wrap, #colophon .site-bottom-footer-wrap p { color: var(--pmc-muted) !important; }

/* Home category tiles: a wrapped label ("Sekolah Menengah") stays centred and tight like the one-line ones.
   An old listing rule (.pme-cat { text-align: left }) reached the home tiles. */
.pme-cats .pme-cat { text-align: center; line-height: 1.25; }
/* Wrapped headings and labels: tight line spacing (body text keeps 1.6). */
.pme-brand__name { line-height: 1.15; }
.pme-hero2 .pme-eyebrow { line-height: 1.45; }
.pme-why__card h3 { line-height: 1.3; }
.pme-brands__title { line-height: 1.3; }
.pme-search-page__title { line-height: 1.2; }
.blog .entry-title, .archive .entry-title, .search .entry-title, .single-post .entry-title, .page .entry-hero .entry-title,
.entry-related .entry-title { line-height: 1.25; }
.loop-entry .entry-title a, .entry-related .entry-title a { line-height: inherit; }
.entry-content .pme-ab-label { line-height: 1.35; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.3; }
.pme-fopt span { line-height: 1.35; }
.pme-bp-pages span, .pme-bp-faq summary, .pme-article__type, .pme-article__title, .post-navigation .nav-links a { line-height: 1.35; }
.pme-chip2 { line-height: 1.3; }
/* LARIS badge on small phones: same left edge as the type pill above it. */
@media (max-width: 480px) { .pme-cover .pme-pill--hot { left: 10px; top: 33px; } }
/* No type pill (COLLECTION / SET / -15%) on the cover: LARIS takes the top spot instead of leaving a gap above it. */
@media (max-width: 480px) { .pme-cover .pme-pill--hot:first-child { top: 10px; } }
/* Any width: the card cover decides, not the screen. When the cover is too narrow for the type pill and LARIS side by
   side (under 200 px, e.g. 2-up cards on small tablets), LARIS sits under the type pill, or on top when there is none. */
ul.products li.product .pme-cover { container-type: inline-size; }
@container (max-width: 199px) {
	.pme-cover .pme-pill--hot { left: 10px; right: auto; top: 33px; }
	.pme-cover .pme-pill--hot:first-child { top: 10px; }
}

/* About page timeline: the dots sit on the line (WordPress's list indent pushed them 32 px to the right of it). */
.entry-content ol.pme-ab-time { padding-left: 0; }
/* Store locator page (page 1534) Google Maps / Waze buttons: pills; on phones full width, one under the other.
   Only this page: other block buttons in posts / pages keep their own style. */
.page-id-1534 .entry-content .wp-block-button .wp-block-button__link { border-radius: 999px !important; }
@media (max-width: 600px) {
	.page-id-1534 .entry-content .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.page-id-1534 .entry-content .wp-block-buttons > .wp-block-button .wp-block-button__link { display: block; width: 100%; text-align: center; }
}
/* Live search dropdown: a Cozy card like the rest. */
.pme-search__results { border: 0 !important; border-radius: var(--pmc-r) !important; box-shadow: var(--pmc-sh-hover) !important; overflow: hidden; }
/* Slide-out cart: "Bayar sekarang" is a pay button, so red like "Teruskan ke pembayaran" on the cart page. */
.pme-drawer__pay { background: var(--pme-red); box-shadow: 0 8px 18px rgba(200, 16, 46, 0.22); }
.pme-drawer__pay:hover { background: var(--pme-red-dark); }

/* Blog post "Similar Posts" carousel on phones: on the 16 px edge like the post card (Kadence bled it to 4 px),
   no grey band, and no arrows on top of the post title (swipe + dots remain). */
@media (max-width: 767px) {
	.entry-related { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; background: transparent !important; }
	.entry-related .entry-related-inner, .entry-related .entry-related-inner-content { width: auto !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
	.entry-related .splide__arrows { display: none; }
}

/* ---------- Safe layout defaults (2.17.3): new screens get these for free ----------
   Low specificity on purpose: any rule written for a component still wins; these only replace
   WordPress / Kadence element defaults and the body's 1.6 line spacing that labels used to inherit.
   Check every look change with tools/layout-audit (README there) before asking for the deploy OK. */
html :is(h1, h2, h3, h4, h5, h6) { line-height: 1.25; text-wrap: balance; }      /* beats Kadence "h2 { 1.5 }", loses to any class rule */
html :is(label, button, summary, figcaption, legend, dt, th) { line-height: 1.35; }
:where(.pme-btn, .pme-pill, .pme-chip2, :is([class^="pme-"], [class*=" pme-"]):is([class*="badge"], [class*="__label"], [class*="__name"], [class*="__eyebrow"])) { line-height: 1.3; }   /* PME parts only; WooCommerce blocks keep their own */
:where(.pme-pill, .pme-chip2, .pme-btn) { text-wrap: balance; }
/* Side edge: one value per screen size (Kadence's --global-content-edge-padding, 16 px on phones above).
   New cards and bars use it for their outer margin instead of their own px numbers. */
body { --pmc-edge: var(--global-content-edge-padding, 1.5rem); }   /* on body, so the phone value set on body.pme-cozy is used */

/* ==========================================================================
   2.17.4 One section header (owner, 20 Nov 2026, reference "Today's schedule" card, option D):
   no box around sections; every section header on the shop pages looks the same: plain dark serif,
   left, one size, with "Lihat semua" as a small outlined pill on the right where there is one.
   Product / article cards stay white Cozy cards on the page. Replaces the 2.17.0 notebook-cover label.
   ========================================================================== */
:root { --pmc-h-size: 1.45rem; --pmc-h-color: var(--pmc-ink); }
@media (max-width: 767px) { :root { --pmc-h-size: 1.2rem; } }
/* Every section header: home rails, articles, why-PME, "Cari ikut tahap", series / book "Tahun lain", "Siri lain",
   recently viewed, search results, category FAQ, related / up-sells, book-page sections, blog "Similar Posts", comments. */
.pme-section-title,
.pme-band--book .pme-band__title,
.related.products > h2, .up-sells > h2,
.pme-bp-sec > h2,
.entry-related-title,
.comments-area .comment-reply-title {
	display: block; padding: 0 !important;
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	font-family: var(--pme-serif); font-variation-settings: 'SOFT' 100; font-weight: 600;
	font-size: var(--pmc-h-size) !important; line-height: 1.25; letter-spacing: 0;
	color: var(--pmc-h-color) !important; text-align: left;
}
.pme-section-title, .related.products > h2, .up-sells > h2, .entry-related-title { margin: 0 0 16px !important; }   /* band title and book-page sections keep their short gap above the subtitle */
.pme-why__title { margin-left: 0; margin-right: 0; }
.pme-why .pme-brands__title { text-align: left; }
/* Header row: title left, "Lihat semua" pill right, both on one line. */
.pme-section-head { align-items: center; margin-bottom: 16px; }
.pme-section-head .pme-section-title { margin: 0 !important; }
.pme-section-more {
	display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin: 0 !important; flex: none;
	border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pmc-line);
	font-size: 13.5px; font-weight: 600; color: var(--pmc-ink) !important; text-decoration: none !important; white-space: nowrap;
}
.pme-section-more:hover { background: var(--pmc-tint); }
@media (max-width: 767px) { .pme-section-head { margin-bottom: 12px; } .pme-section-more { height: 32px; padding: 0 12px; font-size: 13px; } }
/* Card buttons ("Tambah ke troli"): Kadence pads their wrapper 16 px each side, which squeezed the pill narrower
   than its text in small rail cards on phones (text and cart icon spilled out). */
.woocommerce ul.products li.product .product-action-wrap { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 400px) {   /* small phones: the label fits the card; the little cart icon drops (hidden Kadence icons also took gaps) */
	.woocommerce ul.products li.product .product-details .button { padding-left: 6px !important; padding-right: 6px !important; gap: 0; letter-spacing: 0 !important; }
	.woocommerce ul.products li.product .product-details .button::before { display: none !important; }
}

/* ---------- Quantity + Tambah ke troli (2.17.14, owner 20 Nov 2026) ----------
   Stepper = soft tint pill with round white − / + (blue on hover), no grey border; buy buttons = red pills with a soft
   red shadow (red only on price / buy). Same on the sticky side card, the phone buy bar, and the series-page book rows (the block cart has its own stepper). */
.woocommerce .quantity.pme-qty { border: 0; border-radius: 999px; background: var(--pmc-tint); padding: 5px; gap: 2px; overflow: visible; }
.woocommerce .quantity.pme-qty .qty { width: 44px !important; font-weight: 700; color: var(--pmc-ink); }
.woocommerce .quantity.pme-qty .pme-qty-btn { width: 42px; border-radius: 50% !important; background: #fff !important; color: var(--pme-blue) !important; font-size: 20px; box-shadow: 0 1px 2px rgba(11, 61, 145, 0.08), 0 2px 6px rgba(11, 61, 145, 0.08); transition: background-color .15s ease, color .15s ease; }
.woocommerce .quantity.pme-qty .pme-qty-btn:hover, .woocommerce .quantity.pme-qty .pme-qty-btn:focus-visible { background: var(--pme-blue) !important; color: #fff !important; }
.woocommerce div.product form.grouped_form .quantity.pme-qty { height: 40px; padding: 4px; border-radius: 999px; }
.woocommerce div.product form.grouped_form .quantity.pme-qty .qty { width: 34px !important; }
.woocommerce div.product form.grouped_form .pme-qty-btn { width: 32px; font-size: 17px; }
.woocommerce div.product form.cart .single_add_to_cart_button,
.pme-bp-card a.pme-bp-card__buy { border-radius: 999px !important; box-shadow: 0 2px 4px rgba(200, 16, 46, 0.12), 0 10px 24px rgba(200, 16, 46, 0.2); }
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.pme-bp-card a.pme-bp-card__buy:hover { box-shadow: 0 3px 6px rgba(200, 16, 46, 0.14), 0 14px 30px rgba(200, 16, 46, 0.26); }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled { box-shadow: none; }
.pme-buybar__btn.button { border-radius: 999px !important; }

/* ---------- Spacing scale (2.17.17, owner 20 Nov 2026) ----------
   One spacer per gap: the NEXT part's top margin, from the --pme-sp-* tokens (phone / tablet / desktop in :root).
   Every part's own bottom margin / padding and Kadence's 5rem content-area margins go to 0, so gaps no longer stack
   (before: footer 144-270 px under the last content, search / 404 136 px under the header, home 44-102 px between rows).
   Cards keep their inside padding. New sections: add a top margin from a token, never a bottom spacer.
   Check: the gap scan + tools/layout-audit at 375 / 430 / 768 / 900 / 1024 / 1280 / 1440. */
body.pme-cozy #primary.content-area { margin-top: var(--pme-sp-top); margin-bottom: 0; }
body.pme-cozy .entry-hero .hero-container { padding-top: var(--pme-sp-top) !important; }   /* title band (cart, account, blog, policy, category); style.css sets 16px !important */
body.pme-cozy .entry-hero + #primary.content-area { margin-top: var(--pme-sp-group); }    /* title band -> content */
/* book pages: breadcrumbs are the first thing (desktop puts them 38 px above the content box, absolute) */
@media (min-width: 1025px) { body.pme-cozy.single-product:not(.home):not(.pme-task) #primary > .content-container { margin-top: calc(var(--pme-sp-top) + 38px); } }   /* collapses with #primary's top margin */
@media (max-width: 1024px) { body.pme-cozy.single-product .product-title.product-above .kadence-breadcrumbs { margin-top: 0; } }
body.pme-cozy .summary > .pme-pcats:last-of-type { margin-bottom: 0; }
body.pme-cozy #primary > .content-container { margin-top: 0; padding-top: 0; padding-bottom: 0; }
body.pme-cozy .pme-search-page { padding-top: 0; padding-bottom: 0; }
body.pme-cozy .error .page-content { margin-top: 0; }
body.pme-cozy .error .page-content .entry-content-wrap { padding-top: 0; }
/* page bottom: nothing under the last part; the footer brings the one gap */
body.pme-cozy .pme-footer { margin-top: var(--pme-sp-section); }
body.pme-cozy #main > :last-child,
body.pme-cozy .content-wrap > :last-child,
body.pme-cozy .entry-content-wrap > :last-child,
body.pme-cozy .entry-content > :last-child,
body.pme-cozy .wc-block-components-sidebar-layout,
body.pme-cozy .wc-block-components-sidebar,
body.pme-cozy .woocommerce-MyAccount-content > :last-child,
body.pme-cozy .pme-search-empty,
body.pme-cozy .pme-search-section:last-child > :last-child,
body.pme-cozy .entry-content > :has(+ .pme-recent[hidden]:last-child),   /* hidden "recently viewed" box is not the real last part */
body.pme-cozy #main > ul.products,
body.pme-cozy .pme-search-section ul.products,
body.pme-cozy :is(.related, .up-sells, .pme-series-levels, .pme-recent) ul.products { margin-bottom: 0; }
/* lists: page numbers sit one group gap under the cards */
body.pme-cozy .navigation.pagination,
body.pme-cozy .woocommerce-pagination { margin-top: var(--pme-sp-group); margin-bottom: 0; }
body.pme-cozy .navigation.pagination .nav-links { margin-top: 0; }
/* scrolling card rows keep shadow room inside, but give it back so the next gap is still the token */
body.pme-cozy .pme-rail { margin-bottom: -22px; }
/* home: every row = one section gap */
body.pme-cozy .pme-home { padding-bottom: 0; }
body.pme-cozy .pme-home > * { margin-bottom: 0; }
body.pme-cozy .pme-home > :not(.pme-cats) { padding-bottom: 0; }
body.pme-cozy .pme-home > * + * { margin-top: var(--pme-sp-section); }
body.pme-cozy .pme-home > * + :not(.pme-cats) { padding-top: 0; }
body.pme-cozy .pme-home > .pme-cats { padding-top: 0; padding-bottom: 0; }
@media (max-width: 1024px) {   /* category tiles scroll sideways here: keep room for their shadow + hover lift, give it back in margins */
	body.pme-cozy .pme-home > .pme-cats { padding-top: 6px; padding-bottom: 14px; margin-top: calc(var(--pme-sp-section) - 6px); margin-bottom: -14px; }
}
body.pme-cozy .pme-home .pme-section-head { margin-top: 0; }
body.pme-cozy .pme-home .pme-product-row { margin-top: 0; margin-bottom: 0; padding-top: 0; }
body.pme-cozy .pme-home .pme-why__title { margin-bottom: var(--pme-sp-block); }
body.pme-cozy .pme-home .pme-brands { margin-top: var(--pme-sp-group); }
body.pme-cozy .pme-home .pme-brands__list { margin-bottom: -14px; }                         /* its scroll padding */
body.pme-cozy .pme-cats .pme-cat { margin-bottom: 0; }                                       /* the grid gap spaces the rows */
/* book / series / set / stationery pages */
body.pme-cozy .pme-bp-sec { margin-bottom: var(--pme-sp-group); }
body.pme-cozy .pme-bp-sec:last-of-type,   /* .pme-bp-side (aside) can still be the last child before pme.js moves it */
body.pme-cozy .pme-bp,
body.pme-cozy .summary > :last-child,
body.pme-cozy.single-product div.product div.summary.entry-summary { margin-bottom: 0; }
body.pme-cozy .pme-series-levels,
body.pme-cozy .pme-other-series,
body.pme-cozy .up-sells,
body.pme-cozy .related.products,
body.pme-cozy .pme-recent { margin-top: var(--pme-sp-section); margin-bottom: 0; }   /* grid items: margins do not merge, so no bottom margin */
/* About page (its own style block in the page content sets 48-64 px margins, the quote with !important) */
body.pme-cozy .entry-content .pme-ab > * { margin-top: 0; margin-bottom: 0; }
body.pme-cozy .entry-content .pme-ab > * + * { margin-top: var(--pme-sp-section); }
body.pme-cozy .entry-content .pme-ab > * > :first-child { margin-top: 0; }
body.pme-cozy .entry-content .pme-ab > * > :last-child { margin-bottom: 0; }
body.pme-cozy .entry-content .pme-ab > .pme-ab-quote { margin: var(--pme-sp-section) auto 0 !important; }
