/**
 * Protera — Web theme styles
 *
 * Extracted from padangu-parduotuve-redesign.html reference design.
 * Uses Bootstrap 5 as base; this file layers on brand variables, typography
 * (Manrope), component variants (hero, product cards, category tiles), and
 * the footer/account UI.
 *
 * Design tokens live in :root — tweak from there if brand colors change.
 *
 * SystemFindings/task-16d: the three things this file "uses" but never carried
 * — Bootstrap 5, bootstrap-icons and Manrope — are @imported below instead of
 * being fetched from jsdelivr and Google by the two layouts.
 *
 * 🔑 ORDER IS THE CONTRACT. bootstrap FIRST so every :root token and every
 * component override in this file wins against it; the icon font and Manrope
 * after it, both independent families. Move the bootstrap @import down and
 * nothing errors — the storefront just stops being the storefront. (The same
 * rule, for the same reason, as va-themes/florial's admin.css.)
 *
 * This file is emitted for `web.*`, which `web.*auth.*` matches, so the auth
 * shell inherits all three and needs no tags of its own.
 */
@import 'bootstrap/dist/css/bootstrap.min.css';
@import 'bootstrap-icons/font/bootstrap-icons.css';
@import './fonts.css';

  :root {
    --brand: #e11d2a;
    --brand-dark: #b2151f;
    --brand-50: #fff1f2;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #f6f7f9;
    --card: #ffffff;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 8px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 18px 40px rgba(15,23,42,.12);
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--ink); text-decoration: none; }
  a:hover { color: var(--brand); }
  img { max-width: 100%; display: block; }

  /* ---------- Top utility bar ---------- */
  .topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
  }
  .topbar a { color: #cbd5e1; }
  .topbar a:hover { color: #fff; }
  .topbar .bi { color: var(--brand); }

  /* ---------- Header ---------- */
  /* Sticky header is already in place via position:sticky. Frontend/task-4
     adds a soft drop-shadow once the page has scrolled — `.is-scrolled` is
     toggled by web.js (sticky-shadow handler) at scrollY > 4. The
     transition keeps the change subtle (no flash on first scroll tick). */
  .site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1030;
    transition: box-shadow 200ms ease;
  }
  .site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 10px;
  }
  .logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--brand); color: #fff;
    display: inline-grid; place-items: center;
    font-weight: 800; font-size: 18px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
  }
  .logo .dim { color: var(--muted); font-weight: 500; }

  /* Search */
  .search-box { position: relative; width: 100%; max-width: 540px; }
  .search-box input {
    border: 1px solid var(--line);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 12px 48px 12px 20px;
    width: 100%;
    font-size: 14px;
    transition: all .15s ease;
  }
  .search-box input:focus {
    outline: none; background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(225,29,42,.12);
  }
  .search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s ease;
  }
  .search-btn:hover { background: var(--brand-dark); }

  .header-icon {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: var(--ink); background: #f1f5f9;
    transition: background .15s ease, color .15s ease;
  }
  .header-icon:hover { background: var(--brand-50); color: var(--brand); }
  .header-icon .badge-dot {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--brand); color: #fff;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
  }

  .phone-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--brand-50); color: var(--brand);
    font-weight: 700; font-size: 14px;
  }
  .phone-pill:hover { color: var(--brand-dark); }

  /* Language switcher (in topbar) */
  .lang-switch {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.08);
    border-radius: 999px; padding: 2px;
    gap: 0;
  }
  .lang-switch button,
  .lang-switch a {
    border: 0; background: transparent;
    color: #cbd5e1; font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    cursor: pointer; transition: all .15s ease;
    text-decoration: none; line-height: 1;
  }
  .lang-switch button:hover,
  .lang-switch a:hover { color: #fff; }
  .lang-switch button.active,
  .lang-switch a.active {
    background: var(--brand); color: #fff;
  }

  /* Login button + account dropdown */
  .btn-login {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--ink); color: #fff;
    font-weight: 600; font-size: 14px;
    border: 0; transition: background .15s ease;
  }
  .btn-login:hover { background: var(--brand); color: #fff; }

  .account-trigger {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px; border-radius: 999px;
    background: #f1f5f9; color: var(--ink);
    font-weight: 600; font-size: 14px;
    border: 0; transition: background .15s ease;
  }
  .account-trigger:hover { background: var(--brand-50); color: var(--brand); }
  .account-trigger .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 14px;
  }
  .account-trigger .caret { color: var(--muted); font-size: 12px; }
  .account-trigger:hover .caret { color: var(--brand); }

  .dropdown-menu-account {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 260px;
    margin-top: 8px !important;
  }
  .dropdown-menu-account .acc-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
  .dropdown-menu-account .acc-head .name { font-weight: 700; color: var(--ink); }
  .dropdown-menu-account .acc-head .email { color: var(--muted); font-size: 13px; }
  .dropdown-menu-account .dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
  }
  .dropdown-menu-account .dropdown-item .bi { color: var(--muted); font-size: 16px; width: 18px; }
  .dropdown-menu-account .dropdown-item:hover {
    background: var(--brand-50); color: var(--brand);
  }
  .dropdown-menu-account .dropdown-item:hover .bi { color: var(--brand); }
  .dropdown-menu-account .dropdown-item.logout { color: var(--brand); }
  .dropdown-menu-account .dropdown-item.logout .bi { color: var(--brand); }
  .dropdown-menu-account hr { margin: 6px 0; border-color: var(--line); }

  /* Main nav */
  .main-nav { background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav .nav-link {
    color: var(--ink); font-weight: 600; font-size: 15px;
    padding: 14px 16px; position: relative;
  }
  .main-nav .nav-link:hover { color: var(--brand); }
  .main-nav .nav-link.active { color: var(--brand); }
  .main-nav .nav-link.active::after {
    content: ""; position: absolute;
    left: 16px; right: 16px; bottom: -1px;
    height: 2px; background: var(--brand); border-radius: 2px;
  }
  @media (max-width: 991.98px) {
    .main-nav .nav-link.active::after { display: none; }
  }

  /*
   * Main-nav dropdowns (task-27, v18.28)
   *
   * Bootstrap 5 dropdowns are click-only by default. The desktop UX
   * for category nav benefits from hover-open: users skim the menu
   * via the pointer without committing a click. The media query keeps
   * this strictly to devices that report `hover: hover` AND are wider
   * than the Bootstrap `lg` breakpoint (>=992px) — touch devices and
   * narrower viewports fall back to the standard click-to-toggle
   * behaviour, where Bootstrap's JS keeps full control.
   */
  .main-nav .nav-item.dropdown > .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 18, 32, .08);
    margin-top: 0;
    min-width: 220px;
    z-index: 1050;
  }
  .main-nav .dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    color: var(--ink);
  }
  .main-nav .dropdown-item:hover,
  .main-nav .dropdown-item:focus {
    background: var(--brand-50);
    color: var(--brand);
  }
  .main-nav .dropdown-item.active {
    background: var(--brand-50);
    color: var(--brand);
    font-weight: 600;
  }
  @media (hover: hover) and (min-width: 992px) {
    .main-nav .nav-item.dropdown:hover > .dropdown-menu {
      display: block;
    }
    .main-nav .nav-item.dropdown:hover > .nav-link.dropdown-toggle {
      color: var(--brand);
    }
  }

  /* ---------- Hero ---------- */
  .hero {
    /* Layers (top to bottom):
       1. Left-side dark gradient so the headline text stays readable
       2. Bottom vignette
       3. Subtle brand-red glow
       4. Real product photo */
    background:
      linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.75) 35%, rgba(11,18,32,.2) 65%, rgba(11,18,32,.15) 100%),
      linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%),
      radial-gradient(ellipse 60% 50% at 92% 20%, rgba(225,29,42,.28) 0%, transparent 55%),
      url('../images/hero-bg.png') center right / cover no-repeat,
      #0b1220;
    color: #fff;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    min-height: 460px;
  }
  /* subtle grain / noise over the whole hero */
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,.025) 1px, transparent 2px),
      radial-gradient(circle at 60% 70%, rgba(255,255,255,.02) 1px, transparent 2px),
      radial-gradient(circle at 85% 40%, rgba(255,255,255,.025) 1px, transparent 2px);
    background-size: 80px 80px, 100px 100px, 70px 70px;
    opacity: .6;
    pointer-events: none;
    z-index: -1;
  }
  /* soft red bloom bottom-left (behind text) */
  .hero::after {
    content: ""; position: absolute;
    left: -80px; bottom: -100px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(225,29,42,.22) 0%, transparent 65%);
    pointer-events: none; z-index: -1;
    filter: blur(24px);
  }

  /* On small screens, background should center on car (not cut it off) */
  @media (max-width: 991.98px) {
    .hero {
      background:
        linear-gradient(180deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.75) 40%, rgba(11,18,32,.92) 100%),
        url('../images/hero-bg.png') center center / cover no-repeat,
        #0b1220;
      min-height: auto;
    }
  }
  .hero .badge-soft {
    background: rgba(225,29,42,.15); color: #fecaca;
    border: 1px solid rgba(225,29,42,.3);
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
  }
  .hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800; letter-spacing: -.02em;
    line-height: 1.08;
  }
  .hero .lead { color: #cbd5e1; font-size: 17px; }

  /* Picker tabs */
  .picker-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    border-radius: 16px; padding: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.4);
  }
  .picker-tabs {
    display: inline-flex; background: #f1f5f9;
    padding: 4px; border-radius: 10px; margin-bottom: 14px;
    font-size: 13px; font-weight: 600;
  }
  .picker-tabs button {
    border: 0; background: transparent;
    padding: 8px 14px; border-radius: 8px;
    color: var(--muted); cursor: pointer;
    transition: all .15s ease;
  }
  .picker-tabs button.active {
    background: #fff; color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .picker-card .form-select,
  .picker-card .form-control {
    border-radius: 10px; border: 1px solid var(--line);
    padding: 11px 14px; font-size: 14px;
  }
  .picker-card .form-select:focus,
  .picker-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(225,29,42,.15);
  }

  /* Buttons */
  .btn-brand {
    background: var(--brand); color: #fff;
    font-weight: 600; border: 0; border-radius: 10px;
    padding: 11px 20px;
    transition: background .15s ease, transform .1s ease;
  }
  .btn-brand:hover { background: var(--brand-dark); color: #fff; }
  .btn-brand:active { transform: translateY(1px); }
  .btn-outline-brand {
    background: transparent; color: var(--brand);
    border: 1.5px solid var(--brand); border-radius: 10px;
    padding: 10px 18px; font-weight: 600;
  }
  .btn-outline-brand:hover { background: var(--brand); color: #fff; }

  /* Section titles */
  .section-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
  .section-sub { color: var(--muted); }

  /* ---------- Feature strip ---------- */
  .feature-strip {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px;
  }
  .feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 10px;
  }
  .feature-item + .feature-item { border-left: 1px solid var(--line); }
  @media (max-width: 767.98px) {
    .feature-item + .feature-item { border-left: 0; border-top: 1px solid var(--line); }
  }
  .feature-item .ico {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--brand-50); color: var(--brand);
    display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
  }
  .feature-item strong { font-size: 14px; display: block; }
  .feature-item span { font-size: 13px; color: var(--muted); }

  /* ---------- Category tiles ---------- */
  .cat-tile {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%; position: relative; overflow: hidden;
  }
  .cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
  .cat-tile .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--brand-50); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px;
  }
  .cat-tile h3 { font-size: 16px; font-weight: 700; margin: 0; }
  .cat-tile p { color: var(--muted); font-size: 13px; margin: 0; }
  .cat-tile .arrow {
    margin-top: auto; color: var(--brand);
    font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .cat-tile .count-pill {
    position: absolute; top: 18px; right: 18px;
    font-size: 11px; font-weight: 700;
    color: var(--muted); background: #f1f5f9;
    padding: 3px 10px; border-radius: 999px;
  }

  /* ---------- Product card ---------- */
  .product-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%; display: flex; flex-direction: column;
    position: relative;
  }
  .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .product-card .media {
    aspect-ratio: 1/1; background: #fafbfc;
    display: grid; place-items: center;
    position: relative; padding: 24px;
  }
  .product-card .media img { max-width: 75%; max-height: 75%; object-fit: contain; }
  .product-card .tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--brand); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    letter-spacing: .02em;
  }
  .product-card .tag.tag-green { background: #16a34a; }
  .product-card .fav {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all .15s ease; cursor: pointer;
  }
  .product-card .fav:hover,
  .product-card .fav.active { color: var(--brand); border-color: var(--brand); }

  /* EU energy label badges — matches the real EU tyre label format */
  .eu-labels {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; flex-direction: column; gap: 5px;
  }
  .eu-lbl {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--line);
    padding: 3px 10px 3px 3px; border-radius: 8px;
    font-size: 13px; font-weight: 800;
    box-shadow: var(--shadow-sm);
    min-width: 58px;
    color: var(--ink);
  }
  .eu-lbl .eu-ico {
    width: 26px; height: 26px; border-radius: 6px;
    display: inline-grid; place-items: center;
    color: #fff; margin-right: 8px;
    flex-shrink: 0;
  }
  .eu-lbl .eu-ico svg { width: 16px; height: 16px; }
  /* fuel — orange/red pump */
  .eu-lbl .eu-ico.fuel { background: #ea580c; }
  /* wet grip — blue with water drop */
  .eu-lbl .eu-ico.wet  { background: #2563eb; }
  /* noise — grey with speaker */
  .eu-lbl .eu-ico.db   { background: #64748b; }

  /* Letter color coding (optional — matches EU class colour system) */
  .eu-lbl.grade-a { color: #15803d; }
  .eu-lbl.grade-b { color: #65a30d; }
  .eu-lbl.grade-c { color: #ca8a04; }
  .eu-lbl.grade-d { color: #ea580c; }
  .eu-lbl.grade-e { color: #dc2626; }

  /* Season icon */
  .season {
    position: absolute; top: 12px; right: 58px;
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: #fff; box-shadow: var(--shadow-sm);
    font-size: 14px;
  }
  .season.summer { color: #f59e0b; }
  .season.winter { color: #3b82f6; }
  .season.all    { color: #10b981; }

  .product-card .body {
    padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1;
  }
  .product-card .brand-name {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  }
  .product-card .title {
    font-size: 15px; font-weight: 600; line-height: 1.3;
    color: var(--ink); min-height: 2.6em;
  }
  .product-card .title:hover { color: var(--brand); }
  .product-card .stock {
    font-size: 12px; color: var(--muted);
    display: inline-flex; align-items: center; gap: 5px;
  }
  .product-card .stock .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #16a34a;
    display: inline-block;
  }
  .product-card .stock.low .dot { background: #f59e0b; }
  .product-card .stock.out .dot { background: #94a3b8; }

  /* Delivery / pickup info rows */
  .delivery-info {
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    margin-top: 8px;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12px; color: var(--ink-2);
  }
  .delivery-info .row-item {
    display: flex; align-items: flex-start; gap: 8px;
    line-height: 1.35;
  }
  .delivery-info .row-item .bi {
    color: var(--brand); font-size: 14px;
    margin-top: 1px; flex-shrink: 0; width: 14px;
  }
  .delivery-info .row-item .bi.pickup { color: #16a34a; }
  .delivery-info .row-item strong { color: var(--ink); font-weight: 700; }
  .delivery-info .row-item .date { color: var(--ink); font-weight: 600; }
  .delivery-info .row-item .free {
    color: #16a34a; font-weight: 700;
  }

  /* Warranty / return chips */
  .chip-row {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 2px;
  }
  .chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 6px;
    background: #f1f5f9; color: var(--ink-2);
    font-size: 11px; font-weight: 600;
  }
  .chip .bi { font-size: 11px; color: var(--muted); }

  /* Manufacture year + flag */
  .origin {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--muted);
  }
  .origin .flag {
    width: 16px; height: 12px; border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    background-size: cover; background-position: center;
    flex-shrink: 0;
  }
  .flag.kr { background: linear-gradient(to bottom, #fff 50%, #cd2e3a 50%); }
  .flag.de { background: linear-gradient(to bottom, #000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%); }
  .flag.jp { background: #fff radial-gradient(circle, #bc002d 28%, transparent 30%); }
  .flag.us {
    background: repeating-linear-gradient(to bottom, #b22234 0 10%, #fff 10% 20%);
    position: relative;
  }
  .flag.it { background: linear-gradient(to right, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
  .flag.fi { background: #fff; position: relative; }
  .flag.fi::before { content: ""; position: absolute; left: 30%; top: 0; bottom: 0; width: 18%; background: #003580; }
  .flag.fi::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 20%; background: #003580; }
  .product-card .foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px;
  }
  .product-card .price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
  .product-card .price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
  .product-card .btn-cart {
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s ease;
  }
  .product-card .btn-cart:hover { background: var(--brand-dark); }

  /* ---------- Info cards ---------- */
  .info-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
    height: 100%;
  }
  .info-card h3 {
    font-size: 18px; font-weight: 800;
    letter-spacing: -.01em; margin-bottom: 12px;
  }
  .info-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

  /* ---------- Brands row ---------- */
  .brand-row {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px;
    overflow: hidden; position: relative;
  }
  .brand-track {
    display: flex; gap: 20px; align-items: center;
    animation: brand-scroll 40s linear infinite;
  }
  .brand-row:hover .brand-track { animation-play-state: paused; }
  .brand-logo {
    flex: 0 0 auto;
    height: 56px; min-width: 140px;
    display: grid; place-items: center;
    color: var(--ink); font-weight: 800; font-size: 15px;
    letter-spacing: .04em; opacity: .65;
    background: #fafbfc; border-radius: 10px; padding: 0 20px;
    transition: opacity .15s ease, color .15s ease, background .15s ease;
    white-space: nowrap;
  }
  .brand-logo:hover { opacity: 1; background: #fff; color: var(--brand); }
  @keyframes brand-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* ---------- Footer ---------- */
  .brand-bar {
    background: var(--brand); color: #fff;
    text-align: center; padding: 18px 0;
    font-weight: 800; font-size: 20px;
    letter-spacing: .02em;
  }
  .site-footer {
    background: #0f172a; color: #cbd5e1;
    padding: 56px 0 20px;
  }
  .site-footer h5 {
    color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 16px;
  }
  .site-footer a { color: #cbd5e1; font-size: 14px; }
  .site-footer a:hover { color: #fff; }
  .site-footer ul { list-style: none; padding: 0; margin: 0; }
  .site-footer ul li + li { margin-top: 10px; }
  .site-footer .contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
  .site-footer .contact-row .bi { color: var(--brand); margin-top: 2px; }
  .site-footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); margin-right: 8px;
    transition: background .15s ease;
  }
  .site-footer .social a:hover { background: var(--brand); color: #fff; }
  .site-footer .map-box {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
  }
  .site-footer .legal {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px; margin-top: 40px;
    font-size: 13px; color: #94a3b8;
  }
  .trust-badges {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center;
  }
  .trust-badge {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 14px;
    font-size: 12px; color: #cbd5e1;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .trust-badge .bi { color: var(--brand); font-size: 18px; }

  /* Back-to-top */
  #backTop {
    position: fixed; right: 20px; bottom: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 0;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); z-index: 1000;
  }
  #backTop:hover { background: var(--brand); }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

  /* On very small screens, condense product card footer info */
  @media (max-width: 575.98px) {
    .product-card .delivery-info { gap: 4px; font-size: 11px; }
    .product-card .chip { font-size: 10px; padding: 2px 6px; }
    .product-card .origin { font-size: 10px; }
    .product-card .title { font-size: 14px; min-height: auto; }
    .product-card .body { padding: 12px; gap: 5px; }
    .product-card .price { font-size: 18px; }
  }

  /* =========================================================================
     v13.6 — Register button, verify banner, account area
     ========================================================================= */

  /* Register button (header, next to Prisijungti) */
  .btn-register {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s;
  }
  .btn-register:hover { background: var(--ink); color: #fff; }

  /* Verify-email banner (full-width, under header) */
  .verify-banner {
    background: #fff4d6;
    border-bottom: 1px solid #fde68a;
    color: #7a4f00;
    font-size: 14px;
    font-weight: 500;
  }
  .verify-banner--success {
    background: #e6f7ea;
    border-bottom-color: #a8d9b6;
    color: #1a5f32;
  }
  .verify-banner .btn-outline-dark {
    border-color: currentColor;
    color: inherit;
  }
  .verify-banner .btn-outline-dark:hover {
    background: currentColor;
    color: #fff;
  }

  /* Account area */
  .account-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
  }
  .account-sidebar__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
  }
  .account-sidebar__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    flex-shrink: 0;
  }
  .account-sidebar__name { font-weight: 600; font-size: 15px; color: var(--ink); }
  .account-sidebar__email { font-size: 12px; color: #64748b; word-break: break-all; }

  .account-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
  .account-sidebar__link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    border: 0; background: transparent;
    transition: background .1s, color .1s;
    cursor: pointer;
  }
  .account-sidebar__link:hover {
    background: #f1f5f9;
    color: var(--ink);
  }
  .account-sidebar__link.is-active {
    background: var(--brand);
    color: #fff;
  }
  .account-sidebar__link--muted { color: #94a3b8; }
  .account-sidebar__link--logout {
    color: #b91c1c;
  }
  .account-sidebar__link--logout:hover {
    background: #fee2e2;
    color: #991b1b;
  }
  .account-sidebar__sep {
    margin: 8px 0;
    border: 0; border-top: 1px solid #f1f5f9;
  }

  .account-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
  }
  .account-card__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--ink);
  }
  .account-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
  }
  .account-alert--success {
    background: #e6f7ea;
    border: 1px solid #a8d9b6;
    color: #1a5f32;
  }

  /* =========================================================================
     v13.8 — Site-wide flash banner (one-shot status messages)
     ========================================================================= */
  .site-flash {
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
  }
  .site-flash--success {
    background: #e6f7ea;
    border-bottom-color: #a8d9b6;
    color: #1a5f32;
  }

  /* =========================================================================
     v17.98 (Frontend/task-2) — Storefront pagination override

     Brand-styled pagination matching site-wide red accent + rounded pill
     pattern. Activated globally on web routes by
     `Paginator::defaultView('theme::components.pagination')` registered in
     themes/Web/Protera/Providers/ThemeServiceProvider.php. Admin pagination
     routes through a BS5 pass-through shim and is unaffected.

     Markup: see themes/Web/Protera/Resources/views/components/pagination.blade.php
     Tests:  tests/e2e/frontend-storefront-ux.spec.ts ("storefront pagination")
     ========================================================================= */
  .pagination-storefront {
    margin-top: 24px;
  }
  .pagination-storefront .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
  }
  .pagination-storefront .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  }
  .pagination-storefront .page-item:not(.disabled):not(.active) .page-link:hover {
    background: var(--brand-50);
    color: var(--brand);
    border-color: var(--brand-50);
  }
  .pagination-storefront .page-item.active .page-link {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
  .pagination-storefront .page-item.disabled .page-link {
    color: var(--muted);
    background: #fff;
    border-color: var(--line);
    cursor: not-allowed;
  }
  @media (max-width: 575.98px) {
    .pagination-storefront .page-item .page-link {
      min-width: 36px;
      padding: 6px 10px;
      font-size: 13px;
    }
  }

  /* ============================================================
     Frontend/task-4 — Mobile responsive polish
     Hero stats grid + hero CTA buttons + breadcrumb scroll-x.
     Sticky header `.is-scrolled` shadow lives above with the rest
     of `.site-header`. Desktop (>=sm) layout stays bit-exact.
     ============================================================ */

  /* Hero stats — CSS grid lets us flip from 3 columns to 2 cleanly
     (`flex-wrap` would leave the 3rd element half-width on 375px). */
  .hero-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stat { text-align: left; }
  @media (max-width: 575.98px) {
    .hero-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
  }

  /* Hero CTA — wrap inline >=sm; stack full-width <sm so each button
     has a Apple-HIG touch target (>=44px) on phones. */
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  @media (max-width: 575.98px) {
    .hero-cta {
      flex-direction: column;
      gap: 12px;
    }
    .hero-cta > .btn-brand,
    .hero-cta > .btn {
      width: 100%;
      text-align: center;
      padding: 12px 16px;
    }
  }

  /* Breadcrumb — Bootstrap default wraps to multiple rows on long
     chains. Switch to horizontal scroll with snap + gradient fade so
     the chain stays one line and the user gets a visual scroll hint. */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb .breadcrumb-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  @media (max-width: 575.98px) {
    .breadcrumb {
      mask-image: linear-gradient(to right, black 80%, transparent);
      -webkit-mask-image: linear-gradient(to right, black 80%, transparent);
    }
  }
