/* ============================================================
   Lamarju Cosmetics — extracted theme CSS
   (ported verbatim from the original static pages' <style> blocks:
    index.html, Loja.html, Produto.html — superset)
   Tailwind utility classes come from the CDN; this file holds the
   custom animations, transitions and component styles.
   ============================================================ */

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #fbfcf8; color: #222a24; font-family: 'Jost', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
body.home { background: #f4f5ef; }
::selection { background: #2f3a33; color: #fbfcf8; }

/* Header */
#site-header { transition: all .5s cubic-bezier(.16,1,.3,1); }
#site-header.is-scrolled {
  top: 0 !important;
  background: rgba(251,252,248,.88);
  backdrop-filter: blur(14px);
  border-color: rgba(205,213,200,.7);
  box-shadow: 0 6px 30px -18px rgba(34,42,36,.4);
}
#site-header.is-scrolled .hdr-link,
#site-header.is-scrolled .hdr-logo,
#site-header.is-scrolled .hdr-icon { color: #222a24; }

/* WP admin bar: the fixed front-page header ignores html{margin-top},
   so push it (and its scrolled state) down by the bar height. */
body.admin-bar #site-header { top: calc(37px + 32px); }
body.admin-bar #site-header.is-scrolled { top: 32px !important; }
body.admin-bar #mobile-menu > div:first-child { margin-top: calc(37px + 32px); }
@media screen and (max-width: 782px) {
  /* WP sets the admin bar position:absolute at <=782px so it scrolls away,
     which leaves our fixed header/menu floating with a gap once you scroll.
     Pin it like the desktop bar so the header can sit cleanly beneath it. */
  #wpadminbar { position: fixed !important; }
  body.admin-bar #site-header { top: calc(37px + 46px); }
  body.admin-bar #site-header.is-scrolled { top: 46px !important; }
  body.admin-bar #mobile-menu > div:first-child { margin-top: calc(37px + 46px); }
}

/* Hero */
.hero-slide { opacity: 0; pointer-events: none; transition: opacity 1.4s cubic-bezier(.4,0,.2,1); }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-text > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-text > *:nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-text > *:nth-child(2) { transition-delay: .42s; }
.hero-slide.is-active .hero-text > *:nth-child(3) { transition-delay: .58s; }
.hero-dot { transition: all .5s cubic-bezier(.16,1,.3,1); }
.hero-dot.is-active { width: 38px; background: #fbfcf8; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee { display: flex; gap: 3.5rem; white-space: nowrap; animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Filtros */
[data-filter] { transition: all .4s cubic-bezier(.16,1,.3,1); }
[data-filter].is-active { background: #7c5a3c; color: #fbfcf8; border-color: #7c5a3c; }

/* Category filter rail (home showcase + shop toolbar) — every product category
   in one horizontally scrollable row; arrows appear only when it overflows. */
.lamarju-rail { position: relative; }
.lamarju-rail__track {
  display: flex; gap: .625rem; padding: 2px 1px;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
}
.lamarju-rail__track::-webkit-scrollbar { display: none; }
.lamarju-rail__track > * { scroll-snap-align: start; }

/* Edge fades hint at the pills scrolled out of view (sections sit on `cloud`). */
.lamarju-rail::before,
.lamarju-rail::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 4.5rem;
  pointer-events: none; opacity: 0; transition: opacity .35s ease; z-index: 1;
}
.lamarju-rail::before { left: 0; background: linear-gradient(to right, #fbfcf8 25%, rgba(251,252,248,0)); }
.lamarju-rail::after { right: 0; background: linear-gradient(to left, #fbfcf8 25%, rgba(251,252,248,0)); }
.lamarju-rail.has-prev::before,
.lamarju-rail.has-next::after { opacity: 1; }

.lamarju-rail__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid #cdd5c8; background: #fbfcf8; color: #222a24;
  box-shadow: 0 8px 20px rgba(47,58,51,.12);
  transition: color .35s ease, border-color .35s ease, background .35s ease;
}
.lamarju-rail__nav:hover { color: #7c5a3c; border-color: #7c5a3c; }
.lamarju-rail__nav[hidden] { display: none; }
.lamarju-rail__nav--prev { left: 0; }
.lamarju-rail__nav--next { right: 0; }

@media (prefers-reduced-motion: reduce) {
  .lamarju-rail__track { scroll-behavior: auto; }
}

.magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1); }

/* Linhas carousel */
[data-linha-track] { scrollbar-width: none; -ms-overflow-style: none; }
[data-linha-track]::-webkit-scrollbar { display: none; }
.linha-arrow { transition: all .4s cubic-bezier(.16,1,.3,1); }
.linha-arrow:not(:disabled):hover { background: #2f3a33; color: #fbfcf8; border-color: #2f3a33; }
.linha-arrow:disabled { cursor: default; }

/* Cart pulse */
@keyframes vhbPulse { 0%{transform:scale(1)} 35%{transform:scale(1.28)} 100%{transform:scale(1)} }
.vhb-pulse { animation: vhbPulse .5s cubic-bezier(.16,1,.3,1); }

/* fancy underline links */
.ul-link { position: relative; }
.ul-link::after { content:''; position:absolute; left:0; bottom:-3px; height:1px; width:0; background: currentColor; transition: width .4s cubic-bezier(.16,1,.3,1); }
.ul-link:hover::after { width:100%; }

.hero-arrow { transition: all .4s cubic-bezier(.16,1,.3,1); }
.hero-arrow:hover { background: rgba(251,252,248,.95); color:#2f3a33; }

/* ===================== Hero — composição mobile ===================== */
@media (max-width: 1023px) {
  .hero-slide > img { object-position: 72% center !important; }

  /* Per-slide horizontal focal point (see data-focus-mobile in the templates).
     hero-distort.js applies the same focus to its WebGL canvas, so the crop is
     identical whether or not the distortion effect is running. */
  .hero-slide[data-focus-mobile="left"]   > img { object-position: left center !important; }
  .hero-slide[data-focus-mobile="center"] > img { object-position: center center !important; }
  .hero-slide[data-focus-mobile="right"]  > img { object-position: right center !important; }

  .hero-slide > .absolute.inset-0[class*="from-ink"] {
    background-image: linear-gradient(to top,
      rgba(34,42,36,.94) 0%,
      rgba(34,42,36,.78) 22%,
      rgba(34,42,36,.35) 48%,
      rgba(34,42,36,0) 78%) !important;
  }
  .hero-slide > .absolute.inset-0[class*="from-paper"] {
    background-image: linear-gradient(to top,
      rgba(244,245,239,.96) 0%,
      rgba(244,245,239,.78) 22%,
      rgba(244,245,239,.4) 48%,
      rgba(244,245,239,0) 78%) !important;
  }

  .hero-slide > .relative.h-full {
    align-items: flex-end;
    padding-bottom: 120px;
  }

  /* Professional page only: its hero is a fixed 560px, so the text block covers a
     much taller share of the frame than on the home page's 100svh hero — and its
     photos put a bright product (the white Nano bottle especially) right behind the
     headline. Carry the scrim higher so the copy stays legible. */
  body.page-template-page-professional .hero-slide > .absolute.inset-0[class*="from-ink"] {
    background-image: linear-gradient(to top,
      rgba(34,42,36,.96) 0%,
      rgba(34,42,36,.90) 26%,
      rgba(34,42,36,.72) 46%,
      rgba(34,42,36,.40) 64%,
      rgba(34,42,36,.12) 82%,
      rgba(34,42,36,0) 100%) !important;
  }
}

/* ===================== Hero entrance ===================== */
#hero-veil { display: none; }
.hero-controls { transition: opacity 1.1s ease .55s; }
.vhb-announce { transition: opacity 1s ease .4s; }

@media (prefers-reduced-motion: no-preference) {
  body.vhb-intro { overflow: hidden; }

  #hero-veil {
    position: fixed; inset: 0; z-index: 70; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    background: #222a24;
    transform: translateY(0);
    transition: transform 1.25s cubic-bezier(.76,0,.24,1);
    will-change: transform;
  }
  body.vhb-go #hero-veil { transform: translateY(-101%); }

  #hero-veil .veil-leaf {
    color: #f4f5ef; opacity: 0; transform: translateY(8px) scale(.9);
    transition: opacity .85s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
  }
  #hero-veil .veil-word {
    color: #f4f5ef; opacity: 0; transform: translateY(12px);
    font-size: 22px; letter-spacing: .04em;
    transition: opacity .9s ease .12s, transform 1s cubic-bezier(.16,1,.3,1) .12s;
  }
  #hero-veil .veil-rule {
    height: 1px; width: 0; background: rgba(244,245,239,.45);
    transition: width 1s cubic-bezier(.16,1,.3,1) .26s;
  }
  body.vhb-mark #hero-veil .veil-leaf { opacity: 1; transform: none; }
  body.vhb-mark #hero-veil .veil-word { opacity: 1; transform: none; }
  body.vhb-mark #hero-veil .veil-rule { width: 170px; }

  #hero-canvas { transition: transform 1.9s cubic-bezier(.16,1,.3,1), filter 1.5s ease; }
  body.vhb-intro #hero-canvas { transform: scale(1.14); filter: brightness(.62) blur(5px); }

  body.vhb-intro #site-header { transform: translateY(-140%); opacity: 0; }
  body.vhb-intro .vhb-announce { opacity: 0; }
  body.vhb-intro .hero-controls { opacity: 0; }
  body.vhb-intro .hero-slide.is-active .hero-text > * { opacity: 0 !important; transform: translateY(30px) !important; }
}

/* ===================== Loja (shop) ===================== */
/* filtros da loja */
[data-shop-filter] { transition: all .4s cubic-bezier(.16,1,.3,1); }
[data-shop-filter].is-active { background: #7c5a3c; color: #fbfcf8; border-color: #7c5a3c; }

/* entrada escalonada dos cards */
.shop-card { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0ms); }
.shop-card.in { opacity: 1; transform: none; }

/* select de ordenação */
.shop-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235f7367' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

/* ===================== Produto (PDP) ===================== */
/* Acordeão */
[data-acc] .acc-body { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.16,1,.3,1), opacity .4s ease; opacity: 0; }
[data-acc].is-open .acc-body { max-height: 320px; opacity: 1; }
[data-acc] .acc-icon { transition: transform .4s cubic-bezier(.16,1,.3,1); }
[data-acc].is-open .acc-icon { transform: rotate(45deg); }

/* ===================== WooCommerce cart & checkout pages ===================== */
/* Light brand styling for the default WC cart/checkout shortcode pages. */
.woocommerce-page .lamarju-wc-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.woocommerce-page h1.entry-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px,4.5vw,54px); color:#222a24; margin-bottom: 1.5rem; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: #7c5a3c; color: #fbfcf8; border-radius: 9999px; padding: .85rem 2rem;
  font-family: 'Jost', sans-serif; letter-spacing: .04em; border: 0; transition: background .3s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #5f442d; }
.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout h3 { font-family: 'Cormorant Garamond', serif; color:#222a24; }
.woocommerce table.shop_table { border-radius: 14px; border-color: #cdd5c8; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: #7c5a3c !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: #7c5a3c; }

/* ===================== Search panel (live autocomplete) ===================== */
.lamarju-search {
  position: fixed; inset: 0; z-index: 80;
  opacity: 0; pointer-events: none;
  transition: opacity .35s cubic-bezier(.16,1,.3,1);
}
.lamarju-search.is-open { opacity: 1; pointer-events: auto; }

.ls-overlay {
  position: absolute; inset: 0;
  background: rgba(34,42,36,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.ls-panel {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%) translateY(-16px);
  width: min(680px, calc(100% - 24px));
  max-height: calc(100svh - 28px);
  box-sizing: border-box;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fbfcf8;
  border-radius: 20px;
  box-shadow: 0 30px 80px -24px rgba(34,42,36,.55);
  opacity: 0;
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.lamarju-search.is-open .ls-panel {
  transform: translateX(-50%) translateY(0); opacity: 1;
}
body.admin-bar .ls-panel { top: 46px; }
@media screen and (min-width: 783px) {
  body.admin-bar .ls-panel { top: 44px; }
}

.ls-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid #cdd5c8;
  box-sizing: border-box;
}
.ls-bar-icon { color: #5f7367; flex: 0 0 auto; display: flex; }
.ls-input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-family: 'Jost', sans-serif; font-size: 17px; color: #222a24;
  -webkit-appearance: none; appearance: none;
}
.ls-input::placeholder { color: rgba(34,42,36,.4); }
.ls-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ls-close {
  flex: 0 0 auto; color: rgba(34,42,36,.5); background: transparent; border: 0;
  cursor: pointer; padding: 4px; line-height: 0; transition: color .3s;
}
.ls-close:hover { color: #2f3a33; }

.ls-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ls-status { padding: 22px 20px; margin: 0; color: rgba(34,42,36,.55); font-size: 14px; }

.ls-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px; box-sizing: border-box;
  transition: background .25s ease;
}
.ls-row:hover, .ls-row:focus { background: #f4f5ef; outline: none; }
.ls-thumb {
  flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: 12px; overflow: hidden; background: #eef1ea;
  display: flex; align-items: center; justify-content: center;
}
.ls-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.ls-leaf { color: #9aa896; display: flex; }
.ls-leaf svg { width: 22px; height: 24px; }
.ls-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ls-title {
  font-size: 15px; color: #222a24; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-type { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #5f7367; margin-top: 2px; }
.ls-meta {
  flex: 0 0 auto; font-family: 'Cormorant Garamond', serif;
  font-size: 17px; color: #7c5a3c; white-space: nowrap; padding-left: 6px;
}
.ls-all {
  display: block; padding: 14px 18px; border-top: 1px solid #cdd5c8;
  font-size: 13px; letter-spacing: .04em; color: #2f3a33;
  transition: background .25s ease;
}
.ls-all:hover { background: #f4f5ef; }

@media (max-width: 480px) {
  .ls-panel { top: 8px; width: calc(100% - 16px); border-radius: 16px; }
  .ls-input { font-size: 16px; }
}

/* GTranslate slot in header — keep it tidy next to the icons */
.lamarju-gt { display: inline-flex; align-items: center; }
.lamarju-gt .gtranslate_wrapper { display: inline-flex; align-items: center; gap: 6px; }

/* PDP full-description (raw imported HTML) — basic readable spacing */
.pdp-desc > *:first-child { margin-top: 0; }
.pdp-desc p { margin: 0 0 12px; }
.pdp-desc h1, .pdp-desc h2, .pdp-desc h3, .pdp-desc h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px; color: #222a24; margin: 18px 0 8px; line-height: 1.2;
}
.pdp-desc ul, .pdp-desc ol { margin: 0 0 12px; padding-left: 20px; list-style: revert; }
.pdp-desc li { margin: 0 0 6px; }
.pdp-desc strong { color: #2f3a33; }
.pdp-desc hr { border: 0; border-top: 1px solid #cdd5c8; margin: 16px 0; }
.pdp-desc img { max-width: 100%; height: auto; border-radius: 12px; }

/* Back to top — parked above the bottom-right corner so it clears a chat
   widget's launcher (those sit at ~bottom 20px, ~60px tall). z-index stays
   under the cart drawer/search overlay (z-50) so those still cover it. */
.back-to-top {
  position: fixed; right: 24px; bottom: 104px; z-index: 40;
  width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #2f3a33; color: #fbfcf8;
  box-shadow: 0 6px 20px rgba(34, 42, 36, .22);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1), background .25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: #7c5a3c; }
.back-to-top:focus-visible { outline: 2px solid #7c5a3c; outline-offset: 3px; }

@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 88px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .2s ease; transform: none; }
}
