/* Party Deals Central — theme polish layer (complements theme.json) */

:root {
	--pdc-radius: 18px;
	--pdc-transition: 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
	background-color: #fff;
}

/* Logo lockup */
.pdc-brand-mark {
	gap: 0.6rem;
}
.pdc-logo svg {
	display: block;
	transition: transform var(--pdc-transition);
}
.pdc-logo:hover svg {
	transform: rotate(-8deg) scale(1.08);
}

/* Hero staggered entrance — motion is opt-in via the media query itself, so
   reduced-motion users simply see the final state with no animation at all
   (no JS/base-state gymnastics required). */
@media (prefers-reduced-motion: no-preference) {
	.pdc-rise-in {
		opacity: 0;
		animation: pdc-rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}
	@keyframes pdc-rise-in {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

/* Header */
.pdc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(1.1);
}

/* Buttons: playful pop on hover */
.wp-block-button__link,
.wc-block-components-button {
	transition: transform var(--pdc-transition), box-shadow var(--pdc-transition), background-color var(--pdc-transition) !important;
}
.wp-block-button__link:hover,
.wc-block-components-button:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}

/* Hero confetti texture */
.pdc-hero {
	position: relative;
	overflow: hidden;
}
.pdc-hero::before,
.pdc-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	opacity: 0.35;
	pointer-events: none;
}
.pdc-hero::before {
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, #ffffff 0%, transparent 70%);
	top: -80px;
	left: -60px;
}
.pdc-hero::after {
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, #2563EB 0%, transparent 70%);
	bottom: -140px;
	right: -80px;
}

/* Product category tiles ([product_categories] shortcode output) */
ul.products.product_categories,
ul.products {
	list-style: none;
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem;
	padding: 0;
	margin: 2rem 0 0;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 782px) {
	ul.products.product_categories,
	ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
/* WooCommerce adds clearfix pseudo-elements (content:" "; display:table;) for
   its old float-based grid. As grid items themselves, they eat a real cell in
   our CSS Grid layout, shifting every tile after them — strip them here. */
ul.products.product_categories::before,
ul.products.product_categories::after,
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}
ul.products.product_categories li.product-category,
ul.products li.product {
	background: #fff;
	border-radius: var(--pdc-radius);
	padding: 1.25rem;
	text-align: center;
	box-shadow: 0 2px 10px rgba(42, 14, 30, 0.06);
	transition: transform var(--pdc-transition), box-shadow var(--pdc-transition);
	list-style: none;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	clear: none !important;
}
ul.products.product_categories li.product-category:hover,
ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 30px rgba(42, 14, 30, 0.14);
}
ul.products.product_categories li.product-category img,
ul.products li.product img {
	border-radius: 12px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100% !important;
	height: auto !important;
}
ul.products.product_categories li.product-category mark {
	background: none;
	color: var(--wp--preset--color--stone);
	font-weight: 400;
	font-size: 0.85rem;
}
ul.products.product_categories li.product-category h2,
ul.products.product_categories li.product-category .woocommerce-loop-category__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.05rem;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--midnight-plum);
}
ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--midnight-plum);
}
ul.products li.product .price {
	color: var(--wp--preset--color--raspberry);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--display);
}
ul.products li.product .button {
	border-radius: 999px !important;
	background: var(--wp--preset--color--raspberry) !important;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}
ul.products li.product .button:hover {
	background: var(--wp--preset--color--raspberry-dark) !important;
}

/* Founder avatar placeholder — swap for a real photo of Betty before launch */
.pdc-betty-avatar {
	width: 260px;
	height: 260px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #E11D48 0%, #F59E0B 100%);
	box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}
.pdc-betty-avatar span {
	font-family: var(--wp--preset--font-family--display);
	font-size: 6rem;
	font-weight: 700;
	color: #fff;
}

/* WooCommerce block-based Product Collection (Shop/archive pages use this,
   not the classic [products] shortcode markup used on the homepage). */
.wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.75rem !important;
	list-style: none;
	padding: 0;
}
@media (max-width: 992px) {
	.wc-block-product-template {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}
@media (max-width: 700px) {
	.wc-block-product-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
.wc-block-product-template .wc-block-product {
	background: #fff;
	border-radius: var(--pdc-radius);
	padding: 1.25rem;
	text-align: center;
	box-shadow: 0 2px 10px rgba(42, 14, 30, 0.06);
	transition: transform var(--pdc-transition), box-shadow var(--pdc-transition);
	margin: 0 !important;
}
.wc-block-product-template .wc-block-product:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 30px rgba(42, 14, 30, 0.14);
}
.wc-block-product-template .wc-block-components-product-image img {
	border-radius: 12px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100% !important;
	height: auto !important;
}
.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--midnight-plum);
}
.wc-block-product-template .wp-block-post-title a {
	color: inherit;
}
.wc-block-product-template .wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--raspberry);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--display);
}
.wc-block-product-template .wc-block-components-product-button .wp-block-button__link {
	border-radius: 999px !important;
	background: var(--wp--preset--color--raspberry) !important;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	width: 100%;
}
.wc-block-product-template .wc-block-components-product-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--raspberry-dark) !important;
}

/* Blog cards */
.pdc-blog-card {
	padding: 1rem;
	transition: transform var(--pdc-transition), box-shadow var(--pdc-transition);
}
.pdc-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(42, 14, 30, 0.1);
}

/* Auto-scrolling testimonials marquee (real Amazon seller reviews) */
.pdc-testimonials-wrap {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.pdc-testimonials-track {
	display: flex;
	gap: 1.5rem;
	width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
	.pdc-testimonials-track {
		animation: pdc-marquee 36s linear infinite;
	}
	.pdc-testimonials-wrap:hover .pdc-testimonials-track {
		animation-play-state: paused;
	}
	@keyframes pdc-marquee {
		from {
			transform: translateX(0);
		}
		to {
			transform: translateX(-50%);
		}
	}
}
/* Reduced motion: skip the animation and let hosts browse the strip by hand
   instead, rather than just truncating it to the first few cards. */
@media (prefers-reduced-motion: reduce) {
	.pdc-testimonials-wrap {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}
.pdc-testimonial-card {
	flex: 0 0 auto;
	width: 280px;
	background: #fff;
	border-radius: var(--pdc-radius);
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(42, 14, 30, 0.06);
}
.pdc-testimonial-stars {
	color: var(--wp--preset--color--confetti-gold);
	letter-spacing: 0.15em;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}
.pdc-testimonial-quote {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	color: var(--wp--preset--color--midnight-plum);
	margin: 0 0 0.75rem;
	line-height: 1.4;
}
.pdc-testimonial-name {
	font-size: 0.85rem;
	color: var(--wp--preset--color--stone);
	margin: 0;
	font-weight: 600;
}
.pdc-testimonial-name span {
	font-weight: 400;
}

/* Native contact form */
.pdc-contact-form label {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.pdc-contact-form input,
.pdc-contact-form textarea {
	width: 100%;
	border: 2px solid var(--wp--preset--color--petal);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	box-sizing: border-box;
}
.pdc-contact-form input:focus,
.pdc-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--raspberry);
}
.pdc-contact-form button {
	border: none;
	cursor: pointer;
}
.pdc-contact-success {
	background: var(--wp--preset--color--blush-bg);
	color: var(--wp--preset--color--raspberry-dark);
	border-radius: 12px;
	padding: 0.85rem 1.1rem;
	font-weight: 600;
}

/* Native newsletter signup form */
.pdc-newsletter-row {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 420px;
	margin: 0 auto;
}
.pdc-newsletter-row input[type="email"] {
	flex: 1 1 220px;
	border-radius: 999px;
	border: none;
	padding: 0.85rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}
.pdc-newsletter-row input[type="email"]:focus {
	outline: 3px solid var(--wp--preset--color--confetti-gold);
}
.pdc-newsletter-form button {
	border-radius: 999px;
	background: var(--wp--preset--color--confetti-gold);
	color: var(--wp--preset--color--midnight-plum);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	border: none;
	padding: 0.85rem 1.75rem;
	cursor: pointer;
}
.pdc-newsletter-form .pdc-contact-success {
	max-width: 420px;
	margin: 0 auto;
}
/* Footer variant: left-aligned, stacked */
.pdc-footer .pdc-newsletter-row {
	margin: 0;
	justify-content: flex-start;
}

/* ---------- Mobile refinements ---------- */

/* Header: keep logo + hamburger + account + cart on one tidy row.
   The full wordmark competes with the nav/cart icons for space on narrow
   phones, so collapse to just the icon mark below 480px. */
@media (max-width: 480px) {
	.pdc-header .wp-block-group {
		flex-wrap: nowrap;
	}
	.pdc-header .wp-block-site-title {
		display: none;
	}
	.pdc-brand-mark {
		gap: 0;
	}
}

/* Mobile nav overlay: brand it, and force a full-viewport takeover.
   The active Gutenberg plugin's overlay CSS leaves this at content-height
   (a small box) instead of filling the screen — override explicitly. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--midnight-plum) !important;
	height: 100vh !important;
	width: 100vw !important;
	align-items: center !important;
	justify-content: center !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	height: auto !important;
	width: 100%;
	justify-content: center;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon path {
	color: var(--wp--preset--color--white) !important;
	fill: var(--wp--preset--color--white) !important;
	font-size: 1.15rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--confetti-gold) !important;
}
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

/* Hero: the "huge"/"xx-large" preset sizes are tuned for desktop; scale
   them down with clamp() so headlines don't overflow small phones. */
.pdc-hero h1.has-huge-font-size {
	font-size: clamp(2.25rem, 9vw, 4.5rem) !important;
}
/* theme.json's default h2 size (xx-large, 3.25rem) is too large for a plain
   section heading. Reduce it site-wide — deliberately WITHOUT !important, so
   more specific rules (e.g. .product-category h2, blog card titles with an
   explicit fontSize) still win via normal cascade specificity instead of
   being clobbered, which is what broke the character-tile titles last time. */
h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}
@media (max-width: 480px) {
	.pdc-hero {
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
	}
	.pdc-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.pdc-hero .wp-block-button {
		width: 100%;
	}
	.pdc-hero .wp-block-button__link {
		text-align: center;
	}
}

/* Shop-by-character grid: 2-up is fine down to phone width, but drop to a
   single column on very narrow screens so tiles stay comfortably tappable. */
@media (max-width: 420px) {
	ul.products.product_categories {
		grid-template-columns: 1fr !important;
	}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.pdc-logo svg,
	ul.products li.product,
	.pdc-blog-card {
		transition: none !important;
	}
}
