/* Lucraken Core — componentes do plugin. Usa as cores do tema quando disponíveis. */
:root {
	--lkc-abissal: var(--wp--preset--color--abissal, #071D2B);
	--lkc-oceano: var(--wp--preset--color--oceano, #0B3954);
	--lkc-turquesa: var(--wp--preset--color--turquesa, #00B8B0);
	--lkc-turquesa-escuro: var(--wp--preset--color--turquesa-escuro, #00706B);
	--lkc-espuma: var(--wp--preset--color--espuma, #B8E5E1);
	--lkc-perola: var(--wp--preset--color--perola, #F8FAF9);
	--lkc-ambar: var(--wp--preset--color--ambar, #F29A2E);
	--lkc-nevoa: var(--wp--preset--color--nevoa, #4A6272);
	--lkc-erro: #A33A2B;
	--lkc-line: rgba(11, 57, 84, .16);
	--lkc-ease: cubic-bezier(.2, .7, .2, 1);
}
.lkc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.lkc-link { background: none; border: 0; padding: 0; color: var(--lkc-oceano); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; }

/* ---------- Ações dos cards (favoritos / visualização rápida) ---------- */
.wc-block-product, ul.products li.product { position: relative; }
.lkc-card-actions { position: absolute; top: 1.15rem; right: 1.15rem; z-index: 3; display: flex; flex-direction: column; gap: .4rem; }
.lkc-card-actions button {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--lkc-abissal); box-shadow: 0 4px 14px rgba(7, 29, 43, .14);
	transition: transform 200ms var(--lkc-ease), background 200ms, color 200ms, opacity 200ms;
}
.lkc-card-actions button:hover { transform: scale(1.08); background: #fff; }
.lkc-card-actions .lkc-qv { opacity: 0; }
.wc-block-product:hover .lkc-qv, ul.products li.product:hover .lkc-qv, .lkc-qv:focus-visible { opacity: 1; }
@media (hover: none) { .lkc-card-actions .lkc-qv { opacity: 1; } }
.lkc-fav.is-on { color: #fff; background: var(--lkc-ambar) !important; }
.lkc-fav.is-on svg { fill: currentColor; }
.lkc-fav.is-on svg path { animation: lkc-pop .35s var(--lkc-ease); transform-origin: center; }
@keyframes lkc-pop { 50% { transform: scale(1.3); } }
.lkc-fav--single {
	display: inline-flex; align-items: center; gap: .5rem; margin: .25rem 0 1rem; padding: .6rem 1rem; cursor: pointer;
	border: 1px solid var(--lkc-line); border-radius: 999px; background: #fff; color: var(--lkc-abissal); font: 600 .875rem/1 inherit;
}
.lkc-fav--single.is-on { background: #FFF3E3 !important; color: var(--lkc-abissal); border-color: var(--lkc-ambar); }
.lkc-fav--single.is-on svg { color: var(--lkc-ambar); }
.lkc-fav--remove { margin-top: .5rem; background: none; border: 0; color: var(--lkc-nevoa); text-decoration: underline; cursor: pointer; font-size: .8125rem; }

/* ---------- Visualização rápida ---------- */
.lkc-qv-dialog {
	width: min(920px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 24px;
	background: var(--lkc-perola); color: var(--lkc-abissal); box-shadow: 0 30px 80px rgba(7, 29, 43, .35); overflow: auto;
}
.lkc-qv-dialog::backdrop { background: rgba(7, 29, 43, .62); backdrop-filter: blur(4px); }
.lkc-qv-dialog[open] { animation: lkc-rise .35s var(--lkc-ease); }
@keyframes lkc-rise { from { opacity: 0; transform: translateY(20px); } }
.lkc-qv-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(7, 29, 43, .12); }
.lkc-qv-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; min-height: 200px; }
@media (max-width: 700px) { .lkc-qv-body { grid-template-columns: 1fr; padding: 1.25rem; gap: 1rem; } }
.lkc-qv-media img { width: 100%; height: auto; border-radius: 16px; background: #EEF5F4; }
.lkc-qv-info h2 { margin: .25rem 0 .5rem; font-size: 1.6rem; }
.lkc-qv-info .price { font-size: 1.4rem; font-weight: 700; margin: 0 0 .5rem; }
.lkc-qv-stock { font-size: .875rem; font-weight: 600; margin: 0 0 1rem; }
.lkc-qv-stock.is-in { color: var(--lkc-turquesa-escuro); }
.lkc-qv-stock.is-out { color: var(--lkc-erro); }
.lkc-qv-excerpt { color: var(--lkc-nevoa); font-size: .95rem; }
.lkc-qv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* ---------- Personalizador ---------- */
.lkc-perso { flex-basis: 100%; width: 100%; margin: 0 0 .5rem; padding: 1.25rem; border: 1px solid var(--lkc-line); border-radius: 18px; background: #fff; }
.lkc-perso__title { font-family: var(--wp--preset--font-family--sora, inherit); font-weight: 700; font-size: 1.05rem; padding: 0 .4rem; }
.lkc-perso__hint { margin: 0 0 1rem; color: var(--lkc-nevoa); font-size: .875rem; }
.lkc-perso__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 560px) { .lkc-perso__grid { grid-template-columns: 1fr; } }
.lkc-perso__note { font-size: .75rem; color: var(--lkc-nevoa); margin: .5rem 0 0; text-align: center; }
.lkc-perso.is-uploading .lkc-mug { opacity: .7; }

/* Caneca 2D */
.lkc-mug { position: relative; width: 78%; margin: .5rem auto 0; aspect-ratio: 1 / 1.05; transition: opacity .2s; }
.lkc-mug__body {
	position: absolute; inset: 6% 18% 4% 0; border-radius: 10px 10px 26px 26px / 10px 10px 34px 34px; overflow: hidden;
	background: linear-gradient(90deg, #d7dedd 0%, #ffffff 22%, #f6f8f8 55%, #e1e7e6 82%, #c8d1d0 100%);
	box-shadow: inset 0 -10px 18px rgba(7, 29, 43, .08), 0 18px 30px rgba(7, 29, 43, .16);
}
.lkc-mug__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9%; background: linear-gradient(180deg, #c9d2d1, #eef2f1); border-bottom: 1px solid rgba(7, 29, 43, .08); z-index: 2; }
.lkc-mug__body::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .10) 0%, transparent 18%, rgba(255, 255, 255, .5) 30%, transparent 42%, transparent 78%, rgba(0, 0, 0, .12) 100%); }
.lkc-mug__handle { position: absolute; right: 2%; top: 22%; width: 24%; height: 48%; border: 10px solid #e3e9e8; border-left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; box-shadow: 4px 6px 12px rgba(7, 29, 43, .12); }
.lkc-mug__area { position: absolute; inset: 16% 8% 12% 8%; overflow: hidden; outline: 1px dashed rgba(0, 184, 176, .55); outline-offset: -1px; border-radius: 4px; }
.lkc-mug__area img { position: absolute; left: 50%; top: 50%; max-width: 100%; max-height: 100%; transform: translate(-50%, -50%); transform-origin: center; }
.lkc-mug__text { position: absolute; left: 50%; transform: translate(-50%, -50%); width: 96%; text-align: center; font-weight: 700; line-height: 1.1; word-break: break-word; text-shadow: 0 0 1px rgba(255, 255, 255, .4); }

.lkc-field { margin-bottom: .9rem; }
.lkc-field label, .lkc-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.lkc-field input[type="text"], .lkc-field select, .lkc-field input[type="file"] {
	width: 100%; padding: .65rem .8rem; border: 1px solid var(--lkc-line); border-radius: 10px; background: var(--lkc-perola); font: inherit; font-size: .9rem;
}
.lkc-field input[type="file"] { padding: .5rem; }
.lkc-field input:focus, .lkc-field select:focus { outline: none; border-color: var(--lkc-turquesa); box-shadow: 0 0 0 3px rgba(0, 184, 176, .18); }
.lkc-field--ranges { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; align-items: center; }
.lkc-field--ranges[hidden] { display: none; }
.lkc-field--ranges label { margin: 0; font-weight: 500; }
.lkc-field input[type="range"] { width: 100%; accent-color: var(--lkc-turquesa); }
.lkc-help { margin: .3rem 0 0; font-size: .75rem; color: var(--lkc-nevoa); }
.lkc-status { margin: .4rem 0 0; font-size: .8125rem; min-height: 1.2em; }
.lkc-status.is-ok { color: var(--lkc-turquesa-escuro); }
.lkc-status.is-warn { color: #8A5A00; }
.lkc-status.is-error { color: var(--lkc-erro); }
.lkc-status.is-loading { color: var(--lkc-nevoa); }
.lkc-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.lkc-swatch { position: relative; margin: 0 !important; cursor: pointer; }
.lkc-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lkc-swatch::before { content: ""; display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--lkc-line); transition: box-shadow .15s; }
.lkc-swatch:has(input:checked)::before { box-shadow: 0 0 0 2px var(--lkc-turquesa); }
.lkc-swatch:has(input:focus-visible)::before { box-shadow: 0 0 0 3px var(--lkc-ambar); }

/* ---------- Frete por CEP ---------- */
.lkc-frete { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 16px; background: #fff; border: 1px solid rgba(11, 57, 84, .08); }
.lkc-frete label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.lkc-frete__row { display: flex; gap: .5rem; }
.lkc-frete__row input { flex: 1; min-width: 0; padding: .7rem 1rem; border: 1px solid var(--lkc-line); border-radius: 999px; font: inherit; background: var(--lkc-perola); }
.lkc-frete__row button { padding: .7rem 1.2rem; border-radius: 999px; border: 0; background: var(--lkc-abissal); color: var(--lkc-perola); font-weight: 600; cursor: pointer; }
.lkc-frete__row button:hover { background: var(--lkc-oceano); }
.lkc-frete__help { display: inline-block; margin-top: .4rem; font-size: .75rem; }
.lkc-frete__out { font-size: .875rem; margin-top: .5rem; }
.lkc-frete__out:empty { display: none; }
.lkc-frete__out ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.lkc-frete__out li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-radius: 10px; background: var(--lkc-perola); }
.lkc-frete__dest { margin: 0; color: var(--lkc-nevoa); font-size: .8rem; }
.lkc-frete[aria-busy="true"] .lkc-frete__out { opacity: .6; }

/* ---------- Filtros ---------- */
.lkc-filtros { position: sticky; top: calc(var(--lk-header-h, 76px) + 1rem); background: #fff; border-radius: 18px; padding: 1.1rem 1.25rem; box-shadow: 0 1px 2px rgba(7, 29, 43, .06), 0 6px 20px rgba(7, 29, 43, .07); }
@media (max-width: 900px) { .lkc-filtros { position: static; } }
.lkc-filtros > summary { cursor: pointer; font-family: var(--wp--preset--font-family--sora, inherit); font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lkc-filtros > summary::-webkit-details-marker { display: none; }
.lkc-filtros > summary::after { content: "+"; font-size: 1.3rem; color: var(--lkc-turquesa-escuro); }
.lkc-filtros[open] > summary::after { content: "−"; }
.lkc-filtro { border: 0; padding: 0; margin: 1.1rem 0 0; }
.lkc-filtro__title { font-size: .75rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--lkc-nevoa); margin: 0 0 .6rem !important; font-weight: 700; padding: 0; }
.lkc-filtro__cats { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.lkc-filtro__cats a { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: 8px; text-decoration: none; color: var(--lkc-abissal); font-size: .9rem; }
.lkc-filtro__cats a span { color: var(--lkc-nevoa); font-size: .8rem; }
.lkc-filtro__cats a:hover { background: var(--lkc-perola); }
.lkc-filtro__cats a[aria-current="page"] { background: rgba(0, 184, 176, .12); font-weight: 600; }
.lkc-filtro__price { display: flex; align-items: center; gap: .5rem; }
.lkc-filtro__price label { flex: 1; }
.lkc-filtro__price input { width: 100%; padding: .55rem .7rem; border: 1px solid var(--lkc-line); border-radius: 10px; font: inherit; font-size: .9rem; }
.lkc-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .25rem 0; cursor: pointer; }
.lkc-check input { width: 18px; height: 18px; accent-color: var(--lkc-turquesa-escuro); }
.lkc-filtro__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.lkc-btn-small { padding: .65rem 1.1rem; border-radius: 999px; border: 0; background: var(--lkc-abissal); color: var(--lkc-perola); font-weight: 600; cursor: pointer; }
.lkc-btn-small:hover { background: var(--lkc-turquesa); color: var(--lkc-abissal); }

/* ---------- Newsletter ---------- */
.lkc-news { position: relative; }
.lkc-news__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lkc-news__row { display: flex; gap: .5rem; padding: .35rem; border-radius: 999px; background: rgba(248, 250, 249, .1); border: 1px solid rgba(184, 229, 225, .25); }
.lkc-news__row:focus-within { border-color: var(--lkc-turquesa); }
.lkc-news__row input { flex: 1; min-width: 0; padding: .75rem 1rem; border: 0; background: transparent; color: var(--lkc-perola); font: inherit; }
.lkc-news__row input::placeholder { color: rgba(248, 250, 249, .55); }
.lkc-news__row input:focus { outline: none; }
.lkc-news__row button { padding: .75rem 1.4rem; border-radius: 999px; border: 0; background: var(--lkc-turquesa); color: var(--lkc-abissal); font-weight: 700; cursor: pointer; }
.lkc-news__row button:hover { background: var(--lkc-espuma); }
.lkc-news__row button:disabled { opacity: .6; cursor: progress; }
.lkc-news__consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; font-size: .8125rem; color: rgba(248, 250, 249, .78); cursor: pointer; }
.lkc-news__consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--lkc-turquesa); flex: none; }
.lkc-news__consent a { color: var(--lkc-espuma); }
.lkc-news__msg { min-height: 1.3em; margin: .75rem 0 0 !important; font-size: .875rem; color: var(--lkc-espuma) !important; }

@media (prefers-reduced-motion: reduce) {
	.lkc-qv-dialog[open], .lkc-fav.is-on svg path { animation: none; }
}
