/*
Theme Name: Trailer Park Graphics - BUBBA™ Storefront
Author: Trailer Park Graphics, LLC
Description: Lightweight, theme-color-synced digital storefront and membership theme built for Trailer Park Graphics, LLC and BUBBA™.
Version: 1.0.1
Text Domain: tpg-bubba-theme
*/

:root {
	--tpg-bg: #F0F7FF;
	--tpg-card: #FFFFFF;
	--tpg-accent: #3A86FF;
	--tpg-text: #1D3557;
	--tpg-border: rgba(128, 128, 128, 0.22);
	--tpg-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--tpg-bg);
	color: var(--tpg-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--tpg-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

.tpg-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header & Navigation */
.tpg-site-header {
	background: var(--tpg-card);
	border-bottom: 1px solid var(--tpg-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tpg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
	padding: 6px 0;
}

.tpg-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	color: var(--tpg-text);
	text-decoration: none;
	flex-shrink: 0;
}

.tpg-brand:hover {
	text-decoration: none;
	opacity: 0.9;
}

.tpg-brand img,
.tpg-brand .custom-logo {
	max-height: 52px !important;
	width: auto !important;
	height: auto !important;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.tpg-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.tpg-brand small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.72;
	line-height: 1.1;
}

/* Main Nav + Clean Hover Dropdowns */
.tpg-nav-wrap {
	flex: 1;
	display: flex;
	justify-content: center;
}

.tpg-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpg-nav li {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpg-nav > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 4px;
	color: var(--tpg-text);
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
}

.tpg-nav > li > a:hover {
	color: var(--tpg-accent);
}

.tpg-nav > li.menu-item-has-children > a::after {
	content: "▾";
	font-size: 11px;
	opacity: 0.65;
}

.tpg-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--tpg-card);
	border: 1px solid var(--tpg-border);
	border-radius: 10px;
	padding: 6px 0;
	margin: 0;
	list-style: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
	z-index: 1100;
}

.tpg-nav li:hover > .sub-menu,
.tpg-nav li:focus-within > .sub-menu {
	display: block;
}

.tpg-nav .sub-menu li a {
	display: block;
	padding: 8px 16px;
	color: var(--tpg-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.tpg-nav .sub-menu li a:hover {
	background: var(--tpg-bg);
	color: var(--tpg-accent);
}

.tpg-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.tpg-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--tpg-accent);
	color: #FFFFFF !important;
	padding: 8px 14px;
	border-radius: 99px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	text-decoration: none !important;
}

.tpg-pill-btn:hover {
	opacity: 0.92;
}

.tpg-pill-outline {
	background: transparent;
	color: var(--tpg-text) !important;
	border: 1px solid var(--tpg-border);
}

.tpg-mobile-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--tpg-border);
	color: var(--tpg-text);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 18px;
	cursor: pointer;
}

/* Main Layout */
.tpg-site-main {
	flex: 1;
	padding: 32px 0 54px 0;
}

.tpg-surface {
	background: var(--tpg-card);
	border: 1px solid var(--tpg-border);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--tpg-shadow);
}

/* Hero Banner */
.tpg-hero {
	background: var(--tpg-card);
	border: 1px solid var(--tpg-border);
	border-radius: 20px;
	padding: 44px 32px;
	text-align: center;
	box-shadow: var(--tpg-shadow);
	margin-bottom: 36px;
}

.tpg-hero h1 {
	margin: 0 0 12px 0;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
}

.tpg-hero p {
	max-width: 680px;
	margin: 0 auto 24px auto;
	font-size: 17px;
	opacity: 0.85;
}

.tpg-hero-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Single Product Layout */
.tpg-single-product {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: start;
}

.tpg-product-main-img {
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--tpg-border);
	display: block;
	object-fit: cover;
	max-height: 460px;
}

.tpg-gallery-strip {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.tpg-gallery-strip img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid var(--tpg-border);
	cursor: pointer;
}

.tpg-gallery-strip img:hover {
	border-color: var(--tpg-accent);
}

.tpg-price-big {
	font-size: 32px;
	font-weight: 800;
	margin: 14px 0;
}

.tpg-file-pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid var(--tpg-border);
	background: var(--tpg-bg);
	font-size: 13px;
	font-weight: 600;
	margin: 0 6px 6px 0;
}

/* Footer */
.tpg-site-footer {
	background: var(--tpg-card);
	border-top: 1px solid var(--tpg-border);
	padding: 26px 0;
	font-size: 14px;
	margin-top: auto;
}

.tpg-footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 960px) {
	.tpg-single-product {
		grid-template-columns: 1fr;
	}
	.tpg-mobile-toggle {
		display: inline-block;
	}
	.tpg-nav-wrap {
		display: none;
		width: 100%;
		justify-content: flex-start;
		padding-bottom: 14px;
	}
	.tpg-nav-wrap.open {
		display: block;
	}
	.tpg-header-inner {
		flex-wrap: wrap;
	}
	.tpg-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding-top: 10px;
	}
	.tpg-nav .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		border: none;
		padding-left: 16px;
		background: transparent;
	}
}
/* Auto-sized Header Logo */
.tpg-logo-img {
	width: 54px !important;
	height: 54px !important;
	max-width: 54px !important;
	max-height: 54px !important;
	object-fit: contain;
	border-radius: 50%;
	flex-shrink: 0;
	display: block;
}

.tpg-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

/* 600x600 Square Product Images (Zero Cropping) */
.tpg-single-product {
	grid-template-columns: minmax(0, 600px) 1fr;
}

.tpg-product-main-img {
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1 / 1;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
	background: var(--tpg-bg);
}

.tpg-card-ui img:not(.emoji) {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	height: auto !important;
	object-fit: contain !important;
	background: var(--tpg-bg);
	display: block;
}

.tpg-card-ui img.emoji,
.tpg-btn img.emoji {
	width: 1em !important;
	height: 1em !important;
	aspect-ratio: auto !important;
	display: inline !important;
	vertical-align: -0.1em !important;
	margin: 0 4px 0 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
}

@media (max-width: 960px) {
	.tpg-single-product {
		grid-template-columns: 1fr;
	}
}