/* =========================================================
   NejDochazka E-shop UI
   Mobile-first stylesheet
   Structure:
   1) Tokens + base
   2) Shared components
   3) Step pages
   4) Cart
   5) Product detail
   6) Responsive: tablet (>=700), desktop (>=1024)
   ========================================================= */

/* 1) Tokens + Base */
:root {
  --nd-bg: #dbe8f4;
  --nd-surface: #ffffff;
  --nd-text: #14345a;
  --nd-muted: #5c7290;
  --nd-primary: #39a0ea;
  --nd-primary-2: #2f8fd6;
  --nd-accent: #0f6b5f;
  --nd-border: #d7e3ef;
  --nd-radius: 16px;
}

.eshop-page {
  padding: 1rem 0 1.5rem;
}

.eshop-page h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
}

.eshop-page h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.eshop-page h3 {
  font-size: clamp(1.18rem, 2.3vw, 1.6rem);
}

/* 2) Shared Components */
.eshop-surface {
  background: linear-gradient(180deg, #e3eef8 0%, var(--nd-bg) 100%);
  border: 1px solid #cfdeeb;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(19, 53, 88, 0.08);
  padding: 1rem;
}

.eshop-surface h1 {
  color: #0e2a59;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.eshop-surface h2,
.eshop-surface h3 {
  color: #123766;
  font-weight: 700;
}

.eshop-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(18, 55, 102, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 251, 0.98));
  box-shadow: 0 16px 34px rgba(18, 55, 102, 0.12);
}

.product-catalog-cta--prominent {
  margin-top: 0.25rem;
}

.product-catalog-cta h4 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #123766;
}

.product-catalog-cta p {
  margin: 0;
  color: #526579;
  font-size: 1.4rem;
  line-height: 1.5;
}

.product-catalog-cta .btn {
  min-height: 66px;
  padding: 1rem 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 14px;
}

.product-catalog-cta .btn.btn-primary {
  box-shadow: 0 10px 22px rgba(12, 72, 150, 0.22);
}

@media (max-width: 720px) {
  .product-catalog-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.95rem;
  }

  .product-catalog-cta .btn {
    width: 100%;
  }
}

.currency-form {
  display: inline-flex;
  border: 1px solid #c8d8e8;
  border-radius: 999px;
  overflow: hidden;
}

.currency-form button {
  min-height: 44px;
  border: 0;
  background: #fff;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
}

.currency-form button.active {
  background: var(--nd-accent);
  color: #fff;
}

.btn-primary,
.eshop-surface .btn-primary {
  background: linear-gradient(135deg, var(--nd-primary), var(--nd-primary-2));
  border-color: var(--nd-primary-2);
}

.btn-success,
.eshop-surface .btn-success {
  background: linear-gradient(135deg, #148673, var(--nd-accent));
  border-color: var(--nd-accent);
}

.btn-default {
  background: #eef3f8;
  border-color: #cbd7e4;
  color: #234566;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 44px;
  border-radius: 12px;
  border-color: #bdd0e3;
  background: #fbfdff;
  font-size: 1.5rem;
  line-height: 1.25;
  padding: 0.52rem 0.7rem;
}

textarea.form-control {
  min-height: 96px;
}

.admin-product-edit-page {
  width: min(96vw, 1680px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.admin-product-edit-form {
  width: 100%;
  max-width: none;
}

.admin-quantity-discounts {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #c9d7e6;
  border-radius: 16px;
  background: #f7fbff;
}

.admin-configurator-settings {
  margin: 1.4rem 0;
  padding: 1.1rem;
  border: 1px solid #c9d7e6;
  border-radius: 16px;
  background: #f7fbff;
}

.admin-configurator-settings h2 {
  margin-top: 0;
}

.configurator-unavailable {
  max-width: 760px;
  margin-top: 2rem;
  text-align: center;
}

.configurator-unavailable__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #b42318;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-quantity-discounts__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-quantity-discounts__header h3,
.admin-quantity-discounts__header p {
  margin: 0;
}

.admin-quantity-discounts__header p {
  margin-top: 0.3rem;
  color: #53687c;
}

.admin-quantity-discounts__rows {
  display: grid;
  gap: 0.7rem;
}

.admin-quantity-discount-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24, 56, 86, 0.08);
}

.admin-quantity-discount-row .form-row {
  margin: 0;
}

.admin-quantity-discount-row__remove {
  min-height: 44px;
}

.admin-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.admin-product-tab {
  min-height: 44px;
  border: 1px solid #c9d7e6;
  border-radius: 999px;
  background: #f1f6fb;
  color: #214463;
  font-weight: 800;
  padding: 0.55rem 1rem;
}

.admin-product-tab.is-active {
  background: linear-gradient(135deg, var(--nd-primary), var(--nd-primary-2));
  border-color: var(--nd-primary-2);
  color: #fff;
}

.admin-product-tab-panel {
  display: none;
}

.admin-product-tab-panel.is-active {
  display: block;
}

.admin-photo-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.admin-photo-main-card {
  position: relative;
}

.admin-photo-main-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-photo-main-card label {
  display: block;
  cursor: pointer;
  border: 2px solid #cdd9e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-photo-main-card.is-selected label {
  border-color: #0b6efd;
  box-shadow: 0 0 0 3px rgba(11, 110, 253, 0.15);
  transform: translateY(-1px);
}

.admin-photo-main-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.admin-photo-main-card__name,
.admin-photo-main-card__hint {
  display: block;
  padding: 0 10px;
}

.admin-photo-main-card__name {
  font-weight: 700;
  word-break: break-all;
  margin-top: 0.55rem;
}

.admin-photo-main-card__hint {
  color: #66788d;
  font-size: 0.9rem;
  margin: 0.35rem 0 0.75rem;
}

.admin-photo-sort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.admin-photo-sort-card {
  border: 1px solid #d7e3ef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(19, 53, 88, 0.08);
}

.admin-photo-sort-card.is-main {
  border-color: #0b6efd;
  box-shadow: 0 0 0 3px rgba(11, 110, 253, 0.12), 0 8px 20px rgba(19, 53, 88, 0.08);
}

.admin-photo-sort-card__image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.admin-photo-sort-card__body {
  padding: 0.85rem;
}

.admin-photo-sort-card__title {
  font-weight: 700;
  word-break: break-all;
  margin-bottom: 0.75rem;
}

.admin-photo-main-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #173e6a;
}

.admin-photo-sort-card .checkbox-row label {
  margin-top: 0.35rem;
}

.admin-product-edit-form .admin-product-description-editor {
  width: 100%;
  max-width: none;
  min-height: 720px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  line-height: 1.45;
}

.admin-product-list-page {
  width: min(96vw, 1700px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.admin-product-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-product-list-lead {
  margin: 0.35rem 0 0;
  color: #59708d;
  line-height: 1.5;
}

.admin-product-list-header-actions {
  display: flex;
  align-items: center;
}

.admin-product-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #d7e3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.admin-product-filter__field {
  min-width: 260px;
  flex: 1 1 260px;
}

.admin-product-filter__field label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #244565;
}

.admin-product-filter__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-product-filter__reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.2rem;
}

.admin-product-list-summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: #4a627d;
}

.admin-product-list-summary strong {
  color: #123766;
  font-size: 1.2rem;
}

.admin-product-table-wrap {
  border: 1px solid #d7e3ef;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 53, 88, 0.06);
}

.admin-product-table {
  margin-bottom: 0;
}

.admin-product-table thead th {
  background: #f2f7fc;
  color: #234566;
  font-weight: 800;
  border-bottom: 1px solid #d7e3ef;
  vertical-align: middle;
}

.admin-product-table td,
.admin-product-table th {
  vertical-align: middle !important;
}

.admin-product-table td {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.admin-product-table__actions-col {
  width: 180px;
}

.admin-product-title {
  display: grid;
  gap: 0.18rem;
}

.admin-product-title strong {
  color: #123766;
}

.admin-product-title span {
  color: #6a7d92;
  font-size: 0.92rem;
  word-break: break-all;
}

.admin-product-badge,
.admin-product-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

.admin-product-badge {
  background: #eef5ff;
  color: #21558a;
}

.admin-product-state.is-active {
  background: #eaf8f1;
  color: #0f6b5f;
}

.admin-product-state.is-inactive {
  background: #f6eef0;
  color: #9b3143;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-product-actions form {
  margin: 0;
}

.admin-action-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-radius: 12px;
  font-weight: 800;
}

.admin-action-btn.btn-danger {
  background: linear-gradient(135deg, #e14b5e, #bb253b);
  border-color: #b82238;
}

.admin-product-empty {
  text-align: center;
  padding: 1.35rem 1rem !important;
}

.form-row {
  margin-bottom: 0.8rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

/* 3) Step Pages */
.configurator-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

[hidden] {
  display: none !important;
}

.step-section-lead {
  color: var(--nd-muted);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: -0.2rem 0 1rem;
  max-width: 720px;
}

.more-terminal-panel {
  margin-top: 1rem;
}

.show-more-terminals-btn {
  width: 100%;
  min-height: 56px;
  border: 1px solid #b8d6ee;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  color: #123766;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(19, 53, 88, 0.08);
}

.more-terminals-grid {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #b8ccdf;
}

.product-card {
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  background: var(--nd-surface);
  box-shadow: 0 10px 26px rgba(19, 53, 88, 0.08);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.product-card.featured {
  border-color: var(--nd-accent);
  box-shadow: 0 10px 28px rgba(15, 107, 95, 0.18);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, rgba(61, 161, 234, 0.12) 0, rgba(61, 161, 234, 0) 45%);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #e9f4ff;
  color: #1d4f83;
  border: 1px solid #c5def5;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.product-badge-best {
  background: #e9f8f3;
  color: #0f6b5f;
  border-color: #bce7da;
}

.product-card h3 {
  color: #0f2e53;
  font-size: 1.8rem;
  margin-top: 0.7rem;
  margin-bottom: 0.45rem;
}

.product-card p {
  color: var(--nd-muted);
  line-height: 1.45;
}

.product-card-description,
.product-card-description p {
  color: var(--nd-muted);
  line-height: 1.45;
}

.product-card-description p {
  margin: 0 0 0.55rem;
}

.product-card .product-card-lead {
  color: #183d68;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.product-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.75rem;
}

.product-mini-tags span {
  border: 1px solid #cde4d9;
  border-radius: 999px;
  background: #f0fbf6;
  color: #0f6b5f;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.42rem 0.68rem;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
}

.product-image-frame {
  position: relative;
  padding: 0.7rem;
  border: 1px solid #d4e3f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: inset 0 1px 0 #fff;
}

.product-card .price {
  color: #0d2d51;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.price-block {
  margin: 0.45rem 0 0.55rem;
}

.price-block .price
{
    font-size:1.8rem;
    font-weight:700;
    color: #0d2d51;
}



.price-old {
  color: #7d8794;
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.price-discount-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.price-discounted {
  color: #c1121f !important;
  font-weight: 800;
}

.price-block,
.product-price-block {
  display: grid;
  gap: 0.18rem;
}

.price-block .price,
.price-block .product-price-main,
.product-price-block .price,
.product-price-block .product-price-main {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  color: #0e2a59;
}

.price-block .price-vat,
.price-block .product-price-vat,
.product-price-block .price-vat,
.product-price-block .product-price-vat {
  color: rgba(20, 52, 90, 0.72);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
}

.cart-mobile-line .price-old,
.summary-line .price-old {
  display: block;
  margin: 0;
  font-size: 0.85rem;
}

.cart-mobile-line .price-discounted,
.summary-line .price-discounted {
  display: block;
}

.radio-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.radio-card input[type="radio"] {
  margin-bottom: 0.65rem;
  transform: scale(2.05);
  transform-origin: left center;
}

.radio-card.selected {
  background: linear-gradient(180deg, #f0fbf8 0%, #e7f6f2 100%);
  border-color: #1d8f7c;
  box-shadow: 0 12px 30px rgba(15, 107, 95, 0.2);
  transform: translateY(-2px);
}

.radio-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.product-feature-list {
  margin: 0.55rem 0 0.8rem;
  padding: 0;
  color: #334a67;
  list-style: none;
}

.product-feature-list li {
  margin: 0.3rem 0;
  line-height: 1.3;
  font-size: 0.98rem;
  padding-left: 2rem;
  position: relative;
}

.product-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.03rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #17a56c 0%, #0f6b5f 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: 0 5px 12px rgba(15, 107, 95, 0.34);
}

.product-feature-list li::before {
  content: "✓";
}

.product-card-actions {
  margin-top: auto;
  padding-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.product-card-actions .btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.product-card-actions .choose-variant-btn.is-selected {
  background: #d1d5db;
  border-color: #d1d5db;
  color: #4b5563;
  cursor: not-allowed;
}

.static-card {
  margin-bottom: 0.8rem;
}

.config-check {
  margin: 0.7rem 0;
}

.software-panel {
  margin-bottom: 0.8rem;
}

.pack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.quantity-discount-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.quantity-discount-list span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e6f3ee;
  color: #176b57;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-mini {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--nd-accent);
  font-weight: 600;
}

.hint {
  margin-top: 0.8rem;
  color: #5b6470;
}

.hint.strong {
  font-weight: 700;
  color: var(--nd-accent);
}

.qty-picker {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 0.45rem;
  align-items: center;
  max-width: 280px;
}

.qty-btn {
  height: 50px;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0;
}

.qty-value {
  text-align: center;
  font-weight: 600;
}

.wizard-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #cfddeb;
  border-radius: 14px;
  padding: 1rem;
  z-index: 10;
}

.wizard-actions .btn {
    min-height: 48px;
    font-weight: 700;
    font-size: 1.6rem;
    border-radius: 14px;
    padding: 1.0rem 1.6rem;
    box-shadow: 0 8px 18px rgba(16, 46, 78, 0.14);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.wizard-actions .btn:hover,
.wizard-actions .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 46, 78, 0.18);
}

.wizard-actions .btn.attention-pulse {
  animation: next-step-attention 0.9s ease-out;
}

@keyframes next-step-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(16, 46, 78, 0.14);
  }
  35% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(57, 160, 234, 0.24), 0 16px 30px rgba(57, 160, 234, 0.28);
    filter: brightness(1.08);
  }
  70% {
    transform: scale(0.99);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(16, 46, 78, 0.14);
  }
}

/* 4) Cart */
.summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 0.8rem;
  margin: 0.45rem 0;
}

.summary-line > span:first-child {
  min-width: 0;
}

.summary-price,
.summary-price .price-old,
.summary-price .price-discounted {
  white-space: nowrap;
}

.summary-price {
  text-align: right;
}

.summary-line.total {
  font-size: 2.2rem;
}

.summary-line.final-total strong,
.cart-total-final {
  font-weight: 800;
  font-size: 2.2rem;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: 0 10px 26px rgba(19, 53, 88, 0.08);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.1rem;
}

.eshop-page .cart-table-desktop {
  display: none !important;
}

.cart-mobile-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.cart-mobile-item {
  background: #fff;
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(31, 63, 98, 0.08);
}

.cart-mobile-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-mobile-head img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #d8e4ef;
}

.cart-mobile-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-mobile-item h4 {
  margin: 0;
  color: #123766;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.22;
}

.cart-mobile-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3da1ea, #0f6b5f);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-mobile-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.18rem 0;
  font-size: 0.88rem;
  color: #5c6f86;
}

.cart-mobile-line strong {
  color: #2c3f5b;
}

.cart-mobile-line.total {
  margin-top: 0.35rem;
  padding-top: 0.52rem;
  border-top: 1px dashed #b7c9dc;
  font-size: 1.42rem;
  color: #113965;
}

.cart-mobile-line.total strong {
  font-size: 1.42rem;
  color: #0e2a59;
}

.cart-mobile-actions {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: 82px 1fr 1fr;
  gap: 0.45rem;
  align-items: center;
}

.cart-mobile-qty-input {
  width: 100% !important;
  min-height: 42px;
  border: 1px solid #b8cadf;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: #173a63;
  background: #f7fbff;
}

.cart-mobile-save-btn,
.cart-mobile-remove-btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
}

.cart-mobile-save-btn {
  box-shadow: 0 6px 14px rgba(61, 161, 234, 0.28);
}

.cart-mobile-remove-btn {
  color: #b91c1c;
  border-color: #f3b2b2;
  background: #fff5f5;
}

.cart-mobile-note {
  margin-top: 0.6rem;
  color: #52637a;
  font-weight: 600;
}

.qty-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.qty-form input {
  width: 88px;
}

.eshop-page .table .admin-product-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.eshop-page .table .admin-product-form input[type="number"] {
  width: 120px;
  min-height: 34px;
  padding: 0.25rem 0.45rem;
  font-size: 1rem;
  border-radius: 8px;
}

.eshop-page .table .admin-product-form input[name="stockQuantity"] {
  width: 84px;
}

.eshop-page .table .admin-product-form label {
  margin: 0 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.eshop-page .table .admin-product-form .btn,
.eshop-page .table .admin-product-delete-form .btn {
  min-height: 34px;
  padding: 0.28rem 0.7rem;
  font-size: 1rem;
}

.eshop-page .table .admin-product-delete-form {
  display: inline-block;
  margin-left: 0.45rem;
}

/* 5) Product Detail */
.product-hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(219, 232, 244, 0.86) 46%, rgba(196, 225, 245, 0.92) 100%),
    radial-gradient(circle at 84% 18%, rgba(74, 163, 232, 0.32) 0%, rgba(74, 163, 232, 0) 34%);
  padding: 1rem 0 1.8rem;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4aa3e8;
  font-weight: 700;
  margin-bottom: 0.9rem;
  text-decoration: none;
  font-size: 1.18rem;
}

.product-detail {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.product-detail-modern {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(184, 208, 230, 0.78);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 26px 70px rgba(17, 52, 88, 0.12);
  backdrop-filter: blur(8px);
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #bdddf4;
  border-radius: 999px;
  background: #eef8ff;
  color: #245e96;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.42rem 0.68rem;
  margin-bottom: 0.75rem;
}

.product-copy h1 {
  font-size: 2.35rem;
  line-height: 1.06;
  color: #0e2a59;
  margin: 0 0 0.55rem;
  font-weight: 800;
}

.product-copy p {
  font-size: 1.05rem;
  color: #5d6c83;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.product-copy .product-lead {
  color: #183d68;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.28;
}

.product-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1rem;
}

.product-spec-strip span {
  background: #ffffff;
  border: 1px solid #c6d9ec;
  border-radius: 999px;
  color: #153c67;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.46rem 0.72rem;
  box-shadow: 0 7px 18px rgba(20, 52, 90, 0.07);
}

.product-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.9rem 0 0.95rem;
}

.product-highlight-item {
  border: 1px solid #cde4d9;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fffb 0%, #eefaf5 100%);
  color: #0f4f46;
  padding: 0.8rem 0.9rem 0.8rem 2.65rem;
  position: relative;
}

.product-highlight-item::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.82rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #148673;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.86rem;
}

.price-block {
  display: grid;
  gap: 0.2rem;
}

.price-block .price,
.price-block .product-price-main {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  color: #0e2a59;
}

.price-block .price-vat,
.price-block .product-price-vat {
  color: rgba(20, 52, 90, 0.72);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
}

.product-price-note {
  margin-top: 0.4rem;
  color: #6f7f95;
  font-size: 1rem;
}

.product-cta-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(198, 217, 236, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.product-cta-panel .btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.product-buy {
  display: grid;
  grid-template-columns: auto 92px;
  gap: 0.55rem;
  align-items: center;
}

.product-buy button {
  grid-column: 1 / -1;
}

.product-buy input {
  min-height: 48px;
  border: 1px solid #bdd0e3;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.45rem 0.55rem;
  font-size: 1.1rem;
}

.product-image-wrap {
  position: relative;
  border-radius: 28px;
  padding: 1rem;
  border: 1px solid #bad3ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 22px 50px rgba(19, 53, 88, 0.13);
  background:
    radial-gradient(circle at 52% 48%, #ffffff 0%, #d8eafa 42%, rgba(216, 234, 250, 0) 62%),
    linear-gradient(160deg, #eaf5ff 0%, #d3e9f9 100%);
  overflow: hidden;
}

.product-image-wrap::before {
  content: "";
  position: absolute;
  inset: 9% 6% auto auto;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(74, 163, 232, 0.16);
  pointer-events: none;
}

.product-image-wrap #product-main-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #4aa3e8;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(31, 131, 210, 0.35);
}

.gallery-nav-prev { left: 4px; }
.gallery-nav-next { right: 4px; }

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
  justify-content: center;
}

.product-thumb-btn {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0.2rem;
  line-height: 1;
}

.product-thumb-btn img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.product-thumb-btn.active {
  border-color: #4aa3e8;
  box-shadow: 0 0 0 2px #49a5eb inset;
}

/* 5A) Product Detail Settings
   ---------------------------------------------------------
   CENTRALNI NASTAVENI DETAILU PRODUKTU

   Pokud chces menit vzhled produktoveho detailu, zacni tady.
   Razor sablona drzi jen obsah a semanticke tridy:
   .product-kicker, .product-lead, .product-short-description,
   .product-description-text, .product-spec-strip, .product-highlight-grid,
   .product-spec-table, .product-notices, .product-price-block,
   .product-cta-panel, .product-image-wrap, .product-gallery-thumbs.

   Co se tady nastavuje:
   - stranka a pozadi,
   - hlavni layout produktu,
   - typografie,
   - badge/stitek,
   - tagy,
   - highlight boxy,
   - cena,
   - CTA panel,
   - hlavni obrazek a galerie.
   --------------------------------------------------------- */
.product-hero {
  /* Page */
  --product-page-min-height: 100vh;
  --product-page-padding-top: 1rem;
  --product-page-padding-bottom: 1.8rem;
  --product-page-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(219, 232, 244, 0.86) 46%, rgba(196, 225, 245, 0.92) 100%),
    radial-gradient(circle at 84% 18%, rgba(74, 163, 232, 0.32) 0%, rgba(74, 163, 232, 0) 34%);

  /* Main panel */
  --product-panel-bg: rgba(255, 255, 255, 0.42);
  --product-panel-border: rgba(184, 208, 230, 0.78);
  --product-panel-radius: 22px;
  --product-panel-padding: 1rem;
  --product-panel-shadow: 0 26px 70px rgba(17, 52, 88, 0.12);
  --product-panel-blur: blur(8px);
  --product-layout-gap: 1rem;

  /* Navigation */
  --product-back-color: #4aa3e8;
  --product-back-size: 1.18rem;
  --product-back-weight: 700;
  --product-back-gap: 0.45rem;
  --product-back-margin-bottom: 0.9rem;

  /* Text */
  --product-title-color: #0e2a59;
  --product-title-size: 2.35rem;
  --product-title-weight: 800;
  --product-title-line-height: 1.06;
  --product-title-margin-bottom: 0.55rem;
  --product-text-color: #5d6c83;
  --product-text-size: 1.05rem;
  --product-text-line-height: 1.5;
  --product-lead-color: #183d68;
  --product-lead-size: 1.25rem;
  --product-lead-weight: 800;
  --product-lead-line-height: 1.28;
  --product-description-gap: 0.8rem;
  --product-description-margin: 0.95rem 0 1rem;

  /* Badge */
  --product-kicker-bg: #eef8ff;
  --product-kicker-color: #245e96;
  --product-kicker-border: #bdddf4;
  --product-kicker-radius: 999px;
  --product-kicker-size: 0.9rem;
  --product-kicker-weight: 800;
  --product-kicker-padding: 0.42rem 0.68rem;
  --product-kicker-margin-bottom: 0.75rem;

  /* Tags */
  --product-tag-bg: #ffffff;
  --product-tag-color: #153c67;
  --product-tag-border: #c6d9ec;
  --product-tag-radius: 999px;
  --product-tag-size: 0.92rem;
  --product-tag-weight: 800;
  --product-tag-padding: 0.46rem 0.72rem;
  --product-tag-gap: 0.45rem;
  --product-tag-shadow: 0 7px 18px rgba(20, 52, 90, 0.07);

  /* Highlights */
  --product-highlight-bg: linear-gradient(180deg, #f7fffb 0%, #eefaf5 100%);
  --product-highlight-color: #0f4f46;
  --product-highlight-border: #cde4d9;
  --product-highlight-radius: 14px;
  --product-highlight-gap: 0.55rem;
  --product-highlight-padding: 0.8rem 0.9rem 0.8rem 2.65rem;
  --product-check-icon: "✓";
  --product-check-bg: #148673;
  --product-check-color: #ffffff;
  --product-check-size: 1.35rem;

  /* Parameters and notices */
  --product-spec-table-bg: rgba(255, 255, 255, 0.7);
  --product-spec-table-border: #c6d9ec;
  --product-spec-table-radius: 18px;
  --product-spec-table-padding: 1rem;
  --product-spec-title-color: #0e2a59;
  --product-spec-title-size: 1.35rem;
  --product-spec-row-border: #d8e5f1;
  --product-spec-name-color: #123766;
  --product-spec-value-color: #314b69;
  --product-notice-bg: #fff8e6;
  --product-notice-border: #f2d38d;
  --product-notice-color: #6f4d12;
  --product-warning-bg: #fff1f1;
  --product-warning-color: #9f1d1d;

  /* Price */
  --product-price-color: #0e2a59;
  --product-price-size: clamp(2.3rem, 6vw, 3.8rem);
  --product-price-weight: 800;
  --product-price-note-color: #6f7f95;
  --product-price-note-size: 1rem;

  /* CTA / quantity */
  --product-cta-bg: rgba(255, 255, 255, 0.68);
  --product-cta-border: rgba(198, 217, 236, 0.85);
  --product-cta-radius: 18px;
  --product-cta-padding: 0.85rem;
  --product-cta-gap: 0.7rem;
  --product-cta-button-height: 54px;
  --product-qty-width: 92px;
  --product-qty-height: 48px;

  /* Image / gallery */
  --product-image-radius: 28px;
  --product-image-padding: 1rem;
  --product-image-height: 320px;
  --product-image-border: #bad3ec;
  --product-image-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 22px 50px rgba(19, 53, 88, 0.13);
  --product-image-bg:
    radial-gradient(circle at 52% 48%, #ffffff 0%, #d8eafa 42%, rgba(216, 234, 250, 0) 62%),
    linear-gradient(160deg, #eaf5ff 0%, #d3e9f9 100%);
  --product-image-accent-bg: rgba(74, 163, 232, 0.16);
  --product-gallery-button-size: 44px;
  --product-gallery-button-bg: #4aa3e8;
  --product-gallery-button-color: #ffffff;
  --product-gallery-thumb-size: 70px;
  --product-gallery-thumb-radius: 8px;
  --product-gallery-thumb-active: #4aa3e8;

  min-height: var(--product-page-min-height);
  background: var(--product-page-bg);
  padding: var(--product-page-padding-top) 0 var(--product-page-padding-bottom);
}

/* Product detail: variables applied */
.product-back-link {
  gap: var(--product-back-gap);
  color: var(--product-back-color);
  font-size: var(--product-back-size);
  font-weight: var(--product-back-weight);
  margin-bottom: var(--product-back-margin-bottom);
}

.product-detail {
  gap: var(--product-layout-gap);
}

.product-detail-modern {
  background: var(--product-panel-bg);
  border-color: var(--product-panel-border);
  border-radius: var(--product-panel-radius);
  padding: var(--product-panel-padding);
  box-shadow: var(--product-panel-shadow);
  backdrop-filter: var(--product-panel-blur);
}

.product-kicker {
  background: var(--product-kicker-bg);
  border-color: var(--product-kicker-border);
  border-radius: var(--product-kicker-radius);
  color: var(--product-kicker-color);
  font-size: var(--product-kicker-size);
  font-weight: var(--product-kicker-weight);
  padding: var(--product-kicker-padding);
  margin-bottom: var(--product-kicker-margin-bottom);
}

.product-copy h1 {
  color: var(--product-title-color);
  font-size: var(--product-title-size);
  font-weight: var(--product-title-weight);
  line-height: var(--product-title-line-height);
  margin-bottom: var(--product-title-margin-bottom);
}

.product-copy p {
  color: var(--product-text-color);
  font-size: var(--product-text-size);
  line-height: var(--product-text-line-height);
}

.product-copy .product-lead {
  color: var(--product-lead-color);
  font-size: var(--product-lead-size);
  font-weight: var(--product-lead-weight);
  line-height: var(--product-lead-line-height);
}

.product-description-text {
  display: grid;
  gap: var(--product-description-gap);
  margin: var(--product-description-margin);
}

.product-description-text p {
  margin: 0;
}

.product-description-html {
  display: block;
}

.product-description-html p {
  margin: 0 0 0.8rem;
}

.product-description-html p:last-child {
  margin-bottom: 0;
}

.product-video-embed {
  margin: 1rem 0;
}

.product-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #bdd4ea;
  border-radius: 18px;
  background: #0e2a59;
  box-shadow: 0 16px 34px rgba(14, 42, 89, 0.16);
}

.product-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video-action {
  margin-top: 0.7rem;
}

.product-sog-embed {
  margin-top: 1.2rem;
}

.product-sog-label {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #183d68;
}

.product-spec-strip {
  gap: var(--product-tag-gap);
}

.product-spec-strip span {
  background: var(--product-tag-bg);
  border-color: var(--product-tag-border);
  border-radius: var(--product-tag-radius);
  color: var(--product-tag-color);
  font-size: var(--product-tag-size);
  font-weight: var(--product-tag-weight);
  padding: var(--product-tag-padding);
  box-shadow: var(--product-tag-shadow);
}

.product-highlight-grid {
  gap: var(--product-highlight-gap);
}

.product-highlight-item {
  background: var(--product-highlight-bg);
  border-color: var(--product-highlight-border);
  border-radius: var(--product-highlight-radius);
  color: var(--product-highlight-color);
  padding: var(--product-highlight-padding);
}

.product-highlight-item::before {
  content: var(--product-check-icon);
  width: var(--product-check-size);
  height: var(--product-check-size);
  background: var(--product-check-bg);
  color: var(--product-check-color);
}

.product-spec-table {
  margin: 1rem 0;
  padding: var(--product-spec-table-padding);
  border: 1px solid var(--product-spec-table-border);
  border-radius: var(--product-spec-table-radius);
  background: var(--product-spec-table-bg);
}

.product-spec-table h2 {
  margin: 0 0 0.8rem;
  color: var(--product-spec-title-color);
  font-size: var(--product-spec-title-size);
  font-weight: 800;
}

.product-spec-table dl {
  display: grid;
  margin: 0;
}

.product-spec-table-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--product-spec-row-border);
}

.product-spec-table-row:last-child {
  border-bottom: 0;
}

.product-spec-table dt {
  color: var(--product-spec-name-color);
  font-weight: 800;
}

.product-spec-table dd {
  margin: 0;
  color: var(--product-spec-value-color);
}

.product-notices {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.product-notices p {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--product-notice-border);
  border-radius: 14px;
  background: var(--product-notice-bg);
  color: var(--product-notice-color);
  font-weight: 700;
}

.product-notices .product-warning {
  background: var(--product-warning-bg);
  color: var(--product-warning-color);
}

.product-price-main {
  color: var(--product-price-color);
  font-size: var(--product-price-size);
  font-weight: var(--product-price-weight);
}

.product-price-vat {
  color: var(--product-price-note-color);
  font-size: calc(var(--product-price-note-size) * 0.9);
  font-weight: 600;
}

.product-price-note {
  color: var(--product-price-note-color);
  font-size: var(--product-price-note-size);
}

.product-media-price-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(198, 217, 236, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(19, 53, 88, 0.08);
}

.product-stock-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.7rem;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.product-stock-state.is-available {
  background: #e9f8f3;
  color: #0f6b5f;
  border: 1px solid #bce7da;
}

.product-stock-state.is-unavailable {
  background: #fff1f1;
  color: #9f1d1d;
  border: 1px solid #f2b8b8;
}

.product-cta-panel {
  gap: var(--product-cta-gap);
  padding: var(--product-cta-padding);
  border-color: var(--product-cta-border);
  border-radius: var(--product-cta-radius);
  background: var(--product-cta-bg);
}

.product-cta-panel .btn {
  min-height: var(--product-cta-button-height);
}

.product-media-cta-panel {
  margin-top: 1rem;
}

.product-buy {
  grid-template-columns: auto var(--product-qty-width);
}

.product-buy input {
  min-height: var(--product-qty-height);
}

.product-image-wrap {
  padding: var(--product-image-padding);
  border-color: var(--product-image-border);
  border-radius: var(--product-image-radius);
  background: var(--product-image-bg);
  box-shadow: var(--product-image-shadow);
}

.product-image-wrap::before {
  background: var(--product-image-accent-bg);
}

.product-image-wrap #product-main-image {
  height: var(--product-image-height);
}

.gallery-nav {
  width: var(--product-gallery-button-size);
  height: var(--product-gallery-button-size);
  background: var(--product-gallery-button-bg);
  color: var(--product-gallery-button-color);
}

.product-thumb-btn {
  border-radius: var(--product-gallery-thumb-radius);
}

.product-thumb-btn img {
  width: var(--product-gallery-thumb-size);
  height: var(--product-gallery-thumb-size);
  border-radius: calc(var(--product-gallery-thumb-radius) - 2px);
}

.product-thumb-btn.active {
  border-color: var(--product-gallery-thumb-active);
  box-shadow: 0 0 0 2px var(--product-gallery-thumb-active) inset;
}

/* Thank you */
.thank-you {
  background: #dce8f3;
  border-radius: 24px;
  padding: 1.3rem;
}

/* Hidden helper */
.hidden-form {
  display: none;
}

/* 6) Responsive */
@media (max-width: 699px) {
  .eshop-page,
  .eshop-page p,
  .eshop-page li,
  .eshop-page label,
  .eshop-page input,
  .eshop-page select,
  .eshop-page textarea,
  .eshop-page button,
  .eshop-page .btn {
    font-size: 18px;
  }

  .radio-card { min-height: 560px; }
  .admin-quantity-discounts__header {
    flex-direction: column;
  }
  .admin-quantity-discounts__header .btn {
    width: 100%;
  }
  .admin-quantity-discount-row {
    grid-template-columns: 1fr;
  }
  .product-card-actions { grid-template-columns: 1fr; }
  .wizard-actions { grid-template-columns: 1fr; }
  .product-hero {
    --product-page-padding-top: 0.7rem;
    --product-panel-padding: 0.8rem;
    --product-title-size: 2.15rem;
    --product-lead-size: 1.12rem;
    --product-tag-size: 0.86rem;
    --product-image-height: 300px;
  }
  .product-spec-strip span,
  .product-mini-tags span { font-size: 0.86rem; }
}

@media (min-width: 700px) {
  .eshop-page {
    padding: 1.5rem 0 2rem;
  }

  .eshop-surface {
    padding: 1.35rem;
  }

  .eshop-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

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

  .show-more-terminals-btn {
    width: auto;
    min-width: 280px;
  }

  .radio-card {
    min-height: 460px;
  }

  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .product-hero {
    --product-image-height: 430px;
    --product-title-size: 2.8rem;
  }

  .product-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-spec-table-row {
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .product-cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .eshop-surface {
    padding: 2rem;
    border-radius: 24px;
  }

  .checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
  }

  .product-detail-modern {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.2rem;
    align-items: start;
  }

  .product-detail-modern .product-copy {
    order: 1;
  }

  .product-detail-modern .product-media {
    order: 2;
  }

  .product-hero {
    --product-panel-padding: 1.6rem;
    --product-title-size: 3.65rem;
    --product-lead-size: 1.45rem;
    --product-price-size: 3.2rem;
    --product-image-padding: 2.2rem;
    --product-image-height: 520px;
    --product-gallery-button-size: 56px;
  }

  .gallery-nav {
    font-size: 1.7rem;
  }

  .gallery-nav-prev { left: -18px; }
  .gallery-nav-next { right: -18px; }

  .eshop-page .cart-table-desktop {
    display: table !important;
  }

  .cart-mobile-list {
    display: none;
  }

  .cart-table-desktop thead th,
  .cart-table-desktop tbody td {
    vertical-align: middle !important;
    line-height: 1.25;
  }

  .cart-table-desktop tbody td {
    font-size: 1.08rem;
  }

  .cart-desktop-product {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 0.75rem;
    align-items: center;
  }

  .cart-desktop-product img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #c8d8e8;
    background: #f8fbff;
  }

  .cart-desktop-product span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #15375f;
    line-height: 1.2;
  }

  .cart-table-desktop .qty-form {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
  }

  .cart-table-desktop .qty-form input[type="number"] {
    width: 82px;
    min-height: 32px;
    border: 2px solid #90a4ba;
    border-radius: 18px;
    background: #f8fbff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #173a63;
    padding: 0.5rem 0.5rem;
  }

  .cart-table-desktop .qty-form .btn {
    min-height: 32px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-table-desktop form {
    margin: 0;
  }

  .cart-table-desktop td.total{
      font-size: 1.5rem;
  }

  .cart-remove-btn {
    background: #fff1f1;
    border: 1px solid #f3b7b7;
    color: #b61c1c;
    min-height: 34px;
    border-radius: 10px;
    padding: 0.28rem 0.58rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .cart-remove-btn:hover,
  .cart-remove-btn:focus {
    background: #ffe6e6;
    border-color: #ea9a9a;
    color: #951616;
  }
}
