:root {
  --spar-green: #0a7a3d;
  --spar-green-dark: #065c2d;
  --spar-red: #e42313;
  --neutral-50: #f8fafc;
  --neutral-100: #eef2f6;
  --neutral-200: #d9e0e8;
  --neutral-600: #475569;
  --neutral-800: #1f2937;
  --card-radius: 18px;
  --transition-fast: 180ms ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  background: linear-gradient(160deg, #f9fffb 0%, #eef3ff 100%);
  color: var(--neutral-800);
  min-height: 100vh;
}

a {
  color: var(--spar-green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: linear-gradient(120deg, var(--spar-green) 0%, var(--spar-green-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 16px 32px rgba(14, 51, 33, 0.15);
}

.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem clamp(1.25rem, 3vw, 3rem);
}

.logo-text {
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav__link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 280px;
  max-width: 420px;
}

.search-form input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.95rem;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-form button {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--spar-green-dark);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.header-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-account-menu] {
  position: relative;
}

.account-toggle {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.account-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 220px;
  background: #fff;
  color: var(--spar-green-dark);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--neutral-200);
  display: grid;
  gap: 0.25rem;
  z-index: 10;
}

[data-account-menu-panel][hidden] {
  display: none !important;
}

.account-menu__link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: inherit;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.account-menu__link:hover {
  background: var(--neutral-100);
  color: var(--spar-green-dark);
}

.account-menu__link--muted {
  color: var(--neutral-600);
  font-weight: 500;
}

.account-link {
  color: #fff;
  font-weight: 600;
}

.account-link--muted {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.cart-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cart-icon {
  font-size: 1.35rem;
}

.cart-count {
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--spar-green-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.flash-messages {
  max-width: 1024px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.flash-message {
  margin-bottom: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--spar-green);
}

.flash-message.flash-error {
  border-left-color: var(--spar-red);
}

.site-footer {
  margin-top: 3rem;
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 3rem);
}

.sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--card-radius);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 1.75rem;
  position: sticky;
  top: 7.5rem;
  height: fit-content;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar > * + * {
  margin-top: 1.25rem;
}

.management-menu {
  display: grid;
  gap: 0.35rem;
}

.management-menu__link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-800);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.management-menu__link:hover,
.management-menu__link:focus-visible {
  border-color: var(--spar-red);
  color: var(--spar-red);
  background: #fff;
}

.management-menu__link.is-active {
  background: linear-gradient(135deg, #fff0f0, #ffffff);
  border-color: var(--spar-red);
  color: var(--spar-red);
  box-shadow: 0 10px 25px rgba(196, 30, 58, 0.12);
}

.content {
  padding-bottom: 4rem;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  padding: clamp(1.5rem, 2vw, 2.25rem);
  margin-bottom: 1.75rem;
}

.card--wide {
  padding: clamp(2rem, 3vw, 2.75rem);
}

.card--center {
  text-align: center;
}

.card__header {
  margin-bottom: 1.5rem;
}

.card__header h1,
.card__header h2 {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.card__link {
  font-size: 0.95rem;
  color: var(--spar-green-dark);
}

.btn-primary,
.btn-tertiary,
.btn-secondary,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: var(--spar-green);
  color: #fff;
  box-shadow: 0 10px 25px rgba(10, 122, 61, 0.25);
}

.btn-primary:hover {
  background: var(--spar-green-dark);
  transform: translateY(-1px);
}

.btn-tertiary {
  background: rgba(10, 122, 61, 0.1);
  color: var(--spar-green-dark);
}

.btn-tertiary:hover {
  background: rgba(10, 122, 61, 0.2);
}

.btn-link {
  background: transparent;
  color: var(--spar-red);
  padding: 0.35rem 0.5rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label,
.form-label {
  font-weight: 600;
  color: var(--neutral-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 0.95rem;
}

.form-input {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.form-input:focus {
  outline: 2px solid var(--spar-green);
  border-color: var(--spar-green);
}

.stacked-form {
  display: grid;
  gap: 1rem;
}

.stacked-form .form-grid {
  gap: 1rem;
}

.form-field textarea {
  resize: vertical;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-error {
  color: var(--spar-red);
  font-size: 0.85rem;
  margin: 0;
}

.form-help,
.form-note {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.category-nav {
  margin-top: 1.5rem;
  padding-bottom: 60px;
}

.category-nav h2 {
  margin-top: 0;
}

.category-tree,
.category-children {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.category-node {
  margin-bottom: 0.25rem;
}

.category-node__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-expander {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-600);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.category-expander__icon {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition-fast);
}

.category-node.is-open .category-expander__icon {
  transform: rotate(45deg);
}

.category-expander--spacer {
  opacity: 0;
  pointer-events: none;
}

.category-children {
  padding-left: 1.25rem;
  margin-top: 0.35rem;
  border-left: 2px solid rgba(10, 122, 61, 0.08);
}

.category-children[hidden] {
  display: none;
}

.category-link {
  display: block;
  flex: 1;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  color: var(--neutral-600);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.category-link:hover,
.category-link.is-active {
  color: var(--spar-green-dark);
  background: rgba(10, 122, 61, 0.08);
}

.login-panel,
.account-panel,
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-panel h2 {
  margin: 0 0 0.35rem;
}

.account-panel h2 {
  margin: 0 0 0.25rem;
}

.login-panel .login-form {
  display: grid;
  gap: 1rem;
}

.login-panel .login-form input::placeholder {
  color: var(--neutral-500);
}

.account-panel__info {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.account-panel__actions {
  display: flex;
  gap: 0.75rem;
}

.account-nav__title {
  margin: 0;
}

.account-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.account-nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(10, 122, 61, 0.08);
  color: var(--spar-green-dark);
  font-weight: 600;
}

.account-nav__link.is-active {
  background: var(--spar-green);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(198px, 234px));
    justify-content: flex-start;
    gap: 1rem;
  }
}

[data-filter-container].is-loading {
  position: relative;
  opacity: 0.6;
}

[data-filter-container].is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.favorite-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--spar-red);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.favorite-toggle.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--spar-red);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.favorite-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.favorite-toggle svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.favorite-toggle.is-active svg path {
  fill: var(--spar-red);
  stroke: var(--spar-red);
}

.favorite-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.95);
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--neutral-200);
  display: grid;
  place-items: center;
}

.product-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
}

.product-age-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem 0.3rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.product-age-badge img {
  height: 24px;
  width: auto;
  display: block;
}

.product-image img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-image__link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.inline-editable {
  display: inline-block;
  cursor: text;
  border-radius: 6px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.inline-editable:hover {
  background: var(--neutral-100);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
}

.inline-edit-input {
  width: 100%;
  border: 1px solid var(--neutral-300);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font: inherit;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.inline-edit-input[type="number"] {
  text-align: right;
}

.product-image--placeholder span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neutral-200);
}

.product-detail__preview {
  margin-bottom: 1.5rem;
  max-width: 200px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.product-detail__preview img {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  padding: 0.5rem;
}

.product-title-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-title-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title-line--primary {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.product-title-line--secondary {
  font-size: 0.82rem;
  color: var(--neutral-600);
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

.product-note {
  margin: 0;
  color: var(--neutral-500);
}

.product-category {
  margin: 0;
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.product-category__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.product-category__link:hover,
.product-category__link:focus-visible {
  color: var(--spar-green-dark);
}

.product-category__separator {
  margin: 0 0.35rem;
  color: var(--neutral-400);
}

.product-price {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.25rem 0;
  color: var(--spar-green-dark);
}

.product-controls {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-quantity {
  align-self: center;
}

.product-price--inline {
  margin: 0 0 0.35rem;
  display: block;
}

.product-edit-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--neutral-200);
  padding-top: 1rem;
}

.product-edit-hint {
  margin: 0 0 0.5rem;
  color: var(--neutral-600);
}

.product-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-edit-form .form-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--neutral-700);
  font-weight: 600;
}

.product-edit-form input,
.product-edit-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--neutral-300);
  border-radius: 6px;
  font-size: 1rem;
}

.product-edit-form textarea {
  resize: vertical;
}

.product-edit-form .form-full {
  width: 100%;
}

.product-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-edit-actions .button {
  padding: 0.45rem 0.9rem;
}

.product-edit-actions .button--ghost {
  background: transparent;
  border: 1px solid var(--neutral-300);
  color: var(--neutral-700);
}

.product-edit-status {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.product-card.is-editing {
  outline: 2px solid var(--spar-red);
}

.product-quantity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--neutral-100);
  padding: 0.35rem;
  gap: 0.4rem;
}

.qty-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--spar-green-dark);
  cursor: pointer;
}

.product-quantity-input {
  width: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
}

.page-intro {
  margin-bottom: 1rem;
}

.page-intro h1 {
  margin: 0 0 0.35rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--neutral-600);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.favorites-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.favorites-filter__toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  font-weight: 600;
}

.favorites-filter__toggle input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--spar-red);
}

.favorites-filter select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
  font-weight: 400;
}

.result-summary {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--neutral-600);
}

.cart-table {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.cart-table-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
}

.cart-table-head {
  background: var(--neutral-100);
  font-weight: 700;
}

.cart-table-footer {
  background: var(--neutral-100);
  font-weight: 600;
}

.cart-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-product__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-product__header .favorite-toggle--inline {
  position: static;
  width: 2rem;
  height: 2rem;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  box-shadow: none;
}

.cart-product__header .favorite-toggle--inline:hover {
  background: var(--neutral-200);
}

.cart-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--spar-green-dark);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cart-qty-btn:hover {
  background: var(--spar-green);
  border-color: var(--spar-green);
  color: #fff;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cart-line-total {
  font-weight: 600;
}

.cart-remove {
  border: none;
  background: none;
  padding: 0.2rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--neutral-600);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cart-remove:hover {
  background: rgba(228, 35, 19, 0.08);
  color: var(--spar-red);
}

.cart-remove svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
}

.checkout-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.checkout-steps__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(10, 122, 61, 0.08);
  color: var(--spar-green-dark);
  font-weight: 600;
}

.checkout-steps__item--current {
  background: var(--spar-green);
  color: #fff;
}

.checkout-steps__item--complete {
  background: rgba(10, 122, 61, 0.2);
}

.checkout-steps__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

.mini-cart {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.mini-cart__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.mini-cart__total,
.mini-cart__qty {
  font-weight: 600;
}

.mini-cart__total {
  text-align: right;
}

.mini-cart__total strong {
  font-size: 1.05rem;
}

.order-list,
.address-list,
.contact-list,
.opening-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-list__item,
.address-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.order-list__item:last-child,
.address-list__item:last-child {
  border-bottom: none;
}

.order-list__meta,
.order-list__status {
  margin: 0.25rem 0 0;
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.order-list__actions {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.order-list__total {
  font-weight: 600;
}

.address-list__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 122, 61, 0.12);
  color: var(--spar-green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.review-panel {
  background: var(--neutral-100);
  padding: 1rem;
  border-radius: 14px;
}

.review-confirm {
  display: grid;
  gap: 1.25rem;
}

.order-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.order-detail__section {
  background: var(--neutral-100);
  padding: 1rem;
  border-radius: 14px;
}

.management-table {
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--neutral-200);
}

.management-table--staff .management-table__row {
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 0.7fr 0.8fr 1.2fr 1fr;
  align-items: flex-start;
}

.management-table__section-row {
  padding: 0.75rem 1rem;
  background: var(--neutral-100);
}

.management-table__cell--section {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--neutral-700);
}

.management-table--hours .management-table__row {
  grid-template-columns: 1fr 1.1fr 1.1fr;
}

.management-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.management-filter .form-field {
  flex: 1 1 220px;
  min-width: 200px;
}

.management-export-group {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.management-export {
  display: inline-flex;
}

.management-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.management-actions form {
  display: inline-flex;
}

.hours-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--neutral-700);
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--neutral-300);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.legend-swatch--modified {
  background: #ffe28a;
}

.legend-swatch--late {
  background: #ffd0a6;
}

.legend-swatch--late-modified {
  background: #ffb3b8;
}

.legend-swatch--sick {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
}

.week-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.week-nav__summary {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  min-width: 180px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.week-nav__label {
  font-weight: 700;
  color: var(--neutral-800);
}

.week-nav__range {
  font-size: 0.95rem;
  color: var(--neutral-600);
}

.week-nav__button {
  white-space: nowrap;
}

.week-nav--compact {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.week-nav--centered {
  justify-content: center;
}

.callout {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.callout--with-action {
  align-items: center;
}

.callout--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--neutral-800);
}

.callout__kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--neutral-600);
  margin: 0 0 0.25rem;
}

.callout__meta {
  color: var(--neutral-600);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.staff-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.staff-card {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.staff-card.is-inactive {
  opacity: 0.82;
  background: var(--neutral-50);
}

.staff-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.staff-card__name {
  font-weight: 700;
}

.staff-card__status {
  color: var(--neutral-500);
  font-size: 0.95rem;
}

.staff-card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem 1.25rem;
}

.staff-card__details dt {
  font-weight: 600;
  color: var(--neutral-700);
}

.staff-card__details dd {
  margin: 0;
  color: var(--neutral-800);
}

.staff-card__edit {
  margin-top: 0.75rem;
}

.staff-card__edit summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}

.staff-card__edit .stacked-form {
  margin-top: 0.25rem;
}

.management-table--hours-tracking {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.management-table--hours-tracking th,
.management-table--hours-tracking td {
  border: 1px solid var(--neutral-200);
  padding: 0.15rem;
  text-align: center;
  vertical-align: middle;
}

.management-table--period th:first-child,
.management-table--period td:first-child {
  text-align: left;
}

.table-wrapper {
  width: 100%;
}

.table-wrapper--centered {
  display: flex;
  justify-content: center;
}

.table-wrapper--centered table {
  width: auto;
  min-width: 70%;
}

.management-table--hours-tracking th {
  background: var(--neutral-100);
  font-weight: 700;
  color: var(--neutral-800);
}

.hours-row.is-inactive {
  opacity: 0.7;
}

.hours-staff {
  text-align: left;
  min-width: 160px;
}

.hours-staff__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.hours-staff__name {
  font-weight: 600;
}

.hours-staff__phone {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--neutral-600);
  white-space: nowrap;
}

.hours-cell {
  min-width: 96px;
  background: #fff;
  position: relative;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hours-cell:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.hours-cell--modified {
  background: #ffe28a;
}

.hours-cell--late {
  background: #ffd0a6;
}

.hours-cell--late-and-modified {
  background: #ffb3b8;
}


.hours-cell.is-sick {
  border: 2px solid var(--danger-600);
  box-shadow: inset 0 0 0 2px #fff;
}

.hours-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.hours-input-wrapper {
  flex: 1;
}

.hours-input {
  width: 100%;
  text-align: center;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
}

.hours-input--sick {
  outline: 2px solid var(--danger-600);
  outline-offset: -2px;
  border: 2px solid var(--danger-600);
  background: #ffe5e5;
  color: var(--danger-900);
}

.hours-sick-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--neutral-700);
  margin: 0;
}

.hours-sick-toggle input {
  accent-color: var(--spar-green);
}

.hours-total {
  font-weight: 700;
}

.management-table--availability {
  width: auto;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  margin: 0 auto;
}

.management-table--availability th,
.management-table--availability td {
  border: 1px solid var(--neutral-200);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
}

.management-table--availability th {
  background: var(--neutral-100);
  font-weight: 700;
  color: var(--neutral-800);
}

.availability-cell {
  background: #fff;
  min-width: 96px;
}

.availability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.availability-pill {
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.availability-pill.has-note {
  border-color: var(--brand-400);
  background: #f8fbff;
}

.availability-pill__button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-weight: 700;
  color: var(--neutral-800);
  cursor: pointer;
}

.availability-pill__button[disabled] {
  cursor: default;
  color: var(--neutral-700);
}

.availability-pill__label {
  display: inline-block;
  margin-bottom: 0.15rem;
}

.availability-meta {
  font-size: 0.82rem;
  color: var(--neutral-600);
}

.availability-note {
  margin-top: 0.3rem;
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
  background: #fff;
  border: 1px dashed var(--brand-300);
}

.availability-pill:not(.is-open) .availability-note {
  display: none;
}

.availability-empty {
  color: var(--neutral-400);
}

.availability-contract {
  color: var(--neutral-600);
  font-weight: 600;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.history-list__item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  background: var(--neutral-50);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.history-list__label {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.history-list__note {
  margin: 0;
  color: var(--neutral-700);
}

.history-list__meta {
  font-size: 0.9rem;
  color: var(--neutral-600);
  white-space: nowrap;
}

.staff-status-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.staff-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.staff-status__name {
  font-weight: 700;
  color: var(--neutral-800);
}

.staff-status__meta {
  font-size: 0.95rem;
  color: var(--neutral-600);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--neutral-300);
  color: var(--neutral-700);
}

.badge--muted {
  background: var(--neutral-100);
}

.management-table__row {
  display: grid;
  grid-template-columns: 0.25fr 1.3fr 0.9fr 0.9fr 0.25fr 0.4fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  align-items: center;
}

.management-table__row.is-inactive {
  background: var(--neutral-50);
}

.category-management-table .management-table__row {
  grid-template-columns: 0.5fr 0.9fr 0.9fr 1.2fr 0.3fr;
}

.category-management-table .management-table__cell:first-child {
  white-space: normal;
}

.management-table__cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-table__cell--wrap {
  white-space: normal;
}

.category-parent-form {
  margin: 0;
}

.category-parent-select {
  width: 100%;
  min-width: 180px;
  padding: 0.4rem 0.5rem;
}

.category-management__status {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.category-management__status.is-success {
  color: var(--spar-green);
}

.category-management__status.is-error {
  color: var(--spar-red);
}

.management-table__cell--actions {
  overflow: visible;
  text-overflow: initial;
  min-width: 140px;
}

.staff-table__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.staff-table__actions form {
  margin: 0;
}

.staff-table__edit summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--neutral-800);
}

.staff-table__edit[open] summary {
  margin-bottom: 0.35rem;
}

.staff-table__edit .stacked-form {
  padding: 0.5rem 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--neutral-200);
}

.management-table__row span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.management-table__icon-column {
  text-align: center;
  font-size: 0.95rem;
}

.management-table__row .management-table__icon-column {
  justify-content: center;
}

.pdf-link {
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
}

.management-table--users .management-table__row {
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr;
}

.management-table--branches .management-table__row {
  grid-template-columns: 1.2fr 1.6fr 0.7fr;
}

.management-table--delivery-areas .management-table__row {
  grid-template-columns: 1.2fr 1.2fr 0.6fr;
  align-items: flex-start;
}

.management-table--delivery-areas .management-table__row span {
  flex-direction: column;
  align-items: stretch;
}

.management-table--delivery-areas input.form-input {
  max-width: 240px;
}

.management-table--exceptions .management-table__row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(170px, 1.4fr) minmax(120px, 0.6fr);
}

.management-table--exceptions .management-table__row span:last-child {
  justify-content: center;
}

.management-table__head {
  background: var(--neutral-100);
  font-weight: 700;
}

.form-actions {
  margin-top: 1rem;
}

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

.status-form select {
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  padding: 0.4rem 0.6rem;
  width: 50%;
  min-width: 120px;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
}

.contact-list strong {
  font-size: 1rem;
}

.contact-list span,
.contact-list a {
  display: block;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-grid__details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
  color: var(--neutral-700);
}

.contact-grid__details span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #fff;
  background: linear-gradient(135deg, var(--spar-green-dark) 0%, #033a1a 100%);
}

.site-footer__disclaimer {
  margin: 0;
  padding: 1rem clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(135deg, var(--spar-green-dark) 0%, #033a1a 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
}

.footer-grid h2,
.footer-grid h3 {
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .site-header__top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem clamp(0.85rem, 3vw, 1.2rem);
  }

  .logo {
    flex: 0 0 auto;
    text-align: left;
  }

  .logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  .main-nav {
    flex: 1 1 auto;
    order: 3;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav__link {
    font-size: 0.95rem;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
  }

  .header-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
    order: 2;
  }

  .search-form {
    width: 100%;
    order: 4;
    max-width: none;
  }

  .filter-actions {
    width: 100%;
    justify-content: stretch;
  }

  .filter-actions .btn-primary,
  .filter-actions .btn-tertiary {
    flex: 1;
    justify-content: center;
  }

  .management-table__row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .cart-table-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cart-table-row.cart-table-head {
    display: none;
  }

  .cart-table-row.cart-table-footer {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .cart-quantity-controls,
  .cart-line-actions {
    justify-content: space-between;
    width: 100%;
  }

  .mini-cart__item {
    grid-template-columns: 1fr auto;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn-primary,
  .form-actions .btn-tertiary {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  .site-header__top {
    align-items: center;
    padding: 0.7rem clamp(0.8rem, 2.6vw, 1.1rem);
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .account-menu {
    left: 0;
    right: auto;
    min-width: min(240px, calc(100vw - 1.8rem));
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .site-header__top {
    gap: 0.45rem;
    padding: 0.75rem 0.9rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .header-actions {
    justify-content: space-between;
  }

  .header-account {
    margin-left: auto;
  }

  .account-menu {
    left: auto;
    right: 0;
    min-width: min(240px, calc(100vw - 1.8rem));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-image img {
    max-width: 60%;
    max-height: 60%;
  }
}

.logbook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.logbook-filters select,
.logbook-filters input[type="search"] {
  min-width: 10rem;
}

.shopping-list-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.shopping-list-modal[hidden] {
  display: none;
}

.shopping-list-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
}

.shopping-list-modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  z-index: 201;
}

.shopping-list-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.shopping-list-modal__close {
  border: none;
  background: var(--neutral-100);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.shopping-list-modal__close:hover {
  background: var(--neutral-200);
  transform: scale(1.02);
}

.shopping-list-modal__intro {
  color: var(--neutral-700);
  margin: 0;
}

.shopping-list-modal__lists {
  display: grid;
  gap: 0.5rem;
}

.shopping-list-modal__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}

.shopping-list-modal__option label {
  flex: 1;
  font-weight: 600;
}

.shopping-list-modal__option small {
  color: var(--neutral-600);
}

.shopping-list-modal__manage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--spar-green);
  font-weight: 600;
}

.shopping-list-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.shopping-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.shopping-list-card {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: 0.5rem;
}

.shopping-list-card__form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.shopping-list-card__meta {
  color: var(--neutral-600);
  margin: 0.5rem 0;
}

.shopping-list-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shopping-list-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-weight: 600;
}

.shopping-list-card__delete {
  display: flex;
  justify-content: flex-end;
}

.shopping-list-card__helper {
  color: var(--neutral-600);
  margin: 0;
}

/* Shopping list detail table */
.shopping-list-table {
  display: grid;
  grid-template-columns: 1fr auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.shopping-list-table__row {
  display: contents;
}

.shopping-list-table__row--head .shopping-list-table__cell {
  background: #f5f7fb;
  font-weight: 700;
  color: #111827;
}

.shopping-list-table__cell {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-list-table__row:last-of-type .shopping-list-table__cell {
  border-bottom: none;
}

.shopping-list-table__cell--actions {
  text-align: right;
  width: 120px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-size: 18px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
  outline: none;
}
