/*
Theme Name: Enoa Invites
Theme URI: https://example.com/enoa-invites
Author: Enoa Overprinting
Description: A bright, friendly, mobile-first WooCommerce theme for selling editable birthday invitation templates (Canva, PDF, PNG, JPG). Every banner, text and colour is editable in the Customizer, with no coding needed.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elegant-invites
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
WC requires at least: 8.0
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--ink: #241F3A;
	--ink-2: #4B4566;
	--muted: #645C7E;
	--pearl: #FFFBFE;
	--paper: #FFFFFF;
	--foil: #FF6FA5;
	--foil-text: #B8346B;
	--foil-light: #FFE070;
	--blush: #FFE9F2;
	--line: #EDE3F2;
	--sky: #6EC1F5;
	--mint: #7FDDB4;
	--lilac: #BFA8F7;
	--tiedye: linear-gradient(135deg, #FFE9B8 0%, #FFD0E3 34%, #DCCFFF 66%, #C3E6FF 100%);
	--radius: 14px;
	--font-display: 'Fredoka', 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1240px;
	--gap: clamp(16px, 2.2vw, 28px);
	--shadow: 0 2px 4px rgba(36, 31, 58, .06), 0 14px 30px -14px rgba(36, 31, 58, .28);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pearl);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--foil-text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--foil); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.ei-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.ei-skip:focus { left: 8px; top: 8px; color: #fff; }
.ei-wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.ei-main { min-height: 60vh; }
.ei-notice { background: var(--blush); padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.ei-btn,
body .woocommerce a.button, body .woocommerce button.button, body .woocommerce input.button,
body .woocommerce #respond input#submit, body .woocommerce a.button.alt, body .woocommerce button.button.alt,
body .woocommerce input.button.alt, body .woocommerce .button.alt,
.ei-form button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.5em; border: 1px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: #fff; font: 500 .95rem/1.2 var(--font-body);
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.ei-btn:hover,
body .woocommerce a.button:hover, body .woocommerce button.button:hover, body .woocommerce input.button:hover,
body .woocommerce a.button.alt:hover, body .woocommerce button.button.alt:hover, .ei-form button:hover {
	background: var(--foil-text); border-color: var(--foil-text); color: #fff;
}
.ei-btn--gold { background: var(--foil-light); border-color: var(--foil-light); color: var(--ink); }
.ei-btn--gold:hover { background: #fff; border-color: #fff; color: var(--ink); }
.ei-btn--light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.ei-btn--light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.ei-btn--ghost { background: transparent; color: var(--ink); }
.ei-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ei-link { display: inline-flex; align-items: center; gap: .4em; color: var(--foil-text); font-weight: 500; text-decoration: none; }
.ei-link .ei-icon { width: 18px; height: 18px; transition: transform .2s; }
.ei-link:hover .ei-icon { transform: translateX(3px); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.ei-announce { background: var(--blush); color: var(--ink); text-align: center; font-size: .875rem; padding: 8px var(--gap); }
.ei-announce p { margin: 0; }
.ei-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.ei-header.is-stuck { box-shadow: 0 6px 20px -14px rgba(43, 29, 47, .5); }
.admin-bar .ei-header { top: 32px; }
.ei-header__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.ei-brand { flex: 1 1 auto; }
.ei-brand__name, .ei-brand a { font-family: var(--font-display); font-size: 1.55rem; text-decoration: none; letter-spacing: -.01em; color: var(--ink); }
.ei-brand img { max-height: 48px; width: auto; }
.ei-tools { display: flex; align-items: center; gap: 2px; }
.ei-tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: 50%; }
.ei-tool:hover { background: var(--pearl); color: var(--ink); }
.ei-cart__count {
	position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--ink); color: #fff; font-size: .7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.ei-cart__count.is-empty { display: none; }
.ei-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; margin-left: -10px; }
.ei-burger__bars, .ei-burger__bars::before, .ei-burger__bars::after {
	display: block; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .25s, opacity .2s;
}
.ei-burger__bars::before, .ei-burger__bars::after { content: ''; position: absolute; left: 0; }
.ei-burger__bars::before { top: -7px; }
.ei-burger__bars::after { top: 7px; }
.ei-burger[aria-expanded='true'] .ei-burger__bars { background: transparent; }
.ei-burger[aria-expanded='true'] .ei-burger__bars::before { top: 0; transform: rotate(45deg); }
.ei-burger[aria-expanded='true'] .ei-burger__bars::after { top: 0; transform: rotate(-45deg); }

.ei-menu, .ei-menu ul { list-style: none; margin: 0; padding: 0; }
.ei-menu a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.ei-menu a:hover, .ei-menu .current-menu-item > a { color: var(--foil-text); }
.ei-nav .ei-menu { display: flex; gap: 28px; }
.ei-menu li { position: relative; }
.ei-menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 10px 0; background: var(--paper);
	border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.ei-menu li:hover > .sub-menu, .ei-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ei-menu .sub-menu a { display: block; padding: 8px 18px; }

@media (max-width: 899px) {
	.ei-burger { display: block; }
	.ei-brand { text-align: center; order: 0; }
	.ei-header__row { gap: 8px; }
	.ei-tool--account { display: none; }
	.ei-nav {
		position: fixed; inset: 0 0 0 0; top: var(--ei-nav-top, 69px); background: var(--paper); padding: 24px var(--gap) 40px;
		transform: translateX(-100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; z-index: 40;
	}
	.admin-bar .ei-nav { top: calc(var(--ei-nav-top, 69px) + 46px); }
	.ei-nav.is-open { transform: none; visibility: visible; }
	.ei-nav .ei-menu { flex-direction: column; gap: 0; }
	.ei-nav .ei-menu > li > a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
	.ei-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
	body.ei-menu-open { overflow: hidden; }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.ei-hero { background: var(--ink); color: #fff; overflow: hidden; }
.ei-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding-block: clamp(48px, 8vw, 104px); }
.ei-hero__title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 400; margin-bottom: .35em; }
.ei-hero__text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .8); max-width: 34em; }
.ei-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.8em; }
.ei-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .68); font-size: .9rem; }
.ei-hero__facts li { position: relative; padding-left: 14px; }
.ei-hero__facts li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--foil-light); }
.ei-hero__photo img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); margin-inline: auto; }

.ei-fan { position: relative; height: clamp(360px, 44vw, 560px); }
.ei-fan a {
	position: absolute; left: 50%; top: 50%; width: clamp(150px, 19vw, 260px); aspect-ratio: 5 / 7;
	transform-origin: 50% 110%; transition: transform .55s cubic-bezier(.2, .7, .2, 1);
	box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 3px; overflow: hidden; background: #fff;
}
.ei-fan img { width: 100%; height: 100%; object-fit: cover; }
.ei-fan a:nth-child(1) { transform: translate(-50%, -50%) translateX(-52%) rotate(-10deg); z-index: 1; }
.ei-fan a:nth-child(2) { transform: translate(-50%, -50%) translateY(-4%); z-index: 3; }
.ei-fan a:nth-child(3) { transform: translate(-50%, -50%) translateX(52%) rotate(10deg); z-index: 2; }
.ei-fan:hover a:nth-child(1), .ei-fan:focus-within a:nth-child(1) { transform: translate(-50%, -50%) translateX(-64%) rotate(-14deg); }
.ei-fan:hover a:nth-child(3), .ei-fan:focus-within a:nth-child(3) { transform: translate(-50%, -50%) translateX(64%) rotate(14deg); }
.ei-fan a:hover { z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
	/* The one orchestrated moment: cards start as a stack, then fan out. */
	@keyframes ei-fan-in { from { transform: translate(-50%, -50%) translateY(6%) rotate(0); } }
	.ei-fan a { animation: ei-fan-in .9s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
}
@media (max-width: 899px) {
	.ei-hero__grid { grid-template-columns: 1fr; }
	.ei-hero__art { order: -1; }
	.ei-fan { height: clamp(300px, 78vw, 420px); }
	.ei-fan a { width: clamp(130px, 38vw, 200px); }
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */
.ei-section { padding-block: clamp(48px, 7vw, 96px); }
.ei-section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.ei-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.ei-h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0; }
.ei-h2--center { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }

.ei-occasions { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ei-occasions a { display: block; text-decoration: none; }
.ei-occasion__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--blush); box-shadow: var(--shadow); }
.ei-occasion__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ei-occasions a:hover .ei-occasion__img img { transform: scale(1.04); }
.ei-occasion__name { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.ei-occasion__count { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 899px) { .ei-occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ei-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; }
.ei-steps li { padding-top: 22px; border-top: 1px solid var(--foil); }
.ei-steps__n { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--foil-text); line-height: 1; margin-bottom: 10px; }
.ei-steps h3 { font-size: 1.3rem; }
.ei-steps p { color: var(--muted); margin: 0; }
@media (max-width: 899px) { .ei-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ei-steps { grid-template-columns: 1fr; } }

.ei-banner { position: relative; background: var(--ink); color: #fff; text-align: center; overflow: hidden; }
.ei-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ei-banner.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 29, 47, .55), rgba(43, 29, 47, .35)); }
.ei-banner__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px); max-width: 780px; }
.ei-banner__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 400; }
.ei-banner p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }

.ei-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ei-review { margin: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ei-review blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.ei-review blockquote p { margin: 0; }
.ei-review figcaption { color: var(--muted); font-size: .9rem; }
@media (max-width: 899px) { .ei-reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.ei-footer { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: clamp(40px, 6vw, 80px); font-size: .95rem; }
.ei-footer a { color: inherit; text-decoration: none; }
.ei-footer a:hover { color: var(--foil-light); text-decoration: underline; }
.ei-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 6vw, 72px); }
.ei-footer ul { list-style: none; }
.ei-footer li { margin-bottom: .5em; }
.ei-footer__name { font-family: var(--font-display); font-size: 1.7rem; color: #fff; margin-bottom: .4em; }
.ei-footer__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 1em; }
.ei-social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 1em; }
.ei-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: rgba(255, 255, 255, .6); }
.ei-footer__base p { margin: 0; }
@media (max-width: 899px) { .ei-footer__grid { grid-template-columns: 1fr 1fr; } .ei-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ei-footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Pages and prose
------------------------------------------------------------------ */
.ei-page { padding-block: clamp(32px, 5vw, 64px); }
.ei-page .ei-prose, .ei-page .ei-pagehead { max-width: 760px; }
.ei-page--wide .ei-prose, .ei-page--wide .ei-pagehead { max-width: none; }
.ei-pagehead { margin-bottom: clamp(20px, 3vw, 36px); }
.ei-pagehead__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 400; margin-bottom: .25em; }
.ei-pagehead__intro, .ei-pagehead__intro p { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.ei-breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.ei-breadcrumb a { text-decoration: none; }
.ei-bc-sep { margin: 0 .6em; opacity: .5; }
.ei-prose { font-size: 1.05rem; line-height: 1.75; }
.ei-prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.ei-prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.ei-prose img { border-radius: var(--radius); }
.ei-prose details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.ei-prose summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ei-prose summary::-webkit-details-marker { display: none; }
.ei-prose summary::after { content: '+'; color: var(--foil-text); font-family: var(--font-body); font-size: 1.5rem; line-height: 1; }
.ei-prose details[open] summary::after { content: '\2212'; }
.ei-prose details p { color: var(--ink-2); }
.ei-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.ei-post__title { font-size: 1.5rem; }
.ei-post__title a { text-decoration: none; }
.ei-results { list-style: none; }
.ei-results li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Forms (WooCommerce, contact form, search)
------------------------------------------------------------------ */
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='search'], input[type='number'], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single {
	width: 100%; padding: .8em 1em; border: 1px solid #cfc4d2; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit;
}
.select2-container--default .select2-selection--single { height: auto; padding: .45em .6em; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 2px solid var(--foil-light); outline-offset: 0; }
label { font-weight: 500; }
.ei-form { display: grid; gap: 18px; max-width: 640px; }
.ei-form__row { display: grid; gap: 6px; }
.ei-form__hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.ei-form button { justify-self: start; }
.ei-alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; max-width: 640px; }
.ei-alert--ok { background: #E7F3EA; border: 1px solid #A9CDB1; }
.ei-alert--err { background: #FBEAEA; border: 1px solid #E3B4B4; }

/* ------------------------------------------------------------------
   Shop: filters and grid
------------------------------------------------------------------ */
.ei-shop { padding-block: clamp(24px, 4vw, 48px) 0; }
.ei-filters { display: grid; gap: 18px; margin-bottom: clamp(20px, 3vw, 32px); }
.ei-search { position: relative; max-width: 520px; }
.ei-search input[type='search'] { padding-right: 52px; background: var(--paper); }
.ei-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ei-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; margin-inline: calc(var(--gap) * -1); padding-inline: var(--gap); }
.ei-pills a { flex: none; padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: .92rem; font-weight: 500; transition: .15s; }
.ei-pills a:hover { border-color: var(--ink); color: var(--ink); }
.ei-pills a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ei-sortrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.ei-sortrow .woocommerce-result-count, .ei-sortrow .woocommerce-ordering { margin: 0; float: none; }
.ei-sortrow select { width: auto; padding: .55em 2em .55em .9em; background: var(--paper); }

.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); list-style: none; margin: 0 0 40px; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { float: none; width: auto; margin: 0; padding: 0; }
@media (max-width: 1023px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.ei-card { display: flex; flex-direction: column; position: relative; }
.ei-card__media { position: relative; display: block; aspect-ratio: 5 / 7; overflow: hidden; border-radius: var(--radius); background: var(--blush); box-shadow: var(--shadow); }
.ei-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s cubic-bezier(.2, .7, .2, 1); margin: 0; }
.ei-card__img--alt { opacity: 0; }
@media (hover: hover) {
	.ei-card:hover .ei-card__img--alt { opacity: 1; }
	.ei-card:hover .ei-card__img { transform: scale(1.03); }
}
.ei-card__sale { position: absolute; top: 10px; left: 10px; background: var(--foil-light); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ei-card__body { padding: 14px 2px 6px; flex: 1; }
.ei-card__cat { color: var(--muted); font-size: .85rem; margin: 0 0 2px; }
.ei-card__title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.ei-card__title a { text-decoration: none; }
.ei-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ei-card .price { font-weight: 600; color: var(--ink); }
.ei-card .price del { color: var(--muted); font-weight: 400; margin-right: 4px; }
.ei-card .price ins { text-decoration: none; }
.ei-chips { display: inline-flex; gap: 4px; }
.ei-chip { display: inline-block; padding: 1px 7px; border: 1px solid var(--foil); border-radius: 3px; color: var(--foil-text); font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.6; }
.ei-card__actions { padding-top: 8px; }
.ei-card__actions .button { width: 100%; padding: .65em 1em; font-size: .88rem; background: transparent; color: var(--ink); }
body .woocommerce .ei-card__actions a.button { background: transparent; color: var(--ink); }
body .woocommerce .ei-card__actions a.button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ei-card__actions .added_to_cart { display: block; text-align: center; margin-top: 8px; font-size: .88rem; color: var(--foil-text); }
.woocommerce a.button.loading::after { display: none; }
.woocommerce a.button.loading { opacity: .6; }

.woocommerce nav.woocommerce-pagination { margin: 8px 0 24px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: .55em .95em; min-width: 42px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--foil); background: var(--paper); border-radius: var(--radius); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--foil); }

/* ------------------------------------------------------------------
   Single product
------------------------------------------------------------------ */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images { position: sticky; top: 110px; }
.woocommerce div.product .woocommerce-product-gallery__wrapper > div:first-child, .woocommerce div.product .flex-viewport { border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.woocommerce div.product .flex-control-thumbs { list-style: none; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.woocommerce div.product .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 3px; opacity: .6; cursor: pointer; transition: opacity .2s; }
.woocommerce div.product .flex-control-thumbs img.flex-active, .woocommerce div.product .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .woocommerce-product-gallery__trigger { top: 12px; right: 12px; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; margin-bottom: .2em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.6rem; font-weight: 500; font-family: var(--font-display); }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 1.05rem; }
.ei-included { margin: 24px 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ei-included__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.ei-included ul { list-style: none; display: grid; gap: 10px; }
.ei-included li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.ei-included .ei-chip { min-width: 46px; text-align: center; }
.woocommerce div.product form.cart { margin: 0 0 12px; }
.woocommerce div.product form.cart .button { width: 100%; padding: 1em 1.5em; font-size: 1rem; }
.woocommerce div.product form.cart .quantity { margin-right: 12px; }
.ei-buynow { margin: 0 0 18px; }
.ei-buynow .ei-btn { width: 100%; padding: 1em 1.5em; }
.ei-assure { list-style: none; display: grid; gap: 10px; margin: 18px 0 22px; font-size: .92rem; color: var(--ink-2); }
.ei-assure li { display: flex; align-items: center; gap: 12px; }
.ei-assure .ei-icon { width: 20px; height: 20px; color: var(--foil-text); flex: none; }
.woocommerce div.product .product_meta { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 4px; }
.woocommerce div.product .product_meta a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs { margin-top: clamp(24px, 4vw, 48px); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--foil); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: clamp(28px, 5vw, 56px) 0 24px; }
@media (max-width: 899px) {
	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.images { position: static; }
}

/* ------------------------------------------------------------------
   Cart, checkout, account
------------------------------------------------------------------ */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); padding: 14px 16px; }
.woocommerce table.cart img { width: 72px; border-radius: 3px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 440px; float: right; }
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout h3 { font-size: 1.6rem; }
.woocommerce-checkout #payment { background: var(--pearl); border-radius: var(--radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { width: 100%; padding: 1.1em; font-size: 1.05rem; }
.ei-checkout-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; background: var(--blush); border-radius: var(--radius); font-size: .9rem; }
.ei-checkout-note .ei-icon { width: 20px; height: 20px; flex: none; color: var(--foil-text); }
.woocommerce-order-downloads { margin-bottom: 32px; }
.woocommerce-order-downloads .download-file a, .woocommerce-table--order-downloads .download-file a { font-weight: 600; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--ink); color: #fff; }
.wc-block-components-button:not(.is-link) { background: var(--ink); color: #fff; border-radius: var(--radius); }
.wc-block-components-button:not(.is-link):hover { background: var(--foil-text); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ==================================================================
   Playful pastel skin (v1.1): rounded shapes, tie-dye colour, squish
================================================================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0; }
body { font-weight: 500; }

/* Buttons are pills */
.ei-btn,
body .woocommerce a.button, body .woocommerce button.button, body .woocommerce input.button,
body .woocommerce #respond input#submit, body .woocommerce a.button.alt, body .woocommerce button.button.alt,
body .woocommerce input.button.alt, body .woocommerce .button.alt,
.ei-form button, .wp-block-button__link, .wc-block-components-button:not(.is-link) {
	border-radius: 999px; font-family: var(--font-body); font-weight: 800; letter-spacing: .01em; padding: .85em 1.6em;
}
.ei-btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.ei-btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ei-btn--ghost { border-color: var(--ink); }
.ei-menu a { font-weight: 700; }

/* Header brand */
.ei-brand__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ei-brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--foil); flex: none; }
.ei-brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.ei-brand a { font-size: inherit; }
.ei-announce { font-weight: 700; }
@media (max-width: 899px) { .ei-brand { text-align: left; } .ei-brand__name { font-size: 1.15rem; } }

/* Hero: tie-dye wash like the invitation backgrounds */
.ei-hero {
	background: radial-gradient(60% 70% at 85% 20%, rgba(255, 255, 255, .7), transparent 60%), var(--tiedye);
	color: var(--ink);
}
.ei-hero__title { font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; letter-spacing: -.01em; }
.ei-hero__text { color: var(--ink-2); font-weight: 600; }
.ei-hero__facts { color: var(--ink); font-weight: 700; }
.ei-hero__facts li::before { background: var(--foil); }
.ei-hero__photo img { border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow); }
.ei-fan a {
	width: clamp(150px, 21vw, 270px); aspect-ratio: 1 / 1; border: 6px solid #fff; border-radius: 24px; transform-origin: 50% 50%;
	box-shadow: 0 22px 40px -16px rgba(36, 31, 58, .45); background: #fff;
}
.ei-fan a:nth-child(1) { transform: translate(-50%, -50%) translateX(-56%) translateY(6%) rotate(-9deg); }
.ei-fan a:nth-child(2) { transform: translate(-50%, -50%) translateY(-6%); }
.ei-fan a:nth-child(3) { transform: translate(-50%, -50%) translateX(56%) translateY(6%) rotate(9deg); }
.ei-fan:hover a:nth-child(1), .ei-fan:focus-within a:nth-child(1) { transform: translate(-50%, -50%) translateX(-64%) translateY(4%) rotate(-13deg); }
.ei-fan:hover a:nth-child(3), .ei-fan:focus-within a:nth-child(3) { transform: translate(-50%, -50%) translateX(64%) translateY(4%) rotate(13deg); }
@media (prefers-reduced-motion: no-preference) {
	/* The one orchestrated moment: the cards pop in with a little squish. */
	@keyframes ei-pop { from { opacity: 0; transform: translate(-50%, -50%) translateY(18%) scale(.82, .7); } }
	.ei-fan a { animation: ei-pop .8s cubic-bezier(.34, 1.56, .64, 1) backwards; }
	.ei-fan a:nth-child(2) { animation-delay: .05s; }
	.ei-fan a:nth-child(1) { animation-delay: .2s; }
	.ei-fan a:nth-child(3) { animation-delay: .32s; }
}

/* Sections */
.ei-section--tint { background: #FFF4FA; border: 0; }
.ei-h2 { font-weight: 600; }
.ei-link { color: var(--foil-text); font-weight: 800; }
.ei-occasion__img { aspect-ratio: 1 / 1; border-radius: 28px; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--tiedye); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ei-occasions a:hover .ei-occasion__img { transform: scale(1.03, .97); }
.ei-occasions a:hover .ei-occasion__img img { transform: none; }
.ei-occasion__name { font-weight: 600; }

.ei-features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ei-features li { padding: 28px; border-radius: 28px; background: #FFF4FA; }
.ei-features li:nth-child(2) { background: #EEF8FF; }
.ei-features li:nth-child(3) { background: #F1FBF6; }
.ei-features__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--foil-text); margin-bottom: 14px; box-shadow: var(--shadow); }
.ei-features h3 { font-size: 1.35rem; }
.ei-features p { margin: 0; color: var(--ink-2); }
@media (max-width: 899px) { .ei-features { grid-template-columns: 1fr; } }

.ei-steps li { border-top: 0; padding-top: 0; }
.ei-steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); background: var(--foil-light); margin-bottom: 14px; }
.ei-steps li:nth-child(2) .ei-steps__n { background: #FFB8D2; }
.ei-steps li:nth-child(3) .ei-steps__n { background: #BFE3FB; }
.ei-steps li:nth-child(4) .ei-steps__n { background: #BFF0D8; }

.ei-banner { background: var(--tiedye); color: var(--ink); }
.ei-banner p { color: var(--ink-2); font-weight: 600; }
.ei-banner__title { font-weight: 600; }
.ei-banner__bg { opacity: 1; }
.ei-banner.has-image::after { background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)); }
.ei-intro__inner { max-width: 780px; }
.ei-review { border-radius: 28px; border: 0; background: #FFF4FA; }
.ei-review blockquote { font-weight: 500; }

.ei-footer { border-top: 8px solid transparent; border-image: var(--tiedye) 1; }
.ei-footer__name { font-weight: 600; }

/* Product cards: square, with a squish on hover and press */
.ei-card__media { aspect-ratio: 1 / 1; border-radius: 26px; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--tiedye); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
@media (hover: hover) {
	.ei-card:hover .ei-card__media { transform: scale(1.035, .975); }
	.ei-card:hover .ei-card__img { transform: none; }
}
.ei-card__media:active { transform: scale(1.06, .92); }
.ei-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.ei-card__cat { font-weight: 700; color: var(--foil-text); }
.ei-card .price { font-weight: 800; }
.ei-card__sale { background: var(--foil-light); color: var(--ink); font-weight: 800; }
.ei-chips { flex-wrap: wrap; }
.ei-chip { border: 0; border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); background: #EDE3F2; }
.ei-chip--canva { background: #DCCFFF; }
.ei-chip--pdf { background: #FFD0E3; }
.ei-chip--png { background: #C3E6FF; }
.ei-chip--jpg { background: #C4F0DA; }
.ei-card__actions .button, body .woocommerce .ei-card__actions a.button { border-color: var(--ink); }

/* Shop and product page touches */
.ei-pills a { font-weight: 700; }
.ei-pills a:hover { border-color: var(--foil); color: var(--ink); }
.ei-search input[type='search'] { border-radius: 999px; padding-left: 1.3em; }
.woocommerce div.product .woocommerce-product-gallery__wrapper > div:first-child, .woocommerce div.product .flex-viewport { border-radius: 28px; border: 4px solid #fff; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 14px; }
.woocommerce div.product .product_title { font-weight: 600; }
.ei-included { border-radius: 22px; background: #FFF4FA; border-color: #FFD0E3; }
.ei-included__title { font-weight: 800; }
.ei-assure .ei-icon { color: var(--foil-text); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--foil); color: var(--ink); }
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review, .woocommerce table.shop_table { border-radius: 22px; }
.ei-checkout-note { border-radius: 16px; background: #FFF4FA; }
@media (max-width: 899px) { .ei-fan a { width: clamp(130px, 36vw, 200px); } }

/* Homepage unified grid */
.ei-section .ei-pills { margin-bottom: 24px; }
.ei-loadmore { text-align: center; margin: 8px 0 0; }
.ei-loadmore .ei-btn { min-width: 220px; }
.ei-loadmore .ei-btn.is-loading { opacity: .55; pointer-events: none; }
