/*!
 * UniTrade custom shop styling
 * Permanent filter sidebar, rounded product imagery, homepage deals
 * carousel, single-product zoom polish, vendor rating display.
 */

:root {
	--pfx-accent: #F0793B;       /* primary orange — reserved for buttons/CTAs only */
	--pfx-accent-dark: #D9611F;  /* button hover/active state, deeper orange */
	--pfx-accent-light: #FFA366; /* lighter orange tint, for badges/backgrounds */
	--pfx-accent-pale: #FFF1E6;  /* pale orange wash, for subtle highlight backgrounds */
	--pfx-gradient: linear-gradient(135deg, #F0793B 0%, #D9611F 100%); /* orange gradient, buttons only */
	--pfx-ink: #16213E;          /* deep navy for headings/nav text */
	--pfx-footer-navy: #232f3e;  /* footer/header background navy, matches Amazon-style footer */
	--pfx-footer-navy-light: #37475A; /* lighter navy, for hover/animation accents (non-button) */
	--pfx-success: #1E8E5A;      /* in-stock / trust badges */
	--pfx-surface: #F7F7FA;      /* soft neutral backdrop, replaces flat white panels */
}

@keyframes pfx-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes pfx-pop {
	0% { transform: scale(0.92); opacity: 0; }
	70% { transform: scale(1.03); opacity: 1; }
	100% { transform: scale(1); }
}

@keyframes pfx-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	background: var(--pfx-surface);
}

/* Playful entrance animation for key sections */
.pfx-home-section,
.pfx-deal-card,
.woocommerce ul.products li.product {
	animation: pfx-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.05s; }
.woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.1s; }
.woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.15s; }
.woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.2s; }
.woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.25s; }

/* ---------- Sticky, modernized header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #ffffff;
	border-bottom: 3px solid var(--pfx-accent);
	box-shadow: 0 2px 16px rgba(22, 33, 62, 0.08);
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.site-header .site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header .site-title a {
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pfx-ink);
	transition: transform 0.2s ease;
	display: inline-block;
}

.site-header .site-title a:hover {
	opacity: 0.85;
}

.main-navigation ul#primary-menu {
	gap: 6px;
}

.main-navigation a {
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	background: rgba(255, 107, 26, 0.1);
	transform: translateY(-2px);
}

/* ---------- Global accent overrides (was default theme blue/gray) ---------- */
.site-title a,
.pfx-filter-cats li.is-active a,
.pfx-filter-cats a:hover,
.pfx-deal-title a,
a.pfx-vendor-name {
	color: var(--pfx-ink);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--pfx-footer-navy-light) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--pfx-accent) !important;
	border-color: var(--pfx-accent) !important;
	color: #ffffff !important;
	transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: var(--pfx-accent-dark) !important;
	border-color: var(--pfx-accent-dark) !important;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 8px 20px rgba(255, 107, 26, 0.3);
}

.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active {
	transform: scale(0.97);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background-color: var(--pfx-ink) !important;
}

.widget input.search-submit,
.comment-respond .form-submit .submit {
	background-color: var(--pfx-accent) !important;
}

.pfx-filter-apply {
	background: var(--pfx-accent);
}

.pfx-filter-apply:hover {
	background: var(--pfx-accent-dark);
}

.pfx-deal-badge {
	background: var(--pfx-accent);
}

.pfx-deal-price {
	color: var(--pfx-accent-dark);
}

/* ---------- Shop layout: existing filter sidebar, made permanent + prominent ---------- */
.wpvibe-shop-filters,
.pfx-shop-filters {
	background: #ffffff;
	border: 1px solid #eaeaea;
	box-shadow: 0px 5px 30px 0 #0000001a;
	padding: 20px;
	position: sticky;
	top: 20px;
	align-self: flex-start;
	border-radius: 10px;
}

.wpvibe-shop-filters h3,
.wpvibe-shop-filters .widget-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--pfx-ink);
	margin: 14px 0 10px;
}

.wpvibe-shop-filters h3:first-child {
	margin-top: 0;
}

.wpvibe-cat-filter,
.pfx-filter-rating {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.wpvibe-cat-filter li a,
.pfx-filter-rating li a {
	display: block;
	padding: 7px 2px;
	text-decoration: none;
	color: #4d4d4d;
	border-bottom: 1px solid #f2f2f2;
	font-size: 14px;
}

.wpvibe-cat-filter li a:hover {
	color: var(--pfx-accent-dark);
	padding-left: 6px;
	transition: color 0.15s ease, padding-left 0.15s ease, border-bottom 0.15s ease;
}

.pfx-rating-block .star-rating {
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}

@media (max-width: 782px) {
	.wpvibe-shop-filters,
	.pfx-shop-filters {
		position: static;
	}
}


/* ---------- Rounded product imagery, Amazon-style restraint ---------- */
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img,
.pfx-deal-card img,
.pfx-carousel-slide img {
	border-radius: 14px;
	object-fit: cover;
}

/* Jiji-style uniform square crop for shop/archive grid thumbnails,
   so every card is the same height regardless of the source image's
   own aspect ratio — this is what was breaking on mobile. */
.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	display: block;
}

.woocommerce div.product div.images .flex-control-thumbs img {
	border-radius: 8px;
}

/* ---------- Single product: zoom cursor affordance ---------- */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
	cursor: zoom-in;
	border-radius: 14px;
	overflow: hidden;
}

/* ---------- Homepage deals ---------- */
.pfx-home-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.pfx-home-section h2 {
	font-size: 24px;
	margin-bottom: 18px;
}

.pfx-home-section h2 a {
	color: #000000;
}

/* ---------- "Join as a Vendor" header button (Pagelayer block p-w8o9817) ----------
   Always orange with white text; hover only animates the border blue, the
   fill/text stay the same so it never flips color on hover. */
.p-w8o9817 .pagelayer-btn-holder {
	background-color: #F0793B !important;
	color: #ffffff !important;
	border: 2px solid #F0793B !important;
	transition: border-color 0.25s ease !important;
}

.p-w8o9817 .pagelayer-btn-custom:hover,
.p-w8o9817 .pagelayer-btn-anim-slide:after {
	background-color: #F0793B !important;
}

.p-w8o9817 .pagelayer-btn-holder:hover {
	color: #ffffff !important;
	border-color: #227bc3 !important;
}

.pfx-deal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 26px;
}

.pfx-deal-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pfx-deal-card:hover {
	box-shadow: 0 14px 34px rgba(22, 33, 62, 0.18);
	border-color: var(--pfx-footer-navy-light);
	transform: translateY(-6px) scale(1.02);
}

.pfx-deal-card:hover img {
	transform: scale(1.05);
}

.pfx-deal-card img {
	transition: transform 0.35s ease;
}

.pfx-deal-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	margin-bottom: 10px;
}

/* How it works */
.pfx-steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.pfx-step {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 24px 20px;
	text-align: center;
}

.pfx-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #F0793B;
	color: #fff;
	font-weight: 700;
	margin-bottom: 10px;
}

.pfx-step h3 {
	margin: 8px 0 6px;
	font-size: 16px;
}

.pfx-step p {
	font-size: 13px;
	color: #555;
	margin: 0;
}

/* Category tiles */
.pfx-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.pfx-category-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 14px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pfx-category-card:hover {
	box-shadow: 0 10px 24px rgba(22, 33, 62, 0.14);
	transform: translateY(-4px);
}

.pfx-category-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 8px;
}

.pfx-category-card span {
	display: block;
	font-size: 13px;
	font-weight: 600;
}

/* Featured sellers */
.pfx-seller-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.pfx-seller-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 18px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.pfx-seller-card img {
	border-radius: 50%;
}

.pfx-seller-card span {
	font-size: 13px;
	font-weight: 600;
}

/* Trust strip */
.pfx-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 18px;
	margin-top: 16px;
	text-align: center;
}

.pfx-trust-item strong {
	display: block;
	font-size: 22px;
	color: #16213E;
}

.pfx-trust-item span {
	font-size: 13px;
	color: #555;
}

/* Scroll-in reveal animation */
.pfx-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pfx-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.pfx-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Card/tile motion polish */
.pfx-seller-card,
.pfx-ad-card {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pfx-seller-card:hover,
.pfx-ad-card:hover {
	box-shadow: 0 10px 24px rgba(22, 33, 62, 0.14);
	transform: translateY(-4px);
}

.pfx-step {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pfx-step:hover {
	box-shadow: 0 10px 24px rgba(22, 33, 62, 0.12);
	transform: translateY(-4px);
}

.pfx-step-num {
	color: #16213E;
}

.pfx-deal-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #000000;
}

.pfx-deal-price {
	font-size: 17px;
	color: var(--pfx-footer-navy);
	font-weight: 700;
}

.pfx-deal-badge {
	display: inline-block;
	background: var(--pfx-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

/* ---------- Footer: multi-vendor marketplace layout ---------- */
.pfx-back-to-top {
	display: block;
	width: 100%;
	background: #232f3e;
	color: #ffffff;
	text-align: center;
	padding: 14px 24px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pfx-back-to-top:hover {
	background: #2f3d4f;
	color: #ffffff;
}

.pfx-footer-signin-row {
	background: #131a22;
	padding: 24px;
	text-align: center;
}

.pfx-footer-signin-row a {
	display: inline-block;
	color: #16213E;
	background: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 32px;
	border-radius: 4px;
	text-decoration: none;
}

.pfx-footer-signin-row a:hover {
	background: #f0f0f0;
}

.site-footer {
	background: linear-gradient(135deg, var(--pfx-accent) 0%, var(--pfx-accent-dark) 100%);
	color: #16213E;
	margin-top: 48px;
	padding: 0;
}

.pfx-footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
}

.pfx-footer-col h3 {
	color: #16213E;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

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

.pfx-footer-col li {
	margin-bottom: 10px;
}

.pfx-footer-col a {
	color: #16213E;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.15s ease;
}

.pfx-footer-col .pfx-price {
	color: #16213E;
	font-weight: 700;
}

.pfx-footer-col a:hover {
	color: #ffffff;
	padding-left: 4px;
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.pfx-footer-vendor-cta {
	display: inline-block;
	background: #16213E;
	color: #fff !important;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 8px;
	margin-top: 6px;
}

.pfx-footer-vendor-cta:hover {
	background: #0d1226;
	color: #fff !important;
}

.site-footer .site-info {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	border-top: 1px solid rgba(22, 33, 62, 0.25);
	font-size: 13px;
	color: rgba(22, 33, 62, 0.75);
	text-align: center;
}

.site-footer .site-info a {
	color: #16213E;
	font-weight: 600;
}

/* ---------- Carousel ---------- */
.pfx-carousel {
	position: relative;
}

.pfx-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.pfx-carousel-track::-webkit-scrollbar {
	display: none;
}

.pfx-carousel-slide {
	scroll-snap-align: start;
	flex: 0 0 220px;
}

.pfx-carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	font-size: 16px;
	z-index: 2;
	transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, color 0.15s ease;
}

.pfx-carousel-nav:hover {
	background: var(--pfx-footer-navy-light);
	color: #fff;
	transform: translateY(-50%) scale(1.12);
}

.pfx-carousel-slide {
	transition: transform 0.2s ease;
}

.pfx-carousel-prev {
	left: -6px;
}

.pfx-carousel-next {
	right: -6px;
}

@media (max-width: 600px) {
	.pfx-carousel-nav {
		display: none;
	}
}

/* ---------- Vendor info + rating on single product ---------- */
.pfx-vendor-block {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0 18px;
	padding: 12px 16px;
	background: var(--pfx-surface);
	border: 1px solid #eee;
	border-left: 3px solid var(--pfx-accent);
	border-radius: 10px;
	font-size: 14px;
}

.pfx-vendor-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--pfx-success);
	font-weight: 600;
	font-size: 12px;
}

.pfx-vendor-label {
	color: #8a8a8a;
}

.pfx-vendor-name {
	font-weight: 700;
	text-decoration: none;
	color: #2d2d2d;
}

.pfx-vendor-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.pfx-vendor-rating-count {
	color: #9a9a9a;
	font-size: 12px;
}

/* ==========================================================================
   Pagelayer builder overrides — the live header/footer/homepage are built
   with Pagelayer, not theme templates, so the real target classes are
   .pagelayer-header, .pagelayer-wp_menu-ul, .pagelayer-wp-title-heading etc.
   ========================================================================== */

.pagelayer-header {
	background: var(--pfx-footer-navy) !important;
	position: sticky !important;
	top: 0;
	z-index: 999;
	border-bottom: none !important;
	transition: box-shadow 0.2s ease;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}

.pagelayer-wp-title-heading {
	color: #ffffff !important;
	transition: transform 0.2s ease;
	display: inline-block;
}

.pagelayer-wp-title-link {
	margin-right: auto;
}

.pagelayer-wp-title-link:hover .pagelayer-wp-title-heading {
	transform: scale(1.04) rotate(-1deg);
}

.pagelayer-wp_menu-ul {
	margin-left: auto !important;
}

.pagelayer-wp_menu-ul > li > a {
	color: #ffffff !important;
	transition: color 0.2s ease, transform 0.2s ease;
}

.pagelayer-wp_menu-ul > li > a:hover {
	color: var(--pfx-footer-navy-light) !important;
	transform: translateY(-2px);
}

.pagelayer-body {
	--pagelayer-color-accent: var(--pfx-footer-navy-light);
}

.wpvibe-cat-filter a:hover {
	color: var(--pfx-footer-navy-light) !important;
}

/* ---------- Logo (injected inline SVG, replaces plain-text site title) ---------- */
.pagelayer-wp-title-heading {
	display: flex;
	align-items: center;
}

.wpvibe-site-logo {
	display: block;
	height: 40px;
	width: auto;
	transition: transform 0.2s ease;
}

.pagelayer-wp-title-link:hover .wpvibe-site-logo {
	transform: scale(1.03);
}

/* ---------- Nav avatar / login item (injected into Pagelayer header menu) ---------- */
.pagelayer-wp_menu-ul .wpvibe-header-avatar-item {
	display: flex;
	align-items: center;
}

.wpvibe-header-avatar {
	display: flex !important;
	align-items: center;
	padding: 0 !important;
}

.wpvibe-header-avatar img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px var(--pfx-accent);
	object-fit: cover;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wpvibe-header-avatar:hover img {
	transform: scale(1.08);
}

.wpvibe-header-login-link {
	display: inline-block;
	background: var(--pfx-accent);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 13px;
	padding: 8px 16px !important;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wpvibe-header-login-link:hover {
	background: var(--pfx-accent-dark);
	transform: translateY(-1px);
}

.wpvibe-shop-filters .price_slider_amount .button {
	background-color: var(--pfx-accent) !important;
	border-color: var(--pfx-accent) !important;
	transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wpvibe-shop-filters .price_slider_amount .button:hover {
	transform: scale(1.05);
}

ul.products li.product {
	animation: pfx-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(240, 121, 59, 0.28);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 8px 20px rgba(255, 107, 26, 0.3);
}

