/* =========================================================================
   Purple Box Bakeshop — Main Stylesheet
   Design system: CSS custom properties + BEM-ish "pbb-" prefixed classes.
   ========================================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
	--pbb-purple: #663399;
	--pbb-purple-dark: #3F1F5C;
	--pbb-purple-darker: #2B1240;
	--pbb-purple-light: #9B6FCE;
	--pbb-purple-lighter: #C8A8E9;
	--pbb-lavender: #F4EEFB;
	--pbb-gold: #D4AF37;
	--pbb-gold-light: #E8C766;
	--pbb-cream: #FFF8F0;
	--pbb-charcoal: #2B2530;
	--pbb-gray: #6B6470;
	--pbb-gray-light: #E9E4EF;
	--pbb-white: #FFFFFF;
	--pbb-success: #2E7D32;
	--pbb-error: #C62828;

	--pbb-font-heading: 'Plus Jakarta Sans', sans-serif;
	--pbb-font-body: 'Manrope', sans-serif;

	--pbb-radius-sm: 10px;
	--pbb-radius-md: 16px;
	--pbb-radius-lg: 28px;
	--pbb-radius-pill: 999px;

	--pbb-shadow-sm: 0 2px 10px rgba(43, 18, 64, 0.08);
	--pbb-shadow-md: 0 10px 30px rgba(43, 18, 64, 0.12);
	--pbb-shadow-lg: 0 20px 50px rgba(43, 18, 64, 0.18);

	--pbb-container: 1240px;
	--pbb-header-h: 84px;
	--pbb-announcement-h: 40px;

	--pbb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pbb-header-h) + var(--pbb-announcement-h) + 12px); }
body {
	margin: 0;
	font-family: var(--pbb-font-body);
	color: var(--pbb-charcoal);
	background: var(--pbb-white);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--pbb-font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; color: var(--pbb-purple-darker); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.pbb-skip-link { position: absolute; top: -999px; left: 0; background: var(--pbb-purple); color: #fff; padding: 12px 20px; z-index: 9999; }
.pbb-skip-link:focus { top: 0; }

.pbb-container { max-width: var(--pbb-container); margin: 0 auto; padding: 0 24px; }

/* ---------- 3. Buttons ---------- */
.pbb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 28px; border-radius: var(--pbb-radius-pill);
	font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
	transition: transform 0.25s var(--pbb-ease), box-shadow 0.25s var(--pbb-ease), background-color 0.25s var(--pbb-ease), color 0.25s var(--pbb-ease);
	white-space: nowrap;
}
.pbb-btn:hover { transform: translateY(-3px); }
.pbb-btn--primary { background: var(--pbb-purple); color: #fff; box-shadow: var(--pbb-shadow-sm); }
.pbb-btn--primary:hover { background: var(--pbb-purple-dark); box-shadow: var(--pbb-shadow-md); color: #fff; }
.pbb-btn--gold { background: linear-gradient(135deg, var(--pbb-gold-light), var(--pbb-gold)); color: var(--pbb-purple-darker); box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35); }
.pbb-btn--gold:hover { box-shadow: 0 14px 32px rgba(212, 175, 55, 0.5); color: var(--pbb-purple-darker); }
.pbb-btn--outline { background: transparent; color: var(--pbb-purple); border-color: var(--pbb-purple); }
.pbb-btn--outline:hover { background: var(--pbb-purple); color: #fff; }
.pbb-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.pbb-btn--outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.pbb-btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.pbb-btn--block { width: 100%; }
.pbb-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.pbb-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; background: var(--pbb-lavender); color: var(--pbb-purple);
	transition: background 0.2s ease, color 0.2s ease;
}
.pbb-icon-btn:hover { background: var(--pbb-purple); color: #fff; }
.pbb-cart-count {
	position: absolute; top: -4px; right: -4px; background: var(--pbb-gold); color: var(--pbb-purple-darker);
	font-size: 0.65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.pbb-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--pbb-gold-light);
	margin-bottom: 14px;
}
.pbb-eyebrow--dark { color: var(--pbb-purple); }

.pbb-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pbb-purple); }
.pbb-link-arrow i { transition: transform 0.2s ease; }
.pbb-link-arrow:hover i { transform: translateX(4px); }

/* ---------- 4. Scroll Reveal ---------- */
.pbb-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--pbb-ease), transform 0.7s var(--pbb-ease); transition-delay: var(--reveal-delay, 0ms); }
.pbb-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.pbb-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- 5. Announcement Bar + Header ---------- */
.pbb-announcement-bar { background: var(--pbb-purple-darker); color: #fff; height: var(--pbb-announcement-h); }
.pbb-announcement-bar__inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; font-weight: 600; text-align: center; }
.pbb-announcement-bar__inner i { color: var(--pbb-gold); }

.pbb-header {
	position: sticky; top: 0; z-index: 500; height: var(--pbb-header-h);
	background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.pbb-header.is-stuck { box-shadow: var(--pbb-shadow-md); height: 68px; border-bottom-color: var(--pbb-gray-light); }
.pbb-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.pbb-header__logo img { max-height: 52px; width: auto; }
.pbb-logo-text { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pbb-font-heading); font-weight: 800; font-size: 1.3rem; color: var(--pbb-purple); }
.pbb-logo-text__box { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--pbb-purple-light), var(--pbb-purple)); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.pbb-logo-text--light { color: #fff; }

.pbb-nav-menu { display: flex; align-items: center; gap: 32px; }
.pbb-nav-menu a { font-weight: 600; font-size: 0.95rem; color: var(--pbb-charcoal); position: relative; padding: 6px 0; }
.pbb-nav-menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--pbb-gold); transition: width 0.25s ease; }
.pbb-nav-menu a:hover::after, .pbb-nav-menu .current-menu-item a::after { width: 100%; }
.pbb-nav-menu .current-menu-item a { color: var(--pbb-purple); }

.pbb-header__actions { display: flex; align-items: center; gap: 12px; }
.pbb-header__cta { display: inline-flex; }

.pbb-menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: none; }
.pbb-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--pbb-purple-darker); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; margin: 0 auto; }
.pbb-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pbb-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pbb-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pbb-mobile-menu {
	position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 86vw); background: #fff;
	z-index: 700; box-shadow: -20px 0 40px rgba(0,0,0,0.15); transform: translateX(100%);
	transition: transform 0.35s var(--pbb-ease); overflow-y: auto;
}
.pbb-mobile-menu.is-open { transform: translateX(0); }
.pbb-mobile-menu__inner { padding: 100px 28px 40px; display: flex; flex-direction: column; gap: 24px; }
.pbb-mobile-menu__list { display: flex; flex-direction: column; gap: 4px; }
.pbb-mobile-menu__list a { display: block; padding: 12px 0; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--pbb-gray-light); }
.pbb-mobile-menu__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--pbb-purple); font-weight: 700; }
.pbb-mobile-menu__backdrop { position: fixed; inset: 0; background: rgba(43,18,64,0.5); z-index: 650; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.pbb-mobile-menu__backdrop.is-open { opacity: 1; visibility: visible; }
body.pbb-menu-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.pbb-hero {
	position: relative; overflow: hidden; padding: 90px 0 70px;
	background: radial-gradient(circle at 15% 20%, var(--pbb-purple-light) 0%, transparent 45%), linear-gradient(160deg, var(--pbb-purple-darker) 0%, var(--pbb-purple) 55%, var(--pbb-purple-dark) 100%);
	color: #fff;
}
.pbb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('https://purpleboxbakeshop.com/wp-content/uploads/2026/07/FA-Purple-Box-Patterns.jpg');
	background-repeat: repeat;
	background-size: 380px auto;
	mix-blend-mode: soft-light;
	opacity: 0.35;
	z-index: 0;
	pointer-events: none;
}
.pbb-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pbb-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45; animation: pbb-blob-float 14s ease-in-out infinite; }
.pbb-hero__blob--1 { width: 420px; height: 420px; background: var(--pbb-gold); top: -120px; right: -100px; animation-duration: 16s; }
.pbb-hero__blob--2 { width: 340px; height: 340px; background: var(--pbb-purple-light); bottom: -140px; left: -80px; animation-duration: 18s; animation-delay: -4s; }
.pbb-hero__blob--3 { width: 260px; height: 260px; background: #fff; opacity: 0.12; top: 40%; left: 45%; animation-duration: 20s; animation-delay: -8s; }
@keyframes pbb-blob-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(30px, -30px) scale(1.08); }
	66% { transform: translate(-20px, 20px) scale(0.95); }
}

.pbb-hero__floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pbb-floater { position: absolute; font-size: 2.6rem; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.25)); animation: pbb-float-bob 6s ease-in-out infinite; will-change: transform; }
.pbb-floater--cupcake { top: 14%; left: 6%; animation-duration: 5.5s; }
.pbb-floater--cake { top: 62%; left: 4%; font-size: 3.2rem; animation-duration: 7s; animation-delay: -1.5s; }
.pbb-floater--donut { top: 20%; right: 8%; animation-duration: 6.5s; animation-delay: -3s; }
.pbb-floater--cookie { top: 72%; right: 6%; font-size: 2.2rem; animation-duration: 5s; animation-delay: -2s; }
.pbb-floater--candle { top: 46%; right: 20%; font-size: 1.9rem; animation-duration: 6.2s; animation-delay: -4.4s; opacity: 0.85; }
@keyframes pbb-float-bob {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50% { transform: translateY(-22px) rotate(4deg); }
}

.pbb-hero__sprinkles {
	position: absolute; inset: 0;
	background-image:
		radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.5) 50%, transparent 50%),
		radial-gradient(2px 2px at 80% 10%, rgba(255,255,255,0.4) 50%, transparent 50%),
		radial-gradient(3px 3px at 60% 80%, rgba(255,255,255,0.3) 50%, transparent 50%),
		radial-gradient(2px 2px at 30% 60%, rgba(255,255,255,0.4) 50%, transparent 50%),
		radial-gradient(2px 2px at 90% 70%, rgba(255,255,255,0.3) 50%, transparent 50%);
	opacity: 0.6;
}

.pbb-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.pbb-hero__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.pbb-hero__title span { display: inline-block; }
.pbb-hero__subhead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: 32px; }
.pbb-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.pbb-hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.pbb-stat { display: flex; flex-direction: column; }
.pbb-stat__value { display: flex; align-items: baseline; white-space: nowrap; }
.pbb-stat__num, .pbb-stat__suffix { font-family: var(--pbb-font-heading); font-size: 1.9rem; font-weight: 800; color: var(--pbb-gold-light); display: inline; }
.pbb-stat__label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

.pbb-hero__visual { position: relative; }
.pbb-hero__image-frame { position: relative; border-radius: var(--pbb-radius-lg); overflow: hidden; clip-path: inset(0 round var(--pbb-radius-lg)); box-shadow: var(--pbb-shadow-lg); aspect-ratio: 1/1; }
.pbb-hero__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.pbb-hero__ribbon { position: absolute; top: 45px; left: -40px; transform: rotate(-45deg); background: var(--pbb-gold); color: var(--pbb-purple-darker); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.01em; white-space: nowrap; padding: 6px 44px; box-shadow: var(--pbb-shadow-sm); }

.pbb-hero__badge-card {
	position: absolute; background: #fff; color: var(--pbb-charcoal); border-radius: var(--pbb-radius-md);
	padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--pbb-shadow-md);
	animation: pbb-badge-bob 5s ease-in-out infinite;
}
.pbb-hero__badge-card i { color: var(--pbb-purple); font-size: 1.4rem; }
.pbb-hero__badge-card strong { display: block; font-size: 0.85rem; }
.pbb-hero__badge-card span { display: block; font-size: 0.75rem; color: var(--pbb-gray); }
.pbb-hero__badge-card--1 { bottom: -22px; left: -24px; animation-delay: 0s; }
.pbb-hero__badge-card--2 { top: 24px; right: -20px; animation-delay: -2.5s; }
@keyframes pbb-badge-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pbb-hero__scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.6); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; }
.pbb-hero__scroll-cue span { width: 4px; height: 10px; background: #fff; border-radius: 2px; animation: pbb-scroll-cue 1.8s ease-in-out infinite; }
@keyframes pbb-scroll-cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 7. Marquee ---------- */
.pbb-marquee { background: var(--pbb-gold); overflow: hidden; padding: 12px 0; }
.pbb-marquee__track { display: flex; gap: 48px; width: max-content; animation: pbb-marquee-scroll 28s linear infinite; }
.pbb-marquee__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--pbb-purple-darker); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
@keyframes pbb-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Sections & Headings ---------- */
.pbb-section { padding: 88px 0; }
.pbb-section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pbb-section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pbb-section__head--split { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; margin-bottom: 40px; gap: 24px; }
.pbb-section__head--split > div { max-width: 560px; }

/* ---------- 9. Category Showcase ---------- */
.pbb-categories { background: var(--pbb-lavender); }
.pbb-categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pbb-cat-card { position: relative; border-radius: var(--pbb-radius-lg); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--pbb-shadow-sm); transition: transform 0.35s var(--pbb-ease), box-shadow 0.35s var(--pbb-ease); }
.pbb-cat-card:hover { transform: translateY(-8px); box-shadow: var(--pbb-shadow-lg); }
.pbb-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pbb-cat-card:hover img { transform: scale(1.08); }
.pbb-cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,18,64,0.85) 0%, rgba(43,18,64,0.05) 55%); display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.pbb-cat-card__overlay i { transition: transform 0.25s ease; }
.pbb-cat-card:hover .pbb-cat-card__overlay i { transform: translateX(5px); }

/* ---------- 10. Product Grid & Cards ---------- */
.pbb-product-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; }
ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 28px; margin: 0; padding: 0; }
.pbb-product-card, ul.products li.pbb-product-card {
	list-style: none; background: #fff; border-radius: var(--pbb-radius-md); overflow: hidden;
	box-shadow: var(--pbb-shadow-sm); transition: transform 0.3s var(--pbb-ease), box-shadow 0.3s var(--pbb-ease);
	display: flex; flex-direction: column; width: auto; margin: 0; padding: 0; float: none; clear: none; position: relative;
}
.pbb-product-card:hover { transform: translateY(-6px); box-shadow: var(--pbb-shadow-md); }
.pbb-product-card__link { display: block; color: inherit; }
.pbb-product-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--pbb-lavender); }
.pbb-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pbb-product-card:hover .pbb-product-card__media img { transform: scale(1.07); }

.pbb-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pbb-badge { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 10px; border-radius: var(--pbb-radius-pill); }
.pbb-badge--sale { background: var(--pbb-error); color: #fff; }
.pbb-badge--bestseller { background: var(--pbb-gold); color: var(--pbb-purple-darker); }
.pbb-badge--new { background: var(--pbb-purple); color: #fff; }

.pbb-product-card__quickadd {
	position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
	background: #fff; color: var(--pbb-purple); border: none; box-shadow: var(--pbb-shadow-sm);
	display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.pbb-product-card:hover .pbb-product-card__quickadd { opacity: 1; transform: translateY(0); }
.pbb-product-card__quickadd:hover { background: var(--pbb-purple); color: #fff; }

.pbb-product-card__body { padding: 18px 18px 6px; flex: 1; }
.pbb-product-card__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pbb-gray); font-weight: 700; }
.pbb-product-card__title { font-size: 1.02rem; margin: 6px 0 6px; }
.pbb-product-card__title a { color: inherit; }
.pbb-product-card__rating .star-rating { font-size: 0.85rem; color: var(--pbb-gold); }
.pbb-product-card__price, .pbb-product-card .price { font-family: var(--pbb-font-heading); font-weight: 800; color: var(--pbb-purple); font-size: 1.05rem; }
.pbb-product-card .price del { color: var(--pbb-gray); font-weight: 500; opacity: 0.7; margin-right: 6px; }
.pbb-product-card .price ins { text-decoration: none; }

.pbb-product-card__cta { padding: 12px 18px 18px; }
.pbb-product-card__addbtn.add_to_cart_button { width: 100%; }
.pbb-product-card__addbtn.loading { opacity: 0.7; }
.pbb-product-card__addbtn.added::after { content: " ✓"; }

.pbb-empty-state { text-align: center; padding: 60px 20px; color: var(--pbb-gray); background: var(--pbb-lavender); border-radius: var(--pbb-radius-md); }

/* Cart toast */
.pbb-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: var(--pbb-purple-darker); color: #fff; padding: 16px 20px; border-radius: var(--pbb-radius-md); box-shadow: var(--pbb-shadow-lg); display: flex; align-items: center; gap: 12px; transform: translateY(30px); opacity: 0; transition: transform 0.3s var(--pbb-ease), opacity 0.3s var(--pbb-ease); max-width: 320px; }
.pbb-toast.is-visible { transform: translateY(0); opacity: 1; }
.pbb-toast i { color: var(--pbb-gold); font-size: 1.3rem; }
.pbb-toast a { text-decoration: underline; font-weight: 700; }

/* ---------- 11. Custom Cake CTA ---------- */
.pbb-custom-cta { background: linear-gradient(135deg, var(--pbb-purple-dark), var(--pbb-purple)); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.pbb-custom-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pbb-custom-cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pbb-custom-cta p { color: rgba(255,255,255,0.85); max-width: 460px; margin-bottom: 28px; }
.pbb-custom-cta__visual img { border-radius: var(--pbb-radius-lg); box-shadow: var(--pbb-shadow-lg); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- 12. Why Us ---------- */
.pbb-why-us__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pbb-why-card { background: var(--pbb-lavender); border-radius: var(--pbb-radius-md); padding: 32px 24px; text-align: center; transition: transform 0.3s ease; }
.pbb-why-card:hover { transform: translateY(-6px); }
.pbb-why-card__icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--pbb-shadow-sm); }
.pbb-why-card__icon i { font-size: 1.5rem; color: var(--pbb-purple); }
.pbb-why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pbb-why-card p { font-size: 0.9rem; color: var(--pbb-gray); margin: 0; }

/* ---------- 13. Testimonials ---------- */
.pbb-testimonials { background: var(--pbb-cream); }
.pbb-testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; }
.pbb-testimonial-track { display: flex; transition: transform 0.5s var(--pbb-ease); }
.pbb-testimonial-card { min-width: 100%; background: #fff; border-radius: var(--pbb-radius-lg); padding: 40px; text-align: center; box-shadow: var(--pbb-shadow-sm); }
.pbb-stars { color: var(--pbb-gold); letter-spacing: 3px; margin-bottom: 16px; }
.pbb-testimonial-card blockquote { margin: 0 0 24px; font-size: 1.15rem; font-style: italic; color: var(--pbb-purple-darker); }
.pbb-testimonial-card figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pbb-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--pbb-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--pbb-font-heading); }
.pbb-testimonial-card figcaption strong { display: block; font-size: 0.92rem; }
.pbb-testimonial-card figcaption span { font-size: 0.8rem; color: var(--pbb-gray); }
.pbb-testimonial-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.pbb-testimonial-nav button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--pbb-purple); background: transparent; color: var(--pbb-purple); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease; }
.pbb-testimonial-nav button:hover { background: var(--pbb-purple); color: #fff; }

/* ---------- 14. Instagram Grid ---------- */
.pbb-instagrid { background: var(--pbb-lavender); }
.pbb-instagrid .pbb-section__head h2 a { color: var(--pbb-purple); margin-left: 8px; font-size: 0.85em; }
.pbb-instagrid__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pbb-instagrid__item { position: relative; aspect-ratio: 1/1; border-radius: var(--pbb-radius-sm); overflow: hidden; }
.pbb-instagrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pbb-instagrid__overlay { position: absolute; inset: 0; background: rgba(102,51,153,0.6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; opacity: 0; transition: opacity 0.25s ease; }
.pbb-instagrid__item:hover .pbb-instagrid__overlay { opacity: 1; }
.pbb-instagrid__item:hover img { transform: scale(1.1); }

/* ---------- 15. FAQ Accordion ---------- */
.pbb-faq { background: var(--pbb-cream); }
.pbb-faq__inner { max-width: 760px; }
.pbb-accordion__item { border-bottom: 1px solid var(--pbb-gray-light); }
.pbb-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: none; padding: 20px 4px; text-align: left; font-weight: 700; font-size: 1rem; color: var(--pbb-purple-darker); }
.pbb-accordion__trigger i { color: var(--pbb-purple); transition: transform 0.3s ease; flex-shrink: 0; }
.pbb-accordion__item.is-open .pbb-accordion__trigger i { transform: rotate(45deg); }
.pbb-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--pbb-ease); }
.pbb-accordion__item.is-open .pbb-accordion__panel { max-height: 300px; }
.pbb-accordion__panel p { padding: 0 4px 20px; color: var(--pbb-gray); margin: 0; }

/* ---------- 16. Final CTA ---------- */
.pbb-final-cta { background: var(--pbb-purple-darker); color: #fff; padding: 60px 0; }
.pbb-final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pbb-final-cta h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.pbb-final-cta p { color: rgba(255,255,255,0.75); margin: 0; }
.pbb-final-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 17. Footer ---------- */
.pbb-footer { background: var(--pbb-purple-darker); color: rgba(255,255,255,0.85); padding: 64px 0 0; }
.pbb-footer__logo { display: inline-block; margin-bottom: 16px; }
.pbb-footer__logo img { max-height: 90px; width: auto; display: block; }
.pbb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.pbb-footer__brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 16px 0 20px; }
.pbb-footer__social { display: flex; gap: 12px; }
.pbb-footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.pbb-footer__social a:hover { background: var(--pbb-gold); color: var(--pbb-purple-darker); }
.pbb-widget-title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.pbb-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.pbb-footer__col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.pbb-footer__col a:hover { color: var(--pbb-gold); }
.pbb-footer__contact { gap: 12px !important; }
.pbb-footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.pbb-footer__contact i { color: var(--pbb-gold); margin-top: 3px; }
.pbb-footer__payments { margin-top: 22px; }
.pbb-footer__payments span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.pbb-payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pbb-payment-chip { background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: var(--pbb-radius-pill); font-size: 0.75rem; font-weight: 700; }
.pbb-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.pbb-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.pbb-float-chat {
	position: fixed; bottom: 24px; left: 24px; z-index: 400; width: 56px; height: 56px; border-radius: 50%;
	background: linear-gradient(135deg, #00B2FF, #006AFF); color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem; box-shadow: var(--pbb-shadow-lg); animation: pbb-chat-pulse 2.8s ease-in-out infinite;
}
@keyframes pbb-chat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,106,255,0.4), var(--pbb-shadow-lg); } 50% { box-shadow: 0 0 0 14px rgba(0,106,255,0), var(--pbb-shadow-lg); } }

/* ---------- 18. Page Hero (inner pages) ---------- */
.pbb-page-hero { background: linear-gradient(160deg, var(--pbb-purple-darker), var(--pbb-purple)); color: #fff; padding: 64px 0; text-align: center; }
.pbb-page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pbb-page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }
.pbb-page-hero .pbb-eyebrow { justify-content: center; }
.pbb-page-header { background: var(--pbb-lavender); padding: 48px 0; }
.pbb-page-header h1 { margin: 0; }
.pbb-page-wrap { padding: 60px 0; }

/* ---------- 19. About Page ---------- */
.pbb-about-story__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pbb-about-story__image img { border-radius: var(--pbb-radius-lg); box-shadow: var(--pbb-shadow-md); }
.pbb-about-story__text h2 { font-size: 1.8rem; }
.pbb-about-story__text p { color: var(--pbb-gray); }

/* ---------- 20. Gallery Page ---------- */
.pbb-gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.pbb-filter-chip { padding: 9px 20px; border-radius: var(--pbb-radius-pill); border: 2px solid var(--pbb-gray-light); background: #fff; font-weight: 700; font-size: 0.85rem; color: var(--pbb-charcoal); transition: all 0.2s ease; }
.pbb-filter-chip:hover { border-color: var(--pbb-purple-light); }
.pbb-filter-chip.is-active { background: var(--pbb-purple); border-color: var(--pbb-purple); color: #fff; }
.pbb-gallery-masonry { columns: 3; column-gap: 16px; }
.pbb-gallery-masonry__item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--pbb-radius-md); overflow: hidden; box-shadow: var(--pbb-shadow-sm); transition: opacity 0.3s ease, transform 0.3s ease; }
.pbb-gallery-masonry__item.is-hidden { display: none; }
.pbb-gallery-masonry__item img { transition: transform 0.4s ease; }
.pbb-gallery-masonry__item:hover img { transform: scale(1.06); }

/* ---------- 21. Contact Page ---------- */
.pbb-contact-page__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.pbb-contact-channels h2, .pbb-contact-form-wrap h2 { font-size: 1.5rem; margin-bottom: 10px; }
.pbb-contact-channels > p { color: var(--pbb-gray); margin-bottom: 24px; }
.pbb-contact-channel { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--pbb-radius-md); background: var(--pbb-lavender); margin-bottom: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pbb-contact-channel:hover { transform: translateX(4px); box-shadow: var(--pbb-shadow-sm); }
.pbb-contact-channel__icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--pbb-purple); font-size: 1.2rem; flex-shrink: 0; }
.pbb-contact-channel strong { display: block; font-size: 0.95rem; }
.pbb-contact-channel span { font-size: 0.82rem; color: var(--pbb-gray); }
.pbb-contact-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pbb-gray-light); }
.pbb-contact-meta p { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--pbb-gray); }
.pbb-contact-meta i { color: var(--pbb-purple); margin-top: 3px; }
.pbb-contact-form-wrap { background: var(--pbb-cream); border-radius: var(--pbb-radius-lg); padding: 36px; }

/* ---------- 22. Forms ---------- */
.pbb-form__row { margin-bottom: 18px; }
.pbb-form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pbb-form label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--pbb-purple-darker); }
.pbb-form input, .pbb-form textarea, .pbb-form select {
	width: 100%; padding: 13px 16px; border-radius: var(--pbb-radius-sm); border: 2px solid var(--pbb-gray-light);
	background: #fff; transition: border-color 0.2s ease;
}
.pbb-form input:focus, .pbb-form textarea:focus, .pbb-form select:focus { outline: none; border-color: var(--pbb-purple); }
.pbb-form__hp { position: absolute; left: -9999px; top: -9999px; }
.pbb-form__note { font-size: 0.8rem; color: var(--pbb-gray); text-align: center; margin: 12px 0 0; }
.pbb-form-notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--pbb-radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 0.9rem; }
.pbb-form-notice--success { background: #E6F4EA; color: var(--pbb-success); }
.pbb-form-notice--error { background: #FCE8E8; color: var(--pbb-error); }

/* ---------- 23. Custom Orders Page ---------- */
.pbb-order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.pbb-order-step { text-align: center; padding: 20px; }
.pbb-order-step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pbb-purple); color: #fff; font-family: var(--pbb-font-heading); font-weight: 800; margin-bottom: 14px; }
.pbb-order-step h3 { font-size: 1.05rem; }
.pbb-order-step p { color: var(--pbb-gray); font-size: 0.9rem; margin: 0; }
.pbb-custom-orders__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: flex-start; }
.pbb-order-form-wrap { background: var(--pbb-lavender); border-radius: var(--pbb-radius-lg); padding: 36px; }
.pbb-order-sidebar__card { background: #fff; border: 2px solid var(--pbb-gray-light); border-radius: var(--pbb-radius-md); padding: 24px; margin-bottom: 18px; }
.pbb-order-sidebar__card i { color: var(--pbb-purple); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.pbb-order-sidebar__card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.pbb-order-sidebar__card p { font-size: 0.86rem; color: var(--pbb-gray); margin: 0; }

/* ---------- 24. WooCommerce Shop ---------- */
.pbb-shop-layout { padding: 48px 0 80px; }
.pbb-shop-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pbb-shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.pbb-shop-toolbar__count { color: var(--pbb-gray); font-size: 0.88rem; margin: 0; }
.pbb-shop-toolbar select { padding: 10px 14px; border-radius: var(--pbb-radius-sm); border: 2px solid var(--pbb-gray-light); }
.woocommerce-pagination { margin-top: 48px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 8px; }
.woocommerce-pagination a, .woocommerce-pagination span.current {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--pbb-lavender); font-weight: 700; color: var(--pbb-purple);
}
.woocommerce-pagination span.current { background: var(--pbb-purple); color: #fff; }
.woocommerce-breadcrumb, .pbb-breadcrumb { font-size: 0.85rem; color: var(--pbb-gray); margin-bottom: 24px; }
.woocommerce-breadcrumb a, .pbb-breadcrumb a { color: var(--pbb-purple); }

/* ---------- 25. Single Product ---------- */
.pbb-single-product-wrap { padding: 40px 0 80px; }
.pbb-single-product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pbb-single-product__gallery .woocommerce-product-gallery { border-radius: var(--pbb-radius-lg); overflow: hidden; }
.pbb-single-product__gallery img { border-radius: var(--pbb-radius-lg); }
.pbb-single-product__summary .product_title { font-size: 1.9rem; margin-bottom: 10px; }
.pbb-single-product__summary .price { font-family: var(--pbb-font-heading); font-size: 1.6rem; font-weight: 800; color: var(--pbb-purple); display: block; margin-bottom: 18px; }
.pbb-single-product__summary .woocommerce-product-details__short-description { color: var(--pbb-gray); margin-bottom: 24px; }
.pbb-single-product__summary form.cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pbb-single-product__summary .quantity input { width: 70px; padding: 13px; border-radius: var(--pbb-radius-sm); border: 2px solid var(--pbb-gray-light); text-align: center; }
.pbb-single-product__summary .single_add_to_cart_button {
	background: var(--pbb-purple); color: #fff; border: none; padding: 15px 32px; border-radius: var(--pbb-radius-pill);
	font-weight: 700; transition: background 0.2s ease, transform 0.2s ease;
}
.pbb-single-product__summary .single_add_to_cart_button:hover { background: var(--pbb-purple-dark); transform: translateY(-2px); }
.pbb-single-product__tabs-wrap { margin-top: 60px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--pbb-gray-light); margin-bottom: 24px; }
.woocommerce-tabs ul.tabs li { padding: 12px 20px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.woocommerce-tabs ul.tabs li.active { color: var(--pbb-purple); border-color: var(--pbb-purple); }
.related.products { margin-top: 60px; }
.related.products > h2 { font-size: 1.5rem; margin-bottom: 24px; }
.related.products ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- 26. Blog / Index / 404 ---------- */
.pbb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pbb-blog-card { background: #fff; border-radius: var(--pbb-radius-md); overflow: hidden; box-shadow: var(--pbb-shadow-sm); }
.pbb-blog-card__thumb img { aspect-ratio: 16/10; object-fit: cover; }
.pbb-blog-card__body { padding: 20px; }
.pbb-blog-card__body h2 { font-size: 1.05rem; }
.pbb-blog-card__body p { color: var(--pbb-gray); font-size: 0.9rem; }
.pbb-pagination { margin-top: 40px; text-align: center; }
.pbb-404 { text-align: center; padding: 100px 0; }
.pbb-404__emoji { font-size: 4rem; display: block; margin-bottom: 16px; }
.pbb-404__actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- 27. Sidebar widgets ---------- */
.pbb-widget { margin-bottom: 32px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
	.pbb-hero__inner { grid-template-columns: 1fr; }
	.pbb-hero__visual { max-width: 460px; margin: 0 auto; }
	.pbb-categories__grid, .pbb-why-us__grid, .pbb-product-grid { grid-template-columns: repeat(2, 1fr); }
	ul.products { grid-template-columns: repeat(2, 1fr) !important; }
	.pbb-about-story__grid, .pbb-contact-page__grid, .pbb-custom-orders__grid, .pbb-custom-cta__inner { grid-template-columns: 1fr; }
	.pbb-single-product { grid-template-columns: 1fr; }
	.related.products ul.products { grid-template-columns: repeat(2, 1fr); }
	.pbb-instagrid__grid { grid-template-columns: repeat(3, 1fr); }
	.pbb-footer__grid { grid-template-columns: 1fr 1fr; }
	.pbb-order-steps { grid-template-columns: 1fr; }
	.pbb-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.pbb-gallery-masonry { columns: 2; }
}

@media (max-width: 860px) {
	.pbb-header__nav { display: none; }
	.pbb-header__cta { display: none; }
	.pbb-menu-toggle { display: flex; }
	.pbb-section { padding: 64px 0; }
	.pbb-section__head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	:root { --pbb-header-h: 72px; }
	.pbb-hero { padding: 60px 0 50px; }
	.pbb-hero__actions { flex-direction: column; align-items: stretch; }
	.pbb-hero__actions .pbb-btn { justify-content: center; }
	.pbb-hero__stats { gap: 22px; }
	.pbb-hero__badge-card { display: none; }
	.pbb-categories__grid, .pbb-why-us__grid, .pbb-product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
	ul.products { grid-template-columns: 1fr 1fr !important; gap: 16px; }
	.pbb-instagrid__grid { grid-template-columns: repeat(2, 1fr); }
	.pbb-footer__grid { grid-template-columns: 1fr; }
	.pbb-form__row--half { grid-template-columns: 1fr; }
	.pbb-final-cta__inner { flex-direction: column; text-align: center; }
	.pbb-blog-grid { grid-template-columns: 1fr; }
	.pbb-gallery-masonry { columns: 1; }
	.related.products ul.products { grid-template-columns: 1fr; }
	.pbb-float-chat { width: 48px; height: 48px; font-size: 1.2rem; bottom: 16px; left: 16px; }
}
