/**
 * Pizza House Child Theme — Design System & Component Styles
 * Prefix: ph-
 * Brand Palette:
 *   Primary Red:   #C8102E
 *   Dark Charcoal: #171717
 *   Golden Yellow: #FFC72C
 *   White:         #FFFFFF
 *   Light Cream:   #FFF8F0
 *   Body Gray:     #666666
 */

:root {
	--ph-red: #C8102E;
	--ph-red-dark: #A00C24;
	--ph-charcoal: #171717;
	--ph-charcoal-soft: #262626;
	--ph-gold: #FFC72C;
	--ph-gold-dark: #E0A800;
	--ph-white: #FFFFFF;
	--ph-cream: #FFF8F0;
	--ph-gray: #666666;
	--ph-border: #EAE2D8;
	--ph-whatsapp: #25D366;
	--ph-whatsapp-dark: #1DA851;
	--ph-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ph-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ph-radius-sm: 8px;
	--ph-radius-md: 14px;
	--ph-radius-lg: 22px;
	--ph-shadow-sm: 0 4px 14px rgba(23, 23, 23, 0.06);
	--ph-shadow-md: 0 12px 32px rgba(23, 23, 23, 0.10);
	--ph-transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ph-theme-active {
	font-family: var(--ph-font-body);
	color: var(--ph-charcoal);
	background-color: var(--ph-white);
	overflow-x: clip;
}

.ph-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

/* ===========================
   Buttons
   =========================== */
.ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-family: var(--ph-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color var(--ph-transition), color var(--ph-transition), transform var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-btn:focus-visible {
	outline: 3px solid var(--ph-gold);
	outline-offset: 2px;
}

.ph-btn--primary {
	background-color: var(--ph-red);
	color: var(--ph-white);
}

.ph-btn--primary:hover,
.ph-btn--primary:focus {
	background-color: var(--ph-red-dark);
	color: var(--ph-white);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}

.ph-btn--gold {
	background-color: var(--ph-gold);
	color: var(--ph-charcoal);
}

.ph-btn--gold:hover,
.ph-btn--gold:focus {
	background-color: var(--ph-gold-dark);
	color: var(--ph-charcoal);
	transform: translateY(-2px);
}

.ph-btn--outline {
	background-color: transparent;
	border-color: var(--ph-charcoal);
	color: var(--ph-charcoal);
}

.ph-btn--outline:hover {
	background-color: var(--ph-charcoal);
	color: var(--ph-white);
}

.ph-btn--whatsapp {
	background-color: var(--ph-whatsapp);
	color: var(--ph-charcoal);
}

.ph-btn--whatsapp:hover,
.ph-btn--whatsapp:focus {
	background-color: var(--ph-whatsapp-dark);
	color: var(--ph-white);
	transform: translateY(-2px);
}

.ph-btn--full {
	width: 100%;
}

.ph-btn--sm {
	padding: 9px 18px;
	font-size: 0.875rem;
}

/* ===========================
   Sticky Responsive Header
   =========================== */
.ph-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ph-border);
	transition: box-shadow var(--ph-transition), padding var(--ph-transition);
}

.ph-header.is-scrolled {
	box-shadow: 0 8px 26px rgba(23, 23, 23, 0.08);
}

.ph-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.ph-header__brand img {
	display: block;
	max-height: 48px;
	width: auto;
}

.ph-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ph-nav__list a {
	font-family: var(--ph-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ph-charcoal);
	text-decoration: none;
	position: relative;
	padding-block: 6px;
	transition: color var(--ph-transition);
}

.ph-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2.5px;
	background-color: var(--ph-red);
	border-radius: 2px;
	transition: width var(--ph-transition);
}

.ph-nav__list a:hover,
.ph-nav__list .current-menu-item > a,
.ph-nav__list .current_page_item > a {
	color: var(--ph-red);
}

.ph-nav__list a:hover::after,
.ph-nav__list .current-menu-item > a::after,
.ph-nav__list .current_page_item > a::after {
	width: 100%;
}

.ph-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ph-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--ph-cream);
	color: var(--ph-charcoal);
	text-decoration: none;
	transition: background-color var(--ph-transition), color var(--ph-transition);
}

.ph-cart-link:hover {
	background-color: var(--ph-gold);
	color: var(--ph-charcoal);
}

.ph-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 21px;
	height: 21px;
	padding-inline: 5px;
	border-radius: 999px;
	background-color: var(--ph-red);
	color: var(--ph-white);
	font-family: var(--ph-font-heading);
	font-size: 0.72rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ph-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: var(--ph-cream);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-sm);
	cursor: pointer;
}

.ph-menu-toggle__bar {
	display: block;
	height: 2.5px;
	width: 100%;
	background-color: var(--ph-charcoal);
	border-radius: 2px;
	transition: transform var(--ph-transition), opacity var(--ph-transition);
}

.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bar:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bar:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

.ph-mobile-drawer {
	background-color: var(--ph-white);
	border-top: 1px solid var(--ph-border);
	box-shadow: var(--ph-shadow-md);
}

.ph-mobile-drawer__inner {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ph-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ph-mobile-nav__list a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--ph-radius-sm);
	font-family: var(--ph-font-heading);
	font-weight: 600;
	color: var(--ph-charcoal);
	text-decoration: none;
}

.ph-mobile-nav__list a:hover {
	background-color: var(--ph-cream);
	color: var(--ph-red);
}

.ph-mobile-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ===========================
   Global Footer
   =========================== */
.ph-footer {
	background-color: var(--ph-charcoal);
	color: #E5E5E5;
	padding-top: 64px;
}

.ph-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 48px;
}

.ph-footer__desc {
	margin-top: 16px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #CCCCCC;
}

.ph-footer__heading {
	font-family: var(--ph-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ph-white);
	margin: 0 0 18px;
	position: relative;
	padding-bottom: 10px;
}

.ph-footer__heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	background-color: var(--ph-gold);
	border-radius: 2px;
}

.ph-footer__links,
.ph-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.92rem;
}

.ph-footer__links a,
.ph-footer__contact a {
	color: #D4D4D4;
	text-decoration: none;
	transition: color var(--ph-transition);
}

.ph-footer__links a:hover,
.ph-footer__contact a:hover {
	color: var(--ph-gold);
}

.ph-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.ph-social-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: var(--ph-charcoal-soft);
	color: var(--ph-white);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	transition: border-color var(--ph-transition), color var(--ph-transition);
}

.ph-social-pill:hover {
	border-color: var(--ph-gold);
	color: var(--ph-gold);
}

.ph-footer__wa-btn {
	margin-top: 18px;
}

.ph-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 20px;
	font-size: 0.875rem;
	color: #A3A3A3;
	text-align: center;
}

/* ===========================
   Menu Filter Bar & Product Cards
   =========================== */
.ph-filter-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 32px;
}

.ph-filter-pill {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--ph-border);
	background-color: var(--ph-white);
	color: var(--ph-charcoal);
	font-family: var(--ph-font-heading);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--ph-transition);
}

.ph-filter-pill:hover,
.ph-filter-pill.is-active {
	background-color: var(--ph-red);
	border-color: var(--ph-red);
	color: var(--ph-white);
}

.ph-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.ph-product-grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.ph-product-card {
	background-color: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--ph-shadow-sm);
	transition: transform var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-product-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--ph-shadow-md);
}

.ph-product-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--ph-cream);
}

.ph-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ph-product-card:hover .ph-product-card__media img {
	transform: scale(1.06);
}

.ph-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	font-family: var(--ph-font-heading);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ph-badge--sale {
	background-color: var(--ph-red);
	color: var(--ph-white);
}

.ph-badge--deal {
	background-color: var(--ph-gold);
	color: var(--ph-charcoal);
}

.ph-product-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.ph-product-card__cat {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ph-red);
}

.ph-product-card__title {
	margin: 0;
	font-family: var(--ph-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ph-charcoal);
}

.ph-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.ph-product-card__desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--ph-gray);
	flex: 1;
}

.ph-product-card__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ph-size-chip {
	padding: 3px 10px;
	border-radius: 6px;
	background-color: var(--ph-cream);
	border: 1px solid var(--ph-border);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ph-charcoal);
}

.ph-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--ph-border);
}

.ph-product-card__price {
	font-family: var(--ph-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ph-charcoal);
}

.ph-product-card__price del {
	color: var(--ph-gray);
	font-weight: 500;
	font-size: 0.88rem;
	margin-right: 6px;
}

.ph-product-card__price ins {
	text-decoration: none;
	color: var(--ph-red);
}

/* ===========================
   Delivery Areas & Contact Form
   =========================== */
.ph-areas-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.ph-area-card {
	background-color: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-md);
	padding: 16px;
	text-align: center;
	box-shadow: var(--ph-shadow-sm);
	transition: border-color var(--ph-transition), transform var(--ph-transition);
}

.ph-area-card:hover {
	border-color: var(--ph-red);
	transform: translateY(-3px);
}

.ph-area-card__name {
	font-family: var(--ph-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ph-charcoal);
	margin: 0 0 4px;
}

.ph-area-card__fee {
	font-size: 0.82rem;
	color: var(--ph-gray);
	margin: 0;
}

.ph-areas-disclaimer {
	margin-top: 18px;
	text-align: center;
	font-size: 0.88rem;
	color: var(--ph-gray);
}

.ph-contact-form {
	display: grid;
	gap: 16px;
	background-color: var(--ph-white);
	padding: 28px;
	border-radius: var(--ph-radius-md);
	border: 1px solid var(--ph-border);
	box-shadow: var(--ph-shadow-sm);
}

.ph-form-field label {
	display: block;
	font-family: var(--ph-font-heading);
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--ph-charcoal);
}

.ph-form-field input,
.ph-form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ph-border);
	border-radius: var(--ph-radius-sm);
	font-family: var(--ph-font-body);
	font-size: 0.95rem;
	box-sizing: border-box;
	transition: border-color var(--ph-transition);
}

.ph-form-field input:focus,
.ph-form-field textarea:focus {
	outline: none;
	border-color: var(--ph-red);
}

.ph-notice {
	padding: 14px 18px;
	border-radius: var(--ph-radius-sm);
	font-size: 0.92rem;
	font-weight: 500;
}

.ph-notice--success {
	background-color: #E8F8EE;
	border: 1px solid #8CE0AC;
	color: #125A2E;
}

.ph-notice--error {
	background-color: #FDECEE;
	border: 1px solid #F5A7B1;
	color: #8D0B20;
}

/* ===========================
   WooCommerce Cart, Checkout & WhatsApp Box
   =========================== */
.ph-wc-main {
	padding-block: 44px;
}

.ph-theme-active .woocommerce table.shop_table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-md);
	overflow: hidden;
	background: var(--ph-white);
}

.ph-theme-active .woocommerce table.shop_table th {
	background-color: var(--ph-cream);
	font-family: var(--ph-font-heading);
	color: var(--ph-charcoal);
	padding: 14px 16px;
}

.ph-theme-active .woocommerce table.shop_table td {
	padding: 14px 16px;
	vertical-align: middle;
}

.ph-theme-active .woocommerce a.button.alt,
.ph-theme-active .woocommerce button.button.alt,
.ph-theme-active .woocommerce input.button.alt {
	background-color: var(--ph-red);
	color: var(--ph-white);
	border-radius: 999px;
	font-family: var(--ph-font-heading);
	font-weight: 600;
	padding: 14px 28px;
}

.ph-theme-active .woocommerce a.button.alt:hover,
.ph-theme-active .woocommerce button.button.alt:hover,
.ph-theme-active .woocommerce input.button.alt:hover {
	background-color: var(--ph-red-dark);
}

.ph-whatsapp-order-box {
	margin-block: 28px;
	padding: 26px;
	border-radius: var(--ph-radius-md);
	background-color: var(--ph-cream);
	border: 2px solid var(--ph-gold);
}

.ph-whatsapp-order-box h3 {
	margin: 0 0 10px;
	font-family: var(--ph-font-heading);
	font-size: 1.25rem;
	color: var(--ph-charcoal);
}

.ph-whatsapp-order-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.ph-whatsapp-fallback-text {
	width: 100%;
	margin-top: 14px;
	padding: 12px;
	border-radius: var(--ph-radius-sm);
	border: 1px solid var(--ph-border);
	background-color: var(--ph-white);
	font-family: monospace;
	font-size: 0.85rem;
	resize: vertical;
	box-sizing: border-box;
}

/* ===========================
   Subtle Scroll Reveal
   =========================== */
.ph-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.ph-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ph-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.ph-product-card,
	.ph-product-card__media img,
	.ph-btn {
		transition: none;
	}
}

/* ===========================
   Responsive Breakpoints
   =========================== */
@media (max-width: 1024px) {
	.ph-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ph-areas-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ph-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ph-nav,
	.ph-header__cta {
		display: none;
	}
	.ph-menu-toggle {
		display: inline-flex;
	}
	.ph-product-grid {
		grid-template-columns: 1fr;
	}
	.ph-areas-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ph-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
