/* ============================================================
 * BIOTA — Shop / Catalogue (design 1a port)
 * Filter rail + product grid, live filtering, sort, mobile filter sheet.
 * Everything scoped under #biota-shop so the generic class names
 * (.wrap, .grid, .price, .shop, .rail) never leak to other pages.
 * Nav + footer are the theme's own parts (header.html / footer.html).
 * Tokens: #102C57 navy · #2563EB action · #25D366 WhatsApp
 * ============================================================ */
#biota-shop {
	font-family: 'DM Sans', system-ui, sans-serif;
	color: #1a1a1a;
	background: #fff;
}
#biota-shop h1,
#biota-shop h2,
#biota-shop h3 {
	font-family: 'Poppins', sans-serif;
	letter-spacing: -.02em;
	margin: 0;
}
#biota-shop a { color: inherit; text-decoration: none; }

#biota-shop .wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
#biota-shop .price { font-family: 'Poppins', sans-serif; font-weight: 600; color: #102C57; white-space: nowrap; }

/* --- Breadcrumb --- */
#biota-shop .shop-crumbs { padding-top: 18px; font-size: 12.5px; color: #888; }
#biota-shop .shop-crumbs .cur { color: #1a1a1a; }

/* --- Page header + trust badges --- */
#biota-shop .shop-head { padding-top: 22px; }
#biota-shop .shop-eyebrow {
	font-family: 'Poppins', sans-serif; font-size: 11.5px; letter-spacing: .16em;
	text-transform: uppercase; color: #102C57; margin-bottom: 10px;
}
#biota-shop .shop-title { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
#biota-shop .tbadges { display: flex; flex-wrap: wrap; gap: 8px; }
#biota-shop .tbadge {
	display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
	padding: 7px 14px 7px 10px; white-space: nowrap;
}
#biota-shop .tbadge .iw {
	display: flex; width: 26px; height: 26px; border-radius: 999px; background: #fff;
	align-items: center; justify-content: center; flex: none;
}
#biota-shop .tbadge .tt { display: flex; flex-direction: column; line-height: 1.25; }
#biota-shop .tbadge .tt b { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12px; }
#biota-shop .tbadge .sub { font-size: 10.5px; color: #5f6570; }
#biota-shop .tb-blue { background: #eaf0f9; border: 1px solid #dce6f5; }
#biota-shop .tb-green { background: #e7f8ee; border: 1px solid #c7ecd6; }

/* --- Catalogue layout --- */
#biota-shop .shop { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 24px 0 60px; align-items: start; }
#biota-shop .rail { position: sticky; top: 82px; }
#biota-shop .fgroup { padding-bottom: 16px; border-bottom: 1px solid #eef0f3; margin-bottom: 16px; }
#biota-shop .fgroup:last-child { border-bottom: none; margin-bottom: 0; }
#biota-shop .fhead { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12.5px; margin-bottom: 11px; }
#biota-shop .fopt {
	display: flex; align-items: center; gap: 9px; font-size: 13px; color: #555; padding: 5px 0;
	background: none; border: none; cursor: pointer; text-align: left; width: 100%;
	/* A <button> does not inherit font-family — without this the filter labels
	   fall back to the UA's system font while the rest of the rail is DM Sans. */
	font-family: inherit;
}
#biota-shop .fopt .box {
	width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #c8ccd2; flex: none;
	display: flex; align-items: center; justify-content: center; transition: .15s;
}
#biota-shop .fopt .box svg { opacity: 0; }
#biota-shop .fopt-on .box { background: #102C57; border-color: #102C57; }
#biota-shop .fopt-on .box svg { opacity: 1; }
#biota-shop .fopt-on { color: #102C57; font-weight: 600; }
#biota-shop .fcount { color: #767676; font-weight: 400; }

/* --- Grid toolbar --- */
#biota-shop .shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin-bottom: 16px; flex-wrap: wrap;
}
#biota-shop .shop-count { font-size: 12.5px; color: #767676; }
#biota-shop .shop-count b { color: #1a1a1a; }
#biota-shop .shop-sort {
	font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 500; color: #1a1a1a;
	border: 1.5px solid #e2e5ea; border-radius: 9px; padding: 8px 30px 8px 11px; cursor: pointer;
	/* Something upstream sets appearance:none on selects, which removes the
	   native dropdown arrow — declare it here so the control does not depend on
	   that, and draw our own chevron in its place. */
	-webkit-appearance: none;
	appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23767676' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 11px 11px;
}
#biota-shop .shop-sort:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

/* --- Product card --- */
#biota-shop .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#biota-shop .pcard {
	background: #fff; border: 1px solid #eef0f3; border-radius: 16px; overflow: hidden; display: block;
	transition: transform .2s, box-shadow .2s;
}
#biota-shop .pcard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(16, 44, 87, .24); }
#biota-shop .pimg { aspect-ratio: 1/1; background: #eef1f5; position: relative; overflow: hidden; }
#biota-shop .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
#biota-shop .pbadge {
	position: absolute; top: 8px; right: 8px; background: #fdecec; color: #d0342c;
	font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
}
/* Title and price carry the card, so they run larger than the surrounding
   detail; the text block is tightened to keep the card compact at that scale.
   One responsive card — these sizes apply at every breakpoint. */
#biota-shop .pbody { padding: 11px 14px 12px; }
/* Single line, cut with an ellipsis. Keeps every card the same height and
   stops a long name blowing out its row. Product names are being shortened so
   they fit — until then a few will truncate, which is the intended behaviour. */
#biota-shop .pname {
	font-size: 15px; font-weight: 600; line-height: 1.25; margin-bottom: 2px; color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* One line, ellipsised — same treatment as the title. Truncating in CSS rather
   than PHP means the cut follows the actual card width, so wide breakpoints
   show more text instead of a fixed, prematurely-cut string. min-height keeps
   the row reserved if a product ever has no tagline at all. */
#biota-shop .ptag {
	font-size: 11.5px; color: #767676; margin-bottom: 6px; min-height: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#biota-shop .pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
#biota-shop .pprice .price { font-size: 17px; }
#biota-shop .pstrike { font-size: 11px; color: #aaa; text-decoration: line-through; white-space: nowrap; }
#biota-shop .pmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#biota-shop .pmeta-left { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
#biota-shop .rpill {
	display: inline-flex; align-items: center; gap: 4px; background: #FFF7E6; border: 1px solid #f5d99b;
	border-radius: 999px; padding: 3px 9px;
}
#biota-shop .rpill b { font-size: 12px; color: #7a5610; }
#biota-shop .sold { font-size: 11px; color: #767676; white-space: nowrap; }
#biota-shop .padd {
	background: #2563EB; color: #fff; width: 28px; height: 28px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none;
}

/* --- Empty state --- */
#biota-shop .shop-empty { display: none; text-align: center; padding: 50px 20px; }
#biota-shop .shop-empty h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
#biota-shop .shop-empty p { font-size: 13.5px; color: #767676; line-height: 1.6; margin-bottom: 18px; }
#biota-shop .btn-reset {
	background: #2563EB; color: #fff; border: none; font-family: 'Poppins', sans-serif; font-weight: 500;
	font-size: 14px; padding: 12px 26px; border-radius: 999px; cursor: pointer;
}

/* --- Mobile filter bar + sheet --- */
#biota-shop .mfbar {
	display: none; position: sticky; top: 56px; z-index: 20; background: #fff; padding: 12px 20px;
	gap: 9px; border-bottom: 1px solid #eef0f3;
}
#biota-shop .mfbar button {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
	font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 13px; padding: 11px;
	border-radius: 999px; background: #fff; cursor: pointer;
}
#biota-shop .mf-filter { border: 1.5px solid #102C57; color: #102C57; }
#biota-shop .mf-sort { border: 1.5px solid #e2e5ea; color: #444; }
#biota-shop .mf-badge {
	background: #102C57; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
	border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
#fscrim {
	position: fixed; inset: 0; background: rgba(10, 15, 26, .45); opacity: 0; pointer-events: none;
	transition: opacity .3s; z-index: 1200;
}
#fscrim.open { opacity: 1; pointer-events: auto; }
#fsheet {
	position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0;
	transform: translateY(100%); transition: transform .32s; z-index: 1201; padding: 14px 20px 20px;
	max-height: 84%; display: flex; flex-direction: column; box-shadow: 0 -8px 30px -12px rgba(0, 0, 0, .35);
}
#fsheet.open { transform: translateY(0); }
#fsheet .fsheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex: none; }
#fsheet .fsheet-head span { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; }
#fsheet .fsheet-x { border: none; background: none; font-size: 22px; color: #888; cursor: pointer; line-height: 1; padding: 0; }
#fsheet .fsheet-body { flex: 1; overflow-y: auto; min-height: 0; }
#fsheet .fsheet-foot { flex: none; display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid #eef0f3; }
#fsheet .fsheet-reset {
	flex: none; padding: 13px 20px; border: 1.5px solid #e2e5ea; background: #fff; color: #444;
	font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 13.5px; border-radius: 999px; cursor: pointer;
}
#fsheet .fsheet-apply {
	flex: 1; background: #2563EB; color: #fff; border: none; font-family: 'Poppins', sans-serif;
	font-weight: 500; font-size: 14px; padding: 13px; border-radius: 999px; cursor: pointer;
}
#fgrip { width: 38px; height: 4px; border-radius: 2px; background: #e2e5ea; margin: 0 auto 14px; flex: none; }

/* --- Help band --- */
#biota-shop .shop-help { background: #102C57; padding: 52px 0; color: #fff; }
#biota-shop .shop-help .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
/* Explicit white — the theme sets an element-level heading color that beats inheritance. */
#biota-shop .shop-help h2 { font-size: 26px; font-weight: 600; margin-bottom: 9px; max-width: 520px; color: #fff; }
#biota-shop .shop-help p { font-size: 14.5px; color: rgba(255, 255, 255, .78); line-height: 1.6; margin: 0; max-width: 520px; }
#biota-shop .shop-help .wa {
	display: inline-flex; align-items: center; gap: 9px; background: #25D366; color: #fff;
	font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; padding: 15px 28px; border-radius: 999px; flex: none;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
	#biota-shop .wrap { padding: 0 30px; }
	#biota-shop .shop { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (max-width: 860px) {
	#biota-shop .shop { grid-template-columns: 1fr; padding-top: 14px; }
	#biota-shop .rail { display: none; }
	#biota-shop .mfbar { display: flex; }
	#biota-shop .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 620px) {
	#biota-shop .wrap { padding: 0 20px; }
}

/* Same idea as the PDP: a low count becomes a status badge, not a statistic. */
#biota-shop .sold--new {
	color: var(--wp--preset--color--primary, #102C57);
	background: var(--wp--preset--color--surface-selected, #F4F8FE);
	border-radius: 999px;
	padding: 1px 8px;
	font-weight: 600;
}
