/* ===== Akcijas grozs ===== */

.hidden { display: none !important; }

.container {
  max-width: 1180px;
}

.gb-start,
.gb-result {
  max-width: 680px;
  margin: 2.4rem auto 0;
  text-align: center;
}

.gb-kicker {
  margin: 0 0 0.4rem;
  font: 700 11px 'Courier New', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8878b0;
}

.gb-title,
.gb-result-title {
  margin: 0;
  color: #2d1e60;
  line-height: 1.06;
}

.gb-title {
  font-size: 44px;
  font-weight: 860;
}

.gb-subtitle {
  max-width: 480px;
  margin: 0.85rem auto 1.35rem;
  color: #7060a0;
  font-size: 15px;
}

.gb-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.gb-mode {
  border: 1px solid rgba(109,74,191,0.18);
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  background: rgba(255,255,255,0.3);
  color: #2d1e60;
  cursor: pointer;
  font-family: inherit;
}

.gb-mode.active {
  background: rgba(109,74,191,0.13);
  border-color: rgba(109,74,191,0.48);
  box-shadow: 0 0 0 3px rgba(109,74,191,0.08);
}

.gb-mode span,
.gb-mode strong {
  display: block;
}

.gb-mode span {
  color: #8878b0;
  font-size: 12px;
}

.gb-mode strong {
  margin-top: 0.2rem;
  font-size: 18px;
}

.gb-primary,
.gb-secondary,
.gb-link {
  font-family: inherit;
  cursor: pointer;
}

.gb-primary,
.gb-secondary {
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  font-weight: 780;
}

.gb-primary {
  border: 0;
  background: #6d4abf;
  color: #fff;
  box-shadow: 0 10px 26px rgba(109,74,191,0.2);
}

.gb-primary:hover {
  background: #5a3aaa;
}

.gb-secondary {
  border: 1px solid rgba(109,74,191,0.22);
  background: rgba(255,255,255,0.42);
  color: #2d1e60;
}

.gb-link {
  border: 0;
  background: none;
  color: #7060a0;
  padding: 4px 0;
}

.gb-link:hover {
  color: #6d4abf;
}

.gb-register {
  margin-bottom: 1rem;
  border: 1px solid rgba(109,74,191,0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(109,74,191,0.06));
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(35,20,80,0.1);
}

.gb-register-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0.8rem 0.9rem;
}

.gb-register-head .gb-primary {
  justify-self: end;
}

.gb-register-display {
  min-width: 210px;
  border: 1px solid rgba(38,31,62,0.22);
  border-radius: 10px;
  padding: 0.55rem 1.1rem 0.65rem;
  background: #171428;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04), 0 8px 18px rgba(17,13,40,0.18);
}

.gb-register-display span {
  display: block;
  color: #9ee7bd;
  font: 700 10px 'Courier New', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gb-register-display strong {
  display: block;
  color: #d8ffe6;
  font: 900 34px 'Courier New', monospace;
  line-height: 1.05;
  text-shadow: 0 0 12px rgba(74,222,128,0.25);
}

.gb-conveyor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 180px;
  min-height: 126px;
  border-top: 1px solid rgba(109,74,191,0.12);
  background: #211a34;
}

.gb-belt-lines {
  min-height: 126px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #2b2441, #171326);
}

.gb-belt-items {
  position: absolute;
  inset: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.gb-belt-item {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 28px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

.gb-belt-more {
  color: rgba(255,255,255,0.72);
  font: 800 14px 'Courier New', monospace;
}

.gb-scanner {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #362b54, #211a34);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.gb-scanner span {
  width: 58px;
  height: 70px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255,86,112,0.85) 48% 52%, transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  box-shadow: 0 0 18px rgba(255,86,112,0.42);
}

.gb-register-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, #dad7ea, #bcb5d4);
}

.gb-printer-slot {
  height: 14px;
  border-radius: 999px;
  background: #41375c;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.35);
}

.gb-keypad {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 6px;
}

.gb-keypad i {
  width: 16px;
  height: 14px;
  border-radius: 4px;
  background: #7a6e98;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.14);
}

.gb-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}

.gb-basket {
  position: sticky;
  top: 16px;
  border: 1px solid rgba(109,74,191,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.34);
  overflow: hidden;
}

.gb-basket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0.9rem;
  background: rgba(109,74,191,0.08);
  color: #2d1e60;
}

.gb-basket-head span {
  font-weight: 800;
}

.gb-basket-head strong {
  color: #8878b0;
  font-size: 12px;
}

.gb-basket-list {
  display: grid;
  gap: 8px;
  padding: 0.85rem;
  max-height: 68vh;
  overflow: auto;
}

.gb-empty {
  color: #a090c8;
  font-size: 13px;
  text-align: center;
  padding: 1.5rem 0;
}

.gb-basket-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(109,74,191,0.12);
  border-radius: 9px;
  background: rgba(255,255,255,0.46);
}

.gb-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(109,74,191,0.1);
  font-size: 18px;
}

.gb-basket-name {
  color: #2d1e60;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.gb-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gb-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(109,74,191,0.18);
  border-radius: 8px;
  background: #fff;
  color: #6d4abf;
  cursor: pointer;
  font-weight: 900;
}

.gb-qty span {
  min-width: 16px;
  text-align: center;
  color: #2d1e60;
  font-weight: 800;
}

.gb-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.gb-product {
  border: 1px solid rgba(109,74,191,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.38);
  min-height: 156px;
  padding: 0.65rem;
  display: grid;
  grid-template-rows: 66px 1fr auto;
  gap: 7px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(35,20,80,0.06);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.gb-product:hover {
  transform: translateY(-2px);
  border-color: rgba(109,74,191,0.4);
  box-shadow: 0 12px 30px rgba(35,20,80,0.12);
}

.gb-product.selected {
  border-color: rgba(109,74,191,0.54);
  box-shadow: 0 0 0 3px rgba(109,74,191,0.08);
}

.gb-product-visual {
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109,74,191,0.12), rgba(70,160,130,0.1));
  font-size: 34px;
}

.gb-product-name {
  color: #1e1a2e;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
}

.gb-product-meta {
  color: #8878b0;
  font-size: 11px;
  line-height: 1.2;
}

.gb-product-price {
  color: rgba(45,30,96,0.24);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.gb-result-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1rem 0;
}

.gb-result-numbers div {
  border: 1px solid rgba(109,74,191,0.16);
  border-radius: 10px;
  padding: 0.85rem 0.6rem;
  background: rgba(255,255,255,0.36);
}

.gb-result-numbers span {
  display: block;
  color: #8878b0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gb-result-numbers strong {
  display: block;
  margin-top: 0.2rem;
  color: #2d1e60;
  font-size: 22px;
}

.gb-receipt {
  margin: 0 auto;
  max-width: 520px;
  border: 1px solid rgba(109,74,191,0.18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.46);
  text-align: left;
}

.gb-receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(109,74,191,0.08);
  color: #2d1e60;
  font-size: 14px;
}

.gb-receipt-row:last-child {
  border-bottom: 0;
}

.gb-receipt-row small {
  display: block;
  color: #8878b0;
  font-size: 11px;
}

.gb-receipt-row strong {
  font-variant-numeric: tabular-nums;
}

.gb-result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .container {
    max-width: 720px;
  }

  .gb-layout {
    grid-template-columns: 1fr;
  }

  .gb-basket {
    position: static;
  }

  .gb-basket-list {
    max-height: 240px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .gb-title {
    font-size: 34px;
  }

  .gb-mode-grid,
  .gb-result-numbers {
    grid-template-columns: 1fr;
  }

  .gb-register-head {
    grid-template-columns: 1fr;
  }

  .gb-register-head .gb-primary {
    justify-self: stretch;
  }

  .gb-register-display {
    width: 100%;
  }

  .gb-conveyor {
    grid-template-columns: 1fr 74px;
    min-height: 96px;
  }

  .gb-belt-lines {
    min-height: 96px;
  }

  .gb-belt-items {
    inset: 16px 12px;
    gap: 8px;
  }

  .gb-belt-item {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .gb-scanner span {
    width: 44px;
    height: 56px;
  }

  .gb-register-body {
    display: none;
  }

  .gb-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-product {
    min-height: 150px;
  }
}
