/*
Theme Name:   PBXports
Theme URI:    https://www.pbxports.co.uk/
Description:  Child theme of Storefront for PBXports Ltd.
Author:       WD Creation
Template:     storefront
Version:      1.0.18
Text Domain:  pbxports
*/

/* Storefront loads this file automatically after its own stylesheet. */

/* ==========================================================================
   Brand variables — taken from the old Clickboom settings/CSS
   ========================================================================== */
:root {
	--pbx-navy: #143b66;   /* Clickboom "main custom color" — nav bar */
	--pbx-blue: #1070dc;   /* active/hover nav item — TODO confirm on live site */
	--pbx-blue-dark: #0d58ac;
	--pbx-red:  #fa381d;   /* prices, accents */
	--pbx-dark: #222222;   /* search button */
	--pbx-text: #666666;   /* body text */
	--pbx-border: #dddddd;
	--pbx-font: 'Poppins', Helvetica, Arial, sans-serif;
}

/* Wider page container, as on the old site (Storefront default is ~1064px) */
.col-full {
	max-width: 1170px;
}

body,
button,
input,
select,
textarea {
	font-family: var(--pbx-font);
}

body {
	color: var(--pbx-text);
	font-size: 16px;
	line-height: 1.65;
}

/* ==========================================================================
   1. HEADER — top bar, then logo / search / cart
   ========================================================================== */
.pbx-topbar {
	background: #fff;
	border-bottom: 1px solid #e1e1e1;
	font-size: 12px;
}

.pbx-topbar .col-full {
	display: flex;
	justify-content: flex-end;
	padding-top: 10px;
	padding-bottom: 10px;
}

.pbx-account-link,
.pbx-account-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #444;
}

.pbx-account-link:hover {
	color: var(--pbx-blue);
}

.pbx-account-link svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.site-header {
	background-color: #f5f5f5;
	border-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.site-header .custom-logo-link img {
	max-width: 240px;
	height: auto;
}

/* --- Search ------------------------------------------------------------- */
.pbx-search-form {
	display: flex;
	align-items: stretch;
	height: 52px;
	border: 2px solid #e1e1e1;
	border-radius: 30px;
	background: #fff;
	overflow: hidden;
	margin: 0;
}

.pbx-search-form select {
	flex: 0 0 auto;
	width: 180px;
	margin: 0;
	border: 0;
	border-right: 1px solid #e1e1e1;
	border-radius: 0;
	background-color: #fff;
	padding: 0 1em 0 1.8em;
	font-size: 13px;
	color: #222;
	box-shadow: none;
}

.pbx-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	margin: 0;
	padding: 0 1.2em;
	font-size: 13px;
	box-shadow: none;
}

.pbx-search-form input[type="search"]:focus {
	outline: none;
	background: transparent;
}

.pbx-search-form button {
	flex: 0 0 auto;
	background: var(--pbx-dark);
	color: #fff;
	border: 0;
	border-radius: 30px;
	margin: 0;
	padding: 0 2.2em;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
}

.pbx-search-form button:hover {
	background: var(--pbx-navy);
}

/* --- Cart --------------------------------------------------------------- */
.pbx-cart-contents {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--pbx-dark);
}

.pbx-cart-icon {
	position: relative;
	display: inline-flex;
}

.pbx-cart-icon svg {
	width: 38px;
	height: 38px;
	fill: var(--pbx-dark);
}

.pbx-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 50%;
	background: var(--pbx-blue);
	color: #fff;
	font-size: 10px;
	text-align: center;
}

.pbx-cart-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.pbx-cart-label {
	font-size: 13px;
	color: #333;
	font-weight: 600;
	text-transform: uppercase;
}

.pbx-cart-total {
	font-size: 18px;
	font-weight: 600;
	color: var(--pbx-blue);
}

/* Desktop layout for the top row */
@media (min-width: 768px) {
	.site-header > .col-full {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 2em;
		padding-top: 38px;
		padding-bottom: 38px;
	}

	/* Storefront floats these; flex takes over */
	.site-header > .col-full::before,
	.site-header > .col-full::after {
		display: none;
	}

	/* Storefront sets the branding to ~74% wide when WooCommerce is active */
	.site-header .site-branding,
	.woocommerce-active .site-header .site-branding {
		float: none;
		width: auto;
		margin: 0;
		flex: 0 0 auto;
	}

	.pbx-search {
		flex: 0 1 570px;
	}

	.pbx-header-cart {
		flex: 0 0 auto;
	}

	/* Line the first menu item up with the logo */
	.main-navigation ul.menu,
	.main-navigation ul.nav-menu {
		margin-left: 0;
	}
}

/* Mobile: stack search under logo, hide cart (Storefront's footer bar has one) */
@media (max-width: 767px) {
	.pbx-search {
		clear: both;
		padding: 1em 0;
	}

	.pbx-header-cart {
		display: none;
	}
}

/* ==========================================================================
   2. HEADER — main navigation bar
   ========================================================================== */
.storefront-primary-navigation {
	background-color: var(--pbx-navy);
}

@media (min-width: 768px) {
	/* Cart has moved to the top row, so the menu gets the full width */
	.site-header .main-navigation,
	.woocommerce-active .site-header .main-navigation {
		float: none;
		width: 100%;
		margin-right: 0;
	}

	.main-navigation ul.menu > li > a,
	.main-navigation ul.nav-menu > li > a {
		color: #fff;
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
		padding: 1.3em 1em;
	}

	.main-navigation ul.menu > li > a:hover,
	.main-navigation ul.nav-menu > li > a:hover,
	.main-navigation ul.menu > li.current-menu-item > a,
	.main-navigation ul.nav-menu > li.current-menu-item > a,
	.main-navigation ul.menu > li.current_page_item > a {
		background-color: var(--pbx-blue);
		color: #fff;
	}

	/* Dropdowns */
	.main-navigation ul.menu ul.sub-menu,
	.main-navigation ul.nav-menu ul.children {
		background-color: var(--pbx-navy);
	}

	.main-navigation ul.menu ul li a,
	.main-navigation ul.nav-menu ul li a {
		color: #fff;
		font-size: 12px;
	}

	.main-navigation ul.menu ul li a:hover,
	.main-navigation ul.nav-menu ul li a:hover {
		background-color: var(--pbx-blue);
	}
}

/* Larger screens: bigger menu text, kept on one line. The menu is about
   40px wider than the container, so it runs slightly past it on the right. */
@media (min-width: 1240px) {
	.main-navigation ul.menu,
	.main-navigation ul.nav-menu {
		display: flex;
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.main-navigation ul.menu > li > a,
	.main-navigation ul.nav-menu > li > a {
		font-size: 13px;
		padding: 1.15em 0.75em;
	}
}

/* Mobile menu toggle sits on the navy bar */
button.menu-toggle,
button.menu-toggle:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

button.menu-toggle span::before,
button.menu-toggle span::after,
button.menu-toggle::before,
button.menu-toggle::after {
	background-color: #fff;
}

/* ==========================================================================
   3. HOMEPAGE SLIDER
   ========================================================================== */
.pbx-slider {
	position: relative;
	overflow: hidden;
	background-color: #e7e7e7;
}

.pbx-slides {
	position: relative;
	height: 620px;
}

.pbx-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* The incoming slide fades in on top of the outgoing one,
   which stays fully visible underneath until the fade is done. */
.pbx-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.pbx-slide.is-leaving {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: none;
}

/* Keep the outgoing slide's text and logos in place while it's covered */
.pbx-slide.is-leaving .pbx-anim {
	opacity: 1;
}

.pbx-slide .col-full {
	height: 100%;
}

/* Content sits in the left half, centred within it */
.pbx-slide-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.2em;
	width: 50%;
	height: 100%;
	text-align: center;
}

.pbx-slide-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.pbx-slide-text {
	margin: 0;
	font-weight: 700;
	text-transform: uppercase;
}

.pbx-slide-text--dark {
	color: #444;
	font-size: 18px;
	line-height: 26px;
}

.pbx-slide-text--blue {
	color: var(--pbx-blue);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.2;
}

.pbx-slide-button,
.pbx-slide-button:visited {
	color: #ff3a2d;
	font-size: 38px;
	font-weight: 700;
	line-height: 49px;
	text-transform: uppercase;
	text-decoration: underline;
}

.pbx-slide-button:hover {
	color: var(--pbx-navy);
}

/* Entrance animations — replay each time a slide becomes active */
.pbx-anim {
	opacity: 0;
}

.pbx-anim--top        { --pbx-from: translateY(-120px); }
.pbx-anim--bottom     { --pbx-from: translateY(120px); }
.pbx-anim--left       { --pbx-from: translateX(-300px); }
.pbx-anim--left-short { --pbx-from: translateX(-50px); }

.pbx-slide.is-active .pbx-anim {
	animation: pbx-slide-in var(--pbx-speed, 1500ms) cubic-bezier(0.455, 0.03, 0.515, 0.955) var(--pbx-delay, 0ms) both;
}

@keyframes pbx-slide-in {
	from {
		opacity: 0;
		transform: var(--pbx-from, none);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbx-anim,
	.pbx-slide.is-active .pbx-anim {
		opacity: 1;
		animation: none;
	}
}

/* Arrows — white circles with a blue chevron */
.pbx-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.pbx-slider-prev { left: 20px; }
.pbx-slider-next { right: 20px; }

.pbx-slider-arrow::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid var(--pbx-navy);
	border-left: 2px solid var(--pbx-navy);
}

.pbx-slider-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.pbx-slider-next::before { transform: translate(-70%, -50%) rotate(135deg); }

.pbx-slider-arrow:hover {
	background: var(--pbx-navy);
}

.pbx-slider-arrow:hover::before {
	border-color: #fff;
}

/* Dots */
.pbx-slider-dots {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.pbx-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #999;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.pbx-slider-dot.is-active {
	background: var(--pbx-blue);
	border-color: var(--pbx-blue);
}

/* Storefront leaves a gap under the header on the homepage; the slider butts up to the menu.
   Selector matches Storefront's own so this one wins. */
.home .site-header,
.home.page:not(.page-template-template-homepage) .site-header {
	margin-bottom: 0;
}

.home .pbx-slider {
	margin-bottom: 2.618em;
}

@media (max-width: 767px) {
	.pbx-slides {
		height: 340px;
	}

	.pbx-slide-content {
		width: 100%;
		padding: 0 50px;
		background: rgba(255, 255, 255, 0.6);
	}

	.pbx-slide-text--dark { font-size: 14px; line-height: 20px; }
	.pbx-slide-text--blue { font-size: 18px; }
	.pbx-slide-button     { font-size: 24px; line-height: 32px; }
	.pbx-slide-image img  { max-width: 80%; }
}

/* ==========================================================================
   4. HOMEPAGE — welcome intro and promo boxes
   ========================================================================== */
.pbx-intro {
	max-width: 900px;
	margin: 30px auto 45px;
	text-align: center;
}

.pbx-intro-title {
	margin: 0 0 16px;
	color: #444;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.3;
}

.pbx-intro-text {
	margin: 0;
	color: #555;
	font-size: 16px;
	line-height: 1.7;
}

@media (max-width: 767px) {
	.pbx-intro-title { font-size: 22px; }
	.pbx-intro-text  { font-size: 14px; }
}

.pbx-promos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0 auto 50px;
}

.pbx-promo {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	container-type: inline-size; /* text below scales with the box width (cqw) */
}

.pbx-promo-body {
	position: absolute;
	top: 12%;
	left: 6%;
	right: 6%;
}

.pbx-promo-title {
	display: block;
	color: var(--pbx-blue);
	font-size: 7.4cqw;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.pbx-promo-text {
	display: block;
	margin-top: 1.5cqw;
	color: #444;
	font-size: 3.9cqw;
	font-weight: 600;
	line-height: 1.45;
}

.pbx-promo img {
	display: block;
	width: 100%;
	height: auto;
}

/* "Find Out More" sits over the bottom-left of each image, with a grey rule under it */
.pbx-promo-more,
.pbx-promo:hover .pbx-promo-more {
	position: absolute;
	left: 6%;
	bottom: 14%;
	padding-bottom: 3px;
	border-bottom: 1px solid #888;
	color: #444;
	font-size: 3.7cqw;
	line-height: 1.4;
	text-decoration: none;
}

@media (max-width: 767px) {
	.pbx-promos {
		grid-template-columns: 1fr;
		max-width: 380px;
	}
}

/* Homepage is always full width, whatever page template is chosen */
.home .content-area {
	float: none;
	width: 100%;
	margin-right: 0;
}

/* ==========================================================================
   5. HOMEPAGE — featured products
   ========================================================================== */
.pbx-featured {
	margin-bottom: 3em;
}

/* Section heading row (also used for later sections) */
.pbx-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	border-bottom: 1px solid #e1e1e1;
}

.pbx-section-title {
	position: relative;
	margin: 0;
	padding-bottom: 10px;
	color: #222;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.pbx-section-title span {
	color: var(--pbx-blue);
}

/* Short blue rule under the title, sitting on the grey line */
.pbx-section-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 60px;
	height: 2px;
	background: var(--pbx-blue);
}

.pbx-section-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
}

.pbx-carousel-btn {
	position: relative;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pbx-navy);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pbx-carousel-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
}

.pbx-carousel-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.pbx-carousel-next::before { transform: translate(-70%, -50%) rotate(135deg); }

.pbx-carousel-btn:hover:not(:disabled) {
	background: var(--pbx-blue);
}

.pbx-carousel-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Two rows, filled column by column; five columns visible */
.pbx-featured-track {
	--pbx-cols: 5;
	--pbx-gap: 24px;
	display: grid;
	grid-template-rows: repeat(2, auto);
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--pbx-cols) - 1) * var(--pbx-gap)) / var(--pbx-cols));
	gap: var(--pbx-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity; /* gentle snapping for touch swipes */
	scrollbar-width: none;
	padding: 4px 0 10px;
}

.pbx-featured-track::-webkit-scrollbar {
	display: none;
}

/* Product card */
.pbx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 12px 16px;
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	text-align: center;
	scroll-snap-align: start;
}

.pbx-card-sale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 2px 9px;
	border-radius: 12px;
	background: var(--pbx-blue);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.pbx-card-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto 10px;
}

.pbx-card-title {
	flex-grow: 1;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.pbx-card-title a,
.pbx-card-title a:visited {
	color: #333;
}

.pbx-card-title a:hover {
	color: var(--pbx-blue);
}

.pbx-card-price {
	margin-bottom: 10px;
	color: var(--pbx-red);
	font-size: 15px;
	font-weight: 700;
}

.pbx-card-price del {
	margin-left: 4px;
	color: #999;
	font-size: 13px;
	font-weight: 400;
	opacity: 1;
}

.pbx-card-price ins {
	text-decoration: none;
	font-weight: 700;
}

/* Prices on sale: WooCommerce puts the old price first; show the new one first */
.pbx-card-price .price,
.pbx-card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0 4px;
}

.pbx-card-price del { order: 2; }
.pbx-card-price ins { order: 1; }

.pbx-card-buttons {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pbx-card-buttons .button,
.pbx-card-buttons .button:visited {
	display: block;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #e1e1e1;
	border-radius: 20px;
	background: #fff;
	color: #222;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.pbx-card-buttons .button:hover {
	border-color: var(--pbx-blue);
	background: var(--pbx-blue);
	color: #fff;
}

@media (max-width: 1100px) {
	.pbx-featured-track { --pbx-cols: 4; }
}

@media (max-width: 900px) {
	.pbx-featured-track { --pbx-cols: 3; }
}

@media (max-width: 600px) {
	.pbx-featured-track { --pbx-cols: 2; --pbx-gap: 12px; }
}

/* ==========================================================================
   6. HOMEPAGE — Quick Categories (brand logos)
   ========================================================================== */
.pbx-brands {
	margin-bottom: 3em;
	container-type: inline-size; /* logo widths below are a sixth of this */
}

.pbx-brands-viewport {
	overflow: hidden;
}

.pbx-brands-track {
	display: flex;
	width: max-content;
	animation: pbx-brands-scroll 40s linear infinite;
}

/* Pause when someone hovers or tabs to a logo */
.pbx-brands-viewport:hover .pbx-brands-track,
.pbx-brands-viewport:focus-within .pbx-brands-track {
	animation-play-state: paused;
}

/* The track holds two identical lists; sliding by one list's width loops it */
@keyframes pbx-brands-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.pbx-brands-list {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0 16px 0 0; /* matches the gap so the join is even */
	list-style: none;
}

.pbx-brand {
	flex: 0 0 calc((100cqw - 5 * 16px) / 6);
	margin: 0;
}

.pbx-brand a,
.pbx-brand span {
	display: block;
	overflow: hidden; /* trims the square border built into the logo images */
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	background: #fff;
}

.pbx-brand a:hover {
	border-color: var(--pbx-blue);
}

.pbx-brand img {
	display: block;
	width: calc(100% + 6px);
	max-width: none;
	height: auto;
	margin: -3px;
}

@media (max-width: 900px) {
	.pbx-brand { flex-basis: calc((100cqw - 3 * 16px) / 4); }
}

@media (max-width: 600px) {
	.pbx-brand { flex-basis: calc((100cqw - 2 * 16px) / 3); }
}

@media (prefers-reduced-motion: reduce) {
	.pbx-brands-viewport { overflow-x: auto; }
	.pbx-brands-track    { animation: none; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
	overflow-x: clip; /* lets the copyright bar run full width */
	padding: 0;
	background-color: var(--pbx-navy);
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
}

/* Selectors match Storefront's Customizer footer colours so these win */
.site-footer a:not(.button):not(.components-button),
.site-footer a:not(.button):not(.components-button):visited {
	color: #fff;
	text-decoration: none;
}

.site-footer a:not(.button):not(.components-button):hover {
	color: #8fc1ff;
}

.pbx-footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 60px;
	padding: 50px 0 40px;
}

.site-footer .pbx-footer-title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 10px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Short blue rule under each heading */
.pbx-footer-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background: var(--pbx-blue);
}

.pbx-contact,
.pbx-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pbx-address {
	margin: 0;
	line-height: 1.7;
}

.pbx-address strong {
	color: #fff;
	font-weight: 600;
}

.pbx-contact li {
	margin-bottom: 16px;
	line-height: 1.6;
}

.pbx-contact-label {
	display: block;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pbx-footer-menu li {
	margin-bottom: 10px;
}

.pbx-footer-menu a::before {
	content: '›';
	margin-right: 8px;
	color: #8fc1ff;
}

/* Copyright bar */
.site-footer .site-info {
	margin: 0 -100vmax;
	padding: 16px 100vmax;
	background: rgba(0, 0, 0, 0.2);
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 767px) {
	.pbx-footer-cols {
		grid-template-columns: 1fr;
		padding-top: 35px;
	}
}

/* ==========================================================================
   8. SHOP — product grids (shop, categories, related products)
   ========================================================================== */
ul.products li.product {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 16px;
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	text-align: center;
}

ul.products li.product .woocommerce-loop-product__link {
	flex-grow: 1;
}

ul.products li.product img {
	margin-bottom: 10px;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
	margin-bottom: 6px;
	color: #333;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

ul.products li.product .price {
	display: block;
	margin-bottom: 12px;
	color: var(--pbx-red);
	font-size: 15px;
	font-weight: 700;
}

ul.products li.product .price del {
	color: #999;
	font-size: 13px;
	font-weight: 400;
}

ul.products li.product .price ins {
	font-weight: 700;
}

/* Sale badge: blue pill in the top-left corner */
ul.products li.product .onsale,
.single-product div.product .onsale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	margin: 0;
	padding: 2px 9px;
	border: 0;
	border-radius: 12px;
	background: var(--pbx-blue);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.6;
	text-transform: uppercase;
}

ul.products li.product {
	position: relative;
}

/* "View Item" — same pill as the homepage cards */
.pbx-view-item,
.pbx-view-item:visited,
ul.products li.product .pbx-view-item {
	display: block;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #e1e1e1;
	border-radius: 20px;
	background: #fff;
	color: #222;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.pbx-view-item:hover,
ul.products li.product .pbx-view-item:hover {
	border-color: var(--pbx-blue);
	background: var(--pbx-blue);
	color: #fff;
}

/* ==========================================================================
   9. SHOP — single product page
   ========================================================================== */
.single-product div.product .product_title {
	margin-bottom: 10px;
	color: #222;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
}

.single-product div.product p.price {
	margin-bottom: 12px;
	color: var(--pbx-red);
	font-size: 26px;
	font-weight: 700;
}

.single-product div.product p.price del {
	color: #999;
	font-size: 18px;
	font-weight: 400;
}

.single-product div.product p.price ins {
	font-weight: 700;
}

.single-product div.product .woocommerce-product-details__short-description {
	margin-bottom: 15px;
	font-size: 16px;
}

/* Quantity + Add to basket */
.single-product div.product form.cart {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 0;
	border-top: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
}

.single-product div.product form.cart .quantity {
	float: none;
	margin: 0;
}

.single-product div.product form.cart .quantity .qty {
	width: 70px;
	height: 46px;
	border: 1px solid #c8c8c8;
	border-radius: 23px;
	background: #fff;
	text-align: center;
	box-shadow: none;
}

.single-product div.product form.cart .single_add_to_cart_button {
	float: none;
	height: 46px;
	margin: 0;
	padding: 0 34px;
	border-radius: 23px;
	background: var(--pbx-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
	background: var(--pbx-blue);
}

/* Variable products: options table above the button */
.single-product div.product form.variations_form {
	display: block;
}

.single-product div.product form.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 10px;
}

.single-product div.product .product_meta {
	padding-top: 12px;
	border-top: 0;
	font-size: 12px;
	color: #777;
}

/* Gallery: rounded frame like the cards */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery .flex-viewport {
	border-radius: 12px;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	padding: 10px;
	background: #fff;
}

/* Description: blue tab label sitting on a bordered box */
.woocommerce-tabs {
	clear: both;
	padding-top: 2.5em;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	float: none;
	width: 100%;
	margin: 0;
	padding: 0 0 0 16px;
	border: 0;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	border: 0;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 6px 16px;
	border-radius: 6px 6px 0 0;
	background: #e9e9e9;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.woocommerce-tabs ul.tabs li.active a {
	background: var(--pbx-blue);
	color: #fff;
}

.woocommerce-tabs ul.tabs li a::after,
.woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce-tabs .panel {
	float: none;
	width: 100%;
	margin: 0;
	padding: 24px 26px;
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	line-height: 1.7;
}

.woocommerce-tabs .panel > h2:first-child {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e1e1e1;
	color: #222;
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Related products heading: blue label */
.related.products > h2,
.upsells.products > h2 {
	display: inline-block;
	margin-bottom: 20px;
	padding: 6px 16px;
	border-radius: 6px;
	background: var(--pbx-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.related.products {
	margin-top: 2.5em;
}

/* ==========================================================================
   10. SIDEBAR
   ========================================================================== */
.widget-area .widget {
	margin-bottom: 30px;
	padding: 18px 20px;
	border: 1px solid #c8c8c8;
	border-radius: 12px;
	background: #fff;
}

.widget-area .widget .widget-title,
.widget-area .widget h2 {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid #e1e1e1;
	color: #222;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.widget-area .widget .widget-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 40px;
	height: 2px;
	background: var(--pbx-blue);
}

.widget-area .widget ul li {
	font-size: 13px;
}

.widget-area .widget a:not(.button) {
	color: #444;
	text-decoration: none;
}

.widget-area .widget a:not(.button):hover {
	color: var(--pbx-blue);
}

/* Dark heading bar ("Our Best Sellers") */
.widget-area .pbx-best-sellers {
	padding: 0;
	overflow: hidden;
}

.widget-area .widget .pbx-widget-title--dark {
	display: block;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	background: #222;
	color: #fff;
	font-size: 14px;
}

.widget-area .widget .pbx-widget-title--dark span {
	color: #5aa2f0;
}

.widget-area .widget .pbx-widget-title--dark::after {
	display: none;
}

.pbx-mini-products {
	margin: 0;
	padding: 6px 18px;
	list-style: none;
}

.pbx-mini-products li {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.pbx-mini-products li:last-child {
	border-bottom: 0;
}

.pbx-mini-image {
	flex: 0 0 70px;
}

.pbx-mini-image img {
	display: block;
	width: 70px;
	height: auto;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
}

.pbx-mini-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.widget-area .widget a.pbx-mini-title {
	color: #333;
	font-size: 12px;
	line-height: 1.4;
}

.pbx-mini-price {
	color: var(--pbx-red);
	font-size: 14px;
	font-weight: 700;
}

.pbx-mini-price del {
	color: #999;
	font-size: 12px;
	font-weight: 400;
}

/* Brands list with dashed dividers */
.pbx-brands-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-area .pbx-brands-menu li {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px dashed #d5d5d5;
}

.widget-area .pbx-brands-menu li:last-child {
	border-bottom: 0;
}

.widget-area .pbx-brands-menu li::before {
	display: none;
}

/* ==========================================================================
   11. BREADCRUMB
   ========================================================================== */
.storefront-breadcrumb {
	margin-bottom: 30px;
	padding: 14px 0;
	font-size: 13px;
}

.storefront-breadcrumb a {
	text-decoration: none;
}
