/*
 * Alenda Design System — S1 Implementation
 * Galvene + Mega-izvēlne + Kājene + Sākumlapa
 * Enqueue: functions.php via wp_enqueue_scripts
 * Atkarīgs no: style.css (--alenda-* mainīgie jau tur)
 * 2026-06-01 · v1.0
 */

/* ============================================================
   1. TOKEN ALIASI — style.css lieto --alenda-*, mockup --blue/*
   ============================================================ */
:root {
  --blue:       var(--alenda-blue, #1457A6);
  --blue-dark:  var(--alenda-blue-dark, #0E3F7A);
  --blue-tint:  var(--alenda-blue-tint, #EAF1F9);
  --teal:       var(--alenda-teal, #16B8A6);
  --teal-tint:  var(--alenda-teal-tint, #E4F6F4);
  --ink:        var(--alenda-ink, #1B2A3A);
  --slate:      var(--alenda-slate, #5E6E7E);
  --mist:       var(--alenda-mist, #F4F7FA);
  --line:       var(--alenda-line, #E3E9F0);
  --success:    var(--alenda-success, #1E9E63);
  --warning:    var(--alenda-warning, #E8A300);
  --error:      var(--alenda-error, #D6493F);
  --white:      #FFFFFF;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
}

/* ============================================================
   2. BLOCKSY NATĪVĀS GALVENES / KĀJENES SLĒPŠANA
   Mūsu galvene injicēta caur wp_body_open hook (priority 1)
   Kājene — footer.php child override
   ============================================================ */
.ct-header,
.has-ct-header > .ct-header { display: none !important; }
.ct-footer { display: none !important; }
/* Nodrošina, ka header nav atstāj tukšu vietu */
.ct-header + * { margin-top: 0 !important; }
/* WP admin bar korekcija */
.admin-bar .alenda-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .alenda-header { top: 46px; }
}

/* ============================================================
   3. LAYOUT UTILĪTKLASES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

.bg-white   { background: var(--white); }
.bg-mist    { background: var(--mist); }
.section    { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 32px;
}
.section-header h2 { color: var(--ink); }
.section-header a {
  font-size: .875rem; font-weight: 600; color: var(--blue);
  text-decoration: none; white-space: nowrap;
}
.section-header a:hover { text-decoration: underline; }

/* Pogas */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--blue);
  font-family: inherit; font-weight: 700; font-size: .9375rem;
  padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.2); color: var(--blue); }
.btn-secondary-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  font-family: inherit; font-weight: 700; font-size: .9375rem;
  padding: 12px 24px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.4); cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-secondary-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  font-family: inherit; font-weight: 700; font-size: .9375rem;
  padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s;
}
.btn-teal:hover { background: #13a494; color: #fff; }

/* ============================================================
   4. GLOBĀLĀ GALVENE
   ============================================================ */
.alenda-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.alenda-header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}

/* Logo */
.alenda-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.alenda-logo-mark {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: #fff;
  font-size: 14px; letter-spacing: -1px; position: relative;
  font-family: 'Manrope', sans-serif;
}
.alenda-logo-mark::after {
  content: ''; position: absolute; bottom: 6px; right: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.alenda-logo-name {
  font-size: 1.1rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.5px;
}

/* Nav galvenais */
.alenda-nav-main {
  display: flex; gap: 0; flex: 1; position: relative;
}
.alenda-nav-item { position: static; }
.alenda-nav-link {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; color: var(--slate);
  font-size: .875rem; font-weight: 600;
  padding: 6px 10px; height: 64px;
  border: none; background: none; font-family: inherit;
  white-space: nowrap; cursor: pointer;
  transition: color .15s;
  border-radius: 0;
}
.alenda-nav-link i { font-size: .75rem; transition: transform .2s; color: var(--slate); }
.alenda-nav-link:hover,
.alenda-nav-item.open > .alenda-nav-link { color: var(--blue); }
.alenda-nav-item.open > .alenda-nav-link i { transform: rotate(180deg); color: var(--blue); }

/* Vienkāršs nav-link (bez mega) */
.alenda-nav-link-plain {
  display: flex; align-items: center;
  text-decoration: none; color: var(--slate);
  font-size: .875rem; font-weight: 600;
  padding: 6px 10px; height: 64px;
  white-space: nowrap;
  transition: color .15s;
}
.alenda-nav-link-plain:hover { color: var(--blue); }

/* Galvenes labā puse */
.alenda-header-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; flex-shrink: 0;
}

/* Meklēšanas poga */
.alenda-search-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 20px;
  background: none; font-family: inherit; font-size: .8125rem;
  color: var(--slate); cursor: pointer;
  transition: border-color .15s, color .15s;
  text-decoration: none;
}
.alenda-search-btn:hover { border-color: var(--blue); color: var(--ink); }
.alenda-search-btn span { display: none; }
@media (min-width: 1100px) { .alenda-search-btn span { display: inline; } }

/* PVN toggle */
.alenda-pvn-toggle {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden;
}
.alenda-pvn-toggle button {
  padding: 4px 10px; border: none; cursor: pointer;
  background: transparent; color: var(--slate);
  font-family: inherit; font-size: .75rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.alenda-pvn-toggle button.active { background: var(--blue); color: var(--white); }

/* Ikonas pogas (konts, grozs) */
.alenda-icon-btn {
  position: relative; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-sm);
  transition: background .15s; color: var(--ink); font-size: 1.125rem;
  text-decoration: none;
}
.alenda-icon-btn:hover { background: var(--blue-tint); color: var(--ink); }
.alenda-cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.alenda-cart-badge:empty { display: none; }

/* Hamburger */
.alenda-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.alenda-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .25s;
}
.alenda-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.alenda-hamburger.open span:nth-child(2) { opacity: 0; }
.alenda-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .alenda-nav-main   { display: none; }
  .alenda-search-btn { display: none; }
  .alenda-pvn-toggle { display: none; }
  .alenda-hamburger  { display: flex; }
}
@media (max-width: 480px) {
  .alenda-logo-name { display: none; }
}

/* ============================================================
   5. MEGA-IZVĒLNE — Desktop
   ============================================================ */
.alenda-mega-dropdown {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  z-index: 190;
  animation: alenda-fade-slide .18s ease;
}
.alenda-nav-item.open .alenda-mega-dropdown { display: block; }

.admin-bar .alenda-mega-dropdown { top: calc(64px + 32px); }
@media (max-width: 782px) {
  .admin-bar .alenda-mega-dropdown { top: calc(64px + 46px); }
}

@keyframes alenda-fade-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alenda-mega-inner {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 0; min-height: 340px;
}

/* Kreisā: kategoriju tabs */
.alenda-mega-cats {
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-direction: column;
}
.alenda-mega-cat-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--slate);
  border-left: 3px solid transparent;
  transition: all .12s; border: none; background: none;
  font-family: inherit; text-align: left; width: 100%;
}
.alenda-mega-cat-tab:hover { color: var(--blue); background: var(--blue-tint); }
.alenda-mega-cat-tab.active {
  color: var(--blue); background: var(--blue-tint);
  border-left-color: var(--blue);
}
.alenda-mega-cat-tab i { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* Vidus: apakškategorijas */
.alenda-mega-subs {
  padding: 24px 28px; display: none;
}
.alenda-mega-subs.active { display: block; }
.alenda-mega-subs-title {
  font-size: .6875rem; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
}
.alenda-mega-sub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px;
}
.alenda-mega-sub-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  font-size: .875rem; font-weight: 500;
  transition: background .12s, color .12s;
}
.alenda-mega-sub-link:hover { background: var(--blue-tint); color: var(--blue); }
.alenda-mega-sub-link i { font-size: .875rem; color: var(--slate); flex-shrink: 0; }
.alenda-mega-sub-link:hover i { color: var(--blue); }
.alenda-mega-view-all {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: .8125rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
}
.alenda-mega-view-all:hover { text-decoration: underline; color: var(--blue); }

/* Labā: promo panelis */
.alenda-mega-promo {
  border-left: 1px solid var(--line);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--mist);
}
.alenda-mega-promo-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--blue); color: #fff;
  padding: 20px; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 160px; position: relative;
}
.alenda-mega-promo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,63,122,.6) 0%, rgba(20,87,166,.3) 100%);
}
.alenda-mega-promo-content { position: relative; z-index: 1; }
.alenda-mega-promo-label {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: rgba(255,255,255,.7); margin-bottom: 6px;
}
.alenda-mega-promo-title { font-size: .9375rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.alenda-mega-promo-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8125rem; font-weight: 700; color: #fff;
  text-decoration: none; padding: 5px 12px;
  background: rgba(255,255,255,.18); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .15s;
}
.alenda-mega-promo-link:hover { background: rgba(255,255,255,.28); color: #fff; }
.alenda-mega-promo-stats { display: flex; flex-direction: column; gap: 8px; }
.alenda-promo-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: var(--slate);
}
.alenda-promo-stat i { color: var(--blue); font-size: 1rem; }

/* Backdrop */
.alenda-backdrop {
  display: none; position: fixed; inset: 0;
  z-index: 170; background: rgba(0,0,0,.25);
}
.alenda-backdrop.open { display: block; }

/* ============================================================
   6. MOBILĀ NAVIGĀCIJA — Pilnekrāna accordion
   ============================================================ */
.alenda-mobile-nav {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 180;
  overflow-y: auto; border-top: 1px solid var(--line);
}
.alenda-mobile-nav.open { display: block; }
.admin-bar .alenda-mobile-nav { top: calc(64px + 32px); }
@media (max-width: 782px) {
  .admin-bar .alenda-mobile-nav { top: calc(64px + 46px); }
}

.alenda-mob-inner { padding: 8px 0 32px; }
.alenda-mob-cat-item { border-bottom: 1px solid var(--line); }
.alenda-mob-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; cursor: pointer;
  font-size: .9375rem; font-weight: 600; color: var(--ink);
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit; transition: background .12s;
}
.alenda-mob-cat-header:hover { background: var(--mist); }
.alenda-mob-cat-header.open { color: var(--blue); }
.alenda-mob-cat-left { display: flex; align-items: center; gap: 12px; }
.alenda-mob-cat-left i { font-size: 1.1rem; color: var(--slate); width: 20px; }
.alenda-mob-cat-header.open .alenda-mob-cat-left i { color: var(--blue); }
.alenda-mob-chevron { font-size: .875rem; color: var(--slate); transition: transform .2s; }
.alenda-mob-cat-header.open .alenda-mob-chevron { transform: rotate(180deg); color: var(--blue); }

.alenda-mob-cat-body {
  display: none; background: var(--mist); padding: 6px 0 10px;
}
.alenda-mob-cat-body.open { display: block; }
.alenda-mob-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 52px;
  text-decoration: none; color: var(--slate);
  font-size: .875rem; font-weight: 500;
  transition: color .12s;
}
.alenda-mob-sub-link:hover { color: var(--blue); }
.alenda-mob-sub-link i { font-size: .875rem; width: 16px; }
.alenda-mob-view-all {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 52px;
  text-decoration: none; color: var(--blue);
  font-size: .875rem; font-weight: 700;
}

.alenda-mob-utils {
  padding: 16px 20px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.alenda-mob-util-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; text-decoration: none; color: var(--ink);
  font-size: .9375rem; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.alenda-mob-util-link i { font-size: 1.1rem; color: var(--slate); width: 20px; }
.alenda-mob-util-link:last-child { border-bottom: none; }

/* ============================================================
   7. HERO SEKCIJA
   ============================================================ */
.alenda-hero {
  position: relative; overflow: hidden;
  min-height: 300px; display: flex; align-items: center;
  background: linear-gradient(135deg, #0b3266 0%, #1457A6 60%, #1a6dbf 100%);
}
.alenda-hero-content {
  position: relative; z-index: 1;
  padding: 48px 0; max-width: 620px;
}
.alenda-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px; border: 1px solid rgba(255,255,255,.2);
}
.alenda-hero-badge::before { content: '●'; color: var(--teal); font-size: .5rem; }
.alenda-hero h1 { color: #fff; margin-bottom: 16px; }
.alenda-hero p  {
  color: rgba(255,255,255,.8); font-size: 1.0625rem;
  margin-bottom: 32px; max-width: 480px; line-height: 1.6;
}
.alenda-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .alenda-hero { min-height: 240px; }
  .alenda-hero-content { padding: 32px 0; }
  .alenda-hero p { font-size: .9375rem; }
}

/* ============================================================
   8. UZTICĪBAS JOSLA (zem hero)
   ============================================================ */
.alenda-trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.alenda-trust-bar-inner {
  display: flex; justify-content: center; gap: 0;
  overflow-x: auto;
}
.alenda-trust-item {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: .8125rem; font-weight: 600; color: var(--slate);
  border-right: 1px solid var(--line); white-space: nowrap; flex-shrink: 0;
}
.alenda-trust-item:last-child { border-right: none; }
.alenda-trust-icon { font-size: 1rem; }

@media (max-width: 768px) {
  .alenda-trust-bar-inner {
    display: grid; grid-template-columns: repeat(2, 1fr); overflow-x: visible;
  }
  .alenda-trust-item {
    padding: 10px 12px; font-size: .75rem; border-right: none;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start; text-align: left;
    white-space: normal;
  }
  .alenda-trust-item:nth-child(odd)   { border-right: 1px solid var(--line); }
  .alenda-trust-item:nth-child(3),
  .alenda-trust-item:nth-child(4)     { border-bottom: none; }
}

/* ============================================================
   9. KATEGORIJAS — ikonu strip
   ============================================================ */
.alenda-categories-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.alenda-cat-item {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.alenda-cat-item:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(20,87,166,.1);
  transform: translateY(-2px);
}
.alenda-cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.alenda-cat-name {
  font-size: .8125rem; font-weight: 700; color: var(--ink);
  text-align: center; line-height: 1.3;
}
.alenda-cat-count { font-size: .75rem; color: var(--slate); }

@media (max-width: 900px) { .alenda-categories-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .alenda-categories-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================================
   10. PRODUKTU KARTIŅAS — Sākumlapa (WC output override)
   ============================================================ */
.alenda-products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .alenda-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .alenda-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .alenda-products-grid { gap: 10px; } }

/* WC product cards override */
.alenda-products-grid .product-card,
.alenda-products-grid li.product {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  margin: 0 !important;
}
.alenda-products-grid li.product:hover,
.alenda-products-grid .product-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
}

/* Statiskās kartiņas (mockup stils, fallback) */
.alenda-product-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.alenda-product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.alenda-product-img {
  aspect-ratio: 1; background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.alenda-product-img img { width: 80%; height: 80%; object-fit: contain; }
.alenda-product-badge-wrap {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.alenda-badge {
  font-size: .6875rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.alenda-badge-new      { background: var(--blue); color: #fff; }
.alenda-badge-popular  { background: var(--teal-tint); color: var(--teal); }
.alenda-badge-low      { background: #fff3cd; color: #8a6500; }
.alenda-product-body { padding: 14px; }
.alenda-product-status {
  display: flex; align-items: center; gap: 5px;
  font-size: .6875rem; font-weight: 700; margin-bottom: 6px;
}
.alenda-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.alenda-dot-green  { background: var(--success); }
.alenda-dot-orange { background: var(--warning); }
.alenda-dot-red    { background: var(--error); }
.alenda-status-green  { color: var(--success); }
.alenda-status-orange { color: var(--warning); }
.alenda-status-red    { color: var(--error); }
.alenda-product-name {
  font-size: .875rem; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; line-height: 1.3;
}
.alenda-product-attrs {
  font-size: .75rem; color: var(--slate); margin-bottom: 10px; line-height: 1.4;
}
.alenda-product-sizes { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.alenda-size-chip {
  font-size: .6875rem; font-weight: 600; padding: 2px 7px;
  border: 1.5px solid var(--line); border-radius: 6px; color: var(--slate);
}
.alenda-product-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.alenda-price-pvn { font-size: 1rem; font-weight: 800; color: var(--ink); }
.alenda-price-bez { font-size: .75rem; color: var(--slate); }
.alenda-btn-add {
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .8125rem;
  padding: 7px 12px; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background .15s;
}
.alenda-btn-add:hover { background: var(--blue-dark); color: #fff; }

@media (max-width: 480px) {
  .alenda-product-body { padding: 10px; }
  .alenda-price-pvn { font-size: .875rem; }
  .alenda-product-name { font-size: .8125rem; }
  .alenda-product-attrs { font-size: .6875rem; }
  .alenda-btn-add { padding: 6px 8px; font-size: .75rem; }
}

/* ============================================================
   11. B2B JOSLA
   ============================================================ */
.alenda-b2b-band { background: var(--blue); padding: 48px 0; }
.alenda-b2b-inner {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.alenda-b2b-text { flex: 1; min-width: 280px; }
.alenda-b2b-text h2 { color: #fff; margin-bottom: 10px; }
.alenda-b2b-text p  {
  color: rgba(255,255,255,.78); font-size: .9375rem;
  max-width: 480px; line-height: 1.6;
}
.alenda-b2b-perks { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.alenda-b2b-perk {
  display: flex; align-items: center; gap: 7px;
  font-size: .8125rem; font-weight: 600;
  color: rgba(255,255,255,.85);
}
.alenda-b2b-perk::before { content: '✓'; color: var(--teal); font-weight: 800; }
.alenda-b2b-cta { flex-shrink: 0; }
.alenda-btn-b2b {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--blue);
  font-family: inherit; font-weight: 700; font-size: .9375rem;
  padding: 13px 28px; border-radius: 10px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15); white-space: nowrap;
}
.alenda-btn-b2b:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,.2); color: var(--blue);
}

@media (max-width: 768px) {
  .alenda-b2b-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
}

/* ============================================================
   12. TRUST BADGES
   ============================================================ */
.alenda-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.alenda-trust-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); padding: 24px 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.alenda-trust-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.alenda-trust-card-title {
  font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.alenda-trust-card-desc { font-size: .75rem; color: var(--slate); line-height: 1.5; }

@media (max-width: 900px) { .alenda-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .alenda-trust-grid { grid-template-columns: 1fr; gap: 10px; } }

/* ============================================================
   13. LOJALITĀTES BANERIS
   ============================================================ */
.alenda-loyalty-band {
  background: var(--teal-tint);
  border-top: 1px solid #b2e8e2;
  border-bottom: 1px solid #b2e8e2;
  padding: 48px 0;
}
.alenda-loyalty-inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.alenda-loyalty-icon-wrap {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.alenda-loyalty-text { flex: 1; min-width: 240px; }
.alenda-loyalty-text h2 { color: var(--ink); margin-bottom: 8px; }
.alenda-loyalty-text p  { color: var(--slate); font-size: .9375rem; line-height: 1.6; }
.alenda-loyalty-tiers { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.alenda-tier-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; border: 1.5px solid;
}
.alenda-tier-base   { border-color: #bbb; color: #666; background: #fff; }
.alenda-tier-silver { border-color: #9bb3c5; color: #4a6b80; background: #f0f5f8; }
.alenda-tier-gold   { border-color: #d4a820; color: #8a6500; background: #fdf5dc; }
.alenda-tier-plat   { border-color: #8a6fd4; color: #4a2fa0; background: #f3effe; }
.alenda-loyalty-cta { flex-shrink: 0; }

@media (max-width: 768px) {
  .alenda-loyalty-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============================================================
   14. ATSAUKSMES
   ============================================================ */
.alenda-reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.alenda-review-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); padding: 22px;
}
.alenda-stars { color: #f5a623; font-size: .875rem; margin-bottom: 10px; letter-spacing: 2px; }
.alenda-review-text {
  font-size: .875rem; color: var(--ink); line-height: 1.6;
  margin-bottom: 16px; font-style: italic;
}
.alenda-review-author { display: flex; align-items: center; gap: 10px; }
.alenda-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; flex-shrink: 0;
}
.alenda-author-name { font-size: .8125rem; font-weight: 700; color: var(--ink); }
.alenda-author-meta { font-size: .75rem; color: var(--slate); }

@media (max-width: 900px) { .alenda-reviews-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
@media (max-width: 480px) { .alenda-reviews-grid { max-width: 100%; } }

/* ============================================================
   15. MŪSU ZĪMOLI
   ============================================================ */
.alenda-brands-bar {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.alenda-brands-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 40px; flex-wrap: wrap;
}
.alenda-brands-label {
  font-size: .6875rem; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: .08em;
  text-align: center; width: 100%; margin-bottom: 20px;
}
.alenda-brand-name {
  font-size: .9375rem; font-weight: 800; color: var(--slate);
  opacity: .45; letter-spacing: .03em;
  transition: opacity .15s;
}
.alenda-brand-name:hover { opacity: .8; }

/* ============================================================
   16. PRE-FOOTER (abonēšana)
   ============================================================ */
.alenda-pre-footer { background: var(--blue); padding: 48px 0; }
.alenda-pre-footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.alenda-pre-footer-text h3 {
  font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.alenda-pre-footer-text p { font-size: .9375rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.alenda-newsletter-form { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.alenda-newsletter-input {
  height: 44px; padding: 0 16px;
  border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12); color: #fff;
  font-family: inherit; font-size: .9375rem; outline: none;
  min-width: 260px; transition: border-color .15s;
}
.alenda-newsletter-input::placeholder { color: rgba(255,255,255,.55); }
.alenda-newsletter-input:focus { border-color: rgba(255,255,255,.6); }
.alenda-newsletter-btn {
  height: 44px; padding: 0 20px;
  background: #fff; color: var(--blue);
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: .875rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.alenda-newsletter-btn:hover { opacity: .9; }
.alenda-newsletter-note { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 8px; }

@media (max-width: 768px) {
  .alenda-pre-footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .alenda-newsletter-form { width: 100%; flex-direction: column; }
  .alenda-newsletter-input { min-width: unset; width: 100%; }
  .alenda-newsletter-btn { width: 100%; }
}

/* ============================================================
   17. KĀJENE (galvenā)
   ============================================================ */
.alenda-footer { background: var(--ink); padding: 56px 0 0; }
.alenda-footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) {
  .alenda-footer-grid {
    grid-template-columns: 1fr 1fr; gap: 32px;
  }
  .alenda-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .alenda-footer-grid { grid-template-columns: 1fr; }
  .alenda-footer-brand { grid-column: auto; }
}

/* Footer brand */
.alenda-footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 16px;
}
.alenda-footer-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: -1px;
  position: relative; flex-shrink: 0; font-family: 'Manrope', sans-serif;
}
.alenda-footer-logo-mark::after {
  content: ''; position: absolute; bottom: 6px; right: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.alenda-footer-logo-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.alenda-footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 20px; }

/* Sociālie tīkli */
.alenda-social-links { display: flex; gap: 8px; margin-bottom: 20px; }
.alenda-social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,.6); font-size: 1rem;
  transition: background .15s, color .15s;
}
.alenda-social-link:hover { background: var(--blue); color: #fff; }

/* Kontakti */
.alenda-footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.alenda-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: rgba(255,255,255,.5);
}
.alenda-contact-item i { font-size: .9375rem; color: rgba(255,255,255,.3); width: 18px; }
.alenda-contact-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.alenda-contact-item a:hover { color: rgba(255,255,255,.95); }

/* Valstu izvēle */
.alenda-footer-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.alenda-country-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.5);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.alenda-country-chip:hover,
.alenda-country-chip.active {
  border-color: var(--blue); color: #fff;
  background: rgba(20,87,166,.35);
}

/* Footer kolonnas */
.alenda-footer-col-title {
  font-size: .6875rem; font-weight: 700; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px;
}
.alenda-footer-links { display: flex; flex-direction: column; gap: 6px; }
.alenda-footer-link {
  display: block; padding: 4px 0;
  font-size: .875rem; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .12s;
}
.alenda-footer-link:hover { color: rgba(255,255,255,.9); }
.alenda-footer-link.highlight { color: var(--teal); }
.alenda-footer-link.highlight:hover { color: #1dd9c6; }

/* Footer apakša */
.alenda-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 20px 0;
}
.alenda-footer-copy { font-size: .8125rem; color: rgba(255,255,255,.3); }
.alenda-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.alenda-footer-legal a {
  font-size: .8125rem; color: rgba(255,255,255,.3); text-decoration: none;
}
.alenda-footer-legal a:hover { color: rgba(255,255,255,.7); }
.alenda-footer-payment { display: flex; align-items: center; gap: 8px; }
.alenda-pay-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 5px;
  background: rgba(255,255,255,.07);
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.4);
}
.alenda-pay-chip i { font-size: .875rem; }

@media (max-width: 640px) {
  .alenda-footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
}

/* ============================================================
   18. KĀJENĒ — rekvizīti sekcija
   ============================================================ */
.alenda-footer-rekviziti .alenda-footer-link {
  font-size: .75rem; color: rgba(255,255,255,.35);
}
.alenda-footer-rekviziti .alenda-footer-col-title { margin-top: 20px; }

/* ============================================================
   19. WP ADMIN BAR korekcijas
   ============================================================ */
@media (max-width: 600px) {
  body.admin-bar .alenda-header { top: 0; }
}
