/* =========================================================
   Layout Loja Pro — tokens, componentes e integração WooCommerce
   Os valores vêm do admin (variáveis --llp-* em :root).
   ========================================================= */

/* ---------- 1. Tokens (padrões; o admin sobrescreve) ---------- */
:root {
  --llp-bg1: #1a1033; --llp-bg2: #7a2342; --llp-bg-angle: 135deg;
  --llp-surface: #fff; --llp-on-accent: #fff; --llp-surface-op: 12; --llp-border-op: 18; --llp-blur: 18px;
  --llp-text: #fff; --llp-muted: #cdbfdc; --llp-accent: #e0485a; --llp-accent2: #b36bff;
  --llp-radius: 22px; --llp-radius-btn: 12px; --llp-glow: 40; --llp-shadow: 35;
  --llp-cols: 4; --llp-cols-m: 2;
  --llp-card-bg: var(--llp-glass); --llp-card-border: var(--llp-line);
  --llp-lift: -6px; --llp-zoom: 1.05; --llp-hglow: 0px;
  --llp-font-h: inherit; --llp-price-label: "Preço";
  --llp-title-grad: linear-gradient(90deg, var(--llp-text), var(--llp-text));
}

/* Tokens derivados: recalculados em cada .llp-stage (preview do admin) */
:root, .llp-stage {
  --llp-glass: color-mix(in srgb, var(--llp-surface) calc(var(--llp-surface-op) * 1%), transparent);
  --llp-solid: color-mix(in srgb, var(--llp-surface) 14%, var(--llp-bg1));
  --llp-line: color-mix(in srgb, var(--llp-text) calc(var(--llp-border-op) * 1%), transparent);
  --llp-line-strong: color-mix(in srgb, var(--llp-text) 38%, transparent);
  --llp-grad: linear-gradient(135deg, var(--llp-accent), var(--llp-accent2));
  --llp-bg: linear-gradient(var(--llp-bg-angle), var(--llp-bg1), var(--llp-bg2));
  --llp-shadow-c: 0 18px 40px rgba(0, 0, 0, calc(var(--llp-shadow) / 100 * .6));
  --llp-glow-c: 0 8px calc(var(--llp-glow) * .5px) color-mix(in srgb, var(--llp-accent) calc(var(--llp-glow) * .8%), transparent);
}

/* ---------- 2. Página (fundo e texto) ---------- */
body.llp-wc.llp-dark {
  background: var(--llp-bg) no-repeat !important;
  background-size: 100% 100% !important;
  min-height: 100vh;
  color: var(--llp-text);
}
body.llp-wc.llp-dark :is(#page, .site, #content, .site-content, .content-area, main, .site-main, #primary, #main, .container, .col-full, .entry-content, .woocommerce) {
  background-color: transparent !important;
}
body.llp-wc.llp-dark :is(main, #primary, #content, .site-content, .content-area, .widget-area, aside, .woocommerce) :is(h1, h2, h3, h4, h5, h6, p, label, th, td, li, dt, dd, .woocommerce-breadcrumb, .woocommerce-result-count) {
  color: var(--llp-text);
}
body.llp-wc.llp-dark :is(.woocommerce-breadcrumb, .woocommerce-result-count, .product_meta, .woocommerce-product-details__short-description) {
  color: var(--llp-muted);
}
body.llp-wc.llp-dark :is(main, #primary, #content, .widget-area) a:not(.llp-btn):not(.button) { color: var(--llp-text); }

/* ---------- 3. Superfícies de vidro ---------- */
.llp-surface,
body.llp-wc.single-product div.product .woocommerce-product-gallery,
body.llp-wc.single-product div.product .summary,
body.llp-wc.single-product div.product .woocommerce-tabs,
body.llp-wglass .widget,
body.llp-wc .woocommerce-cart-form, body.llp-wc .cart_totals, body.llp-wc #customer_details, body.llp-wc #order_review,
.llp-hero {
  background: var(--llp-glass);
  -webkit-backdrop-filter: blur(var(--llp-blur));
  backdrop-filter: blur(var(--llp-blur));
  border: 1px solid var(--llp-line);
  border-radius: var(--llp-radius);
  box-shadow: var(--llp-shadow-c);
  padding: clamp(16px, 2.4vw, 28px);
  box-sizing: border-box;
}

/* ---------- 4. Botões ---------- */
.llp-btn, .llp-card .button,
body.llp-wc :is(a.button, button.button, input.button, .button, .single_add_to_cart_button, #respond input#submit, .wc-block-components-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--llp-grad) !important;
  color: var(--llp-on-accent) !important;
  border: 0 !important;
  border-radius: var(--llp-radius-btn) !important;
  padding: .95em 1.5em !important;
  font-weight: 700; line-height: 1.1; text-decoration: none;
  cursor: pointer; box-shadow: var(--llp-glow-c);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.llp-btn:hover, .llp-card .button:hover,
body.llp-wc :is(a.button, button.button, input.button, .button, .single_add_to_cart_button):hover {
  transform: translateY(-2px); filter: brightness(1.08);
}
.llp-btn--block { display: flex; width: 100%; }
body.llp-wc .single_add_to_cart_button.disabled { opacity: .45; transform: none; }

/* ---------- 5. Banner da loja ---------- */
.llp-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px;
  margin: 0 0 28px; overflow: hidden; position: relative;
}
.llp-hero:not(:has(.llp-hero__img img)) { grid-template-columns: 1fr; }
.llp-hero__title {
  margin: 0 0 12px; font-family: var(--llp-font-h); font-weight: 800; line-height: 1.05;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); color: var(--llp-text);
}
.llp-hero__title span {
  background: var(--llp-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.llp-hero__title .llp-t { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.llp-hero__sub { margin: 0 0 20px; color: var(--llp-muted); max-width: 46ch; }
.llp-hero__img { text-align: center; }
.llp-hero__img img { max-width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); }
.llp-hero__img:empty { display: none; }

/* ---------- 6. Cards (loja + vitrine) ---------- */
body.llp-wc ul.products {
  display: grid !important; gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(100% / var(--llp-cols) - 24px)), 1fr));
}
body.llp-wc ul.products::before, body.llp-wc ul.products::after { display: none !important; }

.llp-card,
body.llp-wc ul.products li.product {
  position: relative; overflow: hidden;
  background: var(--llp-card-bg);
  border: 1px solid var(--llp-card-border);
  border-radius: var(--llp-radius);
  box-shadow: var(--llp-shadow-c);
  -webkit-backdrop-filter: blur(var(--llp-blur)); backdrop-filter: blur(var(--llp-blur));
  padding: 14px; box-sizing: border-box;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.llp-wc ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }
.llp-card:hover,
body.llp-wc ul.products li.product:hover {
  transform: translateY(var(--llp-lift));
  box-shadow: var(--llp-shadow-c), 0 0 var(--llp-hglow) color-mix(in srgb, var(--llp-accent) 55%, transparent);
}
.llp-card__media, body.llp-wc ul.products li.product a.woocommerce-LoopProduct-link > img { display: block; }
.llp-card img,
body.llp-wc ul.products li.product img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 12px;
  border-radius: calc(var(--llp-radius) - 8px); transition: transform .45s ease;
}
.llp-card:hover img, body.llp-wc ul.products li.product:hover img { transform: scale(var(--llp-zoom)); }
.llp-card__title, .llp-card__title a,
body.llp-wc ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--llp-font-h); font-size: 1rem !important; font-weight: 700; margin: 0 0 6px !important;
  padding: 0 !important; color: var(--llp-text) !important; text-decoration: none;
}
.llp-card__price, .llp-card__price .price, body.llp-wc ul.products li.product .price {
  color: var(--llp-text) !important; font-weight: 700; margin: 4px 0 10px; display: block;
}
.llp-card .price del, body.llp-wc ul.products li.product .price del { opacity: .5; font-weight: 400; }
.llp-card .price ins, body.llp-wc ul.products li.product .price ins { background: none; text-decoration: none; }
.llp-card .button, body.llp-wc ul.products li.product .button { margin-top: 4px; width: 100%; padding: .75em 1em !important; font-size: .9rem; }
.llp-card .star-rating, body.llp-wc ul.products li.product .star-rating { color: var(--llp-accent2); margin: 0 0 6px; }
.llp-ph { display: grid; place-items: center; font-size: 3.4rem; aspect-ratio: 1/1; background: var(--llp-grad); border-radius: calc(var(--llp-radius) - 8px); margin-bottom: 12px; opacity: .85; }
.llp-hide-rating .llp-card__rating, body.llp-hide-rating ul.products .star-rating, .llp-hide-rating .star-rating { display: none; }
.llp-hide-cart .llp-card .button, body.llp-hide-cart ul.products li.product .button { display: none; }

body.llp-wc .onsale {
  background: var(--llp-grad) !important; color: var(--llp-on-accent) !important; border-radius: 999px !important;
  min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: .55em .9em !important;
  font-weight: 700; box-shadow: var(--llp-glow-c); z-index: 3;
}

/* Vitrine (widget e shortcode) */
.llp-vitrine { display: grid; gap: 18px; grid-template-columns: repeat(var(--llp-v-cols, 4), minmax(0, 1fr)); }
.llp-vitrine--list { grid-template-columns: 1fr; gap: 12px; }
.llp-vitrine--list .llp-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; }
.llp-vitrine--list .llp-card img { margin: 0; width: 72px; height: 72px; }
.llp-vitrine--list .llp-card .button { display: none; }
.llp-vitrine--list .llp-card__price { margin: 0; }
@media (max-width: 600px) { .llp-vitrine--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.llp-stage .llp-vitrine--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 7. Página de produto ---------- */
body.llp-wc.single-product div.product { display: grid; gap: 24px; align-items: start; }
body.llp-layout-trio.single-product div.product { grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr) minmax(260px, 1.1fr); }
body.llp-layout-split.single-product div.product { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
body.llp-layout-stack.single-product div.product { grid-template-columns: minmax(0, 1fr); }
body.llp-wc.single-product div.product > :is(.woocommerce-tabs, .related, .upsells, .up-sells, section.products, .llp-wide) { grid-column: 1 / -1; }
body.llp-wc.single-product div.product :is(.woocommerce-product-gallery, .summary) {
  width: 100% !important; float: none !important; margin: 0 !important;
}
body.llp-wc.single-product div.product .woocommerce-product-gallery { position: relative; }
body.llp-wc.single-product .woocommerce-product-gallery__image img { border-radius: calc(var(--llp-radius) - 6px); }
body.llp-wc.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none;
}
body.llp-wc.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; float: none !important; margin: 0 !important; }
body.llp-wc.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: 12px; border: 1px solid var(--llp-line); background: var(--llp-glass); opacity: .7; transition: .2s;
}
body.llp-wc.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.llp-wc.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--llp-accent); }

body.llp-wc.single-product .summary .product_title {
  font-family: var(--llp-font-h); font-weight: 800; text-align: center; margin: 0 0 14px;
  background: var(--llp-title-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.llp-wc.single-product .summary .price,
.llp-pricebox { display: block; text-align: center; margin: 0 0 16px; color: var(--llp-text) !important; }
body.llp-wc.single-product .summary .price { font-family: var(--llp-font-h); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
body.llp-wc.single-product .summary .price::before { content: var(--llp-price-label); }
body.llp-wc.single-product .summary .price::before, .llp-price-label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--llp-muted);
}
.llp-price { display: block; font-family: var(--llp-font-h); font-size: 2.2rem; font-weight: 800; }
body.llp-wc.single-product .summary .price del { opacity: .5; font-size: .55em; }
body.llp-wc.single-product .summary .price ins { background: none; text-decoration: none; }
body.llp-wc.single-product .summary .woocommerce-product-details__short-description { text-align: center; color: var(--llp-muted); }

/* Variações como botões */
body.llp-wc table.variations { border: 0; margin: 0 0 12px; width: 100%; }
body.llp-wc table.variations :is(th, td) { display: block; padding: 0; border: 0; text-align: center; background: none; }
body.llp-wc table.variations th.label label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--llp-muted); }
body.llp-wc table.variations td.value { margin-bottom: 10px; }
body.llp-wc table.variations select {
  background: var(--llp-glass); color: var(--llp-text); border: 1px solid var(--llp-line);
  border-radius: var(--llp-radius-btn); padding: .7em 1em; max-width: 100%;
}
body.llp-chips-on table.variations select { display: none !important; }
body.llp-wc .reset_variations { display: inline-block; margin-top: 6px; font-size: .8rem; color: var(--llp-muted) !important; }

.llp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 12px; }
.llp-chip {
  min-width: 52px; padding: 12px 14px; border-radius: var(--llp-radius-btn);
  border: 1px solid var(--llp-line); background: var(--llp-glass); color: var(--llp-text);
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.llp-chip:hover:not([disabled]) { transform: translateY(-2px); }
.llp-chip.is-active { background: var(--llp-text); color: var(--llp-bg1); border-color: transparent; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.llp-chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.llp-chip--color { width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid var(--llp-line); }
.llp-chip--color.is-active { background: var(--c); outline: 2px solid var(--llp-text); outline-offset: 3px; }

/* Formulário de compra */
body.llp-wc form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
body.llp-wc form.variations_form { display: block; }
body.llp-wc .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
body.llp-wc form.cart .single_add_to_cart_button { flex: 1 1 200px; }
body.llp-wc .quantity .qty {
  background: var(--llp-glass); color: var(--llp-text); border: 1px solid var(--llp-line);
  border-radius: var(--llp-radius-btn); padding: .8em .6em; min-width: 64px; text-align: center;
}
.llp-buy { max-width: 340px; margin: 0 auto; }

/* Abas em pílula */
body.llp-tabs-on .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
body.llp-tabs-on .woocommerce-tabs ul.tabs::before, body.llp-tabs-on .woocommerce-tabs ul.tabs::after,
body.llp-tabs-on .woocommerce-tabs ul.tabs li::before, body.llp-tabs-on .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.llp-tabs-on .woocommerce-tabs ul.tabs li {
  margin: 0; border: 1px solid var(--llp-line) !important; background: var(--llp-glass) !important; border-radius: 999px !important;
}
body.llp-tabs-on .woocommerce-tabs ul.tabs li a { color: var(--llp-text) !important; padding: .6em 1.2em !important; }
body.llp-tabs-on .woocommerce-tabs ul.tabs li.active { background: var(--llp-grad) !important; border-color: transparent !important; }
body.llp-tabs-on .woocommerce-tabs ul.tabs li.active a { color: var(--llp-on-accent) !important; }

/* Painel lateral "Quem também viu" */
.llp-side { display: flex; flex-direction: column; gap: 12px; }
.llp-side__title { margin: 0 0 4px; text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--llp-text); }
.llp-mini {
  display: grid; gap: 6px; padding: 10px; text-decoration: none !important; color: var(--llp-text) !important;
  background: var(--llp-glass); border: 1px solid var(--llp-line); border-radius: calc(var(--llp-radius) - 6px); transition: transform .2s ease;
}
.llp-mini:hover { transform: translateY(-3px); }
.llp-mini__img img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.llp-mini__name { font-size: .85rem; font-weight: 600; }
.llp-mini__price { font-size: .8rem; color: var(--llp-muted); }
.llp-mini__price ins { background: none; text-decoration: none; }

/* Barra de compra fixa (celular) */
.llp-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; display: none; align-items: center; gap: 12px; padding: 10px 12px;
  transform: translateY(130%); transition: transform .3s ease; border-radius: var(--llp-radius);
}
.llp-sticky.is-on { transform: none; }
.llp-sticky__info { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--llp-text); }
.llp-sticky__info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.llp-sticky__info span { font-size: .85rem; color: var(--llp-muted); }
@media (max-width: 900px) {
  .llp-sticky { display: flex; }
  body.llp-wc.single-product div.product { grid-template-columns: minmax(0, 1fr) !important; }
  .llp-side { order: 3; }
  .llp-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.llp-wc ul.products { grid-template-columns: repeat(var(--llp-cols-m), minmax(0, 1fr)); gap: 14px; }
}

/* ---------- 8. Widgets ---------- */
body.llp-wc .widget { margin-bottom: 24px; }
body.llp-wc .widget :is(.widget-title, .widgettitle, h2, h3) { font-family: var(--llp-font-h); }
body.llp-wbar .widget :is(.widget-title, .widgettitle)::after {
  content: ""; display: block; width: 38px; height: 3px; border-radius: 3px; background: var(--llp-grad); margin-top: 10px;
}
body.llp-wc .widget ul { list-style: none; margin: 0; padding: 0; }
body.llp-wc .widget li { padding: .35em 0; border: 0; }
body.llp-wc .widget_price_filter .ui-slider .ui-slider-range { background: var(--llp-grad); }
body.llp-wc .widget_price_filter .ui-slider .ui-slider-handle { background: var(--llp-text); border: 3px solid var(--llp-accent); box-shadow: var(--llp-glow-c); }
body.llp-wc .widget_price_filter .ui-slider { background: var(--llp-line); }
body.llp-wc .widget .product_list_widget li { display: flex; gap: 12px; align-items: center; }
body.llp-wc .widget .product_list_widget li img { float: none; margin: 0; width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
body.llp-wc :is(input[type=text], input[type=search], input[type=email], select, textarea) {
  background: var(--llp-glass); color: var(--llp-text); border: 1px solid var(--llp-line); border-radius: var(--llp-radius-btn);
}
body.llp-wc .woocommerce-ordering select { padding: .6em 1em; }
body.llp-wc nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
body.llp-wc nav.woocommerce-pagination ul li { border: 0; }
body.llp-wc nav.woocommerce-pagination ul li :is(a, span) {
  border-radius: var(--llp-radius-btn); background: var(--llp-glass); color: var(--llp-text); padding: .6em 1em; border: 1px solid var(--llp-line);
}
body.llp-wc nav.woocommerce-pagination ul li span.current { background: var(--llp-grad); color: var(--llp-on-accent); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .llp-card, .llp-chip, .llp-mini, .llp-btn, .llp-sticky, body.llp-wc ul.products li.product, body.llp-wc ul.products li.product img { transition: none !important; }
}


/* =========================================================
   v1.1 — Home, blocos do WooCommerce, categorias e widgets
   ========================================================= */

/* Painel: componentes fora das páginas estilizadas ganham o próprio fundo */
.llp-panel { background: var(--llp-bg); color: var(--llp-text); border-radius: var(--llp-radius); padding: clamp(14px, 2vw, 24px); box-sizing: border-box; }
.llp-hero.llp-panel { padding: clamp(16px, 2.4vw, 28px); }

/* Seções da home */
.llp-home { display: block; }
.llp-section { margin: 0 0 40px; }
.llp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.llp-section__title { margin: 0; font-family: var(--llp-font-h); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--llp-text); }
.llp-section__title::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--llp-grad); margin-top: 8px; }
.llp-section__more { color: var(--llp-muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.llp-section__more:hover { color: var(--llp-text); }

/* Categorias (shortcode, widget e home) */
.llp-cats { display: grid; gap: 16px; }
.llp-cats--cards { grid-template-columns: repeat(var(--llp-v-cols, 3), minmax(0, 1fr)); }
.llp-cat {
  position: relative; display: grid; gap: 8px; text-decoration: none !important; color: var(--llp-text) !important;
  background: var(--llp-card-bg); border: 1px solid var(--llp-card-border); border-radius: var(--llp-radius);
  padding: 12px; box-sizing: border-box; box-shadow: var(--llp-shadow-c);
  -webkit-backdrop-filter: blur(var(--llp-blur)); backdrop-filter: blur(var(--llp-blur));
  transition: transform .25s ease, box-shadow .25s ease;
}
.llp-cat:hover { transform: translateY(var(--llp-lift)); box-shadow: var(--llp-shadow-c), 0 0 var(--llp-hglow) color-mix(in srgb, var(--llp-accent) 55%, transparent); }
.llp-cat__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--llp-radius) - 8px); transition: transform .45s ease; }
.llp-cat:hover .llp-cat__img img { transform: scale(var(--llp-zoom)); }
.llp-cat__img { overflow: hidden; border-radius: calc(var(--llp-radius) - 8px); }
.llp-cat__name { font-family: var(--llp-font-h); font-weight: 700; }
.llp-cat__count, body.llp-wc .widget .count, body.llp-wc li.product-category mark.count {
  justify-self: start; display: inline-block; min-width: 1.8em; text-align: center; padding: .15em .65em; border-radius: 999px;
  background: var(--llp-grad); color: var(--llp-on-accent) !important; font-size: .72rem; font-weight: 700; line-height: 1.5;
}
body.llp-wc :is(.wd-cat, .product-category) :is(.count, mark.count, .wd-cat-count) {
  background: var(--llp-grad) !important; color: var(--llp-on-accent) !important; border-radius: 999px; font-weight: 700;
}
.llp-cats--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.llp-cats--chips .llp-cat { display: inline-flex; align-items: center; gap: 8px; padding: .5em .6em .5em 1em; border-radius: 999px; box-shadow: none; }
.llp-cats--list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.llp-cats--list .llp-cat { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: calc(var(--llp-radius) - 6px); box-shadow: none; }
.llp-cats--list .llp-cat__img img { aspect-ratio: 1 / 1; border-radius: 10px; }
.llp-cats--list .llp-cat__count { justify-self: end; }
@media (max-width: 700px) { .llp-cats--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.llp-stage .llp-cats--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Categorias nativas do WooCommerce ([product_categories], arquivo de categorias) */
body.llp-wc ul.products li.product-category a { text-decoration: none; }
body.llp-wc ul.products li.product-category .woocommerce-loop-category__title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0;
  font-family: var(--llp-font-h); font-size: 1rem; color: var(--llp-text) !important;
}

/* Blocos do WooCommerce (home e páginas feitas no editor) */
body.llp-wc .wc-block-grid__products {
  display: grid !important; gap: 20px; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(100% / var(--llp-cols) - 24px)), 1fr));
}
body.llp-wc .wc-block-grid__product { width: auto !important; max-width: none !important; margin: 0 !important; }
body.llp-wc :is(.wc-block-grid__product, li.wc-block-product, .wc-block-product) {
  background: var(--llp-card-bg); border: 1px solid var(--llp-card-border); border-radius: var(--llp-radius);
  box-shadow: var(--llp-shadow-c); padding: 14px; box-sizing: border-box; overflow: hidden;
  -webkit-backdrop-filter: blur(var(--llp-blur)); backdrop-filter: blur(var(--llp-blur));
  transition: transform .25s ease, box-shadow .25s ease;
}
body.llp-wc :is(.wc-block-grid__product, li.wc-block-product):hover { transform: translateY(var(--llp-lift)); }
body.llp-wc :is(.wc-block-grid__product, li.wc-block-product) img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--llp-radius) - 8px); transition: transform .45s ease;
}
body.llp-wc :is(.wc-block-grid__product, li.wc-block-product):hover img { transform: scale(var(--llp-zoom)); }
body.llp-wc :is(.wc-block-grid__product-title, .wc-block-components-product-name, .wp-block-post-title a) {
  font-family: var(--llp-font-h); font-weight: 700; color: var(--llp-text) !important; text-decoration: none;
}
body.llp-wc :is(.wc-block-grid__product-price, .wc-block-components-product-price) { color: var(--llp-text) !important; font-weight: 700; }
body.llp-wc :is(.wc-block-grid__product-price del, .wc-block-components-product-price del) { opacity: .5; font-weight: 400; }
body.llp-wc :is(.wc-block-grid__product-price ins, .wc-block-components-product-price ins) { background: none; text-decoration: none; }
body.llp-wc :is(.wc-block-grid__product-add-to-cart, .wc-block-components-product-button) .wp-block-button__link {
  background: var(--llp-grad) !important; color: var(--llp-on-accent) !important; border: 0 !important;
  border-radius: var(--llp-radius-btn) !important; font-weight: 700; box-shadow: var(--llp-glow-c); padding: .8em 1.2em;
}
body.llp-wc .wc-block-grid__product-onsale {
  background: var(--llp-grad); color: var(--llp-on-accent); border: 0; border-radius: 999px; padding: .5em .9em; font-weight: 700;
}
body.llp-wc :is(.wc-block-grid__product-rating .star-rating, .wc-block-components-product-rating) { color: var(--llp-accent2); }
body.llp-hide-rating :is(.wc-block-grid__product-rating, .wc-block-components-product-rating) { display: none; }
body.llp-hide-cart :is(.wc-block-grid__product-add-to-cart, .wc-block-components-product-button) { display: none; }
@media (max-width: 600px) {
  body.llp-wc .wc-block-grid__products { grid-template-columns: repeat(var(--llp-cols-m), minmax(0, 1fr)); gap: 14px; }
}

/* Widgets nativos do WooCommerce: categorias */
body.llp-wc .widget_product_categories ul.product-categories li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: .55em 0;
  border-bottom: 1px solid var(--llp-line);
}
body.llp-wc .widget_product_categories ul.product-categories li:last-child { border-bottom: 0; }
body.llp-wc .widget_product_categories ul.product-categories li a { flex: 1; color: var(--llp-text) !important; text-decoration: none; font-weight: 600; transition: color .2s, padding .2s; }
body.llp-wc .widget_product_categories ul.product-categories li a:hover { padding-left: 6px; color: var(--llp-accent2) !important; }
body.llp-wc .widget_product_categories ul.product-categories li.current-cat > a { color: var(--llp-accent2) !important; }
body.llp-wc .widget_product_categories ul.children { flex-basis: 100%; margin: 4px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--llp-line); }
body.llp-wc .widget_product_categories ul.children li { border-bottom: 0; padding: .3em 0; }
body.llp-wc .widget_product_categories .count { order: 3; }
body.llp-wc .widget_product_categories .count::before, body.llp-wc .widget_product_categories .count::after { content: none; }

/* Categorias em pílulas */
body.llp-wcat-pills .widget_product_categories ul.product-categories { display: flex; flex-wrap: wrap; gap: 8px; }
body.llp-wcat-pills .widget_product_categories ul.product-categories > li {
  display: inline-flex; width: auto; padding: .45em .6em .45em 1em; border: 1px solid var(--llp-line); border-radius: 999px; background: var(--llp-glass);
}
body.llp-wcat-pills .widget_product_categories ul.children { display: none; }

/* Widgets nativos: produtos, filtros, tags, carrinho, busca, avaliações */
body.llp-wc .widget :is(.product_list_widget li, .woocommerce-widget-layered-nav-list__item) { border-bottom: 1px solid var(--llp-line); padding: .65em 0; }
body.llp-wc .widget .product_list_widget li a { color: var(--llp-text) !important; font-weight: 600; text-decoration: none; }
body.llp-wc .widget .product_list_widget .amount, body.llp-wc .widget .product_list_widget ins { color: var(--llp-muted); background: none; text-decoration: none; }
body.llp-wc .widget .star-rating { color: var(--llp-accent2); }
body.llp-wc .widget_product_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
body.llp-wc .widget_product_tag_cloud .tagcloud a {
  font-size: .85rem !important; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--llp-line);
  background: var(--llp-glass); color: var(--llp-text) !important; text-decoration: none; transition: background .2s;
}
body.llp-wc .widget_product_tag_cloud .tagcloud a:hover { background: var(--llp-grad); color: var(--llp-on-accent) !important; }
body.llp-wc .widget_layered_nav li a, body.llp-wc .widget_rating_filter li a { color: var(--llp-text) !important; text-decoration: none; }
body.llp-wc .widget_layered_nav li.chosen a::before, body.llp-wc .widget_rating_filter li.chosen a::before { color: var(--llp-accent); }
body.llp-wc .widget_shopping_cart .total { border-top: 1px solid var(--llp-line); padding-top: .8em; color: var(--llp-text); }
body.llp-wc .widget_shopping_cart .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
body.llp-wc .widget_shopping_cart .buttons a { flex: 1; text-align: center; }
body.llp-wc .widget_shopping_cart .cart_list li a.remove { color: var(--llp-accent) !important; }
body.llp-wc .widget_product_search form, body.llp-wc .widget_search form { display: flex; gap: 8px; }
body.llp-wc .widget_product_search input[type=search], body.llp-wc .widget_search input[type=search] { flex: 1; padding: .8em 1em; }
body.llp-wc .widget_product_search button, body.llp-wc .widget_product_search input[type=submit] { white-space: nowrap; }

/* Widget "Vitrine"/"Categorias" dentro de um .widget: sem caixa dupla */
body.llp-wc .widget .llp-vitrine, body.llp-wc .widget .llp-cats { background: none; padding: 0; }
body.llp-wc .widget .llp-vitrine--list .llp-card, body.llp-wc .widget .llp-cats--list .llp-cat { background: var(--llp-glass); box-shadow: none; }


/* =========================================================
   v1.2 — ajustes vistos em sites reais (Woodmart/Elementor)
   ========================================================= */

/* Cabeçalho: evita logo/menu claros sobre fundo branco */
body.llp-hdr :is(#masthead, .site-header, .whb-header, .whb-row, .main-header, #header, .elementor-location-header, [data-elementor-type="header"]) {
  background-color: var(--llp-bg1) !important;
}
body.llp-hdr :is(.elementor-location-header, [data-elementor-type="header"]) :is(.elementor-section, .e-con, .elementor-container) {
  background-color: transparent !important;
}
body.llp-hdr :is(#masthead, .site-header, .whb-header, .elementor-location-header, [data-elementor-type="header"]) a { color: var(--llp-text) !important; }

/* Meta do produto (Categoria, SKU, Tags) legível no escuro */
body.llp-wc.single-product .summary .product_meta,
body.llp-wc.single-product .summary .product_meta :is(span, label, .meta-label, .sku_wrapper, .posted_in, .tagged_as) { color: var(--llp-muted) !important; }
body.llp-wc.single-product .summary .product_meta a { color: var(--llp-text) !important; }
body.llp-wc.single-product .summary .product_meta { border-color: var(--llp-line); }

/* Título do painel lateral: tamanho fixo mesmo com títulos grandes no tema */
.llp-side .llp-side__title {
  font-size: .78rem !important; line-height: 1.4 !important; letter-spacing: .2em !important; margin: 0 0 6px !important;
  text-align: center; text-transform: uppercase; font-family: var(--llp-font-h);
}

/* Galeria centralizada e painel de compra que acompanha a rolagem */
body.llp-wc.single-product .woocommerce-product-gallery :is(.woocommerce-product-gallery__wrapper, .woocommerce-product-gallery__image, .wd-carousel-item) { text-align: center; margin-inline: auto; }
body.llp-wc.single-product .woocommerce-product-gallery__image img { margin-inline: auto; display: block; max-width: 100%; height: auto; }
@media (min-width: 901px) {
  body.llp-layout-trio.single-product div.product .summary, body.llp-layout-split.single-product div.product .summary { position: sticky; top: 110px; }
}

/* Produto sem preço */
.llp-noprice { display: block; font-family: var(--llp-font-h); font-size: 1.15rem; font-weight: 700; color: var(--llp-text); }
body.llp-wc.single-product .summary .price:has(.llp-noprice) { font-size: inherit; }
body.llp-wc.single-product .summary .price:has(.llp-noprice)::before { content: none; }
.llp-wa { margin: 6px 0 14px; }
.llp-wa::before { content: "💬"; }
