/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/
/* ── Levelis.LT ─────────────────────────────────────────────────────────────
   Senieji vertimo „triukai“ (font-size:0 + ::after) pašalinti – visi tekstai
   dabar ateina iš locales/lt.json ir locales/en.json.
   ─────────────────────────────────────────────────────────────────────────── */

/* Laikotarpio kortelės */
.lv-vcard.is-active { border-color: rgba(var(--cl-accent),.75) !important; background-color: rgba(var(--cl-accent),.08) !important; box-shadow: 0 0 0 1px rgba(var(--cl-accent),.35), 0 8px 24px -12px rgba(var(--cl-accent),.55); }
.lv-best { color: #fff; background: linear-gradient(180deg, rgb(var(--cl-accent)), rgba(var(--cl-accent),.75)); }
.lv-save { color: rgb(var(--cl-success)); background: rgba(var(--cl-success),.12); border: 1px solid rgba(var(--cl-success),.25); }

/* Pasitikėjimo blokai po laikotarpio pasirinkimu */
.lv-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.lv-trust-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .45rem; padding: .75rem .5rem; border-radius: var(--radius-input, 12px);
  border: 1px solid var(--cl-border); background: rgba(var(--cl-t-primary),.025);
  font-size: .75rem; font-weight: 600; line-height: 1.25; color: rgb(var(--cl-t-primary)); }
.lv-trust-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; flex-shrink: 0;
  border-radius: .55rem; color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent),.12); }
.lv-trust-icon svg { width: 1rem; height: 1rem; }

/* „Naujas užsakymas“ iššokantis langelis */
.lv-sp { border-color: rgba(var(--cl-accent),.22); background-image: linear-gradient(135deg, rgba(var(--cl-accent),.08), transparent 60%); }
.lv-sp-img { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lv-sp-dot { width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--cl-accent)); box-shadow: 0 0 0 3px rgba(var(--cl-accent),.2); flex-shrink: 0; }

/* Nuolaidos ženkliukas ant prekės kortelės nuotraukos */
.lv-discount-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .25rem .6rem; border-radius: var(--radius-badge, 8px);
  font-size: .78rem; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1.2;
  background: linear-gradient(135deg, rgb(var(--cl-accent)), color-mix(in srgb, rgb(var(--cl-accent)) 65%, #000));
  box-shadow: 0 6px 16px -6px rgba(var(--cl-accent), .8); }
.lv-discount-badge.is-bottom { top: auto; bottom: .6rem; }

/* Neperkamos prekės (nėra sandėlyje / laikinai nėra): aptemdyta nuotrauka */
.sa-product-card:has(.lv-unavailable) .sa-product-card-media img {
  filter: grayscale(0.6) brightness(0.8);
  transition: filter .3s ease;
}
.sa-product-card:has(.lv-unavailable) .lv-discount-badge { opacity: .6; }

/* ═══════════════════════════════════════════════════════════════════════════
   LEVELIS.LT – VIZUALINIS SLUOKSNIS (tik išvaizda, tekstai ir logika nekeisti)
   ═══════════════════════════════════════════════════════════════════════════ */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(var(--cl-accent), .35); color: #fff; }

/* Navigacija – stiklo efektas */
.sa-navbar > div, .sa-navbar .rounded-full.border, .sa-header nav > div:first-child {
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.sa-hero .sa-hero-title { letter-spacing: -0.035em; line-height: 1.02; }
.sa-hero .sa-hero-title .mk {
  background: linear-gradient(180deg, #ff5a62 0%, rgb(var(--cl-accent)) 55%, #c3101a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(var(--cl-accent), .35));
}
.sa-hero .sa-hero-eyebrow { box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 24px -10px rgba(var(--cl-accent), .9); letter-spacing: .01em; }
.sa-hero-subtitle, .sa-hero p.text-t-muted { max-width: 40rem; margin-left: auto; margin-right: auto; }
/* pasitikėjimo punktai – originali paprasta eilutė */
/* mažiau tuščios vietos po hero – prekės arčiau */
.sa-hero + .component { padding-top: calc(var(--section-py) * .5); }
@media (min-width: 1024px) { .sa-hero .py-16, .sa-hero .lg\:py-24 { padding-bottom: 3.5rem; } }

/* ── Mygtukai ─────────────────────────────────────────────────────────── */
.btn-primary, .sa-btn--primary {
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 28px -10px rgba(var(--cl-accent), .85);
}
.btn-primary:hover:not(:disabled), .sa-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 36px -12px rgba(var(--cl-accent), 1);
}
.sa-btn--secondary, .sa-btn--outline { background: rgba(var(--cl-t-primary), .03); }
.sa-btn--secondary:hover, .sa-btn--outline:hover { background: rgba(var(--cl-t-primary), .07); }

/* ── Sekcijų antraštės ───────────────────────────────────────────────── */
.sa-section-title { letter-spacing: -0.025em; }
.sa-section-title .mk { text-shadow: 0 0 32px rgba(var(--cl-accent), .35); }
.sa-section-header .ghost-echo { opacity: .5; }

/* ── Prekių kortelės ─────────────────────────────────────────────────── */
.sa-product-card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.sa-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--cl-accent), .45);
  box-shadow: 0 24px 48px -24px rgba(var(--cl-accent), .55), 0 2px 0 rgba(255,255,255,.03) inset;
}
.sa-product-card--showcase .sa-product-card-media { box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.sa-product-card--showcase .sa-product-card-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.sa-product-card--showcase .sa-product-card-price { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.sa-product-card--showcase .btn-primary { font-weight: 700; letter-spacing: .01em; }
.sa-product-card:has(.lv-unavailable) .btn-primary { background: rgba(var(--cl-t-primary), .08); color: rgb(var(--cl-t-muted)); box-shadow: none; }
.sa-product-card:has(.lv-unavailable):hover { border-color: var(--cl-border); box-shadow: none; }
.lv-discount-badge { font-size: .8rem; padding: .28rem .6rem; }

/* ── Statistika ──────────────────────────────────────────────────────── */
.sa-stats .ghost-echo, .sa-stats-item .ghost-echo { opacity: .35; }
.sa-stats-item { transition: border-color .25s ease; }
.sa-stats-item:hover { border-color: rgba(var(--cl-accent), .35); }

/* ── Žingsniai / bento ───────────────────────────────────────────────── */
.sa-steps-item, .sa-bento-item { transition: transform .25s ease, border-color .25s ease; }
.sa-steps-item:hover, .sa-bento-item:hover { transform: translateY(-2px); border-color: rgba(var(--cl-accent), .3); }

/* ── Atsiliepimai ────────────────────────────────────────────────────── */
.sa-feedback-card { transition: transform .25s ease, border-color .25s ease; }
.sa-feedback-card:hover { transform: translateY(-2px); border-color: rgba(var(--cl-accent), .3); }

/* ── DUK ─────────────────────────────────────────────────────────────── */
.sa-faq-item { background: rgba(var(--cl-t-primary), .02); }
.sa-faq-item.border-theme:hover { border-color: rgba(var(--cl-accent), .3); }
.sa-faq-item.border-accent-500\/30 {
  border-color: rgba(var(--cl-accent), .45);
  background: linear-gradient(180deg, rgba(var(--cl-accent), .07), rgba(var(--cl-t-primary), .02) 70%);
}

/* ── Discord blokas ──────────────────────────────────────────────────── */
.sa-socials-item[style*="#5865F2"] {
  background: #5865F2; border-color: #5865F2; color: #fff; padding: .8rem 1.4rem; font-size: .95rem; font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(88,101,242,.9);
}
.sa-socials-item[style*="#5865F2"] i { color: #fff !important; }
.sa-socials-item[style*="#5865F2"]:hover { background: #4752c4; }

/* ── Mobilus ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sa-hero .sa-hero-title { letter-spacing: -0.03em; }
  .sa-product-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-product-card, .sa-feedback-card, .sa-steps-item, .sa-bento-item, .btn-primary { transition: none; }
  .sa-product-card:hover, .sa-feedback-card:hover, .sa-steps-item:hover, .sa-bento-item:hover { transform: none; }
}
@media (max-width: 1023px) { .sa-hero .py-16 { padding-bottom: 2.5rem; } }
.sa-product-card:has(.lv-unavailable) .btn-primary::before, .sa-product-card:has(.lv-unavailable) .btn-primary::after { display: none; }

/* Hero telefone: kompaktiškas tekstas */
@media (max-width: 640px) {
  .sa-hero .sa-hero-subtitle, .sa-hero .sa-hero-title + p { font-size: .95rem; line-height: 1.55; }
  .sa-hero .sa-hero-actions { margin-top: 1.4rem; }
  .sa-hero .py-16 { padding-top: 2.5rem; padding-bottom: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎄 KALĖDŲ TEMA (minimalistinė) – įsijungia automatiškai 12.01–01.06
   (custom.js prideda klasę .lv-xmas ant <html>). Tekstų nekeičia.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Retas, lėtas sniegas (piešia custom.js) */
.lv-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* Plona sniego linija ant prekių kortelių viršaus */
.lv-xmas .sa-product-card { position: relative; }
.lv-xmas .sa-product-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 20%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.55) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) { .lv-snow { display: none; } }

/* ── 🎁 Krepšelio juosta „Iki nemokamų Levelis.LT Kursų liko …“ ── */
.lv-gift-bar { border: 1px solid rgba(232,194,106,.28); background: linear-gradient(135deg, rgba(253,33,44,.10), rgba(232,194,106,.06)); border-radius: var(--radius-input, 12px); padding: .7rem .85rem .8rem; }
.lv-gift-txt { font-size: .85rem; line-height: 1.35; color: rgb(var(--cl-t-primary)); margin: 0 0 .55rem; }
.lv-gift-txt b { font-weight: 700; }
.lv-gift-amt { color: #E8C26A; }
.lv-gift-txt.is-done { color: #E8C26A; }
.lv-gift-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.lv-gift-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--cl-accent)), #E8C26A); transition: width .35s ease; }
