/*
Theme Name: PH Store
Description: Hebrew RTL storefront theme with hero carousel and category grid (placeholder content).
Version: 1.2.0
Text Domain: ph-store
*/

:root {
	--ink: #1d1d2c;
	--muted: #6b6b80;
	--bg: #ffffff;
	--soft: #f5f3fa;
	--brand: #d6246e;
	--brand-dark: #a8124f;
	--line: #e7e4ef;
	--radius: 18px;
	--max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Heebo", "Assistant", Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Placeholder boxes */
.ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #ece9f3 0 12px, #f5f3fa 12px 24px);
	color: var(--muted);
	font-size: 13px;
	border: 1px dashed #c9c3d8;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	font-weight: 700;
}
.brand .tagline { font-size: 14px; color: var(--muted); max-width: 220px; line-height: 1.4; }
.brand .name { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 500;
	transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--soft); color: var(--brand); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* Hero carousel */
.hero { position: relative; margin: 24px auto 0; }
.hero-track {
	position: relative;
	height: clamp(260px, 42vw, 520px);
	border-radius: var(--radius);
	overflow: hidden;
}
.slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 0 clamp(24px, 6vw, 80px);
	opacity: 0;
	transition: opacity .8s ease;
	color: #fff;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide:nth-child(1) { background: linear-gradient(120deg, #d6246e, #f39c6b); }
.slide:nth-child(2) { background: linear-gradient(120deg, #3a4fd8, #58c7e6); }
.slide:nth-child(3) { background: linear-gradient(120deg, #1f9d6b, #b6e36a); }
.slide-text { max-width: 520px; position: relative; z-index: 2; }
.slide-text h2 { font-size: clamp(28px, 4.5vw, 56px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.slide-text p { font-size: clamp(15px, 1.6vw, 20px); margin: 0 0 20px; opacity: .92; }
.slide-img {
	position: absolute;
	left: clamp(16px, 5vw, 70px);
	top: 50%;
	transform: translateY(-50%);
	width: clamp(140px, 30vw, 380px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	border: 2px dashed rgba(255, 255, 255, .6);
	color: #fff;
}
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 700;
	transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }

.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .85);
	font-size: 22px;
	cursor: pointer;
}
.hero-arrow.prev { right: 14px; }
.hero-arrow.next { left: 14px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-dots button {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: #d4d0de;
	cursor: pointer;
	transition: width .3s, background .3s;
	padding: 0;
}
.hero-dots button.is-active { width: 28px; background: var(--brand); }

/* Peanut butter promo */
.pb-promo {
	--pb-cream: #fff3dc;
	--pb-gold: #ffc15e;
	--pb-orange: #ff8a4c;
	--pb-brown: #3b1f12;
	--pb-caramel: #c9803f;
	position: relative;
	margin-top: 56px;
	background: var(--pb-cream);
	overflow: hidden;
	isolation: isolate;
}

.pb-ribbon {
	background: var(--pb-brown);
	color: var(--pb-gold);
	overflow: hidden;
	transform: rotate(-1.5deg) scale(1.04);
	margin: 18px 0 0;
	padding: 12px 0;
	position: relative;
	z-index: 2;
}
.pb-ribbon-track {
	display: flex;
	width: max-content;
	gap: 28px;
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 800;
	white-space: nowrap;
	animation: pb-marquee 28s linear infinite;
}
@keyframes pb-marquee { to { transform: translateX(50%); } }

.pb-bg .blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	z-index: -1;
}
.pb-bg .b1 { width: 520px; height: 520px; background: var(--pb-gold); top: 40px; left: -140px; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; animation: pb-morph 14s ease-in-out infinite alternate; }
.pb-bg .b2 { width: 260px; height: 260px; background: var(--pb-orange); bottom: -80px; left: 30%; opacity: .55; }
.pb-bg .b3 { width: 180px; height: 180px; background: #f7a8c4; top: 90px; right: 6%; opacity: .5; }
@keyframes pb-morph {
	to { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(12deg); }
}

.pb-inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 80px;
}

.pb-kicker {
	display: inline-block;
	background: #fff;
	color: var(--brand);
	font-weight: 700;
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--pb-brown);
	border: 2px solid var(--pb-brown);
}
.pb-text h2 {
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.05;
	font-weight: 800;
	color: var(--pb-brown);
	margin: 22px 0 18px;
	letter-spacing: -.5px;
}
.pb-text mark {
	background: none;
	color: var(--pb-caramel);
	position: relative;
	white-space: nowrap;
}
.pb-text mark::after {
	content: "";
	position: absolute;
	inset: auto -4px 4px -4px;
	height: .28em;
	background: var(--pb-gold);
	border-radius: 999px;
	z-index: -1;
}
.pb-text p {
	font-size: 18px;
	color: #6a4633;
	max-width: 480px;
	margin: 0 0 26px;
}

.pb-pills {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.pb-pills li {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 2px solid var(--pb-brown);
	border-radius: 999px;
	padding: 6px 14px 6px 16px;
	font-weight: 600;
	color: var(--pb-brown);
	transition: transform .2s, background .2s;
}
.pb-pills li:hover { transform: rotate(-3deg) scale(1.05); background: var(--pb-gold); }
.pb-pills span { font-size: 20px; }

.pb-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.pb-btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 17px;
	border: 3px solid var(--pb-brown);
	transition: transform .15s, box-shadow .15s;
}
.pb-btn.primary {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 6px 0 var(--pb-brown);
}
.pb-btn.primary:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--pb-brown); }
.pb-btn.ghost { background: transparent; color: var(--pb-brown); }
.pb-btn.ghost:hover { background: #fff; }

.pb-visual {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 440px;
}
.pb-cone {
	width: min(100%, 380px);
	height: auto;
	filter: drop-shadow(0 18px 24px rgba(59, 31, 18, .25));
	animation: pb-bob 4s ease-in-out infinite;
}
@keyframes pb-bob {
	50% { transform: translateY(-14px) rotate(-2deg); }
}

.pb-badge {
	position: absolute;
	top: 0;
	right: 4%;
	width: 136px;
	height: 136px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(10deg);
}
.pb-badge svg {
	position: absolute;
	inset: 0;
	filter: drop-shadow(0 5px 0 #3b1f12);
	animation: pb-spin 18s linear infinite;
}
.pb-badge span {
	position: relative;
	color: #fff;
	font-size: 32px;
	font-weight: 800;
}
@keyframes pb-spin { to { transform: rotate(360deg); } }

.float-nut {
	position: absolute;
	width: 36px;
	animation: pb-float 6s ease-in-out infinite;
}
.float-nut.n1 { top: 18%; left: 6%; transform: rotate(-30deg); }
.float-nut.n2 { top: 60%; left: 0; width: 28px; animation-delay: -2s; }
.float-nut.n3 { bottom: 6%; right: 10%; width: 44px; animation-delay: -4s; }
.float-nut.n4 { top: 42%; right: 0; width: 24px; animation-delay: -1s; }
@keyframes pb-float {
	50% { translate: 0 -18px; rotate: 25deg; }
}

.pb-sticker {
	position: absolute;
	bottom: 12%;
	left: 2%;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--pb-gold);
	border: 3px solid var(--pb-brown);
	box-shadow: 0 6px 0 var(--pb-brown);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--pb-brown);
	transform: rotate(-12deg);
	line-height: 1.15;
	padding: 10px;
}
.pb-sticker strong { font-size: 30px; font-weight: 800; }
.pb-sticker span { font-size: 12px; font-weight: 700; }

/* Franchise leads */
.franchise {
	background: #3b1f12;
	color: #fbe9d3;
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}
.franchise::before {
	content: "";
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 193, 94, .25), transparent 70%);
	top: -160px;
	right: -120px;
}
.fr-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.fr-kicker {
	display: inline-block;
	background: #ffc15e;
	color: #3b1f12;
	font-weight: 700;
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 999px;
}
.fr-pitch h2 {
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.1;
	font-weight: 800;
	color: #fff;
	margin: 20px 0 16px;
}
.fr-pitch h2 span { color: #ffc15e; }
.fr-pitch p { font-size: 18px; margin: 0 0 24px; max-width: 480px; opacity: .9; }
.fr-benefits { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.fr-benefits li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.fr-benefits b {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #d6246e;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}
.fr-wa {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #fff;
	font-weight: 700;
	padding: 13px 24px;
	border-radius: 999px;
	transition: transform .2s, background .2s;
}
.fr-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.fr-wa svg { width: 24px; height: 24px; }

.fr-form {
	background: #fff;
	color: var(--ink);
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 10px 0 #ffc15e, 0 24px 60px rgba(0, 0, 0, .35);
	display: grid;
	gap: 14px;
}
.fr-form h3 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #3b1f12; }
.fr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fr-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #5a3a28; }
.fr-form input[type="text"],
.fr-form input[type="tel"],
.fr-form input[type="email"],
.fr-form select,
.fr-form textarea {
	font: inherit;
	font-weight: 400;
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #eadccc;
	border-radius: 12px;
	background: #fffaf3;
	color: var(--ink);
	transition: border-color .2s, background .2s;
}
.fr-form [dir="ltr"] { text-align: right; }
.fr-form input:focus, .fr-form select:focus, .fr-form textarea:focus {
	outline: none;
	border-color: #c9803f;
	background: #fff;
}
.fr-form textarea { resize: vertical; }
.fr-consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.fr-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: #d6246e; }
.fr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fr-submit {
	font: inherit;
	font-weight: 800;
	font-size: 18px;
	padding: 15px;
	border: 3px solid #3b1f12;
	border-radius: 999px;
	background: #d6246e;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 5px 0 #3b1f12;
	transition: transform .15s, box-shadow .15s;
}
.fr-submit:hover { transform: translateY(2px); box-shadow: 0 3px 0 #3b1f12; }
.fr-notice { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.fr-notice.success { background: #e3f8ea; color: #17693a; }
.fr-notice.error { background: #fde7ee; color: #a8124f; }

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	bottom: 22px;
	left: 22px;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	padding: 0 16px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.wa-float::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid #25d366;
	animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; flex: none; }
@keyframes wa-pulse {
	from { transform: scale(1); opacity: .8; }
	to { transform: scale(1.35); opacity: 0; }
}

/* Categories */
.categories { padding: 56px 0 72px; }
.section-title { text-align: center; font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 18px;
}
.cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 22px 12px;
	background: var(--soft);
	border-radius: var(--radius);
	text-align: center;
	font-weight: 600;
	transition: transform .2s, box-shadow .2s, background .2s;
}
.cat:hover, .cat:focus-visible {
	transform: translateY(-4px);
	background: #fff;
	box-shadow: 0 10px 28px rgba(40, 20, 80, .12);
}
.cat-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	background: #fff;
}
.cat:hover .cat-icon { background: var(--soft); }
.cat .badge {
	font-size: 11px;
	background: var(--brand);
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
}

/* Footer */
.site-footer { background: #1d1d2c; color: #cfcde0; padding: 48px 0 28px; }
.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 28px;
	border-bottom: 1px solid #34344a;
}
.site-footer .logo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #2a2a3d;
	border-color: #4a4a63;
	color: #9e9cb5;
	font-weight: 700;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #2a2a3d;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.copyright { text-align: center; font-size: 13px; color: #8d8ba3; padding-top: 22px; margin: 0; }

/* Generic content (index.php) */
.content { padding: 48px 0; }

/* Responsive */
@media (max-width: 900px) {
	.brand .tagline { display: none; }
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
	.pb-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; text-align: center; }
	.pb-text p { margin-inline: auto; }
	.pb-pills, .pb-cta { justify-content: center; }
	.pb-visual { min-height: 360px; }
	.pb-bg .b1 { width: 360px; height: 360px; top: auto; bottom: 40px; }
	.fr-inner { grid-template-columns: 1fr; gap: 40px; }
	.franchise { padding: 56px 0; }
}
@media (max-width: 600px) {
	.slide-img { display: none; }
	.hero-arrow { display: none; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.footer-top { flex-direction: column; text-align: center; }
	.footer-links { justify-content: center; }
	.fr-row { grid-template-columns: 1fr; }
	.fr-form { padding: 24px 18px; }
	.wa-float { width: 60px; padding: 0; justify-content: center; bottom: 16px; left: 16px; }
	.wa-float .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.slide, .cat, .btn { transition: none; }
	.pb-ribbon-track, .pb-bg .b1, .pb-cone, .pb-badge svg, .float-nut, .wa-float::before { animation: none; }
}
