/* Cart page (2.17.36, inc/cart-page.php + assets/cart-page.js): empty cart screen (items 28, 30), add-on row (34). */

/* While our empty screen shows, WooCommerce's own empty-cart message and the breadcrumb are hidden (30d). */
body.pme-cpg-is-empty .wp-block-woocommerce-empty-cart-block,
body.woocommerce-cart .kadence-breadcrumbs,
body.woocommerce-cart .rank-math-breadcrumb,
body.woocommerce-cart .woocommerce-breadcrumb,
body.pme-cpg-is-empty.woocommerce-cart .entry-header,
body.pme-cpg-is-empty.woocommerce-cart .page-title { display: none !important; }   /* our heading says it: Pilih tahap on the first screen (30d) */

.pme-cpg-empty { max-width: 760px; margin: 0 auto 8px; }
.pme-cpg-empty[hidden] { display: none !important; }
.pme-cpg-empty__top { text-align: center; padding: 4px 0 14px; }
.pme-cpg-empty__tile { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #FDE4EA; color: #C8456A; margin-bottom: 10px; }
.pme-cpg-empty__h { margin: 0 0 6px !important; font-size: 21px !important; line-height: 1.25; color: var(--pme-blue, #0B3D91); }
.pme-cpg-empty__sub { margin: 0 auto 14px !important; max-width: 30em; font-size: 15px; line-height: 1.5; color: var(--pme-muted, #5B6475); }
.pme-cpg-empty__search { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--pme-blue, #0B3D91) !important; color: #fff !important; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 61, 145, .22); }
.pme-cpg-empty__search svg { width: 18px; height: 18px; }

.pme-cpg-block { margin: 0 0 14px; padding: 14px 14px 12px; background: #fff; border-radius: var(--pmc-r, 18px); box-shadow: var(--pmc-sh, 0 1px 3px rgba(11, 61, 145, .08)); }
.pme-cpg-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pme-cpg-block__head a { flex: none; font-size: 14px; font-weight: 700; color: var(--pme-blue, #0B3D91) !important; text-decoration: none !important; }
.pme-cpg-block__h { margin: 0 0 10px !important; font-size: 18px !important; line-height: 1.3; color: var(--pme-ink, #1A1F2B); }
.pme-cpg-block__head .pme-cpg-block__h { margin: 0 !important; }

/* Pilih tahap: one white card, 3 groups, 4 per row, 46 px icons with the label under, no box per tile (28b-28d). */
.pme-cpg-levels__g + .pme-cpg-levels__g { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pmc-line, #DCE3EF); }
.pme-cpg-levels__g h3 { margin: 0 0 8px !important; font-family: inherit !important; font-size: 12.5px !important; font-weight: 700; letter-spacing: .02em; color: var(--pme-muted, #5B6475); text-align: left; }
.pme-cpg-levels__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.pme-cpg-levels__grid a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; text-decoration: none !important; color: var(--pme-ink, #1A1F2B) !important; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.pme-cpg-levels__grid i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #16223A; }
.pme-cpg-levels__grid i svg { width: 34px; height: 34px; }
@media (min-width: 768px) { .pme-cpg-empty:not(.pme-cpg-empty--drawer) .pme-cpg-levels__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Empty slide-out cart (item 28): same pieces, drawer width. */
.pme-drawer__empty.pme-cpg-empty--drawer { padding: 8px 0 16px; text-align: left; color: inherit; }
.pme-cpg-empty--drawer .pme-cpg-empty__top { padding-top: 4px; }
.pme-cpg-empty--drawer .pme-cpg-block { box-shadow: none; border: 1px solid var(--pmc-line, #DCE3EF); }
.pme-cpg-empty--drawer > .pme-btn { display: flex; width: 100%; justify-content: center; }

/* Swipe rows: Paling laris minggu ini, Baru dilihat (30a, 30b). */
.pme-cpg-row { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.pme-cpg-card { position: relative; flex: 0 0 132px; margin: 0; scroll-snap-align: start; }
.pme-cpg-card a { display: block; text-decoration: none !important; color: var(--pme-ink, #1A1F2B) !important; }
.pme-cpg-card__img { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #F3F6FB; }
.pme-cpg-card__img img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; }
.pme-cpg-card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 13px; line-height: 1.3; font-weight: 600; }
.pme-cpg-card__price { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--pme-red, #C8102E); }
.pme-cpg-card__price del { color: var(--pme-muted, #5B6475); font-weight: 400; }
.pme-cpg-card__from { color: var(--pme-muted, #5B6475); font-weight: 400; font-size: 12px; }
.pme-cpg-card__add,
.pme-cpg-addon__add { position: absolute; width: 34px; height: 34px; min-height: 0 !important; padding: 0 !important; border: 0; border-radius: 50%; background: var(--pme-blue, #0B3D91) !important; color: #fff !important; font-size: 22px; line-height: 1; font-weight: 600; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 8px rgba(11, 61, 145, .3); }
.pme-cpg-card__add { right: 6px; top: calc(132px * 4 / 3 - 40px); }
.pme-cpg-card__add.is-busy, .pme-cpg-addon__add.is-busy { opacity: .6; }
.pme-cpg-card__add.is-done, .pme-cpg-addon__add.is-done { background: #1E7A3C !important; font-size: 16px; }
.pme-cpg-recent[hidden] { display: none !important; }

/* Lengkapkan troli anda (34): right under the cart items. */
.pme-cpg-addon { margin: 12px 0 16px; padding: 12px 14px; background: #FFF8E6; border-radius: var(--pmc-rs, 11px); }
.pme-cpg-addon[hidden] { display: none !important; }
.pme-cpg-addon__h { margin: 0 0 2px !important; font-size: 16px !important; color: var(--pme-ink, #1A1F2B); }
.pme-cpg-addon__t { margin: 0 0 10px !important; font-size: 13.5px; line-height: 1.4; color: #7A4A00; }
.pme-cpg-addon__list { list-style: none; margin: 0; padding: 0 0 2px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.pme-cpg-addon__list li { position: relative; flex: 0 0 112px; margin: 0; padding: 8px; background: #fff; border-radius: 10px; scroll-snap-align: start; }
.pme-cpg-addon__list a { display: block; text-decoration: none !important; color: var(--pme-ink, #1A1F2B) !important; }
.pme-cpg-addon__list img, .pme-cpg-addon__noimg { display: block; width: 100% !important; aspect-ratio: 1; object-fit: contain; margin: 0 !important; border-radius: 6px; background: #F6F7FA; }
.pme-cpg-addon__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; font-size: 12px; line-height: 1.3; }
.pme-cpg-addon__price { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--pme-red, #C8102E); }
.pme-cpg-addon__add { right: 6px; bottom: 6px; width: 30px; height: 30px; font-size: 20px; }
.pme-cpg-addon__list a.pme-cpg-addon__go { display: grid; color: #fff !important; text-decoration: none !important; font-size: 24px; padding-bottom: 3px !important; }   /* with options: to its page (2.17.37) */
.pme-cpg-addon__price { padding-right: 32px; }   /* never under the round button ("Dari RM89.90" wraps) */

/* Bottom bar on the cart (30e): WooCommerce's sticky "Teruskan ke pembayaran" bar on phones sits above it. */
@media (max-width: 767px) {
	body.pme-has-bnav .wc-block-cart__submit-container--sticky { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
}
