/* Shared bits from the static demo's style.css needed by the ported pages,
   plus WordPress-specific versions of rules that target the static markup. */

.crumbs { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--charcoal-soft); }
.crumbs a { text-decoration: none; font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.8rem; }
.facts li { display: flex; gap: 0.8rem; align-items: baseline; font-size: 1.1rem; }
.facts li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* Hero characters fixed to the viewport (same as the static home.css rule, for .lel-page markup) */
@media (min-width: 981px) {
  .lel-page > section:first-child .pals {
    position: fixed;
    top: calc(11.5rem + var(--wp-admin--admin-bar--height, 0px));
    width: 260px;
    height: 270px;
    z-index: 0;
  }
  .lel-page > section:first-child .pals--left  { left:  calc((100vw - min(var(--wrap), 100vw - 48px)) / 2); }
  .lel-page > section:first-child .pals--right { right: calc((100vw - min(var(--wrap), 100vw - 48px)) / 2); }
  .lel-page > section:first-child .banner__copy,
  .lel-page > section:first-child .quote { grid-column: 2; }
  :where(.lel-page > :not(:first-child)) { position: relative; z-index: 1; background-color: var(--cream); }
}
/* Blocksy's footer must also sit above the pinned characters */
#footer { position: relative; z-index: 2; }

/* ---------- Custom Art (block markup) ---------- */
.svc--teal { --c: #3f7f78; } .svc--pink { --c: #e8558f; } .svc--sage { --c: #8fa09a; } .svc--rose { --c: #c9a8a0; } .svc--gold { --c: #f2b134; }
.svc .svc__foot p { flex: none; margin: 0; }
.svc p.svc__tag { flex: none; color: var(--teal); }
.quote p.quote__text { margin-inline: auto; }
.lel-page .order__card .eyebrow, .lel-page .order__card h2 { display: block; }
.lel-page .term p { margin: 0; }
.lel-page .term p strong { display: block; }

/* Contact form honeypot */
.lel-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Shop + product templates sit inside Blocksy's main container */
.lel-page.shop, .lel-page.product-page { width: 100%; }
.pdp__buy { margin: 0; }
.lel-page .woocommerce-message, .lel-page .woocommerce-error, .lel-page .woocommerce-info { margin: 1.5rem 0; }
.perks--four .perk::before { content: none; }

/* Banner characters: the image block puts each <img> alone in a <figure>, so the demo's
   .pals img:nth-child(n) sizes would hit every image. Size the figure, fill it with the image. */
.pals figure > img:nth-child(n) { position: static; width: 100%; height: 100%; top: auto; bottom: auto; left: auto; right: auto; }

/* Eyebrows written as paragraphs: keep the demo's size/colour (section-head p would enlarge them) */
.lel-page p.eyebrow, .lel-page .section-head p.eyebrow, .lel-page .svc p.svc__tag { font-size: 0.85rem; line-height: 1.6; }
.lel-page .svc p.svc__tag { font-size: 0.72rem; color: var(--teal); }
.lel-page .terms p.eyebrow { color: var(--rose); }
.lel-page .value .eyebrow { color: var(--pink); }

/* Quote attribution spacing (block flow resets margins) */
.lel-page .quote p.quote__by { margin-top: 1.8rem; }
.lel-page .quote p.quote__sub { margin-top: 1.6rem; }

/* Text links underlined like the demo */
.lel-page .svc__foot a:not(.btn), .lel-page .agree a, .lel-page .friend__link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header tools (demo layout.css + style.css) ---------- */
#header .tools { display: grid; justify-items: end; gap: 0.55rem; }
#header .tools__top { display: flex; align-items: center; gap: 0.6rem; }
#header .login { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 0.45rem 0.6rem; border-radius: 999px; color: var(--charcoal); }
#header .login:hover { color: var(--pink); }
#header .cart { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--charcoal); background: var(--paper); border: 2px solid var(--charcoal); border-radius: 999px; padding: 0.45rem 0.6rem 0.45rem 1rem; }
#header .cart svg { flex: none; }
#header .cart b { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pink); color: #fff; font-size: 0.85rem; }
#header .cart.lel-bump b { animation: lel-bump 0.4s ease; }
#header .hsearch { display: flex; align-items: center; gap: 0.5rem; width: 230px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 0 0.9rem; }
#header .hsearch:focus-within { border-color: var(--charcoal); }
#header .hsearch svg { flex: none; color: var(--charcoal-soft); }
#header .hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.5rem 0; height: auto; font: 0.95rem var(--body); outline: none; color: var(--charcoal); box-shadow: none; }

/* Header + footer content width = the demo's .wrap */
#header .ct-container, #footer .ct-container { width: min(var(--wrap), 100% - 48px); max-width: none; }
.ct-header .header-menu-1 .menu > li > .ct-menu-link { font-size: 1.05rem; }

/* ---------- Footer: match the demo ---------- */
.ct-footer [data-row*="middle"] > .ct-container { grid-template-columns: 1.25fr 1fr 1fr 0.85fr; --grid-template-columns: 1.25fr 1fr 1fr 0.85fr; }
.ct-footer .ct-widget:has(> .foot-logo) { display: flex; align-items: center; gap: 0.9rem; }
.ct-footer .ct-widget:has(> .foot-logo) .foot-logo { margin: 0; }
.ct-footer .foot-links { gap: 0.65rem; font-size: 1.05rem; }
.ct-footer ul.foot-social { gap: 0.65rem; }
.ct-footer ul.foot-social li.wp-social-link a.wp-block-social-link-anchor { font-size: 1.05rem; gap: 0.6rem; padding: 0; opacity: 0.85; }
.ct-footer ul.foot-social li.wp-social-link .wp-block-social-link-label { font-size: 1.05rem; }
.ct-footer ul.foot-social li.wp-social-link svg { width: 16px; height: 16px; }

/* ---------- Mobile header: Cart pill + round menu button like the demo ---------- */
[data-device="mobile"] .ct-header-cart .ct-cart-item {
  display: inline-flex; align-items: center;
  border: 2px solid var(--charcoal); border-radius: 999px; background: var(--paper);
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  color: var(--charcoal); font: 700 0.95rem var(--body);
}
[data-device="mobile"] .ct-header-cart .ct-icon-container { display: inline-flex; align-items: center; gap: 0.5rem; position: static; }
[data-device="mobile"] .ct-header-cart .ct-icon-container svg { order: 0; width: 18px; height: 18px; }
[data-device="mobile"] .ct-header-cart .ct-icon-container::after { content: "Cart"; order: 1; }
[data-device="mobile"] .ct-header-cart .ct-dynamic-count-cart {
  order: 2; position: static; transform: none; inset: auto;
  display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0;
  border-radius: 50%; background: var(--pink); color: #fff; font-size: 0.85rem; line-height: 1;
}
[data-device="mobile"] .ct-header-trigger {
  width: 52px; height: 52px; border-radius: 50% !important; --toggle-button-radius: 50%;
  background: var(--charcoal) !important; --toggle-button-background: var(--charcoal);
  --theme-icon-color: var(--cream); --theme-icon-hover-color: var(--cream);
  display: grid; place-items: center;
}
@media (max-width: 560px) {
  [data-device="mobile"] .ct-header-cart .ct-icon-container::after { content: none; }
  [data-device="mobile"] .ct-header-cart .ct-cart-item { padding: 0.4rem 0.5rem 0.4rem 0.7rem; }
}

/* Shop filter legends: Blocksy offsets <legend>; keep them aligned like the demo */
.lel-page .filters fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.lel-page .filters legend { padding: 0; margin: 0 0 0.7rem; float: none; width: auto; position: static; }

/* Current page / hover underline in the main menu (pink bar under the link, like the demo) */
.ct-header .header-menu-1 .menu > li > .ct-menu-link { text-decoration: underline 3px transparent; text-underline-offset: 12px; transition: text-decoration-color 0.2s ease; }
.ct-header .header-menu-1 .menu > li > .ct-menu-link:hover,
.ct-header .header-menu-1 .menu > li:is(.current-menu-item, .current_page_item) > .ct-menu-link { text-decoration-color: var(--pink); }

/* ===== Responsive review fixes (Nov 2026) ===== */

/* 1. Footer: 4 columns only on desktop; 2 on tablet/large phone, 1 on small phones */
@media (max-width: 999.98px) {
  .ct-footer [data-row*="middle"] > .ct-container { grid-template-columns: 1fr 1fr; --grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 2.5rem; }
  .ct-footer [data-row*="middle"] .ct-container > [data-column]:first-child { grid-column: 1 / -1; }
}
@media (max-width: 479.98px) {
  .ct-footer [data-row*="middle"] > .ct-container { grid-template-columns: 1fr; --grid-template-columns: 1fr; }
}
.ct-footer .pay { white-space: nowrap; min-width: max-content; }

/* 2. Mobile header: smaller site name; the announcement bar scrolls away (top offset set in lovables.js) */
@media (max-width: 999.98px) {
  #header [data-device="mobile"] .site-title { font-size: 0.9rem; line-height: 1.15; }
  html #header { top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--lel-topbar, 0px)); }
}
@media (max-width: 389.98px) {
  #header [data-device="mobile"] .site-title-container { display: none; }
}

/* 4. Custom Art terms checkbox: full size, never squashed */
.agree input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; }

/* 5. Touch targets */
#header .ct-header-trigger { flex: none; min-width: 48px; min-height: 48px; }
#header [data-device="mobile"] .ct-cart-item { min-height: 44px; }
@media (hover: none), (max-width: 999.98px) {
  .ct-footer .foot-links { gap: 0; }
  .ct-footer .foot-links a,
  .ct-footer ul.foot-social li.wp-social-link a.wp-block-social-link-anchor { display: inline-flex; align-items: center; min-height: 44px; }
  .ct-footer ul.foot-social { gap: 0; }
  .lel-page .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .lel-page .friend__link, .lel-page p.more > a, .lel-page .svc a[href*="#contact"] { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 8. Product page licence legend lines up with the rest of the column */
.lel-page .pdp .licence legend { float: none; width: auto; position: static; margin: 0 0 0.8rem; padding: 0; }

/* 10. Home freebie: on phones the player sits under the postcard instead of covering its caption */
@media (max-width: 599.98px) {
  .lel-page .freebie__visual { padding: 1rem 0 0; }
  .lel-page .freebie__visual .player { position: static; margin-top: 1.25rem; }
}

/* 11. Custom Art pricing: label and price stack on small phones */
@media (max-width: 479.98px) {
  .lel-page .summary__price { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .lel-page .summary__price strong { font-size: 2rem; }
}

/* 12. Readable small sentences */
.lel-page .player strong { font-size: 0.8125rem; }

/* Shop grid is drawn by pages.js: reserve its space so the footer doesn't jump up then down */
.lel-page .shop-grid:empty { min-height: 100vh; }
