/*
Theme Name: Xhaami Celebrations
Theme URI: https://xhaami.com/
Author: Xhaami
Author URI: https://xhaami.com/
Description: A fast, cheerful WooCommerce theme made for editable invitations, printables, video invites, and instant digital downloads.
Version: 1.1.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: xhaami-celebrations
Tags: e-commerce, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

:root {
  --xh-ink: #27243a;
  --xh-muted: #6f6a80;
  --xh-paper: #fffbfc;
  --xh-soft: #fff2f7;
  --xh-card: #ffffff;
  --xh-accent: #ef4f7b;
  --xh-accent-dark: #cb315e;
  --xh-plum: #683967;
  --xh-gold: #f4b95f;
  --xh-mint: #75c9b7;
  --xh-line: #eee6ec;
  --xh-shadow: 0 18px 55px rgba(79, 39, 69, .10);
  --xh-radius: 24px;
  --xh-radius-sm: 14px;
  --xh-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--xh-ink);
  background: var(--xh-paper);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--xh-plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--xh-accent); }

button, input, select, textarea { font: inherit; }

button, input[type="submit"], .button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(239, 79, 123, .35);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  left: 8px;
  top: 8px;
  z-index: 99999;
  padding: 10px 16px;
  color: var(--xh-ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--xh-shadow);
}

.xh-wrap { width: min(calc(100% - 40px), var(--xh-wrap)); margin-inline: auto; }
.xh-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.xh-section { padding: 88px 0; }
.xh-section--soft { background: var(--xh-soft); }
.xh-section--tight { padding: 56px 0; }

.xh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--xh-accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.xh-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.xh-section-title {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.xh-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.xh-section-head p { max-width: 540px; margin: 10px 0 0; color: var(--xh-muted); }

.xh-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--xh-accent);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.xh-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: #fff;
  background: var(--xh-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 51, 94, .25);
}

.xh-button--ghost {
  border-color: rgba(39, 36, 58, .16);
  color: var(--xh-ink);
  background: rgba(255, 255, 255, .72);
}

.xh-button--ghost:hover { color: var(--xh-accent-dark); background: #fff; }

/* Announcement and header */
.xh-announcement {
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--xh-plum), var(--xh-accent));
  font-size: .82rem;
  font-weight: 750;
  text-align: center;
  letter-spacing: .02em;
}

.xh-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(113, 59, 121, .09);
  background: rgba(255, 253, 251, .93);
  backdrop-filter: blur(16px);
}

.admin-bar .xh-site-header { top: 32px; }

.xh-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 78px;
}

.xh-brand { display: flex; align-items: center; min-width: max-content; }
.xh-brand a { display: inline-flex; align-items: center; text-decoration: none; }
.xh-brand .custom-logo { width: auto; max-height: 48px; }

.xh-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--xh-ink);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.xh-brand-name span { color: var(--xh-accent); }

.xh-nav ul { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.xh-nav li { position: relative; }
.xh-nav a { display: block; padding: 10px 13px; color: var(--xh-ink); font-size: .91rem; font-weight: 750; text-decoration: none; }
.xh-nav a:hover, .xh-nav .current-menu-item > a { color: var(--xh-accent); }

.xh-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: 230px;
  padding: 10px;
  border: 1px solid var(--xh-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--xh-shadow);
}

.xh-nav li:hover > .sub-menu, .xh-nav li:focus-within > .sub-menu { display: block; }
.xh-nav .sub-menu a { padding: 9px 11px; border-radius: 9px; }
.xh-nav .sub-menu a:hover { background: var(--xh-soft); }

.xh-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.xh-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xh-line);
  border-radius: 50%;
  color: var(--xh-ink);
  background: #fff;
  text-decoration: none;
}

.xh-icon-button:hover { color: var(--xh-accent); border-color: #efbbca; }
.xh-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.xh-cart-count {
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--xh-paper);
  border-radius: 999px;
  color: #fff;
  background: var(--xh-accent);
  font-size: .66rem;
  font-weight: 800;
}

.xh-menu-toggle { display: none; }

/* Hero */
.xh-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    radial-gradient(circle at 8% 20%, rgba(244, 185, 95, .2), transparent 26%),
    radial-gradient(circle at 86% 74%, rgba(117, 201, 183, .18), transparent 26%),
    linear-gradient(135deg, #fffdfb 0%, #fff2f6 52%, #f5efff 100%);
}

.xh-hero::before,
.xh-hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 2px dashed rgba(113, 59, 121, .14);
  border-radius: 50%;
}

.xh-hero::before { top: -70px; left: -50px; }
.xh-hero::after { right: -70px; bottom: -85px; }

.xh-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .93fr) minmax(420px, 1.07fr); align-items: center; gap: 58px; }

.xh-hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.xh-hero h1 em { color: var(--xh-accent); font-style: normal; }
.xh-hero-copy > p { max-width: 590px; margin: 22px 0 0; color: var(--xh-muted); font-size: 1.08rem; }
.xh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.xh-mini-proof { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--xh-muted); font-size: .85rem; font-weight: 700; }
.xh-mini-proof li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--xh-mint); font-size: .72rem; }

.xh-hero-art { position: relative; min-height: 545px; }
.xh-product-fan { position: absolute; inset: 15px 0 0; }

.xh-fan-card {
  position: absolute;
  overflow: hidden;
  width: 270px;
  aspect-ratio: 5 / 7;
  border: 9px solid #fff;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7c9dc, #8c5ba2);
  box-shadow: 0 32px 60px rgba(72, 42, 76, .22);
}

.xh-fan-card img { width: 100%; height: 100%; object-fit: cover; }
.xh-fan-card:nth-child(1) { left: 4%; top: 18%; transform: rotate(-10deg); }
.xh-fan-card:nth-child(2) { left: 33%; top: 0; z-index: 3; transform: rotate(2deg); }
.xh-fan-card:nth-child(3) { right: 0; top: 20%; transform: rotate(11deg); }

.xh-fan-placeholder { display: grid; place-items: center; height: 100%; padding: 28px; color: #fff; text-align: center; }
.xh-fan-placeholder strong { display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; }
.xh-fan-placeholder small { display: block; margin-top: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.xh-fan-card:nth-child(2) .xh-fan-placeholder { background: linear-gradient(145deg, #ec5d82, #7b477f); }
.xh-fan-card:nth-child(3) .xh-fan-placeholder { background: linear-gradient(145deg, #5fc9bd, #4266a4); }

.xh-floating-badge {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 5;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 6px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: var(--xh-ink);
  background: var(--xh-gold);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 15px 35px rgba(130, 89, 20, .18);
}

/* Trust bar */
.xh-trust-strip { position: relative; z-index: 3; margin-top: -34px; }
.xh-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--xh-line); border-radius: 20px; background: #fff; box-shadow: var(--xh-shadow); }
.xh-trust-item { display: flex; align-items: center; gap: 13px; padding: 20px 22px; }
.xh-trust-item + .xh-trust-item { border-left: 1px solid var(--xh-line); }
.xh-trust-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--xh-accent-dark); background: var(--xh-soft); font-size: 1.1rem; }
.xh-trust-item strong { display: block; font-size: .9rem; }
.xh-trust-item small { display: block; margin-top: 1px; color: var(--xh-muted); font-size: .76rem; }

/* Categories */
.xh-category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.xh-category-card {
  position: relative;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--xh-radius);
  color: var(--xh-ink);
  text-decoration: none;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.xh-category-card:hover { color: var(--xh-ink); transform: translateY(-5px); box-shadow: var(--xh-shadow); }
.xh-category-card:nth-child(1), .xh-category-card:nth-child(2) { grid-column: span 6; }
.xh-category-card:nth-child(n+3) { grid-column: span 3; }

.xh-category-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  top: -45px;
  right: -35px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}

.xh-category-card::after {
  content: attr(data-icon);
  position: absolute;
  z-index: -1;
  top: 20px;
  right: 24px;
  font-size: 3.8rem;
  filter: saturate(.85);
  transform: rotate(6deg);
}

.xh-category-card h3 { max-width: 240px; margin: 0; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.1; }
.xh-category-card span { margin-top: 7px; font-size: .82rem; font-weight: 800; }
.xh-cat--birthday { background: #ffd9e5; }
.xh-cat--character { background: #e9dcff; }
.xh-cat--holiday { background: #ffe8c8; }
.xh-cat--sports { background: #d9f2eb; }
.xh-cat--special { background: #dbe9ff; }
.xh-cat--social { background: #ffe2f7; }

/* WooCommerce product grid */
.woocommerce .woocommerce-result-count { color: var(--xh-muted); }
.woocommerce .woocommerce-ordering select,
.xh-field,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .quantity .qty {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--xh-line);
  border-radius: 10px;
  color: var(--xh-ink);
  background: #fff;
}

.woocommerce ul.products {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 20px;
  margin: 0 !important;
  padding: 0 !important;
  clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--xh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(70, 39, 64, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--xh-shadow); }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; width: 100%; min-width: 0; text-decoration: none; }
.woocommerce ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0;
  object-fit: contain !important;
  object-position: center !important;
  border-bottom: 1px solid var(--xh-line);
  background: #fbf7f9;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 4.05em;
  overflow: hidden;
  padding: 14px 16px 4px;
  color: var(--xh-ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.woocommerce ul.products li.product .star-rating { margin: 3px 16px 8px; color: var(--xh-gold); font-size: .72rem; }
.woocommerce ul.products li.product .price { margin: 0 16px 12px; color: var(--xh-accent-dark); font-size: 1rem; font-weight: 850; }
.woocommerce ul.products li.product .price del { color: #9b94a3; font-weight: 500; }
.woocommerce ul.products li.product .button { width: calc(100% - 32px); min-height: 42px; margin: auto 16px 0; padding: 10px 15px; font-size: .84rem; }
.woocommerce span.onsale { top: 12px; left: 12px; min-width: auto; min-height: auto; margin: 0; padding: 7px 11px; border-radius: 999px; background: var(--xh-accent); font-size: .7rem; line-height: 1; text-transform: uppercase; }

.xh-product-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 12px 16px -2px;
  padding: 5px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff2e9;
  color: var(--xh-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xh-product-label::before { content: "⚡"; }

/* How it works */
.xh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.xh-step { position: relative; padding: 30px; border: 1px solid var(--xh-line); border-radius: var(--xh-radius); background: #fff; }
.xh-step-number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--xh-accent), var(--xh-plum)); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 800; box-shadow: 0 10px 24px rgba(113, 59, 121, .2); }
.xh-step h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.3rem; }
.xh-step p { margin: 0; color: var(--xh-muted); }
.xh-step:not(:last-child)::after { content: "→"; position: absolute; top: 48px; right: -20px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--xh-line); border-radius: 50%; background: var(--xh-paper); font-weight: 900; }

/* Bundle banner */
.xh-bundle {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 54px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(130deg, #4c2855 0%, #773f7e 56%, #e25279 125%);
  box-shadow: 0 25px 70px rgba(73, 36, 81, .22);
}

.xh-bundle::after { content: "✦"; position: absolute; right: -10px; top: -72px; color: rgba(255,255,255,.09); font-size: 16rem; line-height: 1; }
.xh-bundle h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; }
.xh-bundle p { max-width: 580px; margin: 16px 0 0; color: rgba(255,255,255,.78); }
.xh-bundle .xh-button { margin-top: 25px; color: var(--xh-ink); background: var(--xh-gold); }
.xh-bundle-list { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.xh-bundle-list li { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); font-weight: 800; }
.xh-bundle-list span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--xh-ink); background: var(--xh-gold); }

/* Testimonials and FAQ */
.xh-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.xh-review { margin: 0; padding: 26px; border: 1px solid var(--xh-line); border-radius: 20px; background: #fff; }
.xh-stars { color: #e8a839; letter-spacing: .12em; }
.xh-review p { margin: 12px 0 18px; color: var(--xh-ink); }
.xh-review footer { display: grid; gap: 4px; color: var(--xh-muted); font-size: .82rem; font-weight: 800; }
.xh-review footer a { overflow: hidden; color: var(--xh-plum); font-size: .72rem; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }

.xh-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 68px; align-items: start; }
.xh-faq-list { display: grid; gap: 12px; }
.xh-faq details { border: 1px solid var(--xh-line); border-radius: 16px; background: #fff; }
.xh-faq summary { padding: 18px 52px 18px 20px; font-weight: 800; cursor: pointer; list-style: none; position: relative; }
.xh-faq summary::-webkit-details-marker { display: none; }
.xh-faq summary::after { content: "+"; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--xh-accent); font-size: 1.45rem; }
.xh-faq details[open] summary::after { content: "−"; }
.xh-faq details p { margin: 0; padding: 0 20px 20px; color: var(--xh-muted); }

/* Page and archive shells */
.xh-page-hero { padding: 64px 0; border-bottom: 1px solid var(--xh-line); background: linear-gradient(135deg, #fff7f9, #f6f1ff); text-align: center; }
.xh-page-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.xh-page-hero p { max-width: 650px; margin: 13px auto 0; color: var(--xh-muted); }
.xh-breadcrumbs { margin-bottom: 12px; color: var(--xh-muted); font-size: .78rem; font-weight: 750; }
.xh-content { padding: 70px 0; }
.xh-content article { max-width: 820px; margin-inline: auto; }
.xh-entry-content > *:first-child { margin-top: 0; }
.xh-entry-content h2, .xh-entry-content h3 { font-family: Georgia, serif; line-height: 1.2; }
.xh-entry-content img { border-radius: 18px; }

.xh-post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.xh-post-card { overflow: hidden; border: 1px solid var(--xh-line); border-radius: 20px; background: #fff; }
.xh-post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.xh-post-card-content { padding: 22px; }
.xh-post-card h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.2; }
.xh-post-card h2 a { color: var(--xh-ink); text-decoration: none; }
.xh-post-card p { color: var(--xh-muted); }

/* WooCommerce single/cart/account */
.xh-shop-shell { padding: 60px 0 88px; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: 20px; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--xh-accent-dark); font-weight: 850; }
.woocommerce div.product .woocommerce-product-rating { color: var(--xh-muted); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product form.cart .button { min-height: 50px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--xh-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--xh-line); background: var(--xh-soft); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 920px; margin: 0 auto 2.5rem; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { margin-top: 0; }
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li { line-height: 1.75; }
.woocommerce #payment { border: 1px solid var(--xh-line); border-radius: 18px; background: #fff8fb; }
.woocommerce #payment div.payment_box { border-radius: 12px; background: #fff; }

.xh-digital-box { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; padding: 15px; border: 1px solid #f2d8df; border-radius: 16px; background: var(--xh-soft); }
.xh-digital-box div { padding: 9px; text-align: center; }
.xh-digital-box strong { display: block; font-size: .8rem; }
.xh-digital-box span { display: block; color: var(--xh-muted); font-size: .7rem; }

.woocommerce table.shop_table { border-color: var(--xh-line); border-radius: 14px; }
.woocommerce-error, .woocommerce-info, .woocommerce-message { border-top-color: var(--xh-accent); background: var(--xh-soft); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--xh-accent); }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-color: var(--xh-line); border-radius: 16px; }

/* Search overlay */
.xh-search-panel { position: fixed; inset: 0; z-index: 2000; display: none; place-items: start center; padding: 110px 20px 20px; background: rgba(32, 24, 37, .72); backdrop-filter: blur(12px); }
.xh-search-panel.is-open { display: grid; }
.xh-search-box { position: relative; width: min(100%, 720px); padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--xh-shadow); }
.xh-search-box form { display: flex; gap: 10px; }
.xh-search-box input[type="search"] { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--xh-line); border-radius: 999px; }
.xh-search-close { position: absolute; top: -48px; right: 0; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 1.4rem; }

/* Footer */
.xh-site-footer { color: rgba(255,255,255,.78); background: linear-gradient(135deg, #2c2031 0%, #39263c 100%); }
.xh-footer-main { display: grid; grid-template-columns: 1.25fr .85fr .85fr 1fr; gap: 52px; padding: 62px 0 42px; }
.xh-footer-main--3 { grid-template-columns: 1.25fr 1fr 1fr; }
.xh-footer-main--2 { grid-template-columns: 1.25fr 1fr; }
.xh-footer-main--1 { grid-template-columns: 1fr; }
.xh-footer-brand { color: #fff; font-family: Georgia, serif; font-size: 2rem; text-decoration: none; }
.xh-footer-about p { max-width: 330px; margin: 15px 0; font-size: .94rem; line-height: 1.75; }
.xh-footer-title,
.xh-site-footer .widget-title,
.xh-site-footer h2,
.xh-site-footer h3 { margin: 7px 0 17px; color: #fff !important; font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.xh-footer-menu, .xh-footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.xh-footer-menu a, .xh-footer-links a { color: rgba(255,255,255,.76); font-size: .9rem; text-decoration: none; }
.xh-footer-menu a:hover, .xh-footer-links a:hover { color: #fff; }
.xh-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xh-socials a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
.xh-footer-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); }
.xh-footer-widget { min-width: 0; color: rgba(255,255,255,.72); font-size: .88rem; }
.xh-footer-widget p { max-width: 620px; margin: 0; }
.xh-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }

/* Lightweight feedback animations */
.xh-cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 15px 18px;
  border: 1px solid #f3c9d5;
  border-radius: 16px;
  color: var(--xh-ink);
  background: #fff;
  box-shadow: 0 18px 55px rgba(54, 29, 48, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.xh-cart-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.xh-cart-toast__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--xh-soft); font-size: 1.25rem; }
.xh-cart-toast strong { display: block; font-size: .9rem; }
.xh-cart-toast small { display: block; color: var(--xh-muted); font-size: .75rem; }
.xh-cart-link.is-bumping { animation: xh-cart-bump .38s ease; }
@keyframes xh-cart-bump { 50% { transform: scale(1.14) rotate(-5deg); } }
.woocommerce .button.is-celebrating { animation: xh-button-celebrate .36s ease; }
@keyframes xh-button-celebrate { 45% { transform: scale(.96); } 75% { transform: scale(1.025); } }

.xh-empty-cart-mood { margin: 0 auto 26px; padding: 32px; border: 1px dashed #e9b9c8; border-radius: 22px; background: var(--xh-soft); text-align: center; }
.xh-empty-cart-mood span { display: block; margin-bottom: 8px; font-size: 3rem; }
.xh-empty-cart-mood strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; }
.xh-empty-cart-mood p { margin: 5px 0 0; color: var(--xh-muted); }

.xh-reveal-ready { opacity: 0; transform: translateY(14px); }
.xh-reveal-ready.xh-in-view { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }

/* Empty states and pagination */
.xh-empty { padding: 54px 30px; border: 1px dashed #dabfca; border-radius: 20px; background: var(--xh-soft); text-align: center; }
.xh-empty h2 { margin: 0 0 8px; font-family: Georgia, serif; }
.nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; justify-content: center; gap: 6px; border: 0; }
.nav-links a, .nav-links span, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--xh-line); border-radius: 50%; background: #fff; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.nav-links .current, .woocommerce nav.woocommerce-pagination ul li span.current { color: #fff; background: var(--xh-accent); }

@media (max-width: 1024px) {
  .xh-header-inner { grid-template-columns: 1fr auto; }
  .xh-menu-toggle { display: inline-grid; }
  .xh-nav { position: fixed; inset: 111px 16px auto; display: none; max-height: calc(100vh - 130px); overflow: auto; padding: 18px; border: 1px solid var(--xh-line); border-radius: 20px; background: #fff; box-shadow: var(--xh-shadow); }
  .xh-nav.is-open { display: block; }
  .xh-nav ul { display: block; }
  .xh-nav a { padding: 12px; }
  .xh-nav .sub-menu { position: static; display: block; width: auto; margin-left: 16px; padding: 0; border: 0; box-shadow: none; }
  .xh-hero-grid { grid-template-columns: 1fr; }
  .xh-hero-copy { max-width: 760px; text-align: center; margin-inline: auto; }
  .xh-hero-copy .xh-kicker { justify-content: center; }
  .xh-hero-actions, .xh-mini-proof { justify-content: center; }
  .xh-hero-art { width: min(100%, 650px); margin-inline: auto; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .xh-footer-main { grid-template-columns: repeat(2, 1fr); }
  .xh-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .xh-site-header { top: 46px; }
  .xh-section { padding: 66px 0; }
  .xh-section-head { display: block; }
  .xh-section-head .xh-button { margin-top: 20px; }
  .xh-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .xh-trust-item + .xh-trust-item { border-left: 0; }
  .xh-trust-item:nth-child(even) { border-left: 1px solid var(--xh-line); }
  .xh-trust-item:nth-child(n+3) { border-top: 1px solid var(--xh-line); }
  .xh-category-card:nth-child(1), .xh-category-card:nth-child(2), .xh-category-card:nth-child(n+3) { grid-column: span 6; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .xh-steps { grid-template-columns: 1fr; }
  .xh-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -18px; transform: translateX(50%); }
  .xh-bundle { grid-template-columns: 1fr; padding: 40px 30px; }
  .xh-review-grid { grid-template-columns: 1fr; }
  .xh-faq { grid-template-columns: 1fr; gap: 28px; }
  .xh-post-list { grid-template-columns: repeat(2, 1fr); }
  .xh-footer-main { grid-template-columns: repeat(2, 1fr); }
  .xh-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .xh-wrap, .xh-narrow { width: min(calc(100% - 28px), var(--xh-wrap)); }
  .xh-announcement { font-size: .73rem; }
  .xh-header-inner { min-height: 68px; gap: 10px; }
  .xh-brand-name { font-size: 1.55rem; }
  .xh-account-link { display: none; }
  .xh-nav { inset: 101px 10px auto; }
  .xh-hero { padding: 55px 0 64px; }
  .xh-hero-art { min-height: 395px; transform: scale(.9); transform-origin: top center; margin-bottom: -40px; }
  .xh-fan-card { width: 205px; border-width: 7px; border-radius: 18px; }
  .xh-fan-card:nth-child(1) { left: 0; }
  .xh-fan-card:nth-child(2) { left: 25%; }
  .xh-fan-card:nth-child(3) { right: -4%; }
  .xh-floating-badge { right: 0; width: 88px; height: 88px; border-width: 4px; font-size: .62rem; }
  .xh-trust-strip { margin-top: -20px; }
  .xh-trust-item { display: block; padding: 16px; text-align: center; }
  .xh-trust-icon { margin: 0 auto 8px; }
  .xh-category-grid { grid-template-columns: 1fr; }
  .xh-category-card:nth-child(1), .xh-category-card:nth-child(2), .xh-category-card:nth-child(n+3) { grid-column: auto; min-height: 175px; }
  .woocommerce ul.products { gap: 14px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.7em; padding: 12px 11px 4px; font-size: .82rem; -webkit-line-clamp: 3; }
  .woocommerce ul.products li.product .price { margin-inline: 12px; }
  .woocommerce ul.products li.product .button { width: calc(100% - 24px); margin-inline: 12px; font-size: .75rem; }
  .xh-product-label { max-width: calc(100% - 22px); margin-inline: 11px; padding: 4px 7px; font-size: .6rem; }
  .xh-bundle { border-radius: 24px; }
  .xh-digital-box { grid-template-columns: 1fr; }
  .xh-post-list { grid-template-columns: 1fr; }
  .xh-footer-main { grid-template-columns: 1fr; gap: 30px; }
  .xh-footer-about { grid-column: auto; }
  .xh-footer-bottom { display: block; }
  .xh-footer-bottom span { display: block; margin-top: 7px; }
  .xh-footer-extras { grid-template-columns: 1fr; }
  .xh-cart-toast { right: 14px; bottom: 14px; }
}

@media (max-width: 370px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: auto; font-size: .94rem; -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .xh-reveal-ready { opacity: 1; transform: none; }
}

.xh-motion-disabled .xh-reveal-ready { opacity: 1; transform: none; }
.xh-motion-disabled .xh-cart-toast { transition: none; }
