/*
Theme Name:   PME Bookshop
Theme URI:    https://www.pmebookshop.my/
Description:  Standalone PME Bookshop WordPress & WooCommerce theme. Exercise book + Cozy storefront, 3-row header with announcement bar and live search, Kategori panel, footer, WooCommerce product & series grids, blog, and My Account without Kadence.
Author:       PME Bookshop
Version:      3.0.0
Requires PHP: 7.4
Text Domain:  pme-kadence-child
*/

/* ==========================================================================
   1. Brand tokens — change colours here only
   ========================================================================== */
:root {
	--pme-blue: #0B3D91;        /* PME Royal: header, footer, headings, frame */
	--pme-blue-dark: #082E6E;   /* hover on blue */
	--pme-blue-soft: #EEF3FB;   /* light tint for panels */
	--pme-red: #C8102E;         /* action only: prices, buy buttons, sale badges */
	--pme-red-dark: #A00D25;    /* red hover */
	--pme-white: #FFFFFF;
	--pme-ink: #1A1F2B;         /* body text */
	--pme-muted: #5B6475;       /* secondary text */
	--pme-line: #E3E7EE;        /* borders */
	--pme-cover-bg: #F5F6F8;    /* behind book covers */
	--pme-green: #1E7A3C;       /* "In stock" */
	--pme-cart-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 7.5H6.1'/%3E%3C/svg%3E");
	--pme-check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--pme-book-shadow: drop-shadow(0 0 8px rgba(16, 24, 40, 0.2));   /* older covers only: new covers carry the same soft shadow in the picture */
	--pme-radius: 6px;
}

/* Map brand onto Kadence's global palette (doubled :root wins over Customizer output) */
:root:root {
	--global-palette1: var(--pme-blue);
	--global-palette2: var(--pme-blue-dark);
	--global-palette3: var(--pme-ink);
	--global-palette4: var(--pme-ink);
	--global-palette5: var(--pme-muted);
	--global-palette6: #9AA3B2;
	--global-palette7: #F4F6FA;        /* page background: clean neutral */
	--global-palette8: #F7F9FC;
	--global-palette9: var(--pme-white);
	--global-palette-highlight: var(--pme-blue);
	--global-palette-highlight-alt: var(--pme-blue-dark);
	--global-palette-btn-bg: var(--pme-red);
	--global-palette-btn-bg-hover: var(--pme-red-dark);
	--global-palette-btn: var(--pme-white);
	--global-palette-btn-hover: var(--pme-white);
}

/* System fonts: no web-font download, fastest load, renders BM/English/中文 cleanly */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--pme-ink);
}
h1, h2, h3, h4, h5, h6 { color: var(--pme-blue); font-weight: 700; }

/* Flat brand: no gradients or shadows */
.button, button, .wp-block-button__link, .woocommerce ul.products li.product,
.pme-menu .sub-menu, .pme-search__results { box-shadow: none !important; }

/* ==========================================================================
   2. Layout helper
   ========================================================================== */
.pme-wrap {
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}
.pme-ico { display: block; flex: none; }

/* ==========================================================================
   3. Header — row 1: announcement bar (managed in PME Settings)
   ========================================================================== */
.pme-announce {
	background: var(--pme-blue-dark);
	color: var(--pme-white);
	font-size: 13px;
	line-height: 1.4;
}
.pme-announce__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
}
/* Fixed-width message area: arrows never move, whatever the message length */
.pme-announce__track {
	flex: none;
	width: min(640px, 100% - 200px);
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 4px;
}
.pme-announce__prev { grid-column: 1; }
.pme-announce__msgs { grid-column: 2; min-width: 0; text-align: center; }
.pme-announce__next { grid-column: 3; }
.pme-announce__msg {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	animation: pme-fade 0.35s ease;
}
@keyframes pme-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pme-announce__msg { animation: none; } }
.pme-announce a { color: var(--pme-white); text-decoration: underline; text-underline-offset: 2px; }
.pme-announce a:hover { color: var(--pme-white); text-decoration: none; }
.pme-announce__nav {
	background: none !important;
	border: 0;
	color: var(--pme-white);
	padding: 4px;
	cursor: pointer;
	opacity: 0.75;
	border-radius: 4px;
	line-height: 0;
}
.pme-announce__nav:hover, .pme-announce__nav:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.12) !important; }
.pme-announce__nav .pme-ico { width: 16px; height: 16px; }
.pme-announce__locator {
	position: absolute;
	right: var(--global-content-edge-padding, 1.5rem);
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font-weight: 600;
	text-decoration: none !important;
}
.pme-announce__locator:hover span { text-decoration: underline; }
.pme-announce__locator .pme-ico { width: 16px; height: 16px; }
@media (max-width: 760px) {
	.pme-announce__track { width: calc(100% - 40px); margin-right: 40px; }
	.pme-announce__locator span { display: none; } /* icon only on phones */
}

/* ==========================================================================
   4. Header — rows 2 and 3 (desktop), compact row (mobile)
   ========================================================================== */
/* Kadence's own desktop header is replaced by ours (only once ours is on the page) */
@media (min-width: 1025px) {
	body:has(.pme-header) #masthead { display: none; }
}
#masthead { border-bottom: 1px solid var(--pme-line); }
#masthead .site-mobile-header-wrap .site-header-row-container-inner { background: var(--pme-white); }

.pme-header__main { background: var(--pme-white); border-bottom: 1px solid var(--pme-line); }
.pme-header__main-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 88px;
}

/* Brand */
.pme-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	flex: none;
}
.pme-brand__logo { width: 64px; height: 64px; object-fit: contain; }
.pme-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.pme-brand__name { font-size: 1.35rem; font-weight: 800; color: var(--pme-blue); letter-spacing: -0.01em; }
.pme-brand__tag { font-size: 0.8rem; font-weight: 600; color: var(--pme-muted); margin-top: 2px; }

/* Search */
.pme-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 640px;
	display: flex;
	margin: 0 auto;
}
.pme-search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 16px !important;
	border: 2px solid var(--pme-blue) !important;
	border-right: 0 !important;
	border-radius: 999px 0 0 999px !important;
	background: var(--pme-white) !important;
	color: var(--pme-ink);
	font-size: 15px;
	box-shadow: none !important;
}
.pme-search__input:focus { outline: none; border-color: var(--pme-blue-dark) !important; }
.pme-search__input::-webkit-search-cancel-button { cursor: pointer; }
.pme-search__btn {
	flex: none;
	width: 56px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0 999px 999px 0 !important;
	background: var(--pme-blue) !important;
	color: var(--pme-white) !important;
	cursor: pointer;
	padding: 0;
}
.pme-search__btn:hover { background: var(--pme-blue-dark) !important; }
.pme-search.is-loading .pme-search__btn .pme-ico { animation: pme-pulse 0.8s ease-in-out infinite alternate; }
@keyframes pme-pulse { from { opacity: 1; } to { opacity: 0.4; } }

/* Live results panel */
.pme-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1100;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-radius: 10px;
	padding: 6px 0;
}
.pme-sr__group + .pme-sr__group { border-top: 1px solid var(--pme-line); margin-top: 4px; padding-top: 4px; }
.pme-sr__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 4px;
}
.pme-sr__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pme-blue);
}
.pme-sr__count {
	font-size: 11px;
	font-weight: 700;
	background: var(--pme-blue-soft);
	color: var(--pme-blue);
	border-radius: 999px;
	padding: 1px 7px;
}
.pme-sr__opt {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	color: var(--pme-ink);
	text-decoration: none !important;
}
.pme-sr__opt:hover, .pme-sr__opt.is-active { background: var(--pme-blue-soft); }
.pme-sr__img {
	flex: none;
	width: 56px;
	aspect-ratio: 1 / 1;   /* square, like the covers on product cards */
	background: var(--pme-cover-bg);
	border-radius: 4px;
	overflow: hidden;
}
.pme-sr__img img { width: 100%; height: 100%; object-fit: contain; }
.pme-sr__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pme-sr__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pme-sr__meta { font-size: 12.5px; color: var(--pme-muted); display: flex; gap: 8px; align-items: baseline; }
.pme-sr__price { color: var(--pme-red); font-weight: 700; font-size: 13.5px; }
.pme-sr__was { color: var(--pme-muted); }
.pme-sr__oos { color: var(--pme-muted); font-style: italic; }
.pme-sr__badge {
	flex: none;
	font-size: 11px;
	font-weight: 700;
	color: var(--pme-blue);
	border: 1.5px solid var(--pme-blue);
	border-radius: 4px;
	padding: 2px 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.pme-sr__tag {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--pme-blue);
	border-radius: 3px;
	padding: 3px 5px 2px;
	margin-right: 2px;
	vertical-align: 1px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.pme-sr__more { font-size: 13.5px; font-weight: 700; color: var(--pme-blue) !important; }
.pme-sr__empty { margin: 0; padding: 14px 16px; color: var(--pme-muted); font-size: 14px; }
.pme-sr__meta { min-width: 0; }
.pme-sr__brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pme-muted); }
.pme-sr__price + .pme-sr__brand::before, .pme-sr__was + .pme-sr__brand::before, .pme-sr__oos + .pme-sr__brand::before { content: "·"; margin-right: 8px; }
.pme-sr__loading { padding: 10px 16px; font-size: 12.5px; color: var(--pme-muted); text-align: center; }
.pme-sr__foot {
	position: sticky;
	bottom: -6px;              /* the panel's own bottom padding */
	margin-top: 4px;
	justify-content: center;
	background: var(--pme-white);
	border-top: 1px solid var(--pme-line);
	padding: 11px 16px;
}
.pme-sr__foot:hover, .pme-sr__foot.is-active { background: var(--pme-blue-soft); }

/* Account + cart */
.pme-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.pme-action {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--pme-blue) !important;
	text-decoration: none !important;
	padding: 6px 4px;
	border-radius: 6px;
}
.pme-action .pme-ico { width: 26px; height: 26px; }
.pme-action__text { display: flex; flex-direction: column; line-height: 1.15; }
.pme-action__top { font-weight: 700; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pme-action__sub { font-size: 12px; color: var(--pme-muted); }
.pme-action:hover .pme-action__top { text-decoration: underline; }
.pme-action__icon { position: relative; }
.pme-cart-count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--pme-red);
	color: var(--pme-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	border: 2px solid var(--pme-white);
	box-sizing: content-box;
}
.pme-cart-count[hidden] { display: none; }

/* Row 3: menu bar */
.pme-header__nav { background: var(--pme-blue); position: relative; z-index: 1000; }
.pme-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pme-menu > li { position: relative; margin: 0; }
.pme-menu > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 50px;
	padding: 0 14px;
	color: var(--pme-white) !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	border-top: 3px solid transparent;
}
.pme-menu > li:first-child > a { padding-left: 0; }
.pme-menu > li:hover > a,
.pme-menu > li:focus-within > a,
.pme-menu > li.current-menu-item > a,
.pme-menu > li.current-menu-ancestor > a { border-bottom-color: var(--pme-white); }
.pme-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	opacity: 0.85;
}
/* Kadence may add its own toggles inside the menu; ours uses CSS only */
.pme-menu .dropdown-nav-toggle, .pme-menu .dropdown-nav-special-toggle, .pme-menu .kadence-svg-iconset { display: none !important; }

/* Normal dropdowns (Children Books, Buku Melayu, English Books, 中文书籍) */
.pme-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}
.pme-menu > li > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-top: 0;
	border-radius: 0 0 var(--pme-radius) var(--pme-radius);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0s linear 0.25s;
	z-index: 1001;
}
.pme-menu > li:hover > .sub-menu,
.pme-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.15s ease, visibility 0s linear 0s;
}
.pme-menu .sub-menu li { margin: 0; }
.pme-menu .sub-menu a {
	display: block;
	padding: 7px 18px;
	color: var(--pme-ink) !important;
	font-size: 14px;
	text-decoration: none !important;
}
.pme-menu .sub-menu a:hover, .pme-menu .sub-menu a:focus { background: var(--pme-blue-soft); color: var(--pme-blue) !important; }
.pme-menu .sub-menu .sub-menu { display: none; } /* third level only inside mega panels */

/* Mega panels (School Revision Books, Stationery) — columns follow Appearance → Menus */
.pme-menu > li.pme-mega > .sub-menu {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 6px 28px;
	width: 860px;
	max-width: calc(100vw - 48px);
	padding: 22px 26px;
}
.pme-menu > li.pme-mega:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; width: 760px; }
.pme-menu > li.pme-mega > .sub-menu > li > a {
	font-weight: 700;
	color: var(--pme-blue) !important;
	padding: 4px 6px 6px;
	margin: 0 -6px 4px;
	border-bottom: 2px solid var(--pme-blue-soft);
	border-radius: 4px 4px 0 0;
}
.pme-menu > li.pme-mega .sub-menu .sub-menu { display: block; padding: 0; }
.pme-menu > li.pme-mega .sub-menu .sub-menu a { padding: 4px 6px; margin: 0 -6px; border-radius: 4px; }

/* Mobile / tablet: compact row with search, account, cart under Kadence's mobile header */
@media (max-width: 1024px) {
	.pme-header__nav, .pme-brand, .pme-action__text { display: none; }
	.pme-header__main-inner { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.pme-search { max-width: none; margin: 0; }
	.pme-search__input { height: 42px; font-size: 16px; } /* 16px stops iPhone zoom */
	.pme-search__btn { height: 42px; width: 48px; }
	.pme-actions { gap: 6px; }
	.pme-action { padding: 6px; }
	.pme-search__results { max-height: 65vh; }
}

/* ==========================================================================
   5. WooCommerce product grid — white behind covers, red for prices/buy only
   ========================================================================== */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-radius: var(--pme-radius);
	padding: 16px 18px 18px;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce ul.products li.product:hover {
	border-color: #CBD5E6;
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

/* Cover: the book stands on white with a soft shadow (Pelangi-style), not a grey tile. */
.woocommerce ul.products li.product .pme-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	margin: 0 0 14px;
	background: var(--pme-white);
	order: 0;
}
.woocommerce ul.products li.product .pme-cover__book {
	display: block;
	height: 100%;
	aspect-ratio: var(--ar, 1 / 1);   /* the picture's own shape (square images; 3:4 older imports) */
	max-width: 100%;
	transition: transform 0.2s ease;
}
.woocommerce ul.products li.product .pme-cover__book.is-wide { width: 100%; height: auto; }
/* Shadow only where the book outline is known; set covers (fan of books) carry their own shadows. */
.woocommerce ul.products li.product .pme-cover__book.is-clipped { filter: var(--pme-book-shadow); }
/* Set covers are a wide fan on a tall white canvas: use the full card width (only white is cropped). */
.woocommerce ul.products li.product .pme-cover__book:not(.is-clipped) img { object-fit: cover; }
.woocommerce ul.products li.product:hover .pme-cover__book { transform: translateY(-3px); }
.woocommerce ul.products li.product .pme-cover img,
.woocommerce ul.products li.product a .pme-cover img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	background: transparent;
	border-radius: 0;
	margin: 0;
	box-shadow: none;
}
/* Fallback if a loop image is not wrapped (other plugins / blocks): plain cover on white. */
.woocommerce ul.products li.product a img:not(.pme-cover img) {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--pme-white);
	margin-bottom: 14px;
}
/* Cut away the white margin of the stored square image so the shadow hugs the book. */
.woocommerce ul.products li.product .pme-cover__book.is-clipped img {
	clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl));
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product .pme-cover__book { transition: none; }
	.woocommerce ul.products li.product:hover .pme-cover__book { transform: none; }
}

/* Text: price first, pay-later line, title, stock (same order Pelangi uses). */
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:not(.woocommerce-loop-image-link) {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.woocommerce ul.products li.product .price { order: 1; font-size: 1.3rem; line-height: 1.25; margin: 0 0 4px; }
.woocommerce ul.products li.product .pme-paylater { order: 2; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { order: 3; }
.woocommerce ul.products li.product .star-rating { order: 4; }
.woocommerce ul.products li.product .pme-stock { order: 5; }
.woocommerce ul.products li.product .product-action-wrap,
.woocommerce ul.products li.product > .button { order: 6; margin-top: auto; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pme-ink);
	margin: 6px 0 4px;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: inherit; text-decoration: none; }
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--pme-blue); }
.pme-paylater {
	margin: 0 0 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--pme-ink);
}
.pme-paylater strong { font-weight: 700; }
.pme-paylater__brand { letter-spacing: 0.01em; }
.woocommerce div.product .pme-paylater { font-size: 14px; margin: -0.5rem 0 1rem; }
.pme-stock { margin: 2px 0 10px; font-size: 13.5px; font-weight: 500; }
.pme-stock--in { color: var(--pme-green); }
.pme-stock--out { color: var(--pme-muted); }
.pme-stock--soon { color: var(--pme-blue); font-weight: 600; }   /* "Akan datang": listed before it reaches the shop */
.pme-soon-price { color: var(--pme-blue); font-weight: 600; font-size: 0.9em; }
.pme-soon-note { margin: 12px 0; padding: 10px 14px; background: var(--pme-blue-soft); border-left: 3px solid var(--pme-blue); border-radius: var(--pme-radius); color: var(--pme-ink); }

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wc-block-components-product-price {
	color: var(--pme-red) !important;
	font-weight: 700;
}
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del { color: var(--pme-muted) !important; font-weight: 400; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce div.product form.cart .button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
	background: var(--pme-red);
	color: var(--pme-white);
	border-radius: var(--pme-radius);
	font-weight: 600;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--pme-red-dark);
	color: var(--pme-white);
}

/* Card button: calm outline with a cart icon; fills red on hover (a grid of solid red buttons shouts). */
.woocommerce ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 8px 14px;
	border: 1.5px solid var(--pme-red) !important;
	border-radius: 999px;
	background: var(--pme-white) !important;
	color: var(--pme-red) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.woocommerce ul.products li.product .button::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: currentColor;
	-webkit-mask: var(--pme-cart-icon) center / contain no-repeat;
	mask: var(--pme-cart-icon) center / contain no-repeat;
}
.woocommerce ul.products li.product .button:not(.add_to_cart_button)::before { display: none; }
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible {
	background: var(--pme-red) !important;
	color: var(--pme-white) !important;
}
.woocommerce ul.products li.product .button.loading { opacity: 0.7; }
.woocommerce ul.products li.product .button.added::before { -webkit-mask-image: var(--pme-check-icon); mask-image: var(--pme-check-icon); }
.woocommerce ul.products li.product .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: var(--pme-blue);
}
.woocommerce ul.products li.product .button[disabled],
.woocommerce ul.products li.product .button.disabled {
	border-color: var(--pme-line) !important;
	color: var(--pme-muted) !important;
}

.woocommerce span.onsale {
	background: var(--pme-red);
	color: var(--pme-white);
	border-radius: 4px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 700;
}

/* Category tiles from [product_categories] */
.woocommerce ul.products li.product-category a {
	display: block;
	text-align: center;
}
.woocommerce ul.products li.product-category h2 {
	font-size: 15px;
	color: var(--pme-blue);
}
.woocommerce ul.products li.product-category mark { background: none; color: var(--pme-muted); }

/* ==========================================================================
   6. Homepage sections (classes used in the Home page content)
   ========================================================================== */
/* Section headings: blue text with a short red "book line" accent from the logo */
.pme-section-title {
	position: relative;
	font-size: 1.5rem;
	margin: 0 0 1.25rem;
	padding-bottom: 10px;
	border-bottom: 0;
}
.pme-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--pme-red);
}
.pme-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
	margin-top: 3rem;
}
.pme-section-more { font-weight: 600; color: var(--pme-blue); text-decoration: none; white-space: nowrap; margin-bottom: 1.25rem; }
.pme-section-more:hover { text-decoration: underline; }
.pme-product-row { margin-bottom: 1rem; }

/* Hero */
.pme-hero {
	position: relative;
	overflow: hidden;
}
.pme-hero::after {
	/* flat decorative circles, no gradient */
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: -140px 220px 0 -40px rgba(255, 255, 255, 0.05);
	pointer-events: none;
}
.pme-hero h1 { line-height: 1.15; max-width: 680px; }
.pme-hero .pme-hero__tag {
	display: inline-block;
	background: var(--pme-white);
	color: var(--pme-blue) !important;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.85rem !important;
}

/* Level chips: one click to Tahun 4 */
.pme-levels {
	background: var(--pme-blue-soft);
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 2.5rem;
}
.pme-levels__label { margin: 0 0 10px; font-weight: 700; color: var(--pme-blue); }
.pme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pme-chip {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--pme-white);
	border: 1.5px solid var(--pme-blue);
	color: var(--pme-blue);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	line-height: 1;
	transition: background 0.15s, color 0.15s;
}
.pme-chip:hover, .pme-chip:focus { background: var(--pme-blue); color: var(--pme-white); text-decoration: none; }

/* Category tiles */
.pme-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 1rem;
}
@media (max-width: 900px) { .pme-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pme-tiles { grid-template-columns: 1fr; } }
.pme-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 118px;
	padding: 20px 44px 20px 20px;
	border-radius: 8px;
	background: var(--pme-white);
	border: 1.5px solid var(--pme-line);
	border-left: 6px solid var(--pme-blue);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pme-tile__name { font-size: 1.15rem; font-weight: 700; color: var(--pme-blue); }
.pme-tile__line { font-size: 0.88rem; color: var(--pme-muted); line-height: 1.4; }
.pme-tile__go {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	color: var(--pme-blue);
}
.pme-tile:hover, .pme-tile:focus {
	background: var(--pme-blue);
	border-color: var(--pme-blue);
	text-decoration: none;
	transform: translateY(-2px);
}
.pme-tile:hover .pme-tile__name, .pme-tile:hover .pme-tile__line, .pme-tile:hover .pme-tile__go,
.pme-tile:focus .pme-tile__name, .pme-tile:focus .pme-tile__line, .pme-tile:focus .pme-tile__go { color: var(--pme-white); }

/* Trust strip */
.pme-trust {
	border-top: 1px solid var(--pme-line);
	border-bottom: 1px solid var(--pme-line);
	padding: 18px 0;
}
.pme-trust p { margin: 0; }

/* Blog cards */
.pme-home-card {
	height: 100%;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-radius: 8px;
	padding: 12px 12px 16px;
}
.pme-home-card .wp-block-post-featured-image img {
	border-radius: var(--pme-radius);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.pme-home-card .wp-block-post-title a { color: var(--pme-ink); text-decoration: none; }
.pme-home-card .wp-block-post-title a:hover { color: var(--pme-blue); text-decoration: underline; }
.pme-home-card .wp-block-post-terms a { color: var(--pme-blue); text-decoration: none; font-weight: 600; }

/* Blue panels: buttons on blue are white, never red */
.pme-blue-panel .wp-block-button__link { background: var(--pme-white) !important; color: var(--pme-blue) !important; font-weight: 700; border-radius: var(--pme-radius) !important; }
.pme-blue-panel .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--pme-white) !important; border: 2px solid var(--pme-white) !important; }
.pme-blue-panel .wp-block-button__link:hover { opacity: 0.9; }

/* Outline buttons on white */
.wp-block-button.is-style-outline:not(.pme-blue-panel *) .wp-block-button__link {
	color: var(--pme-blue);
	border: 2px solid var(--pme-blue);
	background: transparent;
	border-radius: var(--pme-radius);
	font-weight: 600;
}

/* ==========================================================================
   7. Footer (columns from inc/footer.php + Kadence copyright bar)
   ========================================================================== */
.pme-footer {
	background: var(--pme-blue);
	color: #DCE5F5;
	font-size: 14.5px;
	line-height: 1.6;
	padding: 48px 0 36px;
	margin-top: 3rem;
}
.pme-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px 40px;
}
@media (max-width: 900px) { .pme-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pme-footer__grid { grid-template-columns: 1fr; } }
.pme-footer p { margin: 0 0 12px; }
.pme-footer__brand { font-size: 1.3rem; font-weight: 800; color: var(--pme-white); margin-bottom: 0 !important; }
.pme-footer__tag { font-weight: 700; color: var(--pme-white); }
.pme-footer__title {
	font-size: 0.95rem !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pme-white) !important;
	margin: 0 0 14px !important;
}
.pme-footer__title--small { font-size: 0.8rem !important; margin-top: 18px !important; margin-bottom: 8px !important; }
.pme-footer ul { list-style: none; margin: 0; padding: 0; }
.pme-footer__links li { margin: 0 0 8px; }
.pme-footer a { color: #DCE5F5 !important; text-decoration: none; }
.pme-footer a:hover, .pme-footer a:focus { color: var(--pme-white) !important; text-decoration: underline; }
.pme-footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.pme-footer__contact .pme-ico { width: 18px; height: 18px; margin-top: 3px; color: var(--pme-white); }
.pme-footer__contact-link { font-weight: 700; }
.pme-footer__social, .pme-footer__markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.pme-footer__social a, .pme-footer__markets a {
	display: inline-block;
	padding: 5px 12px;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}
.pme-footer__social a:hover, .pme-footer__markets a:hover { background: var(--pme-white); color: var(--pme-blue) !important; text-decoration: none; }

/* Kadence copyright bar under our columns */
#colophon .site-footer-wrap,
#colophon .site-top-footer-wrap,
#colophon .site-middle-footer-wrap,
#colophon .site-bottom-footer-wrap,
#colophon .site-footer-row-container-inner {
	background: var(--pme-blue-dark) !important;
	color: #C9D4EA;
	font-size: 13px;
}
#colophon .site-bottom-footer-inner-wrap { padding-top: 12px !important; padding-bottom: 12px !important; min-height: 0 !important; }
#colophon .site-footer-section { min-height: 0 !important; }
#colophon .footer-html { margin: 0 !important; }
#colophon .footer-html p, #colophon .footer-html-inner p { margin: 0; }
#colophon a { color: var(--pme-white); }
#colophon a:hover { color: var(--pme-white); text-decoration: underline; }
.site-footer { margin-top: 0; }

/* ==========================================================================
   7b. Search results page
   ========================================================================== */
.pme-search-page { padding: 2rem 0 1rem; }
.pme-search-page__head { margin-bottom: 1.5rem; }
.pme-search-page__title { font-size: 1.7rem; margin: 0 0 1rem; }
.pme-search-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--pme-line); }
.pme-search-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	margin-bottom: -2px;
	border-bottom: 3px solid transparent;
	color: var(--pme-muted) !important;
	font-weight: 700;
	text-decoration: none !important;
}
.pme-search-tab:hover { color: var(--pme-blue) !important; }
.pme-search-tab.is-current { color: var(--pme-blue) !important; border-bottom-color: var(--pme-blue); }
.pme-search-tab__n { font-size: 12px; background: var(--pme-blue-soft); color: var(--pme-blue); border-radius: 999px; padding: 1px 8px; }
.pme-search-section { margin: 2rem 0 2.5rem; }
.pme-search-section .pme-section-head { margin-top: 0; }
.pme-search-empty { color: var(--pme-muted); background: var(--pme-white); border: 1px dashed var(--pme-line); border-radius: 8px; padding: 18px; }
.pme-article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pme-article__link {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 14px;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-radius: 8px;
	text-decoration: none !important;
	color: var(--pme-ink);
}
.pme-article__link:hover { border-color: var(--pme-blue); }
.pme-article__thumb { flex: none; width: 140px; }
.pme-article__thumb img { width: 140px; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 6px; display: block; }
.pme-article__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pme-article__type { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pme-blue); }
.pme-article__title { font-weight: 700; font-size: 1.05rem; color: var(--pme-ink); }
.pme-article__link:hover .pme-article__title { color: var(--pme-blue); text-decoration: underline; }
.pme-article__excerpt { color: var(--pme-muted); font-size: 14px; }
@media (max-width: 560px) { .pme-article__thumb, .pme-article__thumb img { width: 96px; } }

/* ==========================================================================
   8. Accessibility
   ========================================================================== */
a:focus-visible, button:focus-visible, .button:focus-visible {
	outline: 3px solid var(--pme-blue);
	outline-offset: 2px;
}

/* ==========================================================================
   9. Footer payment methods
   ========================================================================== */
.pme-footer__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.pme-footer__paygroup { min-width: 0; }
.pme-footer .pme-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.pme-pay__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	min-width: 56px;
	padding: 0 12px;
	background: var(--pme-white);
	color: var(--pme-blue);
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}
.pme-pay__item.has-logo { padding: 0 10px; }
/* "img" in the selectors: Kadence's WooCommerce CSS (shop, category, product, cart pages) sets
   .woocommerce img { height: auto; max-width: 100% }, which beats a plain class. */
.pme-pay img.pme-pay__logo { display: block; height: 22px; width: auto; max-width: 96px; object-fit: contain; }
/* Bundled HitPay icons are already cards (70x48 with their own frame): show them as they are. */
.pme-pay__item:has(.pme-pay__logo--card) { height: auto; min-width: 0; padding: 0; background: none; border-radius: 0; }
.pme-pay img.pme-pay__logo--card { height: 34px; width: auto; max-width: none; aspect-ratio: 70 / 48; }
/* Courier logos are white 70x48 cards too (same size as the payment icons). */
.pme-pay__logo--courier { border-radius: 3px; }
.pme-footer__paynote { margin: 10px 0 0 !important; font-size: 13px; color: #C9D4EA; }

/* ==========================================================================
   10. Recently viewed
   ========================================================================== */
.pme-recent { clear: both; margin: 2.5rem 0; }
.pme-recent[hidden] { display: none; }
.pme-recent__clear {
	background: none !important;
	border: 0;
	padding: 0;
	margin-bottom: 1.25rem;
	color: var(--pme-muted) !important;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.pme-recent__clear:hover { color: var(--pme-blue) !important; }

/* ==========================================================================
   11. More levels in this series (single product)
   ========================================================================== */
.pme-series-levels { clear: both; margin: 2.5rem 0; }
.pme-series-levels .pme-section-head { margin-top: 0; }

/* ------------------------------------------------------------------
   12. Book details (product page)
   ------------------------------------------------------------------ */
.pme-book {
	margin: 1.25rem 0 1rem;
	border: 1px solid var(--pme-line);
	border-radius: var(--pme-radius);
	background: var(--pme-white);
	overflow: hidden;
}
.pme-book__title {
	margin: 0;
	padding: 0.6rem 0.9rem;
	font-size: 0.95rem;
	background: var(--pme-blue-soft);
	border-bottom: 1px solid var(--pme-line);
}
.pme-book__list { margin: 0; padding: 0.25rem 0.9rem; }
.pme-book__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 34%) 1fr;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px dashed var(--pme-line);
	font-size: 0.9rem;
	line-height: 1.4;
}
.pme-book__row:last-child { border-bottom: 0; }
.pme-book__row dt { color: var(--pme-muted); font-weight: 600; margin: 0; }
.pme-book__row dd { margin: 0; color: var(--pme-ink); overflow-wrap: anywhere; }

/* SK / SJKC tabs on Sekolah Rendah and Tahun pages (inc/school-pages.php). */
.pme-schooltabs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.75rem 0; }
.pme-schooltabs__tab { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.375rem 1rem; border: 1px solid var(--pme-line); border-radius: 999px; background: var(--pme-white); color: var(--pme-blue); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.pme-schooltabs__tab:hover, .pme-schooltabs__tab:focus-visible { border-color: var(--pme-blue); }
.pme-schooltabs__tab.is-on { background: var(--pme-blue); border-color: var(--pme-blue); color: var(--pme-white); }

/* "Kategori:" line under the book details (every product). */
.pme-pcats { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--pme-muted); }
.pme-pcats__label { font-weight: 600; margin-right: 0.25rem; }
.pme-pcats a { color: var(--pme-blue); text-decoration: none; }
.pme-pcats a:hover, .pme-pcats a:focus-visible { text-decoration: underline; }
.pme-pcats__sep { margin: 0 0.4rem; color: var(--pme-line); }
.pme-pcats--subj { margin-top: 0.25rem; }
.pme-book__row dd a { color: var(--pme-blue); text-decoration: none; }
.pme-book__row dd a:hover, .pme-book__row dd a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.pme-book__sep { margin: 0 0.4rem; color: var(--pme-line); }
.pme-book__isbn { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pme-book__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.15rem 1rem; }
.pme-book__items li { position: relative; padding-left: 0.85rem; margin: 0; }
.pme-book__items--stack { grid-template-columns: 1fr; }
.pme-bp-card .pme-book__row { grid-template-columns: 6.5rem 1fr; }
.pme-book__items li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.32rem; height: 0.32rem; border-radius: 50%; background: var(--pme-blue); }
@media (max-width: 480px) {
	.pme-book__row { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ------------------------------------------------------------------
   13. Product rails: homepage rows, "More levels", Recently viewed
   swipe on phones, arrows on desktop (assets/pme.js adds the arrows)
   ------------------------------------------------------------------ */
.pme-rail { position: relative; }
.pme-rail ul.products {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	grid-template-columns: none !important;
	gap: 20px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 10px !important;
	margin: 0 !important;
}
.pme-rail ul.products::-webkit-scrollbar { display: none; }
.pme-rail ul.products::before, .pme-rail ul.products::after { display: none !important; }
.pme-rail ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	scroll-snap-align: start;
}
.pme-rail__btn {
	position: absolute;
	top: 34%;
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--pme-line) !important;
	background: var(--pme-white) !important;
	color: var(--pme-ink) !important;
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	cursor: pointer;
}
.pme-rail__btn:hover { color: var(--pme-blue) !important; border-color: var(--pme-blue) !important; }
.pme-rail__btn[disabled] { opacity: 0; pointer-events: none; }
.pme-rail__btn--prev { left: -22px; }
.pme-rail__btn--next { right: -22px; }
.pme-rail__btn svg { width: 22px; height: 22px; }
@media (max-width: 1024px) {
	.pme-rail ul.products { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px !important; }
}
@media (max-width: 767px) {
	.pme-rail ul.products { grid-auto-columns: 46%; gap: 12px !important; }
	.pme-rail__btn { display: none; }
	.woocommerce ul.products li.product { padding: 12px 12px 14px; }
	.woocommerce ul.products li.product .price { font-size: 1.1rem; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.woocommerce ul.products li.product .pme-cover { margin-bottom: 10px; }
	.pme-paylater { font-size: 12px; }
}

/* ------------------------------------------------------------------
   14. Product page (Pelangi-style): thumbnails on the left, cover as a book,
       "by Publisher", big price, − 1 + quantity and a large Add to cart
   ------------------------------------------------------------------ */
.woocommerce div.product .woocommerce-product-gallery.pme-gallery {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.pme-gallery .flex-viewport,
.pme-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
.pme-gallery .woocommerce-product-gallery__trigger { grid-column: 2; grid-row: 1; justify-self: end; z-index: 3; margin: 8px; }
/* div.images.pme-gallery: must outrank WooCommerce's ".woocommerce div.product div.images .flex-control-thumbs { overflow: hidden }",
   or the strip cannot scroll (phones: sideways row; desktop: the thumbnail column). */
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;   /* Kadence centres the strip: with many photos the first ones sat outside the scroll area, unreachable */
	gap: 10px;
	max-height: 640px;
	overflow-y: auto;
	margin: 0 !important;
	padding: 2px !important;
	scrollbar-width: thin;
}
.woocommerce div.product .pme-gallery .flex-control-thumbs li {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.woocommerce div.product .pme-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--pme-white);
	border: 1px solid var(--pme-line);
	border-radius: 4px;
	opacity: 1 !important;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.woocommerce div.product .pme-gallery .flex-control-thumbs img:hover { border-color: var(--pme-muted); }
.woocommerce div.product .pme-gallery .flex-control-thumbs img.flex-active {
	border: 2px solid var(--pme-ink);
}
.pme-gallery .woocommerce-product-gallery__image { background: var(--pme-white); }
/* The cover: shadow around the book, white margin trimmed. Inside pages stay flat. */
.pme-gallery .pme-gallery-cover > a {
	display: block;
	padding: 2%;
	filter: var(--pme-book-shadow);
}
.pme-gallery .pme-gallery-cover > a > img:not(.zoomImg) {
	clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl));
}

.pme-byline {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--pme-muted);
}
.pme-byline a { color: var(--pme-blue); text-decoration: none; font-weight: 600; }
.pme-byline a:hover { text-decoration: underline; }
.woocommerce div.product .product_title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	line-height: 1.2;
	color: var(--pme-ink);
	margin-bottom: 0.75rem;
}
.woocommerce div.product .summary p.price,
.woocommerce div.product .summary span.price {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}
/* Saving beside the price (replaces the floating "Sale!" badge on product pages). */
.woocommerce div.product .summary .price .pme-save {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pme-red);
	color: var(--pme-white);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}
/* Member 10% badge beside the price on cards and product pages (soft blue Cozy pill; never clashes with cover pills). */
.pme-mb-badge {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #EDF3FC;
	color: var(--pme-blue) !important;
	border: 1px solid #C7D9F6;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	white-space: nowrap;
}
.woocommerce div.product .summary .price .pme-mb-badge {
	margin-left: 8px;
	padding: 3.5px 10px;
	font-size: 12.5px;
}
.woocommerce div.product .summary .price .pme-member-price {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pme-blue) !important;
}
.woocommerce div.product .summary .price .pme-member-price small {
	color: var(--pme-muted);
	font-weight: 500;
}
@media (max-width: 767px) {
	.woocommerce ul.products li.product .price .pme-mb-badge {
		margin-left: 4px;
		padding: 1.5px 6px;
		font-size: 10px;
	}
}

/* − 1 + quantity and the Add to cart button on one row */
.woocommerce div.product form.cart:not(.grouped_form):not(.variations_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
.woocommerce .quantity.pme-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--pme-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--pme-white);
	height: 52px;
	margin: 0 !important;
	float: none !important;
}
.woocommerce .quantity.pme-qty .qty {
	width: 56px !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: var(--pme-ink);
	background: transparent !important;
	-moz-appearance: textfield;
	padding: 0 !important;
}
.woocommerce .quantity.pme-qty .qty::-webkit-outer-spin-button,
.woocommerce .quantity.pme-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pme-qty-btn {
	width: 46px;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--pme-white) !important;
	color: var(--pme-ink) !important;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
}
.pme-qty-btn:hover { background: var(--pme-blue-soft) !important; color: var(--pme-blue) !important; }
.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 16px rgba(200, 16, 46, 0.22);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.woocommerce div.product form.cart .single_add_to_cart_button::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--pme-cart-icon) center / contain no-repeat;
	mask: var(--pme-cart-icon) center / contain no-repeat;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
	box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
	transform: translateY(-1px);
}
.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; transform: none; }
/* Tingkatan (grouped) pages: smaller steppers in the subject list, full-width button below */
.woocommerce div.product form.grouped_form .quantity.pme-qty { height: 40px; border-radius: 8px; }
.woocommerce div.product form.grouped_form .quantity.pme-qty .qty { width: 44px !important; font-size: 15px; }
.woocommerce div.product form.grouped_form .pme-qty-btn { width: 36px; font-size: 18px; }
.woocommerce div.product form.grouped_form .single_add_to_cart_button { width: 100%; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
	.woocommerce div.product form.cart .single_add_to_cart_button:hover { transform: none; }
}

@media (max-width: 767px) {
	.woocommerce div.product .woocommerce-product-gallery.pme-gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.pme-gallery .flex-viewport,
	.pme-gallery > .woocommerce-product-gallery__wrapper,
	.pme-gallery .woocommerce-product-gallery__trigger { grid-column: 1; }
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 2;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.woocommerce div.product .pme-gallery .flex-control-thumbs li { flex: 0 0 64px; width: 64px !important; }
	/* Phones, few photos: the row stays centred (auto margins); many photos: it starts at the first photo and scrolls (both skins). */
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li:first-child { margin-left: auto !important; }
	.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li:last-child { margin-right: auto !important; }
	.woocommerce div.product .summary p.price { font-size: 1.5rem; }
}

/* ==========================================================================
   15. Design A · PME Klasik (2.0): graph paper, Fraunces + Figtree,
       exercise-book hero, cards with round cart button, slide-out cart
   ========================================================================== */
:root {
	--pme-paper: #F7F9FE;
	--pme-gridline: rgba(11, 61, 145, 0.055);
	--pme-hl: #FFE27A;
	/* 2.17.54 (owner 29 Nov 2026): one family storewide, Inter for BM / English, Noto Sans SC for Chinese.
	   --pme-serif keeps its name (headings) so older rules follow; only the wordmark keeps Fraunces (--pme-brand). */
	--pme-serif: Inter, 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pme-sans: Inter, 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pme-brand: 'Fraunces', Georgia, 'Times New Roman', serif;
	--pme-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--global-body-font-family: var(--pme-sans);
	--global-heading-font-family: var(--pme-serif);
}
body {
	font-family: var(--pme-sans);
	background-color: var(--pme-paper) !important;
	background-image: linear-gradient(var(--pme-gridline) 1px, transparent 1px), linear-gradient(90deg, var(--pme-gridline) 1px, transparent 1px) !important;
	background-size: 26px 26px !important;
}
#inner-wrap, .site, #wrapper { background: transparent; }
h1, h2, h3, .pme-section-title, .woocommerce div.product .product_title {
	font-family: var(--pme-serif);
	font-weight: 700;
	letter-spacing: -0.015em;
}
h3 { font-weight: 600; }
.pme-brand__name, .pme-footer__brand { font-family: var(--pme-brand); font-variation-settings: 'SOFT' 100; letter-spacing: -0.005em; }
.pme-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pme-red); }
.pme-hl { background: linear-gradient(180deg, transparent 58%, var(--pme-hl) 58%, var(--pme-hl) 92%, transparent 92%); padding: 0 0.12em; margin: 0 -0.12em; }
.pme-red { color: var(--pme-red); }
.pme-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font-weight: 700; font-size: 15.5px; text-decoration: none !important; cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pme-btn--primary { background: var(--pme-blue); color: #fff !important; border: 0; box-shadow: 0 8px 18px rgba(11, 61, 145, 0.25); }
.pme-btn--primary:hover { background: var(--pme-blue-dark); transform: translateY(-1px); }
.pme-btn--ghost { background: #fff; color: var(--pme-blue) !important; border: 1.5px solid var(--pme-blue); }
.pme-btn--ghost:hover { background: var(--pme-blue-soft); }

/* Header on graph paper */
.pme-header__main { background: transparent; border-bottom: 0; }
.pme-brand__name { font-size: 1.55rem; font-weight: 700; }
.pme-search__input {
	height: 54px; padding: 0 64px 0 22px !important;
	border: 1.5px solid #D6E0F0 !important; border-radius: 999px !important;
	box-shadow: 0 6px 18px rgba(11, 61, 145, 0.06) !important;
}
.pme-search__input:focus { border-color: var(--pme-blue) !important; }
.pme-search__btn {
	position: absolute; right: 5px; top: 5px;
	width: 44px; height: 44px; border-radius: 50% !important;
}
.pme-actions { gap: 22px; }
.pme-action { flex-direction: column; gap: 3px; color: var(--pme-ink) !important; padding: 4px 2px; }
.pme-action__text { align-items: center; }
.pme-action__top { font-size: 12.5px; font-weight: 600; }
.pme-action__sub { display: none; }
.pme-header__nav .pme-wrap { display: flex; align-items: center; gap: 22px; }
.pme-allcats {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	height: 38px; padding: 0 16px; border-radius: 10px;
	background: var(--pme-blue-dark); color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important;
}
.pme-allcats:hover { background: #061f4b; }
.pme-menu > li:first-child > a { padding-left: 14px; }
@media (max-width: 1024px) {
	.pme-search__input { height: 46px; }
	.pme-search__btn { width: 38px; height: 38px; right: 4px; top: 4px; }
}

/* Product cards */
.woocommerce ul.products li.product {
	border: 0;
	border-radius: 18px;
	padding: 12px 12px 16px;
	box-shadow: 0 1px 0 rgba(30, 42, 68, 0.06), 0 10px 24px rgba(30, 42, 68, 0.07);
}
.woocommerce ul.products li.product:hover { border-color: transparent; box-shadow: 0 1px 0 rgba(30, 42, 68, 0.06), 0 16px 30px rgba(30, 42, 68, 0.11); }
.woocommerce ul.products li.product .pme-cover {
	position: relative;
	border-radius: 14px;
	margin-bottom: 12px;
	background-color: var(--pme-white);
	border: 1px solid rgba(11, 61, 145, 0.35);   /* thin PME blue frame, same weight as the card button */
	overflow: hidden;
}
.pme-pill {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	padding: 4px 9px; border-radius: 999px;
	background: var(--pme-blue); color: #fff;
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2;
}
.pme-pill--sale { background: var(--pme-red); }
.pme-pill--hot { display: none; }   /* 🔥 LARIS only on shop cards (not review forms, emails) */
.pme-cover .pme-pill--hot { display: inline-block; left: auto; right: 10px; background: var(--pme-red); }   /* top right, the type pill stays top left */
@media (max-width: 480px) { .pme-cover .pme-pill--hot { right: auto; left: 6px; top: 34px; } }   /* small phones: under the type pill */
@media (max-width: 480px) { .pme-cover .pme-pill--hot:first-child { top: 10px; } }   /* no type pill: LARIS moves up into its place */
/* The cover decides, not the screen: too narrow for both pills side by side (under 200 px) → LARIS under the type pill, or on top without one. */
ul.products li.product .pme-cover { container-type: inline-size; }
@container (max-width: 199px) {
	.pme-cover .pme-pill--hot { right: auto; left: 6px; top: 34px; }
	.pme-cover .pme-pill--hot:first-child { top: 10px; }
}
.woocommerce ul.products li.product .product-details {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "pub pub" "title title" "rating rating" "price btn" "pl btn" "stock btn";
	column-gap: 10px;
	align-items: start;
	padding: 0 4px !important;
	background: transparent;
}
.pme-pub { grid-area: pub; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pme-red); line-height: 1.3; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { grid-area: title; font-family: var(--pme-sans); font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
.woocommerce ul.products li.product .star-rating { grid-area: rating; }
.woocommerce ul.products li.product .price { grid-area: price; font-size: 1.2rem; margin: 0; align-self: end; }
.woocommerce ul.products li.product .pme-paylater { grid-area: pl; }
.woocommerce ul.products li.product .pme-stock { grid-area: stock; margin: 2px 0 0; font-size: 12.5px; }
.woocommerce ul.products li.product .product-action-wrap { grid-area: btn; align-self: end; margin: 0 !important; }
/* Round cart button (Viva-style); arrow for "choose subjects / options" */
.woocommerce ul.products li.product .product-details .button {
	width: 44px !important; height: 44px; min-height: 44px; padding: 0 !important;
	border-radius: 50% !important; border: 0 !important;
	background: var(--pme-blue) !important; color: #fff !important;
	font-size: 0 !important; line-height: 0; gap: 0;
	box-shadow: 0 6px 14px rgba(11, 61, 145, 0.28);
}
.woocommerce ul.products li.product .product-details .button:hover { background: var(--pme-blue-dark) !important; }
.woocommerce ul.products li.product .product-details .button::before { display: block !important; width: 20px; height: 20px; flex-basis: 20px; }
.woocommerce ul.products li.product .product-details .button:not(.add_to_cart_button)::before { -webkit-mask-image: var(--pme-arrow-icon); mask-image: var(--pme-arrow-icon); }
.woocommerce ul.products li.product .product-details .button[disabled],
.woocommerce ul.products li.product .product-details .button.disabled { background: #C9D2E3 !important; box-shadow: none; }
.woocommerce ul.products li.product .added_to_cart { display: none !important; } /* the slide-out cart opens instead */

/* Homepage */
.pme-home { padding-bottom: 24px; }
.pme-hero2 { margin-top: 8px; }
.pme-hero2__page {
	display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center;
	min-height: 490px; border-radius: 24px; overflow: hidden;
	background-color: #fff;
	background-image:
		linear-gradient(90deg, transparent 70px, #F1A3AE 70px, #F1A3AE 71.5px, transparent 71.5px, transparent 75px, #F1A3AE 75px, #F1A3AE 76.5px, transparent 76.5px),
		repeating-linear-gradient(180deg, transparent 0, transparent 33px, #D3E0F5 33px, #D3E0F5 34px);
	box-shadow: 0 1px 0 rgba(11, 61, 145, 0.08), 0 18px 40px rgba(11, 61, 145, 0.1);
}
.pme-hero2__text { padding: 52px 24px 52px 112px; }
.pme-hero2__title { margin: 0; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.1rem); line-height: 1.02; color: var(--pme-blue); }
.pme-hero2__lead { margin: 22px 0 30px; font-size: 18px; line-height: 1.6; color: #3B4660; max-width: 480px; }
.pme-hero2__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.pme-hero2__ticks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: #3B4660; }
.pme-hero2__ticks li { display: flex; align-items: center; gap: 8px; margin: 0; }
.pme-hero2__ticks li::before { content: ""; width: 20px; height: 20px; background: var(--pme-red); -webkit-mask: var(--pme-check-icon) center / contain no-repeat; mask: var(--pme-check-icon) center / contain no-repeat; }
.pme-hero2__art-wrap { align-self: stretch; display: flex; align-items: center; }
.pme-hero__art { width: 100%; height: auto; max-height: 490px; }

.pme-cats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; padding-top: 44px; padding-bottom: 12px; }
.pme-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--pme-ink) !important; text-align: center; text-decoration: none !important; }
.pme-cat__ring {
	width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--pme-blue);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 6px var(--tint, #E1ECFA), 0 6px 16px rgba(30, 42, 68, 0.08);
	transition: transform 0.2s ease;
}
.pme-cat:hover .pme-cat__ring { transform: translateY(-3px); }
.pme-home__rail { padding-top: 26px; }
.pme-home .pme-section-head { margin-top: 2rem; }
.pme-home .pme-section-title { font-size: 2rem; }

.pme-band { position: relative; margin: 40px 0 0; background: var(--pme-blue); color: #fff; padding: 44px 0 56px; }
.pme-band::before, .pme-band::after {
	content: ""; position: absolute; left: 0; right: 0; height: 26px;
	background: var(--pme-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14c60-6 110 4 170-1s120-10 190-3 140 7 210-1 140-10 210-3 150 8 220 1 130-7 200-3 100 6 240-3V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14c60-6 110 4 170-1s120-10 190-3 140 7 210-1 140-10 210-3 150 8 220 1 130-7 200-3 100 6 240-3V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pme-band::before { top: -25px; }
.pme-band::after { bottom: -25px; transform: scaleY(-1); }
.pme-band__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.pme-band__title { margin: 0 0 10px; color: #fff; font-size: 2.1rem; line-height: 1.12; }
.pme-band__lead { margin: 0; color: #C9D6EE; font-size: 16px; line-height: 1.6; }
.pme-band__rows { display: flex; flex-direction: column; gap: 14px; }
.pme-band__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pme-band__label { width: 96px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pme-hl); }
.pme-band__chip { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--pme-blue) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.pme-band__chip:hover { background: var(--pme-hl); }

.pme-feature {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
	margin-top: 76px; padding: 40px 48px !important; background: #fff; border-radius: 28px;
	box-shadow: 0 1px 0 rgba(30, 42, 68, 0.06), 0 14px 30px rgba(30, 42, 68, 0.06);
}
.pme-feature__title { margin: 0; font-size: 2.4rem; line-height: 1.08; color: var(--pme-blue); }
.pme-feature__lead { margin: 14px 0 0; font-size: 16.5px; line-height: 1.65; color: #3B4660; }
.pme-feature__levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.pme-feature__chip { padding: 8px 14px; border-radius: 999px; background: #EEF2FA; color: var(--pme-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.pme-feature__chip:hover { background: var(--pme-blue-soft); color: var(--pme-blue) !important; }
.pme-feature__img { border-radius: 22px; overflow: hidden; background: #F2F5FB; }
.pme-feature__img img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

.pme-why { padding-top: 72px; padding-bottom: 32px; }
.pme-why__title { text-align: center; margin: 0 0 28px; }
.pme-why__title::after { left: 50%; transform: translateX(-50%); }
.pme-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pme-why__card { background: #fff; border-radius: 22px; padding: 30px; }
.pme-why__card::before { content: ""; display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); margin-bottom: 14px; }
.pme-why__card h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--pme-ink); }
.pme-why__card p { margin: 0; color: #3B4660; line-height: 1.6; }

@media (max-width: 1024px) {
	.pme-hero2__page { grid-template-columns: minmax(0, 1fr); }
	.pme-hero2__text { padding: 36px 20px 8px 56px; }
	.pme-hero2__page { background-image: linear-gradient(90deg, transparent 30px, #F1A3AE 30px, #F1A3AE 31.5px, transparent 31.5px, transparent 34px, #F1A3AE 34px, #F1A3AE 35.5px, transparent 35.5px), repeating-linear-gradient(180deg, transparent 0, transparent 29px, #D3E0F5 29px, #D3E0F5 30px); }
	.pme-hero2__art-wrap { order: -1; padding: 12px 20px 0 46px; }
	.pme-hero__art { max-height: 260px; }
	.pme-cats { display: flex; overflow-x: auto; gap: 10px; padding-top: 26px; scroll-snap-type: x mandatory; }
	.pme-cat { flex: 0 0 82px; font-size: 12.5px; scroll-snap-align: start; }
	.pme-cat__ring { width: 64px; height: 64px; box-shadow: 0 0 0 5px var(--tint, #E1ECFA); }
	.pme-cat__ring svg { width: 28px; height: 28px; }
	.pme-band__inner, .pme-feature, .pme-why__grid { grid-template-columns: minmax(0, 1fr); }
	.pme-feature { padding: 22px !important; gap: 20px; margin-top: 56px; }
	.pme-feature__img { order: -1; }
	.pme-band__label { width: 100%; }
}
@media (max-width: 600px) {
	.pme-hero2__lead { font-size: 15.5px; }
	.pme-hero2__cta .pme-btn { width: 100%; }
	.pme-hero2__ticks { gap: 10px 18px; font-size: 13px; }
	.pme-band__chip { height: 40px; padding: 0 14px; font-size: 14px; }
}

/* Footer: torn exercise-book edge */
.pme-footer { position: relative; margin-top: 56px; }
.pme-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: inherit;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14c70-8 120 4 200-3s140-10 220-3 150 8 230 0 160-10 240-3 140 9 220 1 120-8 180-4 90 5 150 0V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14c70-8 120 4 200-3s140-10 220-3 150 8 230 0 160-10 240-3 140 9 220 1 120-8 180-4 90 5 150 0V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pme-footer__tag { color: var(--pme-hl); }
.pme-footer__brand { font-family: var(--pme-brand); }

/* Slide-out cart */
html.pme-drawer-open { overflow: hidden; }
.pme-drawer { position: fixed; inset: 0; z-index: 100000; }
.pme-drawer[hidden] { display: none; }
.pme-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 25, 50, 0.4); opacity: 0; transition: opacity 0.25s ease; }
.pme-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
	display: flex; flex-direction: column; background: #fff; color: var(--pme-ink);
	box-shadow: -20px 0 40px rgba(30, 42, 68, 0.14);
	transform: translateX(100%); transition: transform 0.26s ease;
}
.pme-drawer.is-open .pme-drawer__scrim { opacity: 1; }
.pme-drawer.is-open .pme-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .pme-drawer__scrim, .pme-drawer__panel { transition: none; } }
.pme-drawer.is-busy .pme-drawer__body { opacity: 0.55; pointer-events: none; }
.pme-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; }
.pme-drawer__title { margin: 0; font-size: 1.6rem; color: var(--pme-blue); }
.pme-drawer__count { font-family: var(--pme-sans); font-size: 15px; font-weight: 600; color: var(--pme-muted); }
.pme-drawer__x { width: 44px; height: 44px; border-radius: 50% !important; border: 0; background: #EEF2FA !important; color: var(--pme-ink) !important; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 !important; }
.pme-drawer__ship { margin: 0 24px 6px; padding: 14px 16px; border-radius: 16px; background: #EEF3FB; }
.pme-drawer__ship[hidden] { display: none; }
.pme-drawer__ship-text { margin: 0; font-size: 14px; font-weight: 600; color: #3B4660; }
.pme-drawer__bar { margin-top: 10px; height: 8px; border-radius: 999px; background: #D6E1F2; overflow: hidden; }
.pme-drawer__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--pme-blue); transition: width 0.3s ease; }
.pme-drawer__body { flex: 1; overflow-y: auto; padding: 4px 24px 12px; transition: opacity 0.15s ease; }
.pme-drawer__empty { text-align: center; padding: 48px 0; color: var(--pme-muted); }
.pme-drawer__loading { height: 120px; margin-top: 16px; border-radius: 14px; background: linear-gradient(90deg, #F2F5FB, #E8EEF8, #F2F5FB); background-size: 200% 100%; animation: pme-load 1.2s linear infinite; }
@keyframes pme-load { to { background-position: -200% 0; } }
.pme-ditem { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid #E3E9F3; }
.pme-ditem__img { width: 84px; height: 84px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden;
	background-color: #F2F5FB; }
.pme-ditem__img img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.pme-ditem__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pme-ditem__top { display: flex; justify-content: space-between; gap: 8px; }
.pme-ditem__name { color: var(--pme-ink) !important; font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none !important; }
.pme-ditem__rm { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50% !important; background: transparent !important; color: #8A93A6 !important; cursor: pointer; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.pme-ditem__rm:hover { color: var(--pme-red) !important; background: #FBEBED !important; }
.pme-ditem__meta { font-size: 12.5px; color: var(--pme-muted); }
.pme-ditem__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.pme-ditem__price { font-weight: 700; font-size: 16.5px; }
.pme-qty-mini { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: #EEF2FA; }
.pme-qty-mini button { width: 38px; height: 38px; border: 0; border-radius: 50% !important; background: transparent !important; color: var(--pme-ink) !important; font-size: 18px; cursor: pointer; padding: 0 !important; }
.pme-qty-mini button:hover:not([disabled]) { background: #E1E9F6 !important; }
.pme-qty-mini button[disabled] { opacity: 0.35; cursor: default; }
.pme-qty-mini span { min-width: 22px; text-align: center; font-weight: 700; }
.pme-dxs { margin: 16px 0 4px; padding: 12px; border-radius: 16px; border: 1.5px dashed #BFD0EA; display: flex; align-items: center; gap: 12px; }
.pme-dxs__img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; background: #F2F5FB; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pme-dxs__img img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.pme-dxs__txt { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pme-dxs__txt a { color: var(--pme-ink) !important; }
.pme-dxs__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pme-red); }
.pme-dxs__add { height: 40px; padding: 0 14px !important; border-radius: 999px !important; border: 1.5px solid var(--pme-blue) !important; background: #fff !important; color: var(--pme-blue) !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.pme-drawer__foot { padding: 16px 24px 22px; border-top: 1px solid #E3E9F3; }
.pme-drawer__foot[hidden] { display: none; }
.pme-drawer__row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.pme-drawer__row span:last-child { font-weight: 700; }
.pme-drawer__row--muted { color: var(--pme-muted); font-size: 14px; margin-bottom: 14px; }
.pme-drawer__row--muted span:last-child { font-weight: 500; }
.pme-drawer__pay { width: 100%; min-height: 54px; }
.pme-drawer__cartlink { display: block; text-align: center; margin-top: 12px; font-weight: 600; font-size: 14px; }
.pme-band { margin-bottom: 26px; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product .product-details .button { width: 40px !important; height: 40px; min-height: 40px; }
	.woocommerce ul.products li.product .price { font-size: 1.05rem; }
	.pme-pub { font-size: 10.5px; }
}

/* ==========================================================================
   16. Header 2.1: wider announcement, language switcher, tagline, Jadi Ahli
   ========================================================================== */
/* Row 1: message centred and wider; language + store locator on the right; nothing on the left */
.pme-announce__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 860px) minmax(0, 1fr);
	align-items: center;
	column-gap: 16px;
}
.pme-announce__track { grid-column: 2; width: 100%; }
.pme-announce__right {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 22px;
	white-space: nowrap;
}
.pme-announce__locator { position: static; transform: none; }

/* Language switcher: BM / EN / 中文 (shown only once the PME Language plugin supplies the languages) */
.pme-lang { display: flex; align-items: center; gap: 2px; }
.pme-lang .pme-ico { width: 16px; height: 16px; margin-right: 4px; opacity: 0.85; }
.pme-announce a.pme-lang__item {
	padding: 4px 6px;
	color: #B8C7E6;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.pme-announce a.pme-lang__item:hover { color: var(--pme-white); text-decoration: none; }
.pme-announce a.pme-lang__item.is-current { color: var(--pme-white); font-weight: 800; border-bottom-color: var(--pme-hl); }

@media (max-width: 900px) {
	.pme-announce__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.pme-announce__track { grid-column: 1; }
	.pme-announce__right { grid-column: 2; gap: 12px; }
}
@media (max-width: 760px) {
	.pme-announce__track { width: 100%; margin-right: 0; }
	.pme-lang .pme-ico { display: none; }
	.pme-announce a.pme-lang__item { padding: 8px 4px; }
}

/* Row 2: tagline under the name, with the yellow highlighter */
.pme-brand__tag { font-size: 0.95rem; font-weight: 700; color: var(--pme-ink); margin-top: 4px; }

/* Jadi Ahli / member button: icon beside two lines (account and cart keep icon-over-label) */
.pme-action--member { flex-direction: row; gap: 10px; }
.pme-action--member .pme-ico { color: var(--pme-blue); }
.pme-action--member .pme-action__text { align-items: flex-start; }
.pme-action--member .pme-action__top { font-size: 14px; font-weight: 700; max-width: 160px; }
.pme-action--member .pme-action__sub { display: block; font-size: 12px; font-weight: 600; color: var(--pme-blue); white-space: nowrap; }

/* ==========================================================================
   17. Homepage 2.2: exams row, articles, five reasons, brands; "Baru dilihat" tab
   ========================================================================== */
/* Articles */
.pme-posts { padding-top: 40px; }
.pme-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pme-post { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; color: var(--pme-ink) !important; text-decoration: none !important; box-shadow: 0 1px 0 rgba(30, 42, 68, 0.06), 0 10px 24px rgba(30, 42, 68, 0.07); }
.pme-post__img { display: block; aspect-ratio: 40 / 21; background: #F2F5FB; overflow: hidden; }
.pme-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pme-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.pme-post__cat { font-size: 12.5px; font-weight: 700; color: var(--pme-blue); }
.pme-post__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.pme-post:hover .pme-post__title { color: var(--pme-blue); text-decoration: underline; }
.pme-post__date { font-size: 13px; color: var(--pme-muted); }

/* Five reasons */
.pme-why__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pme-why__card { padding: 24px 22px; }
.pme-why__card h3 { font-size: 1.15rem; }
.pme-why__card p { font-size: 14.5px; }

/* Brands we carry: logos scroll sideways in two rows */
.pme-brands { margin-top: 40px; }
.pme-brands__title { margin: 0 0 16px; font-size: 1.25rem; color: var(--pme-ink); text-align: center; }
.pme-brands__list {
	list-style: none; margin: 0; padding: 4px 2px 10px;
	display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 132px; gap: 12px;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.pme-brands__list li { margin: 0; scroll-snap-align: start; }
/* Square tiles; the whole logo always shows (never cropped), centred on white */
.pme-brand-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 14px; box-sizing: border-box; background: #fff; border-radius: 14px; border: 1px solid var(--pme-line); }
.pme-brand-logo:hover { border-color: var(--pme-blue); }
.pme-brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1024px) {
	.pme-posts__grid { grid-template-columns: minmax(0, 1fr); }
	.pme-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.pme-why__grid { grid-template-columns: minmax(0, 1fr); }
	.pme-brands__list { grid-auto-columns: 104px; }
	.pme-brand-logo { padding: 10px; }
}

/* "Baru dilihat": small tab on the right edge; panel slides in from the right */
.pme-rv-tab {
	position: fixed; right: 0; top: 50%; z-index: 9990; transform: translateY(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 12px 8px; border: 0; border-radius: 12px 0 0 12px;
	background: var(--pme-blue) !important; color: #fff !important; cursor: pointer;
	box-shadow: 0 6px 18px rgba(11, 61, 145, 0.25);
}
.pme-rv-tab[hidden] { display: none; }
.pme-rv-tab:hover { background: var(--pme-blue-dark) !important; }
.pme-rv-tab__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
/* Chinese stays upright in vertical-rl, so the 180° turn above would flip it upside down */
:lang(zh) .pme-rv-tab__label { transform: none; text-orientation: upright; letter-spacing: 0.08em; }
.pme-rv-tab__n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--pme-blue); font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.pme-rv { position: fixed; inset: 0; z-index: 99999; }
.pme-rv[hidden] { display: none; }
.pme-rv__scrim { position: absolute; inset: 0; background: rgba(15, 25, 50, 0.3); opacity: 0; transition: opacity 0.2s ease; }
.pme-rv__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100vw);
	display: flex; flex-direction: column; background: #fff;
	box-shadow: -20px 0 40px rgba(30, 42, 68, 0.14);
	transform: translateX(100%); transition: transform 0.22s ease;
}
.pme-rv.is-open .pme-rv__scrim { opacity: 1; }
.pme-rv.is-open .pme-rv__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .pme-rv__scrim, .pme-rv__panel { transition: none; } }
.pme-rv__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.pme-rv__title { margin: 0; font-size: 1.4rem; color: var(--pme-blue); }
.pme-rv__list { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow-y: auto; }
.pme-rv__list li { margin: 0; }
.pme-rv__item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #E3E9F3; color: var(--pme-ink) !important; text-decoration: none !important; }
.pme-rv__img { width: 64px; height: 64px; border-radius: 10px; background: #F2F5FB; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pme-rv__img img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.pme-rv__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pme-rv__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pme-rv__item:hover .pme-rv__name { color: var(--pme-blue); }
.pme-rv__price { font-size: 14px; font-weight: 700; color: var(--pme-red); }
.pme-rv__price del { color: var(--pme-muted); font-weight: 400; }
.pme-rv__price ins { text-decoration: none; }
.pme-rv__foot { padding: 12px 20px 18px; text-align: center; }
.pme-rv__foot .pme-recent__clear { margin: 0; }
@media (max-width: 767px) {
	.pme-rv-tab { top: auto; bottom: 96px; transform: none; padding: 10px 7px; }
	.pme-rv-tab__label { display: none; }
}

/* ==========================================================================
   18. Product card 2.3 (same everywhere): publisher, title, price, stock,
       and a full-width button at the bottom of every card
   ========================================================================== */
.woocommerce ul.products li.product .product-details {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto auto auto auto auto;
	grid-template-areas: "pub" "title" "rating" "price" "pl" "stock" "btn";
	flex: 1 1 auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { align-self: start; font-family: var(--pme-sans) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a { font-family: inherit; }
.woocommerce ul.products li.product .price { align-self: start; margin-top: 2px; }
.woocommerce ul.products li.product .product-action-wrap {
	grid-area: btn; align-self: end; margin: 12px 0 0 !important;
	position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
}
.woocommerce ul.products li.product .product-details .button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	width: 100% !important; height: 44px; min-height: 44px; padding: 0 14px !important;
	border-radius: 999px !important; border: 1.5px solid var(--pme-red) !important;
	background: #fff !important; color: var(--pme-red) !important; box-shadow: none;
	font-family: var(--pme-sans); font-size: 14px !important; font-weight: 700; line-height: 1.2; text-decoration: none !important;
}
.woocommerce ul.products li.product .product-details .button:hover,
.woocommerce ul.products li.product .product-details .button:focus-visible { background: var(--pme-red) !important; color: #fff !important; }
.woocommerce ul.products li.product .product-details .button::before { width: 18px; height: 18px; flex: 0 0 18px; }
.woocommerce ul.products li.product .product-details .button .kadence-svg-iconset { display: none !important; } /* our own icon only */
.woocommerce ul.products li.product .product-details .button.loading { opacity: 0.65; }
.woocommerce ul.products li.product.outofstock .product-details .button { border-color: var(--pme-line) !important; color: var(--pme-muted) !important; }
.woocommerce ul.products li.product.outofstock .product-details .button:hover { background: #F2F4F8 !important; color: var(--pme-ink) !important; }
.woocommerce ul.products li.product.outofstock .product-details .button::before { display: none !important; }
ul.products, ul.products li.product { list-style: none; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product .product-details .button { height: 40px; min-height: 40px; font-size: 13px !important; gap: 6px; }
}

/* ==========================================================================
   19. Square product images (2.4.0)
   PME Catalog 1.3.0 stores every image as a 1200×1200 white square with the book centred
   (Pelangi-style). Cards and the product gallery are square too; the white margin is
   clipped away so the shadow follows the book. Older 3:4 images still fit until rebuilt.
   ========================================================================== */
.woocommerce ul.products li.product .pme-cover { aspect-ratio: 1 / 1; }

/* Kadence lifts the card details 2rem on hover: keep it to a small nudge. */
.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
	.woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap { transform: none; }
}

/* ==========================================================================
   20. Category, publisher and series pages (2.5.0)
   ========================================================================== */
/* Compact title area (Kadence's hero is tall and centred). */
.product-archive-hero-section .entry-hero-container-inner { background: transparent; }
.product-archive-hero-section .hero-container { min-height: 0 !important; padding: 28px 0 4px !important; }
.product-archive-hero-section .product-archive-title { text-align: left; margin: 0; }
.product-archive-hero-section .archive-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin: 0; }
.kadence-woo-results-count, .kadence-woo-toggle { display: none !important; }   /* count is in the intro; one card layout only */
.kadence-shop-top-row { justify-content: flex-end; margin-bottom: 12px; }

.pme-cat { margin: 0 0 18px; }
.pme-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--pme-muted); }
.pme-crumbs li + li::before { content: "›"; margin-right: 4px; color: #A8B1C2; }
.pme-crumbs a { color: var(--pme-muted); text-decoration: none; }
.pme-crumbs a:hover { color: var(--pme-blue); text-decoration: underline; }
.pme-crumbs [aria-current] { color: var(--pme-ink); }

.pme-cat__intro { display: flex; gap: 18px; align-items: flex-start; max-width: 860px; margin: 0 0 16px; }
.pme-cat__logo { flex: 0 0 auto; width: 84px; height: 84px; object-fit: contain; background: var(--pme-white); border: 1px solid var(--pme-line); border-radius: 12px; padding: 8px; }
.pme-cat__text { color: #3D4658; font-size: 15px; line-height: 1.65; }
.pme-cat__text p { margin: 0 0 8px; }
.pme-cat__text.is-long:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pme-cat__more { margin: 2px 0 0; padding: 0; background: none; border: 0; color: var(--pme-blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.pme-cat__intro.has-logo { align-items: center; }
.pme-cat__intro > div:last-child { min-width: 0; }

.pme-chiprow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.pme-chiprow__label { flex: 0 0 auto; min-width: 74px; font-size: 13px; font-weight: 600; color: var(--pme-muted); }
.pme-chiprow__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pme-chip2 { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid #D5DCE8; border-radius: 999px; background: var(--pme-white); color: var(--pme-ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .15s ease, background-color .15s ease; }
.pme-chip2:hover { border-color: var(--pme-blue); color: var(--pme-blue); }
.pme-chip2.is-on { background: var(--pme-blue); border-color: var(--pme-blue); color: #fff; }
.pme-chip2--toggle::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 4px; }
.pme-chip2--toggle.is-on::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230B3D91' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #fff; }
@media (max-width: 767px) {
	.pme-chiprow { align-items: flex-start; flex-direction: column; gap: 6px; }
	.pme-chiprow__chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
	.pme-chiprow__chips::-webkit-scrollbar { display: none; }
	.pme-cat__logo { width: 64px; height: 64px; }
}

.pme-faq { max-width: 860px; margin: 40px 0 8px; }
.pme-faq__item { border-bottom: 1px solid var(--pme-line); }
.pme-faq__item summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-weight: 600; color: var(--pme-ink); }
.pme-faq__item summary::-webkit-details-marker { display: none; }
.pme-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--pme-blue); }
.pme-faq__item[open] summary::after { content: "–"; }
.pme-faq__a { padding: 0 0 16px; color: #3D4658; line-height: 1.65; }
.pme-faq__a a { color: var(--pme-blue); }

/* ---- 20b. Filter sidebar (2.5.0) ---------------------------------------------------------- */
/* Two columns on desktop: the header block flows into the grid, so the intro spans the full width,
   the sidebar sits on the left and the results (count, sorting, products, pagination) on the right. */
@media (min-width: 1025px) {
	.pme-listing #main.site-main { display: grid; grid-template-columns: 248px minmax(0, 1fr); column-gap: 32px; align-items: start; }
	.pme-listing #main > * { grid-column: 2; }
	.pme-listing #main > .woocommerce-products-header { display: contents; }
	.pme-listing #main .pme-cat { grid-column: 1 / -1; }
	.pme-listing #main .pme-filters { grid-column: 1; grid-row: 2 / span 20; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
	.pme-listing #main .woocommerce-products-header > script { display: none; }
	.pme-ftoggle, .pme-filters__close, .pme-fdone, .pme-filters-scrim { display: none !important; }
	.pme-listing .woocommerce ul.products, .pme-listing ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
	.pme-listing ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.pme-filters { background: var(--pme-white); border: 1px solid var(--pme-line); border-radius: 16px; padding: 16px 16px 8px; scrollbar-width: thin; }
.pme-filters__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.pme-filters__title { margin: 0; font-size: 1.1rem; color: var(--pme-ink); }
.pme-filters__clear { margin-left: auto; font-size: 13px; color: var(--pme-blue); }
.pme-filters__close { margin-left: auto; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--pme-ink); cursor: pointer; padding: 0 4px; }
.pme-filters__clear[hidden] + .pme-filters__close, .pme-filters__clear:not([hidden]) + .pme-filters__close { margin-left: 8px; }
.pme-fgroup { border-top: 1px solid var(--pme-line); margin: 0; padding: 4px 0 8px; min-width: 0; }
.pme-fgroup > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; font-size: 14px; font-weight: 700; color: var(--pme-ink); cursor: pointer; }
.pme-fgroup > summary::-webkit-details-marker { display: none; }
.pme-fgroup > summary::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--pme-ink); transform: rotate(-90deg); transition: transform .15s ease; }
.pme-fgroup[open] > summary::before { transform: none; }
.pme-fsearch { width: 100%; height: 38px; margin: 2px 0 6px; padding: 0 14px; border: 1px solid #D5DCE8; border-radius: 999px; font-size: 14px; }
.pme-fgroup__body.is-searching .pme-fopt.is-extra:not([hidden]) { display: flex; }
.pme-fgroup__body.is-searching .pme-fmore { display: none; }
.pme-fcats { list-style: none; margin: 0; padding: 0; }
.pme-fcats a, .pme-fcats span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; font-size: 14px; color: #3D4658; text-decoration: none; }
.pme-fcats a:hover { color: var(--pme-blue); }
.pme-fcats .is-current { color: var(--pme-blue); font-weight: 700; }
.pme-fcats em { font-style: normal; font-size: 12px; color: var(--pme-muted); }
.pme-fopt[hidden] { display: none !important; }
.pme-fopt { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 14px; color: #3D4658; cursor: pointer; border-radius: 8px; }
.pme-fopt:hover { color: var(--pme-blue); }
.pme-fopt input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--pme-blue); cursor: pointer; }
.pme-fopt span { flex: 1 1 auto; min-width: 0; }
.pme-fopt em { font-style: normal; font-size: 12px; color: var(--pme-muted); }
.pme-fopt.is-extra { display: none; }
.pme-fgroup.is-all .pme-fopt.is-extra { display: flex; }
.pme-fmore { margin: 4px 0 0; padding: 0; background: none; border: 0; color: var(--pme-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pme-fprice { display: flex; align-items: center; gap: 6px; }
.pme-fprice input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #D5DCE8; border-radius: 10px; font-size: 14px; }
.pme-fprice__go { flex: 0 0 auto; height: 38px; padding: 0 12px; border: 1px solid var(--pme-blue); border-radius: 10px; background: var(--pme-white); color: var(--pme-blue); font-weight: 600; cursor: pointer; }
.pme-fprice__go:hover { background: var(--pme-blue); color: #fff; }
.pme-fapply, .pme-fdone { width: 100%; margin: 8px 0; height: 46px; border: 0; border-radius: 999px; background: var(--pme-blue); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }

.pme-resultbar { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.pme-count { margin: 0; font-size: 14px; color: var(--pme-muted); }
.pme-ftoggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--pme-blue); border-radius: 999px; background: var(--pme-white); color: var(--pme-blue); font-weight: 700; cursor: pointer; }
.pme-ftoggle b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--pme-blue); color: #fff; font-size: 12px; }
.pme-listing .kadence-shop-top-row { margin: -44px 0 12px; justify-content: flex-end; }   /* sorting sits beside the count */
.pme-noresults { padding: 32px 0; text-align: center; color: var(--pme-muted); }
.pme-noresults .pme-ftoggle { margin: 12px auto 0; display: none; }

/* ---- 20c. Finding things in long listings (2.10.0) ---------------------------------------- */
.pme-incat { display: flex; gap: 8px; max-width: 560px; margin: 4px 0 14px; }
.pme-incat input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 18px; border: 1px solid #D5DCE8; border-radius: 999px; font-size: 15px; background: var(--pme-white); }
.pme-incat input:focus { outline: none; border-color: var(--pme-blue); box-shadow: 0 0 0 3px var(--pme-blue-soft); }
.pme-incat button { flex: 0 0 auto; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--pme-blue); color: #fff; font-weight: 700; cursor: pointer; }
.pme-incat button:hover { background: var(--pme-blue-dark); }
.pme-collapsed-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--pme-blue-soft); color: #3D4658; font-size: 13px; line-height: 1.5; }
/* One pagination bar everywhere (shop, categories, series, search, blog):
   ← 1 [2] 3 … 8 →  |  Halaman [2] / 8 [Pergi] — same boxes, same height, one centred row. */
.woocommerce nav.woocommerce-pagination,
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 28px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; border: 0; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li { border: 0; }
.pagination .nav-links .page-numbers,
.woocommerce nav.woocommerce-pagination ul.page-numbers .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 0; padding: 0 10px;
	border: 1px solid var(--pme-line); border-radius: 10px; background: #fff;
	color: var(--pme-ink); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; box-shadow: none;
}
.pagination .nav-links { gap: 6px 14px; }
.pagination .nav-links .page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers a.page-numbers:hover { border-color: var(--pme-blue); color: var(--pme-blue); background: #fff; }
.pagination .nav-links .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers span.current { background: var(--pme-blue); border-color: var(--pme-blue); color: #fff; }
.pagination .nav-links .page-numbers.dots,
.woocommerce nav.woocommerce-pagination ul.page-numbers span.dots { min-width: 20px; padding: 0; border-color: transparent; background: transparent; }
/* "Halaman [n] / N [Pergi]" (inc/page-jump.php), on the same line after a thin divider. */
.pme-pagejump { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding-left: 14px; border-left: 1px solid var(--pme-line); font-size: 14px; color: var(--pme-muted); }
.pme-pagejump label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.pme-pagejump select { height: 40px; min-width: 64px; margin: 0; padding: 0 28px 0 12px; border: 1px solid var(--pme-line); border-radius: 10px; background-color: #fff; color: var(--pme-ink); font-size: 15px; font-weight: 600; }
.pme-pagejump button { height: 40px; margin: 0; padding: 0 14px; border: 1px solid var(--pme-blue); border-radius: 10px; background: #fff; color: var(--pme-blue); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; }
.pme-pagejump button:hover { background: var(--pme-blue); color: #fff; }
@media (max-width: 600px) {
	.pme-pagejump { flex-basis: 100%; justify-content: center; padding-left: 0; border-left: 0; }
	.pagination .nav-links .page-numbers,
	.woocommerce nav.woocommerce-pagination ul.page-numbers .page-numbers { min-width: 36px; height: 36px; }
}
@media (max-width: 600px) {
	.pme-incat input { height: 42px; font-size: 16px; }   /* 16px: no zoom on iPhone */
	.pme-incat button { height: 42px; padding: 0 16px; }
}

/* Loading: keep the old results visible but dimmed. */
#main.is-loading ul.products, #main.is-loading .woocommerce-pagination { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

/* Phones / tablets: slide-in panel from the left. */
@media (max-width: 1024px) {
	.pme-filters { position: fixed; z-index: 10001; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); border-radius: 0 16px 16px 0; overflow-y: auto; transform: translateX(-104%); transition: transform .22s ease; box-shadow: 0 10px 40px rgba(16, 24, 40, .25); padding-bottom: 80px; }
	.pme-filters-open .pme-filters { transform: none; }
	.pme-filters-scrim { position: fixed; inset: 0; z-index: 10000; background: rgba(16, 24, 40, .4); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
	.pme-filters-open .pme-filters-scrim { opacity: 1; pointer-events: auto; }
	.pme-filters-open { overflow: hidden; }
	.pme-fdone { position: sticky; bottom: 8px; box-shadow: 0 6px 18px rgba(11, 61, 145, .3); }
	.pme-noresults .pme-ftoggle { display: inline-flex; }
	.pme-listing .kadence-shop-top-row { margin: 8px 0 12px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.pme-filters, .pme-filters-scrim { transition: none; }
}

/* 2.5.1: compact title band, left-aligned intro; level chips only where there is no sidebar. */
.product-archive-hero-section .hero-container { padding: 16px 0 0 !important; }
.product-archive-hero-section .product-archive-title { min-height: 0 !important; padding: 22px 16px !important; justify-content: center; background: #F2F5FB; border-radius: 14px; }
.product-archive-hero-section .archive-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); text-align: center; }
.pme-cat, .pme-cat__intro, .pme-cat__text { text-align: left; }
.pme-cat__intro { margin-left: 0; margin-right: 0; }
.pme-chiprow__chips { justify-content: flex-start; }
.pme-crumbs { margin-top: 4px; }
@media (min-width: 1025px) {
	.pme-chiprow--levels { display: none; }
}

/* 2.5.2: wider listing pages, readable cards. */
body.pme-listing { --global-content-width: 1400px; }
.pme-listing .pme-cat { display: block; text-align: left; }   /* .pme-cat is also the homepage category icon (flex, centred) */
.pme-listing .content-area { margin-top: 12px; }
.pme-listing .product-archive-hero-section .hero-container { padding-top: 12px !important; }
.pme-cat__intro { max-width: 1000px; }
@media (min-width: 1025px) {
	.pme-listing #main.site-main { grid-template-columns: 260px minmax(0, 1fr); column-gap: 28px; }
	.pme-listing ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1200px) {
	.pme-listing ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Cards everywhere: product name up to 4 lines; calmer sizes so long names and price ranges fit. */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; line-height: 1.4; -webkit-line-clamp: 4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.woocommerce ul.products li.product .price { font-size: 1.15rem; letter-spacing: -0.01em; }
.woocommerce ul.products li.product .price .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce ul.products li.product.product-type-grouped .price,
.woocommerce ul.products li.product.product-type-variable .price { font-size: 1.05rem; }
.pme-pub { font-size: 11px; }
.woocommerce ul.products li.product .product-details .button { text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; font-size: 14px !important; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.woocommerce ul.products li.product .price { font-size: 1.02rem; }
	.woocommerce ul.products li.product.product-type-grouped .price { font-size: 0.95rem; }
}

/* 2.5.3: a more refined card button — slimmer, lighter line, smaller icon. */
.woocommerce ul.products li.product .product-details .button {
	height: 38px; min-height: 38px; padding: 0 12px !important; gap: 6px;
	border: 1px solid rgba(200, 16, 46, 0.45) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--pme-red) !important;
	font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: 0.01em !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.woocommerce ul.products li.product .product-details .button::before { width: 15px !important; height: 15px !important; flex: 0 0 15px !important; }
.woocommerce ul.products li.product .product-details .button:hover,
.woocommerce ul.products li.product .product-details .button:focus-visible { background: var(--pme-red) !important; border-color: var(--pme-red) !important; color: #fff !important; }
.woocommerce ul.products li.product.outofstock .product-details .button { background: #F4F6F9 !important; border-color: transparent !important; color: var(--pme-muted) !important; font-weight: 500 !important; }
.woocommerce ul.products li.product.outofstock .product-details .button:hover { background: #ECEFF4 !important; color: var(--pme-ink) !important; }
@media (max-width: 767px) {
	.woocommerce ul.products li.product .product-details .button { height: 36px; min-height: 36px; font-size: 13px !important; }
}

/* ==========================================================================
   21. Refined product cards (2.6.0) — calmer, tighter, Montigo-style:
   no box around each card, smaller quiet type, soft tinted button, smaller gaps.
   ========================================================================== */
.woocommerce ul.products { column-gap: 20px !important; row-gap: 34px !important; }
.woocommerce ul.products li.product,
.woocommerce ul.products li.product:hover { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce ul.products li.product .pme-cover { margin: 0 0 12px !important; border-radius: 12px; }
.woocommerce ul.products li.product .entry-content-wrap,
.woocommerce ul.products li.product .product-details { padding: 0 2px !important; background: transparent !important; }
.pme-pub { font-size: 10.5px; letter-spacing: 0.07em; margin: 0 0 2px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 600; line-height: 1.42; color: var(--pme-ink); margin: 2px 0 6px; }
.woocommerce ul.products li.product .price { font-size: 15px !important; font-weight: 700; letter-spacing: 0; margin: 0; }
.woocommerce ul.products li.product.product-type-grouped .price,
.woocommerce ul.products li.product.product-type-variable .price { font-size: 14px !important; }
.pme-stock { font-size: 12px; margin: 2px 0 0; }
.pme-paylater { font-size: 12px; }
.pme-pill { font-size: 10.5px; padding: 3px 9px; }

/* Soft button: light red tint and a faint line; solid red on hover. */
.woocommerce ul.products li.product .product-details .button {
	height: 36px; min-height: 36px; margin-top: 10px !important;
	background: #FDF3F5 !important; border: 1px solid rgba(200, 16, 46, 0.16) !important; color: var(--pme-red) !important;
	font-size: 13px !important; font-weight: 600 !important;
}
.woocommerce ul.products li.product .product-details .button:hover,
.woocommerce ul.products li.product .product-details .button:focus-visible { background: var(--pme-red) !important; border-color: var(--pme-red) !important; color: #fff !important; }
.woocommerce ul.products li.product.outofstock .product-details .button { background: #F3F5F8 !important; border-color: transparent !important; color: #8A94A6 !important; }
.woocommerce ul.products li.product .product-details .button::before { width: 14px !important; height: 14px !important; flex: 0 0 14px !important; }

/* Hover: only the book lifts; no card movement. */
.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap { transform: none; }

@media (max-width: 767px) {
	.woocommerce ul.products { column-gap: 12px !important; row-gap: 26px !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; }
	.woocommerce ul.products li.product .price { font-size: 14px !important; }
	.woocommerce ul.products li.product .product-details .button { height: 34px; min-height: 34px; font-size: 12.5px !important; }
}

/* 2.6.1: plain white reading area behind product lists (no grid behind small text).
   The grid stays in the header, title band, homepage and footer. */
.pme-listing #primary,
.search #primary,
.post-type-archive-product #primary { background: #fff; border-top: 1px solid #E6EAF1; padding-top: 8px; padding-bottom: 72px; }   /* room under the last row and the sidebar */

/* 2.6.4: Kadence also prints the description in the title band; ours (with the logo) is below it. */
.entry-hero .archive-description { display: none; }

/* ==========================================================================
   22. "Cari ikut tahap anak anda" as an exercise-book page (2.7.0):
   ruled lines, red margin line, punched holes, handwritten-style row labels.
   ========================================================================== */
.pme-band--book { background: transparent; color: var(--pme-ink); padding: 0; margin: 44px 0 30px; }
.pme-band--book::before, .pme-band--book::after { display: none !important; }   /* no wave */
.pme-exbook {
	position: relative; display: block !important;
	padding: 38px 44px 40px 118px; border: 1px solid var(--pme-line); border-radius: 22px; overflow: hidden;
	background-color: #fff;
	background-image: linear-gradient(transparent 39px, #DCE6F7 40px);
	background-size: 100% 40px; background-position: 0 22px;
	box-shadow: 0 1px 0 rgba(30, 42, 68, 0.04), 0 14px 30px rgba(30, 42, 68, 0.06);
}
.pme-exbook::before { content: ""; position: absolute; left: 86px; top: 0; bottom: 0; width: 2px; background: #F2A4AE; }   /* margin line */
.pme-exbook__holes { position: absolute; left: 30px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 34px 0; }
.pme-exbook__holes i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--pme-paper, #F6F8FC); border: 1px solid #D5DCE8; box-shadow: inset 0 2px 3px rgba(30, 42, 68, 0.12); }
.pme-band--book .pme-band__head { margin: 0 0 18px; }
.pme-band--book .pme-band__title { color: var(--pme-blue); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin: 0 0 6px; }
.pme-band--book .pme-band__lead { color: var(--pme-muted); font-size: 15px; margin: 0; }
.pme-band--book .pme-band__rows { display: grid; grid-template-columns: 150px minmax(0, 1fr); row-gap: 12px; column-gap: 8px; align-items: center; }
.pme-band--book .pme-band__row { display: contents; }
.pme-band--book .pme-band__label { width: auto; font-family: var(--pme-serif); font-style: italic; font-weight: 600; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--pme-red); }
.pme-band--book .pme-band__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pme-band--book .pme-band__chip { height: 38px; padding: 0 16px; background: #fff; border: 1px solid #C9D5EE; color: var(--pme-blue) !important; font-size: 14px; font-weight: 700; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pme-band--book .pme-band__chip:hover { background: var(--pme-blue); border-color: var(--pme-blue); color: #fff !important; }
@media (max-width: 767px) {
	.pme-exbook { padding: 26px 18px 26px 54px; background-position: 0 14px; }
	.pme-exbook::before { left: 38px; }
	.pme-exbook__holes { left: 10px; }
	.pme-exbook__holes i { width: 14px; height: 14px; }
	.pme-band--book .pme-band__rows { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
	.pme-band--book .pme-band__label { margin-top: 8px; font-size: 17px; }
	.pme-band--book .pme-band__chip { height: 36px; padding: 0 13px; font-size: 13.5px; }
}


/* ==========================================================================
   23. Product page (2.8.0)
   ========================================================================== */
/* 2.8.2: graph paper stays in the header and down the page sides; the reading area is a plain
   white sheet laid on top (product, listing, cart, account and other pages; not the homepage). */
.pme-listing #primary, .search #primary, .post-type-archive-product #primary { background: transparent; border-top: 0; padding-top: 0; padding-bottom: 0; }
body:not(.home) #primary > .content-container {
	background: #fff;
	padding-top: 24px;
	padding-bottom: 72px;            /* room under the last row, the sidebar and the buy box */
}
@media (min-width: 1025px) {
	body:not(.home) #primary > .content-container {
		border: 1px solid #E6EAF1;
		border-bottom: 0;
		border-radius: 14px 14px 0 0;
		margin-top: 20px;
		box-shadow: 0 1px 0 rgba(30, 42, 68, 0.02);
	}
}

/* Tingkatan / Tahun pages: subject list as a clean shopping list. */
.woocommerce div.product form.grouped_form table.group_table { width: 100%; border: 0; border-collapse: separate; border-spacing: 0; margin: 0; }
.woocommerce div.product form.grouped_form table.group_table td {
	padding: 10px 8px; border: 0; border-bottom: 1px solid var(--pme-line); vertical-align: middle; background: transparent;
	transition: background-color .15s ease;
}
.woocommerce div.product form.grouped_form tr:first-child td { border-top: 1px solid var(--pme-line); }
.woocommerce-grouped-product-list-item__thumb { width: 68px; padding-left: 4px !important; }
.pme-gthumb { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #E6EAF1; }
.woocommerce-grouped-product-list-item__label { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--pme-ink); }
.woocommerce-grouped-product-list-item__label label { margin: 0; cursor: pointer; }
.woocommerce-grouped-product-list-item__label a { color: inherit; text-decoration: none; }
.woocommerce-grouped-product-list-item__label a:hover { color: var(--pme-blue); text-decoration: underline; text-underline-offset: 2px; }
.woocommerce-grouped-product-list-item__price { text-align: right; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--pme-ink); }
.woocommerce-grouped-product-list-item__price del { font-size: 12.5px; font-weight: 500; color: var(--pme-muted); margin-right: 4px; }
.woocommerce-grouped-product-list-item__price ins { text-decoration: none; color: var(--pme-red); }
.woocommerce-grouped-product-list-item__quantity { width: 1%; text-align: right; padding-right: 4px !important; }
.pme-gsoon { color: var(--pme-blue) !important; background: var(--pme-blue-soft) !important; }
.pme-gout { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; color: #8A94A6; background: #F3F5F8; border-radius: 999px; padding: 5px 11px; }
.woocommerce div.product form.grouped_form tr.outofstock .woocommerce-grouped-product-list-item__thumb,
.woocommerce div.product form.grouped_form tr.outofstock .woocommerce-grouped-product-list-item__label,
.woocommerce div.product form.grouped_form tr.outofstock .woocommerce-grouped-product-list-item__price { opacity: .5; }
.woocommerce div.product form.grouped_form tr.pme-gset td { background: #F4F7FD; }
.pme-gtag { display: inline-block; margin: 0 8px 2px 0; padding: 2px 7px; border-radius: 4px; background: var(--pme-blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.woocommerce div.product form.grouped_form tr.is-picked td { background: #FFFBEA; }
.pme-gtotal { margin: 16px 0 0; font-size: 14px; color: var(--pme-muted); }
.pme-gtotal.has-items { color: var(--pme-ink); font-size: 16px; font-weight: 700; }
@media (max-width: 767px) {
	.woocommerce-grouped-product-list-item__thumb { width: 60px; }   /* 2.17.70 (UI round 1, B7): was 44 / 36 px */
	.pme-gthumb { width: 56px; height: 56px; }
	.woocommerce div.product form.grouped_form table.group_table td { padding: 9px 5px; }
	.woocommerce-grouped-product-list-item__label { font-size: 13.5px; }
	.woocommerce-grouped-product-list-item__price { font-size: 14px; }
}

/* Reassurance strip under the button. */
.pme-trust { list-style: none; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--pme-line); border-radius: 12px; display: grid; gap: 10px; }
.pme-trust li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.4; color: #3D4658; }
.pme-trust svg { width: 20px; height: 20px; flex: none; color: var(--pme-blue); }
.pme-trust a { color: var(--pme-blue); font-weight: 600; }

/* Tabs: no tab bar when there is only "Penerangan"; its heading shows instead. */
.woocommerce div.product .woocommerce-tabs ul.tabs:not(:has(li + li)) { display: none; }
.woocommerce div.product .woocommerce-tabs:has(ul.tabs li + li) .woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-Tabs-panel--description { max-width: 820px; font-size: 15.5px; line-height: 1.7; color: #3D4658; }
.woocommerce div.product .woocommerce-Tabs-panel > h2:first-child { font-size: 1.5rem; margin-bottom: .75rem; }
/* Phones: WooCommerce draws a square 1 px frame round the tabs wrapper (max-width 719 px); the panel is its own card, so no frame. */
.woocommerce div.product .woocommerce-tabs { border: 0; }

/* One product-page layout (2.17.10, owner option A, 20 Nov 2026), single books and series pages alike, from 720 px
   (Kadence's two-column width): left = photos, then the long content (book-page sections Sekilas … Tentang, or the
   plain "Penerangan" tab); right = the buy column (title, price, buy, Butiran buku). Single books: a compact card
   under the buy column (cover, price, stock, Tambah ke troli) stays on screen while the sections are read (pme.js
   initProductLayout moves the side card here). The section bar stays on top of the sections and sticks while
   reading (2.17.13 block below).
   Grid rows: r1 gallery | r2–r3 content (left); r1–r2 buy column | r3 sticky card (right). Same HTML order, so
   phones (one column) and crawlers are unchanged. */
@media (min-width: 720px) {
	body.single-product.woocommerce div.product.type-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 4%; align-items: start; }
	body.single-product.woocommerce div.product.type-product::before, body.single-product.woocommerce div.product.type-product::after { display: none; }
	body.single-product.woocommerce div.product.type-product > * { grid-column: 1 / -1; }
	body.single-product.woocommerce div.product.type-product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; float: none; width: auto; }
	body.single-product.woocommerce div.product.type-product > .summary { grid-column: 2; grid-row: 1 / span 2; float: none; width: auto; }
	body.single-product.woocommerce div.product.type-product > .woocommerce-tabs,
	body.single-product.woocommerce div.product.type-product > .pme-bp { grid-column: 1; grid-row: 2 / span 2; float: none; width: auto; min-width: 0; margin-top: 16px; }
	body.single-product.woocommerce div.product.type-product > .pme-bp { grid-template-columns: minmax(0, 1fr); }
	/* 2.17.16: the holder fills grid row 3, which ends where the book sections end, so the sticky card scrolls away
	   with them and never covers the rails below ("Tahun 3 lain dalam …"). No overflow / max-height on the card any more
	   (it is about 220 px tall): that clipped its Cozy shadow into a hard edge. */
	body.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap { grid-column: 2; grid-row: 3; align-self: stretch; min-width: 0; margin-top: 24px; }
	body.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap > .pme-bp-side { display: block; position: sticky; top: 24px; }
	body.admin-bar.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap > .pme-bp-side { top: 56px; }
	/* 2.17.14: one Tambah ke troli on screen. The card hides while the real button is on screen or below it (pme.js handOver). */
	@media (prefers-reduced-motion: no-preference) { body.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap > .pme-bp-side { transition: opacity .2s ease, visibility .2s ease; } }   /* fade only when motion is welcome */
	body.pme-realbuy-on.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap > .pme-bp-side { opacity: 0; visibility: hidden; }
	body.single-product.woocommerce div.product.type-product .pme-bp > .pme-bp-side { display: none; }   /* no JavaScript: the buy column already has everything */
	body.single-product.woocommerce div.product.type-product .summary .pme-book { display: block; }   /* Butiran buku in the buy column on every page */
	body.single-product.woocommerce div.product.type-product > .pme-bp-sidewrap .pme-book { display: none; }
	/* Wide supplier content (tables, iframes) in "Penerangan" scrolls inside its column, never over the buy column. */
	body.single-product.woocommerce div.product.type-product > .woocommerce-tabs .woocommerce-Tabs-panel { overflow-x: auto; }
	body.single-product.woocommerce div.product.type-product > .woocommerce-tabs .woocommerce-Tabs-panel :is(img, iframe, table, video) { max-width: 100%; }
	body.single-product.woocommerce div.product.type-product > .pme-bp :is(.pme-bp-feat, .pme-bp-authors) li strong { line-height: 1.3; }
}
/* Section bar (2.17.13, owner 20 Nov 2026): on every width the horizontal bar above the book sections sticks to the top
   of the screen while reading, like on phones (the 2.17.11–2.17.12 left "Di halaman ini" column took too much room). */
body.admin-bar.single-product.woocommerce div.product.type-product > .pme-bp > .pme-bp-jump { top: var(--wp-admin--admin-bar--height, 32px); }   /* staff: the sticky bar sits below the WordPress admin bar (46 px tall up to 782 px wide) */
body.admin-bar .pme-bp-sec { scroll-margin-top: 96px; }   /* staff: a clicked section heading lands below the admin bar + the bar */

/* The left column is narrow on tablets: feature cards one per row, facts / audience two per row, page previews three. */
@media (min-width: 720px) and (max-width: 1099px) {
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-feat { grid-template-columns: minmax(0, 1fr); }
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-facts,
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Wide screens: the section bar sits in the left column: the same edge fade as tablets. */
@media (min-width: 1025px) {
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in::before,
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in::before { left: 0; background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)); border-radius: 999px 0 0 999px; }
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in::after { right: 0; background: linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)); border-radius: 0 999px 999px 0; }
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in.is-l::before,
	body.single-product.woocommerce div.product.type-product > .pme-bp .pme-bp-jump__in.is-r::after { opacity: 1; }
}

/* Scroll arrows ‹ › (2.17.10, owner 20 Nov 2026): every sideways (or up-down) scrolling row gets a round arrow on
   each side that has more to see (pme.js initScrollHints places them and shows them only when needed). */
.pme-bp-jump__more { display: none !important; }   /* replaced by the shared arrows */
.pme-sh {
	position: absolute; z-index: 4; display: grid; place-items: center;
	width: 30px; height: 30px; min-height: 0; padding: 0; margin: 0;
	border: 1px solid var(--pme-line); border-radius: 50%; background: var(--pme-white); color: var(--pme-blue);
	font-size: 18px; font-weight: 800; line-height: 1; box-shadow: 0 4px 12px rgba(16, 24, 40, .16);
	opacity: 0; pointer-events: none; transition: opacity .2s, background-color .15s, color .15s; cursor: pointer;
}
.pme-sh.is-on { opacity: 1; pointer-events: auto; }
.pme-sh:hover, .pme-sh:focus-visible { background: var(--pme-blue); color: var(--pme-white); border-color: var(--pme-blue); }
.pme-sh--v { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .pme-sh { transition: none; } }

/* Phones: sticky buy bar. */
.pme-buybar { display: none; }
@media (max-width: 767px) {
	body.pme-buybar-on .pme-buybar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--pme-line); box-shadow: 0 -6px 18px rgba(30, 42, 68, 0.08);
	}
	.pme-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.pme-buybar__name { font-size: 12.5px; color: var(--pme-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pme-buybar__price { font-size: 16px; font-weight: 700; color: var(--pme-ink); }
	.pme-buybar__price del { font-size: 12px; font-weight: 500; color: var(--pme-muted); }
	.pme-buybar__price ins { text-decoration: none; color: var(--pme-red); }
	.pme-buybar__btn.button { height: 44px; padding: 0 18px !important; border-radius: 10px !important; background: var(--pme-red) !important; color: #fff !important; font-weight: 700; font-size: 14px; white-space: nowrap; border: 0 !important; }
	body.pme-buybar-on { padding-bottom: 72px; }
}

/* 2.8.3: gallery frames like the product cards (thin PME-blue line), square thumbnails,
   calmer hover / selected state; breadcrumbs on the graph paper above the white sheet. */
/* Kadence styles thumbnails with a 5px white border on the top and right only, which turned into a
   lopsided blue edge on hover. Same selector weight + div.images so ours wins: an even 1px line. */
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li {
	flex: 0 0 auto !important; aspect-ratio: 1 / 1; height: auto !important; padding: 0 !important; background: transparent !important;
}
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;                       /* square box; the picture fits inside it */
	padding: 5px;
	margin: 0;
	border: 1px solid rgba(11, 61, 145, 0.16) !important;
	border-radius: 8px;
	background: #fff;
	opacity: 1 !important;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img:hover {
	border-color: rgba(11, 61, 145, 0.45) !important;
}
.woocommerce div.product div.images.pme-gallery .flex-control-thumbs li img.flex-active {
	border-color: var(--pme-blue) !important;
	box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}
.pme-gallery .flex-viewport,
.pme-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper {
	border: 1px solid rgba(11, 61, 145, 0.35);       /* same line as the card covers */
	border-radius: 12px;
	overflow: hidden;
	background: var(--pme-white);
}
@media (min-width: 1025px) {
	.single-product #primary > .content-container { position: relative; margin-top: 52px; }
	.single-product .product-title.product-above {
		position: absolute; top: -38px; left: 0; right: 0;
		padding: 0 var(--global-content-edge-padding, 1.5rem);
		margin: 0;
	}
	.single-product .product-title.product-above .kadence-breadcrumbs {
		margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px;
	}
}
.pme-trust__note { margin-left: 4px; font-size: 12px; color: var(--pme-muted); }
a.pme-trust__note { color: var(--pme-muted) !important; text-decoration: underline; text-underline-offset: 2px; font-weight: 400 !important; }
a.pme-trust__note:hover { color: var(--pme-blue) !important; }

/* Policy pages: "On this page" list in two columns; headings clear of the top when jumped to. */
.entry-content ul.pme-toc { columns: 2 220px; column-gap: 32px; margin: 0 0 2rem; padding: 18px 22px 18px 40px; background: #F7F9FE; border: 1px solid #E6EAF1; border-radius: 12px; font-size: 14.5px; }
.entry-content ul.pme-toc li { break-inside: avoid; margin: 0 0 6px; }
.entry-content ul.pme-toc a { color: var(--pme-blue); text-decoration: none; }
.entry-content ul.pme-toc a:hover { text-decoration: underline; }
.entry-content h2[id] { scroll-margin-top: 90px; }

/* ==========================================================================
   24. Reviews (2.9.0): rating line, summary card, review list, /ulasan/ page
   ========================================================================== */
.pme-stars-show { position: relative; display: inline-block; width: 86px; height: 16px; vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D5DCE8' d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") 0 0 / 17.2px 16px repeat-x; }
.pme-stars-show > span { position: absolute; inset: 0 auto 0 0; overflow: hidden;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F5A623' d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") 0 0 / 17.2px 16px repeat-x; }
.pme-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; font-size: 14px; color: var(--pme-ink); }
.pme-rating strong { font-weight: 700; }
.pme-rating__n { color: var(--pme-muted); text-decoration: none; }
.pme-rating__n[href] { color: var(--pme-blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Summary card at the top of the reviews tab. */
.pme-rsum { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 620px; margin: 0 0 28px; padding: 20px 22px; border: 1px solid var(--pme-line); border-radius: 12px; }
.pme-rsum__avg { display: grid; justify-items: start; gap: 4px; }
.pme-rsum__avg strong { font-family: var(--pme-serif); font-size: 2.6rem; line-height: 1; color: var(--pme-ink); }
.pme-rsum__avg span:last-child { font-size: 13px; color: var(--pme-muted); }
.pme-rsum__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pme-rsum__bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: #3D4658; }
.pme-rsum__bars i { height: 8px; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.pme-rsum__bars b { display: block; height: 100%; border-radius: 99px; background: #F5A623; }
.pme-rsum__bars em { font-style: normal; text-align: right; color: var(--pme-muted); }
@media (max-width: 600px) { .pme-rsum { grid-template-columns: 1fr; gap: 16px; } }

/* WooCommerce review list: calmer, Malay "Pembeli disahkan" as a small tag. */
.woocommerce #reviews #comments > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews #comments ol.commentlist li { margin: 0; padding: 18px 0; border-top: 1px solid var(--pme-line); }
.woocommerce #reviews #comments ol.commentlist li img.avatar { display: none; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { margin: 0; padding: 0; border: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta { font-size: 13px; color: var(--pme-muted); margin-bottom: 6px; }
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta strong { color: var(--pme-ink); font-size: 14px; }
.woocommerce #reviews .woocommerce-review__verified { font-style: normal; font-size: 11px; font-weight: 600; color: #1E7A46; background: #E8F5EE; border-radius: 99px; padding: 2px 8px; }
.woocommerce #reviews .woocommerce-review__dash { display: none; }
.woocommerce #reviews .description p { color: #3D4658; line-height: 1.6; }
.woocommerce #reviews .star-rating { color: #F5A623; }
.woocommerce #review_form #respond { padding: 20px 22px; border: 1px solid var(--pme-line); border-radius: 12px; max-width: 620px; }
.woocommerce #review_form .comment-reply-title { font-family: var(--pme-serif); font-size: 1.2rem; font-weight: 600; }
.woocommerce #reviews .woocommerce-noreviews, .woocommerce #reviews .woocommerce-verification-required { color: var(--pme-muted); }

/* /ulasan/ : review page from the WhatsApp / email link. */
.pme-rvpage { max-width: 720px; margin: 0 auto; }
.pme-rv__eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pme-red); }
.pme-rv__title { margin: 0 0 8px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--pme-ink); }
.pme-rv__lead { margin: 0 0 22px; color: #3D4658; }
.pme-rv__thanks { margin: 0 0 22px; padding: 14px 16px; border-radius: 10px; background: #E8F5EE; color: #1E5E3A; font-weight: 600; }
.pme-rv__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--pme-line); }
.pme-rv__item:last-of-type { border-bottom: 1px solid var(--pme-line); }
.pme-rv__img img { display: block; width: 88px; height: 88px; object-fit: contain; border: 1px solid rgba(11, 61, 145, .16); border-radius: 8px; padding: 4px; background: #fff; }
.pme-rv__name { margin: 0 0 8px; font-weight: 600; line-height: 1.35; color: var(--pme-ink); }
.pme-rv__done { margin: 0; font-size: 14px; color: #1E7A46; font-weight: 600; }
.pme-rv__item.is-done { opacity: .75; }
.pme-rv textarea { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #D5DCE8; border-radius: 10px; font-size: 14.5px; resize: vertical; }
.pme-rv textarea:focus { border-color: var(--pme-blue); outline: 0; box-shadow: 0 0 0 3px rgba(11, 61, 145, .1); }
.pme-rv__send.button { margin-top: 22px; height: 50px; padding: 0 32px !important; border-radius: 10px !important; background: var(--pme-red) !important; color: #fff !important; font-weight: 700; font-size: 1rem; border: 0 !important; }
.pme-rv__note { margin: 10px 0 0; font-size: 13px; color: var(--pme-muted); }
/* Star picker: radios in reverse order so CSS can fill to the hovered / chosen star. */
.pme-stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 0; padding: 0; border: 0; }
.pme-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pme-stars label { width: 34px; height: 34px; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D5DCE8' d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") center / 30px no-repeat;
	transition: transform .12s ease; }
.pme-stars label:hover, .pme-stars label:hover ~ label, .pme-stars input:checked ~ label {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F5A623' d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E"); }
.pme-stars label:hover { transform: scale(1.08); }
.pme-stars input:focus-visible + label { outline: 2px solid var(--pme-blue); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 600px) { .pme-rv__item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .pme-rv__img img { width: 64px; height: 64px; } }


/* ==========================================================================
   21. Phone header (2.10.0)
   Row 1: taller announcement, the whole message wraps; arrows either side when there are several.
   Row 2: Kadence's logo + name, the cart (moved in by pme.js) and the menu button.
   Row 3: search across the full width.
   Account, Jadi Ahli, store locator and language: bottom of the menu drawer.
   Desktop is unchanged.
   ========================================================================== */
/* Menu drawer: white panel, dark text, thin dividers (Kadence's default is a dark panel). */
#mobile-drawer .drawer-inner { background: var(--pme-white); color: var(--pme-ink); }
#mobile-drawer .drawer-header { border-bottom: 1px solid var(--pme-line); }
#mobile-drawer .menu-toggle-close { color: var(--pme-ink); }
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap { color: var(--pme-ink); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--pme-line); }
#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap > a { border-bottom: 0; }
#mobile-drawer .mobile-navigation ul li > a:hover, #mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: var(--pme-blue); }
#mobile-drawer .drawer-sub-toggle { color: var(--pme-ink); border-left: 0; }
.pme-drawer-extra[hidden] { display: none; }
.pme-drawer-extra { margin: 0; }
.pme-drawer-link { display: flex; align-items: center; gap: 14px; padding: 16px 7px; border-bottom: 1px solid var(--pme-line); color: var(--pme-ink) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; }
.pme-drawer-link .pme-ico { flex: none; width: 22px; height: 22px; color: var(--pme-blue); }
.pme-drawer-link span { display: flex; flex-direction: column; line-height: 1.3; }
.pme-drawer-link small { font-size: 12.5px; color: var(--pme-blue); font-weight: 600; }
.pme-drawer-extra .pme-lang { padding: 14px 7px; gap: 6px; }
.pme-drawer-extra .pme-lang .pme-ico { width: 22px; height: 22px; margin-right: 8px; color: var(--pme-blue); }
.pme-drawer-extra .pme-lang__item { padding: 6px 10px; border: 1px solid var(--pme-line); border-radius: 999px; color: var(--pme-ink) !important; font-weight: 600; text-decoration: none !important; }
.pme-drawer-extra .pme-lang__item.is-current { background: var(--pme-blue); border-color: var(--pme-blue); color: #fff !important; }
@media (max-width: 1024px) {
	.pme-header__main .pme-actions { display: none; }                 /* account + member: in the menu drawer */
	.pme-header__main-inner { padding-top: 6px; padding-bottom: 12px; }
	.pme-search { flex: 1 1 100%; }
	.pme-search__input { padding-right: 52px !important; }
	#mobile-header .site-header-main-section-right { display: flex; align-items: center; gap: 6px; }
	#mobile-header .pme-action--cart { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--pme-blue) !important; }
	#mobile-header .pme-action--cart .pme-ico { width: 26px; height: 26px; }
	#mobile-header .pme-action--cart .pme-action__text { display: none; }
	#mobile-header .pme-cart-count { top: -7px; right: -10px; }
	#mobile-header .site-title { font-family: var(--pme-serif); font-style: normal; font-weight: 700; font-size: 16px; color: var(--pme-blue); }
}
@media (max-width: 760px) {
	.pme-announce { font-size: 13px; }
	.pme-announce__inner { min-height: 52px; column-gap: 8px; padding-top: 8px; padding-bottom: 8px; grid-template-columns: minmax(0, 1fr); }
	.pme-announce__right { display: none; }                            /* locator + language: in the menu drawer */
	.pme-announce__track { grid-column: 1; grid-template-columns: 28px minmax(0, 1fr) 28px; }
	.pme-announce__msg { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
	/* One message: no arrow columns, the text gets the full width. */
	.pme-announce__track:not(:has(.pme-announce__nav:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
	.pme-announce__track:not(:has(.pme-announce__nav:not([hidden]))) .pme-announce__msgs { grid-column: 1; }
	/* Several messages: room for two lines so the page does not jump while they rotate. */
	.pme-announce__track:has(.pme-announce__nav:not([hidden])) .pme-announce__msgs { min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
}

/* ==========================================================================
   22. Checkout: "Teruskan membeli-belah" (2.10.3)
   ========================================================================== */
.pme-continue-wrap { margin: 0 0 14px; }
.pme-continue {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px;
	border: 1.5px solid var(--pme-blue, #0B3D91); border-radius: 999px; background: #fff;
	color: var(--pme-blue, #0B3D91) !important; font-size: 14.5px; font-weight: 700; text-decoration: none !important;
	transition: background-color .15s ease;
}
.pme-continue:hover, .pme-continue:focus-visible { background: var(--pme-blue-soft, #EEF3FB); }
.pme-continue svg { flex: none; }
@media (max-width: 767px) {
	.pme-continue-wrap { margin-bottom: 10px; }
	.pme-continue { min-height: 44px; font-size: 14px; }
}

/* ==========================================================================
   23. Cart and checkout items: brand, name, price (2.10.4)
   The long short-description is hidden; the brand (item data "Jenama") sits above the name.
   ========================================================================== */
.wc-block-cart-item__wrap,
.wc-block-components-order-summary-item__description { display: flex; flex-direction: column; align-items: flex-start; }
.wc-block-cart-item__wrap > .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__description > .wc-block-components-product-metadata { order: -1; margin: 0 0 2px !important; }
.wc-block-components-product-metadata__description { display: none !important; }
.wc-block-components-product-details { margin: 0 !important; padding: 0 !important; list-style: none; }
.wc-block-components-product-details li { margin: 0 !important; }
.wc-block-components-product-details__jenama .wc-block-components-product-details__name { display: none; }
.wc-block-components-product-details__jenama .wc-block-components-product-details__value {
	font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pme-muted, #5B6475);
}

/* ==========================================================================
   24. One title style for every page (2.10.5)
   Cart, store locator, About and other pages, shop and blog use the same compact rounded
   title box as the category pages: no full-width grey band, no tall padding.
   ========================================================================== */
.entry-hero .entry-hero-container-inner,
.entry-hero .hero-section-overlay { background: transparent !important; }
.entry-hero .hero-container { min-height: 0 !important; padding: 16px 0 0 !important; }
.entry-hero .entry-header {
	min-height: 0 !important; margin: 0 !important; padding: 22px 16px !important;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: #F2F5FB; border-radius: 14px; text-align: center;
}
.entry-hero .entry-header .entry-title,
.entry-hero .entry-header .archive-title { margin: 0 !important; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.entry-hero .entry-header .kadence-breadcrumbs { margin: 0 !important; font-size: 13.5px; }
.entry-hero .entry-header .kadence-breadcrumbs a { color: var(--pme-muted, #5B6475); }
@media (max-width: 767px) {
	.entry-hero .hero-container { padding-top: 12px !important; }
	.entry-hero .entry-header { padding: 16px 12px !important; border-radius: 12px; }
}

/* 2.10.6: pages that hide the title (e.g. About, which has its own H1 in the page design) start
   right under the menu, with the same small gap as the title box on other pages. */
body.page:not(:has(.entry-hero)) .content-area { margin-top: 16px; }
body.page:not(:has(.entry-hero)) #primary > .content-container { margin-top: 0; }
body.page:not(:has(.entry-hero)) .entry-content-wrap { padding-top: 0; }
@media (max-width: 767px) {
	body.page:not(:has(.entry-hero)) .content-area { margin-top: 12px; }
}

/* 2.10.7: same small gap under the title box on every page as on the category pages
   (Kadence's default top margin of the content area is about 5rem). */
body:not(.home) .entry-hero ~ .content-area,
body:not(.home) .entry-hero ~ #primary { margin-top: 12px !important; }

/* Kit strips: books inside a set (kit page) and "Beli set lengkap" (book page). */
.pme-kit { display: block; margin: 14px 0 16px; padding: 10px 12px; background: var(--pme-blue-soft); border-radius: var(--pme-radius); color: var(--pme-blue); font-size: 13.5px; line-height: 1.4; }
.pme-kit svg { flex: none; vertical-align: -4px; }
.pme-kit__title { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pme-kit__chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pme-kit__chips a { display: inline-block; padding: 4px 11px; background: var(--pme-white); border-radius: 999px; color: var(--pme-blue); text-decoration: none; }
.pme-kit__chips a:hover { background: var(--pme-blue); color: var(--pme-white); }
a.pme-kit--in { display: flex; align-items: center; gap: 8px; text-decoration: none; }
a.pme-kit--in:hover { background: #E2EAF7; }
.pme-kit__text { flex: 1; min-width: 0; }
.pme-kit__price, .pme-kit__price .amount { color: var(--pme-red); font-weight: 700; white-space: nowrap; }
.pme-kit__price del { color: var(--pme-muted); font-weight: 400; }

/* Product page type tag above the title (same word as the card pill). */
.pme-ptag { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--pme-muted); letter-spacing: .02em; }
.pme-ptag__type { display: inline-block; padding: 2px 8px; margin-right: 2px; border-radius: 4px; background: var(--pme-blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.pme-ptag--inc { display: inline-block; padding: 3px 9px; border-radius: 4px; background: var(--pme-blue-soft); color: var(--pme-blue); font-size: 12px; letter-spacing: 0; }

/* 2.11.40 One series page for every level: level chips, a heading per level, short "Semua" list. */
/* 2.17.18 (owner, 20 Nov 2026): the level chips bar looks and sticks like the section bar (Sekilas / Apa di dalam …):
   one white pill box with pill links, the chosen level solid blue; one row that scrolls sideways (with ‹ ›) when the
   levels don't fit, like the section bar; sticks under the WordPress admin bar for staff. */
.pme-lvchips { position: sticky; top: 0; z-index: 6; margin: 4px 0 6px; padding: 8px 0; border: 0; background: var(--pme-white); }   /* Cozy tint + blur: assets/cozy.css, like the section bar */
body.admin-bar .pme-lvchips { top: var(--wp-admin--admin-bar--height, 32px); }
.pme-lvchips ul { display: flex; flex-wrap: nowrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0; padding: 5px; list-style: none; background: var(--pme-white); border-radius: 999px; box-shadow: var(--pmc-sh, 0 1px 2px rgba(11, 61, 145, .05), 0 8px 24px rgba(11, 61, 145, .07)); overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pme-lvchips ul::-webkit-scrollbar { display: none; }
.pme-lvchips li { margin: 0; flex: 0 0 auto; }
.pme-lvchips a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--pmc-ink, var(--pme-ink)); font-size: 14px; font-weight: 600; line-height: 1.6; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.pme-lvchips a span { color: var(--pme-muted); font-size: 12.5px; font-weight: 500; }
.pme-lvchips a:hover, .pme-lvchips a:focus-visible, .pme-lvchips a[aria-current="true"] { background: var(--pme-blue); color: var(--pme-white); }
.pme-lvchips a:hover span, .pme-lvchips a:focus-visible span, .pme-lvchips a[aria-current="true"] span { color: rgba(255, 255, 255, .8); }
.woocommerce div.product form.grouped_form table.group_table tr.is-off { display: none; }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv th { padding: 18px 4px 6px; border: 0; background: transparent; text-align: left; }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv:first-child th { padding-top: 6px; }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-note td { padding: 4px 4px 8px; border: 0; background: transparent; }
.pme-glv-note__t { margin: 0; padding: 10px 14px; background: var(--pme-blue-soft); border-left: 3px solid var(--pme-blue); border-radius: var(--pme-radius); color: var(--pme-ink); font-size: 14px; line-height: 1.45; }
.pme-glv-note__t a { color: var(--pme-blue); font-weight: 700; }
.pme-glv__t { margin: 0; color: var(--pme-blue); font-size: 15px; font-weight: 800; line-height: 1.3; }
.pme-glv__t span { margin-left: 6px; color: var(--pme-muted); font-size: 12.5px; font-weight: 500; }
.woocommerce div.product form.grouped_form table.group_table tr.pme-glv-more td { padding: 8px 4px 4px; border: 0; }
.pme-glv-more__btn { width: 100%; min-height: 44px; border: 1px solid var(--pme-blue); border-radius: var(--pme-radius); background: var(--pme-blue-soft); color: var(--pme-blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.pme-glv-more__btn:hover { background: var(--pme-blue); color: var(--pme-white); }

/* 2.11.41 Book page: back to its series page. */
.pme-backseries { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 0 0 10px; padding: 7px 12px; border: 1px solid var(--pme-line); border-radius: 999px; background: var(--pme-blue-soft); color: var(--pme-blue); font-size: 13px; line-height: 1.3; text-decoration: none; }
.pme-backseries:hover { border-color: var(--pme-blue); color: var(--pme-blue-dark); }
.pme-backseries svg { flex: none; }
.pme-backseries span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pme-backseries__tag { display: inline-block; margin: 0 2px; padding: 1px 7px; border-radius: 4px; background: var(--pme-blue); color: var(--pme-white); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; vertical-align: 1px; }

/* 2.11.55 Shop messages ("… added to your cart", errors, info): a compact white card inside the
   page width – round icon, the text, a blue outline button on the right – instead of a full-width
   grey band with a red button. Red stays for buy buttons only. */
.woocommerce-notices-wrapper:not(:empty) { max-width: var(--global-content-width, 1290px); margin: 16px auto; }
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
	--pme-n: var(--pme-green);
	position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
	margin: 0 0 10px; padding: 10px 12px 10px 50px;
	border: 1px solid var(--pme-line); border-radius: 10px;
	background: var(--pme-white); color: var(--pme-ink);
	font-size: 14.5px; line-height: 1.45; list-style: none;
}
.woocommerce-info, .woocommerce .woocommerce-info { --pme-n: var(--pme-blue); border-color: #D5E0F3; background: var(--pme-blue-soft); }
.woocommerce-error, .woocommerce .woocommerce-error { --pme-n: var(--pme-red); border-color: #F2C9CF; background: #FDF4F5; }
.woocommerce-notices-wrapper > :last-child { margin-bottom: 0; }
/* Round icon on the left: white tick (added / saved), "i" (info) or "!" (error). */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	position: absolute !important; left: 14px; top: 50%; transform: translateY(-50%);
	display: block; width: 24px; height: 24px; margin: 0 !important; border-radius: 50%;
	background: var(--pme-n) center / 15px no-repeat; color: var(--pme-white) !important;
	font: 700 14px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; text-align: center;
}
.woocommerce-message::before { content: "" !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.woocommerce-info::before { content: "i" !important; font-family: Georgia, serif !important; }
.woocommerce-error::before { content: "!" !important; }
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { content: none !important; }
/* "View cart" / "Lihat troli": always on the right, whichever side WooCommerce writes it. */
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button,
.woocommerce .woocommerce-message .button, .woocommerce .woocommerce-info .button {
	order: 2; float: none !important; flex: none; display: inline-flex; align-items: center; margin: 0 0 0 auto !important;
	min-height: 36px; padding: 6px 16px !important; border: 1px solid var(--pme-blue) !important; border-radius: 999px !important;
	background: var(--pme-white) !important; color: var(--pme-blue) !important;
	font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.4 !important; text-decoration: none; white-space: nowrap;
}
.woocommerce-message .button:hover, .woocommerce-info .button:hover, .woocommerce-error .button:hover {
	background: var(--pme-blue) !important; color: var(--pme-white) !important;
}
.woocommerce-error li { margin: 0; }
@media (max-width: 767px) {
	.woocommerce-notices-wrapper:not(:empty) { margin: 12px auto; }
	.woocommerce-message, .woocommerce-info, .woocommerce-error { font-size: 14px; }
	/* Text wraps and the button drops below: keep the icon beside the first line. */
	.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 11px; transform: none; }
}

/* "Ke atas" (back to top): replaces Kadence's square button. White circle with a blue arrow and a
 * blue ring that fills as the shopper reads down the page (owner picked this look, 27 Oct). Flat
 * brand: no shadow; white reads on the page and on the blue footer. Sits above the phone buy bar. */
.pme-totop {
	position: fixed; right: 20px; bottom: 24px; z-index: 890;
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--pme-line) !important; border-radius: 50% !important;
	background: var(--pme-white) !important; color: var(--pme-blue) !important; cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, background-color .15s ease, visibility 0s linear .2s;
}
.pme-totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, background-color .15s ease; }
.pme-totop:hover { background: var(--pme-blue-soft) !important; }
.pme-totop:focus-visible { outline: 3px solid var(--pme-blue); outline-offset: 3px; }
.pme-totop > svg { grid-area: 1 / 1; display: block; }
.pme-totop__ring { width: 44px; height: 44px; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.pme-totop__ring circle { stroke: transparent; }
.pme-totop__ring .pme-totop__bar { stroke: var(--pme-blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.pme-totop__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.pme-totop:hover .pme-totop__arrow { transform: translateY(-2px); }
@media (max-width: 767px) {
	.pme-totop { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
	.pme-totop__ring { width: 40px; height: 40px; }
	body.pme-buybar-on .pme-totop { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* 2.17.14: 720–767 px, single books: the sticky side card already shows Tambah ke troli, so no phone buy bar as well
   (pme-has-side set by pme.js initProductLayout). Series / variable / stationery pages keep the bar. */
@media (min-width: 720px) and (max-width: 767px) {
	body.pme-has-side.pme-buybar-on .pme-buybar { display: none; }
	body.pme-has-side.pme-buybar-on { padding-bottom: 0; }
	body.pme-has-side.pme-buybar-on .pme-totop { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.pme-totop, .pme-totop.is-on, .pme-totop__arrow { transition: none; }
}
@media print { .pme-totop { display: none !important; } }

/* ==========================================================================
   2.12.0 New book page (inc/book-page.php): only on products with book page fields
   ========================================================================== */
.pme-bp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.pme-bp-chips li { margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--pme-blue-soft); color: var(--pme-blue); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.pme-bp-lead { margin: 4px 0 16px; padding: 12px 16px; border-left: 3px solid var(--pme-blue); background: var(--pme-paper); border-radius: 0 var(--pme-radius) var(--pme-radius) 0; }
.pme-bp-lead p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--pme-ink); }
.pme-bp-lead p:last-child { margin: 0; }
.pme-bp-lead ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pme-bp-lead li { position: relative; margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.5; }
.pme-bp-lead li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--pme-blue); -webkit-mask: var(--pme-check-icon) center / contain no-repeat; mask: var(--pme-check-icon) center / contain no-repeat; }

.pme-bp { clear: both; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-items: start; margin: 8px 0 40px; }
.pme-bp-jump { grid-column: 1 / -1; position: sticky; top: 0; z-index: 6; margin: 0 0 24px; background: var(--pme-white); border-top: 1px solid var(--pme-line); border-bottom: 1px solid var(--pme-line); }
.pme-bp-jump__in { position: relative; }
.pme-bp-jump__more { display: none; }
.pme-bp-main { min-width: 0; max-width: 820px; }
.pme-bp-side { position: sticky; top: 72px; }
.pme-bp-card { border: 1px solid var(--pme-line); border-radius: 8px; background: var(--pme-white); overflow: hidden; }
.pme-bp-card__buy-box { padding: 14px 16px; }
.pme-bp-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
/* Thumbnails in the side card and the set list: a fixed 1:1 box (the image sits in WooCommerce's cover wrapper). */
.pme-bp-card__head > :first-child, .pme-bp-kit a > :first-child { flex: 0 0 56px; width: 56px; height: 56px; padding: 4px; display: grid; place-items: center; overflow: hidden; background: var(--pme-cover-bg); border-radius: 6px; }
.pme-bp-card__head .pme-cover__book, .pme-bp-kit .pme-cover__book { display: contents; }
.pme-bp-card__head img, .pme-bp-kit img { display: block; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.pme-bp-card__head strong { font-size: 13.5px; line-height: 1.3; }
.pme-bp-card__price { font-size: 22px; font-weight: 800; color: var(--pme-red); }
.pme-bp-card__price del { font-size: 15px; font-weight: 600; color: var(--pme-muted); }
.pme-bp-card .stock { margin: 2px 0 10px; font-size: 14px; font-weight: 600; }
.pme-bp-card .stock.in-stock { color: var(--pme-green); }
.pme-bp-card .stock.out-of-stock { color: var(--pme-red); }
.pme-bp-card__buy { display: block; width: 100%; text-align: center; }
/* Same look as the buy box button: height, corners, weight, cart icon, shadow. */
.pme-bp-card a.pme-bp-card__buy { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; box-shadow: 0 6px 16px rgba(200, 16, 46, 0.22); transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pme-bp-card a.pme-bp-card__buy::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--pme-cart-icon) center / contain no-repeat; mask: var(--pme-cart-icon) center / contain no-repeat; }
.pme-bp-card a.pme-bp-card__buy:hover { box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .pme-bp-card a.pme-bp-card__buy:hover { transform: none; } }
.pme-bp-card .pme-book { margin: 0; border: 0; border-top: 1px solid var(--pme-line); border-radius: 0; }
.pme-bp-jump ul { display: flex; gap: 4px; margin: 0; padding: 8px 4px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pme-bp-jump ul::-webkit-scrollbar { display: none; }
.pme-bp-jump li { margin: 0; flex: 0 0 auto; }
.pme-bp-jump a { display: block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--pme-muted); text-decoration: none; white-space: nowrap; }
.pme-bp-jump a { transition: background .15s, color .15s; }
.pme-bp-jump a:hover, .pme-bp-jump a:focus-visible, .pme-bp-jump a.is-on { background: var(--pme-blue); color: var(--pme-white); }
/* Wide screens: Butiran buku lives in the side card, not in the buy box. */
@media (min-width: 1025px) {
	.pme-bp-on .summary .pme-book { display: none; }
}
@media (max-width: 1024px) {
	.pme-bp { grid-template-columns: minmax(0, 1fr); }
	.pme-bp-side { display: none; }
	/* The menu scrolls sideways: a fade and a › on the edge that has more (classes set by pme.js). */
	.pme-bp-jump__in::before, .pme-bp-jump__in::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
	.pme-bp-jump__in::before { left: 0; background: linear-gradient(90deg, var(--pme-white) 30%, rgba(255, 255, 255, 0)); }
	.pme-bp-jump__in::after { right: 0; background: linear-gradient(270deg, var(--pme-white) 30%, rgba(255, 255, 255, 0)); }
	.pme-bp-jump__in.is-l::before, .pme-bp-jump__in.is-r::after { opacity: 1; }
	.pme-bp-jump__more { display: grid; place-items: center; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; min-height: 0; padding: 0; border: 1px solid var(--pme-line); border-radius: 50%; background: var(--pme-white); color: var(--pme-blue); font-size: 16px; font-weight: 800; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .2s; }
	.pme-bp-jump__in.is-r .pme-bp-jump__more { opacity: 1; pointer-events: auto; }
}
.pme-bp-sec { margin: 0 0 40px; scroll-margin-top: 64px; }
.pme-bp-sec > h2 { margin: 0 0 4px; font-size: 23px; line-height: 1.25; color: var(--pme-blue); }
.pme-bp-sub { margin: 0 0 14px; font-size: 14.5px; color: var(--pme-muted); }
.pme-bp-sec > h2 + :not(.pme-bp-sub) { margin-top: 14px; }

.pme-bp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pme-bp-facts div { padding: 11px 14px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); }
.pme-bp-facts dt { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--pme-muted); }
.pme-bp-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--pme-ink); }

.pme-bp-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: pmef; }
.pme-bp-feat li { position: relative; margin: 0; padding: 14px 14px 14px 62px; border: 1px solid #E9EEF8; border-radius: var(--pme-radius); background: var(--pme-paper); counter-increment: pmef; }
.pme-bp-feat li::before { content: counter(pmef); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 9px; background: var(--pme-blue); color: var(--pme-white); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.pme-bp-feat strong, .pme-bp-aud strong { display: block; margin-bottom: 2px; font-size: 15.5px; color: var(--pme-ink); }
.pme-bp-feat span, .pme-bp-aud span { display: block; font-size: 14.5px; line-height: 1.5; color: #3D4658; }

.pme-bp-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pme-bp-pages li { margin: 0; }
.pme-bp-scroll { position: relative; }
.pme-bp-scroll__btn { display: none; }
.pme-bp-pages a { position: relative; display: block; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); overflow: hidden; background: var(--pme-cover-bg); }
.pme-bp-pages img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pme-bp-pages span { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 600; color: var(--pme-ink); }

.pme-bp-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pme-bp-aud li { margin: 0; padding: 14px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); }

.pme-bp-authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.pme-bp-authors li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); }
.pme-bp-av { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--pme-blue-soft); color: var(--pme-blue); font-weight: 800; font-size: 14px; }
.pme-bp-authors strong { display: block; font-size: 15px; }
.pme-bp-authors li > span > span { display: block; font-size: 13.5px; line-height: 1.45; color: #3D4658; }
.pme-bp-badge { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 4px; background: var(--pme-hl); color: #3a2e00; font-size: 11.5px; font-style: normal; font-weight: 700; }

.pme-bp-kit { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pme-bp-kit li { margin: 0; }
.pme-bp-kit a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); color: var(--pme-ink); text-decoration: none; }
.pme-bp-kit a:hover { border-color: var(--pme-blue); }
.pme-bp-kit__name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.pme-bp-kit__price { font-weight: 700; color: var(--pme-red); white-space: nowrap; }
.pme-bp-save { margin: 10px 0 0; font-weight: 700; color: var(--pme-green); }

.pme-bp-toc-card { padding: 6px 18px 12px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); }
.pme-bp-toc { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.pme-bp-toc > li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 11px 0; border-top: 1px solid #EEF2F8; }
.pme-bp-toc > li:first-child { border-top: 0; }
.pme-bp-toc__num { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: var(--pme-blue-soft); color: var(--pme-blue); font-size: 12.5px; font-weight: 700; line-height: 1; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pme-bp-toc__body { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.pme-bp-toc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.pme-bp-toc__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--pme-ink); }
.pme-bp-toc__pg { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: #F2F5FB; color: var(--pme-muted); font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.pme-bp-toc__sub { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--pme-muted); }
.pme-bp-toc__nowrap { white-space: nowrap; }
.pme-bp-toc-card.is-collapsed .pme-bp-toc__extra { display: none; }
.pme-bp-toc__toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin: 8px 0 0; padding: 10px 14px !important; border: 0 !important; border-radius: 12px !important; background: #F3F6FC !important; color: var(--pme-blue) !important; box-shadow: none !important; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .15s ease; }
.pme-bp-toc__toggle:hover, .pme-bp-toc__toggle:focus-visible { background: var(--pme-blue-soft) !important; color: var(--pme-blue) !important; box-shadow: none !important; }
.pme-bp-toc__toggle[hidden] { display: none; }
.pme-bp-more { margin-top: 8px; }
.pme-bp-more > summary { cursor: pointer; display: inline-block; font-weight: 700; font-size: 14px; color: var(--pme-blue); list-style: none; }
.pme-bp-more > summary::-webkit-details-marker { display: none; }
.pme-bp-more[open] > summary { margin-bottom: 8px; }

.pme-bp-faq { margin: 0 0 8px; border: 1px solid var(--pme-line); border-radius: var(--pme-radius); background: var(--pme-white); }
.pme-bp-faq > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 600; list-style: none; }
.pme-bp-faq > summary::-webkit-details-marker { display: none; }
.pme-bp-faq > summary::after { content: "+"; color: var(--pme-blue); font-weight: 800; }
.pme-bp-faq[open] > summary::after { content: "\2212"; }
.pme-bp-faq > div { padding: 0 16px 12px; font-size: 15px; color: #3D4658; }
.pme-bp-faq > div p { margin: 0 0 8px; }
.pme-bp-faq > div p:last-child { margin: 0; }
.pme-bp-about p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; color: #3D4658; }

@media (max-width: 767px) {
	.pme-bp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pme-bp-feat, .pme-bp-aud, .pme-bp-authors { grid-template-columns: 1fr; }
	.pme-bp-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.pme-bp-pages li { flex: 0 0 70%; scroll-snap-align: start; }
	.pme-bp-pages { scrollbar-width: none; scroll-behavior: smooth; }
	.pme-bp-pages::-webkit-scrollbar { display: none; }
	/* Round arrows on the side that has more pages (classes set by pme.js). */
	.pme-bp-scroll__btn { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; min-height: 0; padding: 0; border: 1px solid var(--pme-line); border-radius: 50%; background: var(--pme-white); color: var(--pme-blue); font-size: 22px; font-weight: 800; line-height: 1; box-shadow: 0 4px 12px rgba(16, 24, 40, .16); opacity: 0; pointer-events: none; transition: opacity .2s; }
	.pme-bp-scroll__btn.is-prev { left: 6px; }
	.pme-bp-scroll__btn.is-next { right: 6px; }
	.pme-bp-scroll.is-l .is-prev, .pme-bp-scroll.is-r .is-next { opacity: 1; pointer-events: auto; }
	.pme-bp-sec > h2 { font-size: 21px; }
}

/* 2.15.0 🔥 LARIS (hot sellers, inc/hot.php) */
.pme-gtag--hot { background: var(--pme-red); }
.pme-ptag__type--hot { background: var(--pme-red); }
.pme-lvhot { font-weight: 400; margin-right: 1px; }
/* Sold-out rows and replaced series (item 23b / 23c, 2.17.40) */
tr.pme-gsold .pme-gthumb { opacity: .6; filter: grayscale(.8); }
.pme-sold-newer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid #F0DDB2; border-radius: 10px; background: #FFF6E2; color: #7A4B00; }
.pme-sold-newer__t { margin: 0; font-size: 14px; line-height: 1.45; }
.pme-sold-newer__go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--pme-blue); color: var(--pme-white) !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.pme-sold-newer__go:hover, .pme-sold-newer__go:focus-visible { background: var(--pme-blue-dark); }

/* 2.17.70 (UI round 1, A3): series pages (grouped list) on phones / tablets: the back-to-top ring sat on the + / -
   quantity steppers at the right edge of every row. The level tabs + header come back on a small scroll up, so the
   ring is not needed there. */
@media (max-width: 1024px) {
	body.single-product:has(form.grouped_form) .pme-totop { display: none !important; }
}

/* 2.17.70 (UI round 1, B6): series name in the back link, plain bold (the pill already says where it goes). */
.pme-backseries__name { font-weight: 700; color: var(--pme-blue); }

/* 2.17.71 (UI round 1, C11): subject chips on listings, phones / tablets only (desktop: sidebar Subjek filter). */
@media (min-width: 1025px) {
	.pme-chiprow--subjects { display: none; }
}

/* 2.17.73: Checkout Trust Strip (product pages & checkout; lives in style.css so PME_STORE_SKIN=off stays styled). */
.pme-trust-strip {
	margin-top: 12px;
	background: #F8FAFE;
	border: 1px solid var(--pmc-line, #DCE3EF);
	border-radius: var(--pmc-rs, 11px);
	padding: 11px 12px;
	display: grid;
	gap: 9px;
}
.pme-trust-strip--checkout {
	margin-top: 0;
	background: #fff;
}
.pme-trust-strip__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px 8px;
	flex-wrap: wrap;
}
.pme-trust-strip__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--pmc-ink, #16223A);
}
.pme-trust-strip__label svg {
	width: 15px;
	height: 15px;
	color: #165B2E;
	flex: none;
}
.pme-trust-strip__sub {
	font-size: 11.5px;
	color: var(--pmc-muted, #66728A);
	font-weight: 500;
}
.pme-trust-strip__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.pme-trust-strip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	padding: 3px 7px;
	background: #fff;
	border: 1px solid var(--pmc-line, #DCE3EF);
	border-radius: 6px;
}
.pme-trust-strip__badge--text {
	font-size: 11px;
	font-weight: 600;
	color: var(--pmc-ink, #16223A);
}
.woocommerce .pme-trust-strip__badge img,
.pme-trust-strip__badge img {
	display: block;
	height: 15px !important;
	width: auto !important;
	max-width: 56px;
	object-fit: contain;
	margin: 0 !important;
}
.pme-trust-strip__points {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding: 8px 0 0 !important;
	border-top: 1px dashed var(--pmc-line, #DCE3EF);
	list-style: none !important;
	margin: 0 !important;
}
.pme-trust-strip__points li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pmc-muted, #66728A);
	margin: 0 !important;
}
.pme-trust-strip__points svg {
	width: 14px;
	height: 14px;
	color: var(--pme-blue, #0B3D91);
	flex: none;
}
@media (max-width: 767px) {
	.pme-trust-strip { padding: 10px; gap: 8px; }
	.pme-trust-strip__badge { height: 24px; padding: 3px 6px; }
	.woocommerce .pme-trust-strip__badge img,
	.pme-trust-strip__badge img { height: 13px !important; max-width: 48px; }
	.pme-trust-strip__points { gap: 5px 10px; }
	.pme-trust-strip__points li { font-size: 11.5px; }
}
