/*
Theme Name: PayPros Marketplace
Theme URI: https://payprossolutions.com/
Author: Paypros Solutions
Author URI: https://payprossolutions.com/
Description: Storefront theme for the PayPros Solutions digital-products marketplace. Header (top bar, logo, search, wishlist, cart, account, category menu, navigation) and footer designed for the PayPros Digital Marketplace plugin and WooCommerce. Accessible, responsive, menu- and Customizer-driven.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paypros-marketplace-theme
Tags: e-commerce, custom-menu, custom-logo, accessibility-ready, wide-blocks
*/

:root {
	--pt-navy: #0b1736;
	--pt-navy-2: #0f2150;
	--pt-navy-3: #13285e;
	--pt-blue: #1d4ed8;
	--pt-blue-hover: #1e40af;
	--pt-ink: #0f172a;
	--pt-ink-2: #334155;
	--pt-muted: #5b6474;
	--pt-on-dark: #ffffff;
	--pt-on-dark-muted: #c7d2e8;
	--pt-line: #e2e8f0;
	--pt-surface: #ffffff;
	--pt-surface-2: #f5f7fb;
	--pt-focus: #f59e0b;
	--pt-radius: 8px;
	--pt-container: 1340px;
	--pt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pt-surface);
	color: var(--pt-ink);
	font-family: var(--pt-font);
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--pt-blue);
}

a:hover {
	color: var(--pt-blue-hover);
}

:focus-visible {
	outline: 3px solid var(--pt-focus);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 100000;
	padding: 12px 18px;
	background: #fff;
	color: var(--pt-ink);
	border-radius: var(--pt-radius);
	font-weight: 700;
}

.pt-container {
	width: 100%;
	max-width: var(--pt-container);
	margin: 0 auto;
	padding: 0 24px;
}

.pt-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* Top bar ----------------------------------------------------------------- */
.pt-topbar {
	background: var(--pt-navy);
	color: var(--pt-on-dark-muted);
	font-size: 13px;
	border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.pt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.pt-topbar__items {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-topbar__items li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pt-topbar__items .pt-icon {
	width: 16px;
	height: 16px;
	color: #4ade80;
}

.pt-topbar__social {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-topbar__social a {
	display: inline-flex;
	color: var(--pt-on-dark);
}

.pt-topbar__social .pt-icon {
	width: 16px;
	height: 16px;
}

/* Main header ------------------------------------------------------------- */
.pt-header {
	background: var(--pt-navy);
	color: var(--pt-on-dark);
}

.pt-header__main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	padding: 18px 0;
}

.pt-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pt-on-dark);
	text-decoration: none;
}

.pt-brand:hover {
	color: var(--pt-on-dark);
}

.pt-brand img {
	max-height: 52px;
	width: auto;
}

.pt-brand__mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3b82f6, var(--pt-blue));
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}

.pt-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	white-space: nowrap;
}

/* Header and footer adapt to the space they get, even inside boxed layouts. */
.pt-site-header,
.pt-footer {
	container-type: inline-size;
}

.pt-brand__name {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pt-brand__tag {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: var(--pt-on-dark-muted);
}

.pt-header__search {
	max-width: 640px;
	width: 100%;
}

.pt-header__search .ppm-search {
	border-color: transparent;
}

.pt-header__tools {
	display: flex;
	align-items: center;
	gap: 26px;
}

.pt-header__tools .ppm-header-link {
	color: var(--pt-on-dark) !important;
}

.pt-header__tools .ppm-header-link:hover {
	color: var(--pt-on-dark-muted) !important;
}

.pt-header__tools .ppm-header-link__count {
	background: #3b82f6;
}

.pt-tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pt-on-dark);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pt-tool:hover {
	color: var(--pt-on-dark-muted);
}

.pt-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: var(--pt-radius);
	background: transparent;
	color: var(--pt-on-dark);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Navigation bar ---------------------------------------------------------- */
.pt-navbar {
	background: var(--pt-navy-2);
	border-top: 1px solid rgb(255 255 255 / 8%);
	color: var(--pt-on-dark);
}

.pt-navbar__inner {
	display: flex;
	align-items: stretch;
	gap: 20px;
	min-height: 54px;
}

.pt-browse {
	position: relative;
	display: flex;
	align-items: center;
}

.pt-browse__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--pt-radius);
	background: var(--pt-blue);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.pt-browse__btn:hover {
	background: var(--pt-blue-hover);
}

.pt-browse__btn .pt-browse__chev {
	margin-left: auto;
	transition: transform 0.15s ease;
}

.pt-browse__btn[aria-expanded="true"] .pt-browse__chev {
	transform: rotate(180deg);
}

.pt-browse__panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	width: 290px;
	padding: 8px;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	background: #fff;
	box-shadow: 0 18px 40px rgb(15 23 42 / 20%);
}

.pt-browse__panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-browse__panel a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	color: var(--pt-ink-2);
	font-size: 14px;
	text-decoration: none;
}

.pt-browse__panel a:hover,
.pt-browse__panel a:focus-visible {
	background: var(--pt-surface-2);
	color: var(--pt-blue);
}

.pt-browse__panel .ppm-icon,
.pt-browse__panel .pt-icon {
	width: 18px;
	height: 18px;
	color: var(--pt-muted);
}

.pt-browse__count {
	margin-left: auto;
	color: var(--pt-muted);
	font-size: 12px;
}

.pt-nav {
	display: flex;
	align-items: stretch;
	flex: 1;
}

.pt-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-nav > ul {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
}

.pt-nav li {
	position: relative;
	display: flex;
	align-items: center;
}

.pt-nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 10px;
	color: var(--pt-on-dark);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}

.pt-nav > ul > li > a:hover,
.pt-nav > ul > li.current-menu-item > a,
.pt-nav > ul > li.current-menu-ancestor > a,
.pt-nav > ul > li > a[aria-current="page"] {
	border-bottom-color: #3b82f6;
	color: #fff;
}

.pt-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.pt-badge--new {
	background: #15803d;
}

.pt-badge--hot {
	background: #b91c1c;
}

.pt-subtoggle {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: -10px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--pt-on-dark);
	cursor: pointer;
}

.pt-subtoggle .pt-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.pt-subtoggle[aria-expanded="true"] .pt-icon {
	transform: rotate(180deg);
}

.pt-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	min-width: 240px;
	padding: 8px;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	background: #fff;
	box-shadow: 0 18px 40px rgb(15 23 42 / 20%);
}

.pt-nav .sub-menu.is-open {
	display: block;
}

.pt-nav .sub-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--pt-ink-2);
	font-size: 14px;
	text-decoration: none;
}

.pt-nav .sub-menu a:hover,
.pt-nav .sub-menu a:focus-visible {
	background: var(--pt-surface-2);
	color: var(--pt-blue);
}

/* Content ------------------------------------------------------------------ */
.pt-main {
	padding: 32px 0 56px;
	min-height: 50vh;
}

.pt-page-title {
	margin: 0 0 24px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
}

.pt-entry > * + * {
	margin-top: 1em;
}

.pt-entry .alignwide,
.pt-entry .alignfull {
	width: 100%;
}

.pt-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-post-card {
	padding: 20px;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
}

.pt-post-card h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.pt-post-card h2 a {
	color: var(--pt-ink);
	text-decoration: none;
}

.pt-meta {
	color: var(--pt-muted);
	font-size: 14px;
}

.pt-pagination {
	margin-top: 32px;
}

/* WooCommerce basics -------------------------------------------------------- */
/* Accessible colours for WooCommerce defaults (prices, sale flash, stars). */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--pt-ink);
}

.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins {
	color: #b91c1c;
	text-decoration: none;
}

.woocommerce span.onsale {
	background-color: #b91c1c;
	color: #fff;
}

.woocommerce .star-rating span::before {
	color: #b45309;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 6px;
	background: var(--pt-blue);
	color: #fff;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	background: var(--pt-blue-hover);
	color: #fff;
}

.woocommerce-breadcrumb {
	font-size: 14px;
	color: var(--pt-muted);
}

/* Footer ------------------------------------------------------------------- */
.pt-footer {
	background: var(--pt-navy);
	color: var(--pt-on-dark-muted);
	font-size: 14px;
}

.pt-footer a {
	color: var(--pt-on-dark-muted);
	text-decoration: none;
}

.pt-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.pt-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr));
	gap: 40px;
	padding: 56px 0 40px;
}

.pt-footer__about p {
	margin: 14px 0 18px;
	max-width: 360px;
}

.pt-footer h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

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

.pt-footer li {
	margin-bottom: 9px;
}

.pt-footer__contact li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.pt-footer__contact .pt-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: #60a5fa;
}

.pt-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 10%);
}

.pt-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
	font-size: 13px;
}

.pt-footer__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pt-footer__secure .pt-icon {
	width: 16px;
	height: 16px;
	color: #4ade80;
}

/* Responsive --------------------------------------------------------------- */
@container (max-width: 1200px) {
	.pt-topbar__social {
		display: none;
	}

	.pt-nav > ul > li > a {
		padding: 0 7px;
		font-size: 12px;
	}

	.pt-browse__btn {
		min-width: 0;
	}
}

@container (max-width: 1024px) {
	.pt-header__main {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 16px;
	}

	.pt-header__search {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
	}

	.pt-header__tools {
		justify-self: end;
		gap: 18px;
	}

	.pt-header__tools .ppm-header-link__label,
	.pt-tool__label {
		display: none;
	}

	.pt-menu-toggle {
		display: inline-flex;
	}

	.pt-navbar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 0;
	}

	.pt-js .pt-navbar__inner {
		display: none;
	}

	.pt-js .pt-navbar.is-open .pt-navbar__inner {
		display: flex;
	}

	.pt-browse__btn {
		width: 100%;
	}

	.pt-browse__panel {
		position: static;
		width: 100%;
		margin-top: 8px;
		box-shadow: none;
	}

	.pt-nav > ul {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.pt-nav > ul > li > a {
		white-space: normal;
	}

	.pt-nav li {
		flex-wrap: wrap;
	}

	.pt-nav > ul > li > a {
		padding: 12px 4px;
		border-bottom: 1px solid rgb(255 255 255 / 8%);
		flex: 1;
	}

	.pt-subtoggle {
		margin: 0;
	}

	.pt-nav .sub-menu {
		position: static;
		width: 100%;
		box-shadow: none;
	}

	.pt-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pt-container {
		padding: 0 16px;
	}
}

@container (max-width: 640px) {

	.pt-topbar__items li:nth-child(n + 3) {
		display: none;
	}

	.pt-brand__name {
		font-size: 21px;
	}

	.pt-header__tools {
		gap: 12px;
	}

	.pt-menu-toggle {
		padding: 8px;
	}

	.pt-menu-toggle span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.pt-brand__mark {
		width: 38px;
		height: 38px;
		font-size: 22px;
	}

	.pt-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Desktop: also open sub-menus on hover. */
@container (min-width: 1025px) {
	.pt-nav li:hover > .sub-menu {
		display: block;
	}
}
