/* ==========================================================================
   QA Turgus – stiliai
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #1c2033;
  --muted: #646b82;
  --border: #e2e5ef;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --info: #1d4ed8;
  --info-soft: #eff6ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--primary-soft);
  color: var(--primary-hover);
  padding: .1em .4em;
  border-radius: 5px;
}
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.strong { font-weight: 700; }
.danger { color: var(--danger) !important; }
.warn-text { color: var(--warning); display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }

/* --- Mygtukai --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.btn-primary.added { background: var(--success); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: #c7cbe0; background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: .875rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
  color: var(--primary); cursor: pointer; text-decoration: underline;
}
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  cursor: pointer; font-size: .95rem;
}
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }

.spinner {
  display: inline-block; width: 1em; height: 1em; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Antraštė -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--primary); color: #fff; border-radius: 9px; font-size: .85rem; letter-spacing: .5px;
}
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500;
}
.cart-link:hover, .cart-link.active { background: var(--surface-2); color: var(--text); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
.user-menu { position: relative; }
.user-menu-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font: inherit; font-weight: 500; cursor: pointer; color: var(--text);
}
.user-menu-button:hover { background: var(--surface-2); }
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
}
.user-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
}
.user-menu-email { padding: 8px 10px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; word-break: break-all; }
.user-menu-list a, .user-menu-list button {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--surface-2); }

/* --- Poraštė --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .875rem; max-width: 720px; }

/* --- Kortelės, pranešimai -------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  border: 1px solid transparent; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.alert-error { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #166534; }
.alert-info { background: var(--info-soft); border-color: #bfdbfe; color: #1e3a8a; display: block; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--muted); }
.empty-state { text-align: center; padding: 56px 16px; }
.empty-state.compact { padding: 24px 16px; }
.empty-icon { font-size: 3rem; margin-bottom: 8px; }

.tag {
  position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; z-index: 1;
}
.tag-sale { left: 10px; background: var(--danger); color: #fff; }
.tag-warn { right: 10px; background: var(--warning-soft); color: var(--warning); border: 1px solid #fde68a; }
.tag-muted { right: 10px; background: #1f2937; color: #fff; }
.pill { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; text-align: center; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.status-processing { background: var(--info-soft); color: var(--info); }
.status-cancelled { background: var(--surface-2); color: var(--muted); }

/* --- Formos ---------------------------------------------------------- */
.field { margin-bottom: 16px; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid #cfd3e2; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18);
}
input[readonly] { background: var(--surface-2); color: var(--muted); }
input:disabled, select:disabled { background: var(--surface-2); }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--danger); }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.field-error::before { content: "⚠ "; }
.field-hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.counter { margin-left: auto; font-size: .8rem; color: var(--muted); padding-top: 6px; }
.counter.warn { color: var(--warning); font-weight: 600; }
.req { color: var(--danger); }
.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; min-width: 0; }
.pw-toggle { border: 1px solid #cfd3e2; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-section { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-section > legend { font-size: 1rem; font-weight: 700; margin-bottom: 12px; padding-top: 8px; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.input-with-badge { position: relative; }
.card-brand {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: .7rem; font-weight: 800; letter-spacing: .5px; color: var(--primary);
  background: var(--primary-soft); padding: 3px 7px; border-radius: 5px;
}
.tooltip {
  position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .75rem; cursor: help; margin-left: 4px;
}
.tooltip::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: .78rem; font-weight: 400;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.tooltip:hover::after, .tooltip:focus::after { opacity: 1; }

/* Slaptažodžio stiprumas */
.password-meter { margin: -4px 0 18px; }
.pw-meter { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pw-meter-bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.pw-meter-bar span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-meter[data-level="1"] .pw-meter-bar span { width: 33%; background: var(--danger); }
.pw-meter[data-level="2"] .pw-meter-bar span { width: 66%; background: #f59e0b; }
.pw-meter[data-level="3"] .pw-meter-bar span { width: 100%; background: var(--success); }
.pw-meter-label { font-size: .8rem; font-weight: 600; min-width: 70px; }
.pw-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: .85rem; color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.met { color: var(--success); }
.pw-rules li.met::before { content: "✓ "; }

/* --- Prisijungimas / registracija ------------------------------------ */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; justify-content: center; }
.auth-card { max-width: 440px; width: 100%; }
.auth-card.wide { max-width: 760px; margin: 0 auto; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted); }
.demo-users h2 { font-size: 1.05rem; }
.terms { margin-top: 20px; }
.terms summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* --- Lentelės -------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table.compact th, .table.compact td { padding: 8px 6px; font-size: .85rem; }
.table code { white-space: nowrap; }

/* --- Katalogas ------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  border-radius: 20px; padding: 36px; margin-bottom: 36px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 2rem; }
.hero p { color: rgba(255, 255, 255, .88); margin: 0; }
.hero code { background: rgba(255, 255, 255, .2); color: #fff; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; font-weight: 700; margin-bottom: 8px !important; }
.category-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.category-tiles a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .2); transition: background .15s;
}
.category-tiles a:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.toolbar {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 12px 0 24px;
}
.toolbar .field { margin: 0; min-width: 180px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.toolbar-check { padding-bottom: 10px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card.sold-out .pimg { filter: grayscale(.8); opacity: .7; }
.product-card-image { position: relative; display: block; }
.product-card-image, .cart-item-image, .mini-card { text-decoration: none; }
.product-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.product-card-body .btn { margin-top: auto; }
.product-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.product-card-title { font-size: 1rem; margin: 0; }
.product-card-title a { color: var(--text); text-decoration: none; }
.product-card-title a:hover { color: var(--primary); }
.rating { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price { font-weight: 800; font-size: 1.15rem; }
.price-row.lg .price { font-size: 1.8rem; }
.old-price { color: var(--muted); font-size: .9rem; }

.pimg {
  --h: 220;
  display: grid; place-items: center; aspect-ratio: 4 / 3; font-size: 4rem; user-select: none;
  background: linear-gradient(135deg, hsl(var(--h) 85% 93%), hsl(calc(var(--h) + 40) 75% 84%));
}
.pimg-lg { font-size: 9rem; border-radius: var(--radius); aspect-ratio: 1 / 1; }
.pimg-sm { font-size: 2.2rem; border-radius: var(--radius-sm); aspect-ratio: 1 / 1; width: 76px; }
.pimg-xs { font-size: 1.4rem; border-radius: 6px; aspect-ratio: 1 / 1; width: 44px; flex: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font: inherit; cursor: pointer; color: var(--text);
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* --- Prekės puslapis ------------------------------------------------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-gallery { position: relative; }
.product-info h1 { font-size: 2rem; margin: 6px 0 10px; }
.stock { font-weight: 600; margin: 4px 0 20px; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }
.add-form { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; background: var(--surface); }
.swatch input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.swatch input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
#size { max-width: 260px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #cfd3e2; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty-control input { width: 56px; border: 0; border-radius: 0; text-align: center; padding: 9px 4px; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control input:focus { box-shadow: none; }
.qty-btn { width: 38px; height: 40px; border: 0; background: var(--surface-2); font-size: 1.1rem; cursor: pointer; color: var(--text); }
.qty-btn:hover:not(:disabled) { background: #e4e7f2; }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }

.tabs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 40px; }
.tab-list { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
[role="tab"] {
  padding: 14px 20px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
[role="tab"][aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { padding: 24px; }
.specs-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.specs-table th, .specs-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.specs-table th { width: 45%; color: var(--muted); font-weight: 500; }
.reviews-list { display: grid; gap: 16px; margin-bottom: 24px; }
.review { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review p { margin: 0; }
.review-form { max-width: 560px; background: var(--surface-2); padding: 20px; border-radius: var(--radius); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mini-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); padding-bottom: 12px;
}
.mini-card:hover { box-shadow: var(--shadow); color: var(--text); }
.mini-card .pimg { font-size: 3rem; }
.mini-card-name, .mini-card .price { padding: 0 14px; }
.mini-card-name { font-weight: 600; font-size: .95rem; }
.mini-card .price { font-size: 1rem; }

/* --- Krepšelis ------------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-layout.busy .cart-items, .cart-layout.busy .summary { opacity: .6; transition: opacity .15s; }
.cart-items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 100px 32px; gap: 16px; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-info { display: grid; gap: 2px; }
.cart-item-name { font-weight: 600; color: var(--text); text-decoration: none; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-total { font-weight: 700; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.summary { position: sticky; top: 84px; }
.summary h2 { font-size: 1.15rem; }
.totals { margin: 0 0 16px; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.totals-row dt { color: var(--muted); }
.totals-row dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.totals-row.discount dd { color: var(--success); }
.totals-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.totals-row.total dt { color: var(--text); font-weight: 700; }
.totals-row.total dd { font-weight: 800; }
.totals-row.small { padding: 0; }
.free-shipping { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; font-size: .9rem; margin-bottom: 12px; }
.free-shipping[data-state="free"] { background: var(--success-soft); color: #166534; }
.progress { height: 6px; background: #dfe3ee; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.promo-form { border-top: 1px solid var(--border); padding-top: 16px; }
.promo-applied { margin-bottom: 16px; }
.promo-chip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 8px 8px 12px; border-radius: var(--radius-sm); background: var(--success-soft); color: #166534; border: 1px dashed #86efac;
}
.promo-chip > span:first-child { font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.promo-chip .small { flex: 1; }
.promo-chip.invalid { background: var(--warning-soft); color: var(--warning); border-color: #fcd34d; }
.summary .btn-lg { margin-bottom: 10px; }

/* --- Apmokėjimas ----------------------------------------------------- */
.stepper { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 8px; counter-reset: step; }
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: .92rem;
}
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--surface-2); font-size: .85rem;
}
.stepper li.active { border-color: var(--primary); color: var(--primary); }
.stepper li.active .step-num { background: var(--primary); color: #fff; }
.stepper li.done { color: var(--success); }
.stepper li.done .step-num { background: var(--success); color: #fff; font-size: 0; }
.stepper li.done .step-num::after { content: "✓"; font-size: .85rem; }
.step h2 { margin-bottom: 18px; }
.step h2:focus { outline: none; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.step-actions #next-step, .step-actions #place-order { margin-left: auto; }
.radio-cards { display: grid; gap: 10px; margin-bottom: 18px; }
.radio-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: #c7cbe0; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.radio-card input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
.radio-card-body { display: grid; flex: 1; }
.radio-card-price { font-weight: 700; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.review-block { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.review-block p { margin: 0 0 4px; }
.review-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.review-block h3 { font-size: .95rem; margin-bottom: 8px; }
.mini-items { list-style: none; margin: 0 0 12px; padding: 0 0 4px; border-bottom: 1px solid var(--border); }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mini-item-name { flex: 1; display: grid; font-size: .9rem; font-weight: 600; min-width: 0; }
.mini-item-price { font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* --- Užsakymas ------------------------------------------------------- */
.success-banner, .success-panel { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.success-panel { flex-direction: column; text-align: center; padding: 24px 0; }
.success-panel h2:focus { outline: none; }
.success-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--success); color: #fff; font-size: 1.6rem; font-weight: 700;
}
.success-banner h1 { margin-bottom: 4px; }
.success-banner p { margin: 0; color: var(--muted); }
.order-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.order-number { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 1.05rem; }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.order-grid p { margin: 0 0 8px; }
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.order-actions .danger { margin-left: auto; }

/* --- Paskyra --------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-side h1 { font-size: 1.35rem; margin-bottom: 4px; }
.account-nav { display: grid; gap: 4px; margin-top: 16px; }
.account-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500;
}
.account-nav a:hover { background: var(--surface-2); }
.account-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* --- Kontaktai ------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-info { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); flex-wrap: wrap; }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

/* --- Pranešimai, modalai, slapukai ----------------------------------- */
.toast-container {
  position: fixed; top: 76px; right: 16px; z-index: 90;
  display: grid; gap: 10px; width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 16px;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success); animation: toast-in .2s ease-out;
}
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }
.toast.leaving { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s; }
.toast-msg { flex: 1; font-size: .93rem; }
.toast-close { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .5);
  display: grid; place-items: center; padding: 16px; animation: fade-in .15s;
}
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; width: min(440px, 100%); }
.modal-text { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes fade-in { from { opacity: 0; } }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
  background: #111827; color: #e5e7eb; padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease-out;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; }
.cookie-banner strong { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* --- Prisitaikymas prie ekrano --------------------------------------- */
@media (max-width: 960px) {
  .cart-layout, .checkout-layout, .contact-layout, .account-layout, .auth-wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .pimg-lg { font-size: 7rem; aspect-ratio: 4 / 3; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .order-head { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .auth-card { margin: 0 auto; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .card { padding: 18px; }
  .header-inner { gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .cart-label, .user-name { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .toolbar .field, .toolbar .grow { min-width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pimg { font-size: 3rem; }
  .product-card-body { padding: 12px; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "img info remove" "img qty total"; gap: 8px 12px; }
  .cart-item-image { grid-area: img; align-self: start; }
  .cart-item-image .pimg-sm { width: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-item .qty-control { grid-area: qty; justify-self: start; }
  .cart-item-total { grid-area: total; align-self: center; }
  .cart-item .icon-btn { grid-area: remove; align-self: start; }
  .stepper .step-label { display: none; }
  .stepper li { justify-content: center; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .order-actions .danger { margin-left: 0; }
}
