.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  font-weight: 800;
}

/* --------------------------------
   Buttons: base + variants
-------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 14px;
  border-radius: 0;

  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(17, 17, 17, 0.04);
  color: var(--text);

  font-family: var(--font-head);
  font-weight: 600;

  cursor: pointer;
  user-select: none;

  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease,
    color 150ms ease;
}

.btn:hover {
  background: rgba(17, 17, 17, 0.07);
  border-color: rgba(17, 17, 17, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Anchor buttons */
a.btn {
  text-decoration: none !important;
}

/* Variants */
.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-secondary {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.18);
}

.btn-secondary:hover {
  background: rgba(17, 17, 17, 0.07);
  border-color: rgba(17, 17, 17, 0.22);
}

.btn-danger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-danger:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.24);
}

/* Small button utility */
.btn-sm {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 0;
}

/* --------------------------------
   Inputs (premium feel)
-------------------------------- */

select,
input[type="text"],
textarea,
input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;

  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

/* ---- IMPORTANT: kill native rounding / OS styling ---- */
select,
input,
textarea,
button {
  border-radius: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Keep selects looking like selects: add a clean arrow */
select {
  padding-right: 44px;
  /* space for arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17, 17, 17, 0.65) 50%),
    linear-gradient(135deg, rgba(17, 17, 17, 0.65) 50%, transparent 50%),
    linear-gradient(to right, rgba(17, 17, 17, 0.14), rgba(17, 17, 17, 0.14));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%,
    calc(100% - 36px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 60%;
  background-repeat: no-repeat;
}

/* Remove IE arrow (legacy, safe) */
select::-ms-expand {
  display: none;
}

select:focus,
input[type="text"]:focus,
textarea:focus,
input[type="date"]:focus {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
  outline: none;
}

/* Make radio/checkbox areas feel deliberate */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* Labels (tap targets) */
label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0;
}

label:hover {
  background: rgba(17, 17, 17, 0.03);
}

/* Help checkbox/radio align nicely */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #111111;
}

/* --------------------------------
   Sticky bar
-------------------------------- */

.sticky-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px;
  margin-top: 24px;
  box-shadow: 0 -10px 24px rgba(17, 17, 17, 0.06);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-title {
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------
   Badge (Cart count) — TEXT ONLY
-------------------------------- */

.badge {
  display: inline;
  margin-left: 6px;

  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);

  align-items: initial;
  justify-content: initial;
}

/* --------------------------------
   Add-ons chips (multi-select UI)
-------------------------------- */

.addons-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(17, 17, 17, 0.03);
  border-radius: 0;
  padding: 8px 10px;

  font-size: 13px;
  font-weight: 600;
}

.chip-text {
  line-height: 1;
}

.chip-x {
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(17, 17, 17, 0.04);
  color: rgba(17, 17, 17, 0.9);
  border-radius: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
}

.chip-x:hover {
  background: rgba(17, 17, 17, 0.07);
  border-color: rgba(17, 17, 17, 0.22);
}

/* --------------------------------
   Footer (NEZHNOST-like, clean columns)
-------------------------------- */

.footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: start;
  }
}

.footer-brandblock {
  display: grid;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 14px;
}

.footer-tagline {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.footer-meta {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-coltitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-collinks {
  display: grid;
  gap: 10px;
}

.footer-collinks a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-collinks a:hover {
  color: var(--text);
  border-bottom-color: rgba(17, 17, 17, 0.25);
}

/* IMPORTANT: If you still have .footer-cta anywhere, force it to NOT look like a button */
.footer-cta {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-cta:hover {
  color: var(--text);
  border-bottom-color: rgba(17, 17, 17, 0.25);
}

.footer-bottom {
  margin-top: 18px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;

  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-bottom a:hover {
  color: var(--text);
  border-bottom-color: rgba(17, 17, 17, 0.25);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;

  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0;
  box-shadow: var(--shadow-soft);

  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;

  display: none;
  align-items: center;
  gap: 10px;
}

.toast.show {
  display: inline-flex;
}

.toast .toast-muted {
  font-weight: 500;
  color: var(--muted);
}

/* --------------------------------
   Modal (shared)
-------------------------------- */

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

/* Center the modal card in the viewport */
.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;

  /* allow scroll if content is taller than viewport */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* breathing room around the card */
  padding: 24px 12px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 9999;

  width: min(640px, calc(100% - 24px));
  margin: 0;
  /* IMPORTANT: remove the old 10vh top margin */

  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0;
  box-shadow: var(--shadow);

  padding: 16px;

  /* Reduce height so it feels centered and not “too tall” */
  max-height: calc(100vh - 140px);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* keeps header/actions visible while body scrolls */
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  flex: 0 0 auto;
}

.modal-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;

  /* the content area scrolls */
  overflow-y: auto;
  padding-right: 4px;
  /* scrollbar gutter */
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delivery-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .delivery-areas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.delivery-area-chip {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.03);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.modal-note {
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: rgba(17, 17, 17, 0.02);
  border-radius: 0;
  padding: 12px;
}

/* --------------------------------
   Delivery date (cart)
-------------------------------- */

.card-soft {
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: rgba(255, 255, 255, 0.70);
  border-radius: 0;
  padding: 14px;
}

.delivery-date {
  display: grid;
  gap: 12px;
}

.delivery-date-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-date-title {
  font-family: var(--font-head);
  font-weight: 700;
}

.delivery-date-value {
  font-family: var(--font-head);
  font-weight: 700;
  text-align: right;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.is-active {
  background: rgba(17, 17, 17, 0.10);
  border-color: rgba(17, 17, 17, 0.28);
}

.delivery-date-picker {
  display: grid;
  gap: 6px;
}

/* --------------------------------
   Delivery area (cart)
-------------------------------- */

.delivery-area {
  display: grid;
  gap: 12px;
}

.delivery-area-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-area-title {
  font-family: var(--font-head);
  font-weight: 700;
}

.delivery-area-value {
  font-family: var(--font-head);
  font-weight: 700;
  text-align: right;
}

.delivery-area-controls {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .delivery-area-controls {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* --------------------------------
   Cart helpers
-------------------------------- */

.hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.cart-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.cart-card {
  margin-bottom: 12px;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-meta {
  display: grid;
  gap: 6px;
}

.cart-controls {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  padding: 0;
  background: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.addon-list {
  display: grid;
  gap: 6px;
}

label.addon-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 0;
}

label.addon-row:hover {
  background: rgba(17, 17, 17, 0.03);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- FIX: Qty count is TEXT ONLY (no box) ---- */
.cart-qty-count {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;

  text-align: left;
  font-weight: 800;
  line-height: 1;
}

/* Also protect the value span used in cart-page.js */
.cart-qty-value {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-weight: 800;
  line-height: 1;
}

.cart-line-total {
  margin-left: auto;
  color: var(--muted);
}

.cart-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

.cart-item-titleblock {
  display: grid;
  gap: 6px;
}

/* =========================================================
   MOBILE NAV — FORCE ZERO RADIUS ON MENU + ACTIVE LINKS
   (Fixes the "rounded pill" highlight on small screens)
========================================================= */

@media (max-width: 899px) {

  /* Menu button */
  #menuBtn,
  #menuBtn *,
  .menu-btn,
  .menu-btn * {
    border-radius: 0 !important;
  }

  /* Primary nav links and their active states */
  #primaryNav a,
  #primaryNav a.active,
  #primaryNav a[aria-current="page"],
  nav.nav a,
  nav.nav a.active,
  nav.nav a[aria-current="page"] {
    border-radius: 0 !important;
  }

  /* If the rounding is applied to a wrapper instead of the <a> */
  #primaryNav li,
  #primaryNav .nav-item,
  #primaryNav .nav-link,
  nav.nav li,
  nav.nav .nav-item,
  nav.nav .nav-link {
    border-radius: 0 !important;
  }
}