/**
 * Footer, and the sidebar filter panels.
 *
 * Both load site-wide: the footer is on every page, and the filters appear on
 * the shop, on category archives and on search results.
 */

/* --------------------------------------------------------------------------
   1. Footer
   -------------------------------------------------------------------------- */

.pctmart-footer {
	margin-top: clamp(40px, 6vw, 72px);
	background: var(--pct-footer-bg);
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.6;
}

.pctmart-footer-main {
	display: grid;
	grid-template-columns: 1.6fr repeat(4, 1fr);
	gap: clamp(24px, 4vw, 48px);
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(28px, 4vw, 44px);
}

.pctmart-footer-logo {
	margin: 0 0 12px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.pctmart-footer-logo-link {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

/* The header logo in monochrome: the coloured mark would compete with the
   dark footer, and grey keeps the brand shape without the colour. */
.pctmart-footer-logo-img {
	display: block;
	width: auto;
	max-width: 180px;
	height: auto;
	max-height: 60px;
	filter: grayscale(1);
}

.pctmart-footer-blurb {
	margin: 0 0 14px;
	max-width: 42ch;
}

.pctmart-footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pctmart-footer-heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

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

.pctmart-footer-list li {
	margin: 0 0 8px;
	list-style: none;
}

.pctmart-footer-list a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.pctmart-footer-list a:hover,
.pctmart-footer-list a:focus {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pctmart-footer-more {
	font-weight: 600;
}

/* The promise list is statements, not links, so it gets ticks rather than
   underlines to stop it reading as broken navigation. */
.pctmart-footer-promise li {
	position: relative;
	padding-left: 22px;
}

.pctmart-footer-promise li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--pct-brand-mid);
	border-bottom: 2px solid var(--pct-brand-mid);
	transform: rotate(-45deg);
}

.pctmart-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
}

.pctmart-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.pctmart-footer-copy {
	margin: 0;
}

.pctmart-footer-policies {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pctmart-footer-policies li {
	margin: 0;
	list-style: none;
}

.pctmart-footer-policies a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.pctmart-footer-policies a:hover,
.pctmart-footer-policies a:focus {
	color: #fff;
}

/* Full width on its own row: it is the longest line in the bar and should not
   squeeze the copyright. */
.pctmart-footer-disclaimer {
	flex: 1 1 100%;
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

@media (max-width: 900px) {
	.pctmart-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pctmart-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.pctmart-footer-main {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   2. Sidebar filters

   Printed into the parent's #secondary on the shop, category archives and
   product search. The parent already positions and drawer-ifies that column
   on mobile, so these rules only style the panels inside it.
   -------------------------------------------------------------------------- */

.pctmart-filters {
	margin-bottom: 24px;
	font-size: 14px;
}

.pctmart-filter-active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--pct-brand-tint);
}

.pctmart-filter-active-count {
	color: var(--pct-brand-deep);
	font-size: 13px;
	font-weight: 600;
}

.pctmart-filter-clear {
	color: #b42318;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.pctmart-filter-clear:hover,
.pctmart-filter-clear:focus {
	text-decoration: underline;
}

.pctmart-filter-group {
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e4e7ec;
}

.pctmart-filter-group:last-child {
	border-bottom: 0;
}

.pctmart-filter-title {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pctmart-filter-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pctmart-filter-item {
	margin: 0;
	list-style: none;
}

/* A long ingredient list is the norm here — 20 rows — so it scrolls inside
   the panel rather than pushing the rest of the sidebar off the screen. */
.pctmart-filter-scroll {
	max-height: 340px;
	overflow-y: auto;
	padding-right: 4px;
	overscroll-behavior: contain;
}

.pctmart-filter-link,
.pctmart-filter-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 6px;
	color: #344054;
	line-height: 1.35;
	text-decoration: none;
}

.pctmart-filter-label {
	flex: 1 1 auto;
	min-width: 0;
	/* The column is narrow; a long single word such as "Antidepressants"
	   breaks at a syllable rather than wherever the edge falls. */
	hyphens: auto;
}

.pctmart-filter-link:hover,
.pctmart-filter-link:focus,
.pctmart-filter-check:hover,
.pctmart-filter-check:focus {
	background: var(--pct-brand-tint-soft);
	color: #1d2327;
}

.pctmart-filter-link.is-current {
	background: var(--pct-brand-tint);
	color: var(--pct-brand-deep);
	font-weight: 600;
}

.pctmart-filter-count {
	flex: 0 0 auto;
	color: #667085;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

/* The links are checkboxes in behaviour — every state is a URL — so they are
   drawn as checkboxes to match. */
.pctmart-filter-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1.5px solid #cfd6dd;
	border-radius: 4px;
	background: #fff;
	color: #fff;
}

.pctmart-filter-check.is-on {
	color: var(--pct-brand-deep);
	font-weight: 600;
}

.pctmart-filter-check.is-on .pctmart-filter-box {
	border-color: var(--pct-brand-deep);
	background: var(--pct-brand-deep);
}

/* --------------------------------------------------------------------------
   3. Category copy

   Two blocks: a short intro under the heading, and a longer note under the
   product grid. The note is measured for reading rather than left at the grid
   width, which on a four-column archive is far too wide for prose.
   -------------------------------------------------------------------------- */

.pctmart-cat-intro {
	margin: 0 0 24px;
	max-width: 76ch;
	color: #4a5565;
	font-size: 15px;
	line-height: 1.65;
}

.pctmart-cat-intro p:last-child {
	margin-bottom: 0;
}

.pctmart-cat-copy {
	clear: both;
	margin-top: clamp(32px, 4vw, 48px);
	padding-top: clamp(24px, 3vw, 32px);
	border-top: 1px solid #e4e7ec;
	max-width: 76ch;
	color: #4a5565;
	font-size: 15px;
	line-height: 1.7;
}

.pctmart-cat-copy p {
	margin: 0 0 1em;
}

.pctmart-cat-copy p:last-child {
	margin-bottom: 0;
}

/* The lead heading is the largest in the block; the section headings inside
   the body step down from it. Without this the body h2s inherit the theme's
   default h2 size and end up bigger than the heading they sit under. */
.pctmart-cat-copy-title {
	margin: 0 0 14px;
	color: #1d2327;
	font-size: clamp(20px, 2.3vw, 26px);
	font-weight: 700;
	line-height: 1.25;
}

.pctmart-cat-copy h2:not(.pctmart-cat-copy-title) {
	margin: 1.8em 0 0.6em;
	color: #1d2327;
	font-size: clamp(16px, 1.7vw, 19px);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

/* --------------------------------------------------------------------------
   4. Category icons in the sidebar

   The icon is pasted SVG, so it is sized and coloured here rather than in the
   markup — which means one place to change it and no editing 32 icons.
   -------------------------------------------------------------------------- */

.pctmart-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--pct-brand-deep);
}

.pctmart-cat-icon svg {
	width: 100%;
	height: 100%;
	/* Pasted icons vary; forcing these two makes a mixed set look like a set. */
	fill: none;
	stroke: currentColor;
}

.pctmart-cat-icon img,
.pctmart-cat-icon-img {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	object-fit: cover;
}

/* Same column as the category icons, a step quieter so the checkbox stays
   the thing that reads as interactive. */
.pctmart-compound-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--pct-brand-mid);
}

.pctmart-compound-icon svg {
	width: 100%;
	height: 100%;
}

.pctmart-filter-check.is-on .pctmart-compound-icon {
	color: var(--pct-brand-deep);
}

/* Holds the column so labels line up whether or not an icon is set. */
.pctmart-cat-icon.is-empty {
	background: transparent;
}

.pctmart-filter-link.is-current .pctmart-cat-icon {
	color: inherit;
}

/* Category archive banner. */
.pctmart-cat-banner {
	margin: 0 0 24px;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}

.pctmart-cat-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   5. WhatsApp band, below the footer
   -------------------------------------------------------------------------- */

.pctmart-whatsapp {
	background: var(--pct-brand-tint);
	border-top: 1px solid var(--pct-brand-tint-strong);
}

.pctmart-whatsapp-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.pctmart-whatsapp-kicker {
	margin: 0 0 2px;
	color: #0c111d;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	line-height: 1.3;
}

.pctmart-whatsapp-sub {
	margin: 0;
	color: #475467;
	font-size: 14px;
}

.pctmart-whatsapp-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 6px;
	background: var(--pct-brand-mid);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.pctmart-whatsapp-button:hover,
.pctmart-whatsapp-button:focus {
	background: var(--pct-brand-mid-deep);
	color: #fff;
}

/* Deals of the week page. */
.pctmart-deals-lead {
	margin: 0 0 24px;
	color: #475467;
	font-size: 16px;
	line-height: 1.6;
}
