:root {
  color-scheme: dark;
  --bg: #071522;
  --panel: #102738;
  --panel-alt: #0a1c2a;
  --primary: #e3a83c;
  --primary-soft: #ffd16b;
  --text: #f5f0e5;
  --muted: #c4d1d6;
  --muted-dark: #93aab3;
  --success: #45d0bd;
  --danger: #ed8274;
  --teal: #24b7ae;
  --shadow: rgba(0, 0, 0, 0.38);
}

html {
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
  cursor: url("./curseur-normal.png") 13 8, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  transform: translateY(-200%);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content {
  scroll-margin-top: 9rem;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(ellipse at 50% -25%, rgba(32, 132, 140, 0.2), transparent 55%),
    linear-gradient(180deg, #071522 0%, #0b1c2a 100%);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  z-index: 20;
  position: sticky;
  top: 0;
  isolation: isolate;
  background: rgba(7, 21, 34, 0.97);
  border-bottom: 1px solid rgba(227, 168, 60, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.nav-panel {
  display: grid;
  grid-template-columns: 88px minmax(0, 360px) max-content;
  align-items: center;
  gap: 0.75rem;
  justify-content: end;
  flex: 1;
  min-width: 0;
}

.site-language-control {
  position: relative;
  min-width: 0;
}

.site-language-control,
.site-language-control * {
  cursor: url("./curseur-normal.png") 13 8, auto;
}

.site-language-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid rgba(227, 168, 60, 0.45);
  border-radius: 999px;
  background: var(--panel);
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 0.8rem;
}

.site-language-button:hover,
.site-language-button[aria-expanded="true"] {
  border-color: var(--primary-soft);
  background: #18364a;
}

.site-language-button:disabled {
  opacity: 0.6;
}

.language-flag {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.language-flag[hidden],
.site-language-menu[hidden] {
  display: none;
}

.language-chevron {
  font-size: 0.75rem;
  line-height: 1;
}

.site-language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  display: grid;
  gap: 0.25rem;
  width: 184px;
  padding: 0.4rem;
  border: 1px solid rgba(227, 168, 60, 0.45);
  border-radius: 14px;
  background: #102738;
  box-shadow: 0 12px 30px var(--shadow);
}

.site-language-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.85rem;
}

.site-language-menu button:hover,
.site-language-menu button[aria-checked="true"] {
  border-color: rgba(227, 168, 60, 0.35);
  background: rgba(227, 168, 60, 0.12);
}

.language-option-code {
  margin-left: auto;
  color: var(--primary-soft);
  font-size: 0.75rem;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(148, 170, 179, 0.08);
  border: 1px solid rgba(227, 168, 60, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.8rem 0.5rem 0.7rem;
  min-width: 0;
  flex: 1;
  max-width: 360px;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  width: 100%;
  min-width: 0;
  font: inherit;
}

.search-box:focus-within {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(227, 168, 60, 0.18);
}

.search-box input::placeholder {
  color: var(--muted-dark);
}

.cart-button,
.add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, #d89c31, #f3c35f);
  color: #14202a;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cart-button:hover,
.add-to-cart-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #102738;
  color: var(--primary-soft);
  font-size: 0.75rem;
}

.tag-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 194px;
  align-items: end;
  gap: 0.75rem;
  padding: 0.75rem 0 0;
}

.tag-filter {
  display: grid;
  gap: 0.35rem;
  color: var(--muted-dark);
  font-size: 0.8rem;
  min-width: 0;
}

.tag-filter > span {
  white-space: nowrap;
}

.tag-filter select,
.filter-trigger {
  min-height: 2.75rem;
  min-width: 0;
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.tag-filter select[hidden],
.filter-popup[hidden],
.filter-scrollbar[hidden] {
  display: none;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 0.8rem;
  text-align: left;
}

.filter-trigger-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-trigger-arrow {
  flex: 0 0 auto;
  color: var(--muted);
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"] {
  border-color: var(--primary);
}

.filter-popup {
  position: fixed;
  z-index: 40;
  padding: 7px;
  border: 1px solid rgba(227, 168, 60, 0.5);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 12px 32px var(--shadow);
  font-size: 0.85rem;
}

.filter-popup,
.filter-popup *,
.filter-trigger,
.filter-trigger * {
  cursor: url("./curseur-normal.png") 13 8, auto;
}

.filter-options {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-right: 16px;
  touch-action: pan-y;
}

.filter-options::-webkit-scrollbar {
  display: none;
}

.filter-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.filter-option[aria-selected="true"] {
  color: var(--primary-soft);
  background: rgba(227, 168, 60, 0.1);
}

.filter-option.is-active {
  background: rgba(227, 168, 60, 0.2);
  box-shadow: inset 0 0 0 1px rgba(227, 168, 60, 0.4);
}

.filter-scrollbar {
  position: absolute;
  top: 8px;
  right: 5px;
  bottom: 8px;
  width: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  touch-action: none;
  user-select: none;
}

.filter-scrollbar-thumb {
  width: 8px;
  margin: 0 2px;
  border-radius: 8px;
  background: var(--muted-dark);
}

.filter-scrollbar:hover .filter-scrollbar-thumb {
  background: var(--primary-soft);
}

.reset-filters-button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(227, 168, 60, 0.38);
  border-radius: 999px;
  background: rgba(227, 168, 60, 0.08);
  color: var(--primary-soft);
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#reset-filters {
  width: 194px;
  white-space: nowrap;
  font-size: 0.85rem;
}

.reset-filter-icon {
  display: none;
}

.reset-filters-button:hover {
  border-color: var(--primary);
  background: rgba(227, 168, 60, 0.16);
}

.catalog-status {
  min-height: 1.25em;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  grid-auto-rows: 1fr;
  gap: 1.2rem;
  padding: 1rem 0 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  min-width: 0;
  cursor: url("./curseur-loupe.png") 13 8, zoom-in;
  background: rgba(13, 34, 49, 0.96);
  border: 1px solid rgba(69, 208, 189, 0.13);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card * {
  cursor: url("./curseur-loupe.png") 13 8, zoom-in;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 168, 60, 0.42);
  box-shadow: 0 14px 30px var(--shadow);
}

.product-card:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.product-visual {
  position: relative;
  flex: 0 0 170px;
  background: linear-gradient(135deg, rgba(227, 168, 60, 0.16), rgba(36, 183, 174, 0.2));
}

.product-photo,
.product-photo.fallback {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(227, 168, 60, 0.16), rgba(36, 183, 174, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-soft);
}

.feature-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(245, 158, 11, 0.95);
  color: #14202a;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-body > .badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  min-height: 2.5em;
}

.product-name {
  margin: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: bold;
}

.badge.active {
  background: rgba(69, 208, 189, 0.15);
  color: var(--success);
}

.badge.inactive {
  background: rgba(237, 130, 116, 0.15);
  color: var(--danger);
}

.meta {
  color: var(--muted-dark);
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.product-tags {
  display: flex;
  flex: 0 0 3.6rem;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.4rem;
  margin-top: 0.7rem;
  overflow: hidden;
}

.tag-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(69, 208, 189, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: rgba(36, 183, 174, 0.1);
  color: #78e1d4;
  font: inherit;
  font-size: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.product-dialog button.tag-pill:hover {
  background: rgba(36, 183, 174, 0.22);
  border-color: var(--teal);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: auto 0 0.3rem;
}

.price-label {
  color: var(--muted-dark);
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-soft);
}

.stock {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.add-to-cart-button {
  width: 100%;
  margin-top: 0.9rem;
  flex: 0 0 auto;
}

.product-dialog,
.cart-dialog {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: transparent;
  border: 0;
  overscroll-behavior: contain;
}

.product-dialog {
  width: min(980px, calc(100vw - 2rem));
  height: min(650px, calc(100vh - 2rem));
  height: min(650px, calc(100dvh - 2rem));
  overflow: visible;
}

#product-dialog-content {
  height: 100%;
}

.product-dialog[open] .product-detail {
  animation: product-dialog-enter 220ms ease-out both;
}

.product-dialog.is-closing .product-detail {
  animation: product-dialog-exit 220ms ease-in both;
  pointer-events: none;
}

.product-dialog::backdrop,
.cart-dialog::backdrop {
  background: rgba(1, 8, 14, 0.82);
  backdrop-filter: blur(7px);
}

@keyframes product-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes product-dialog-exit {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d2231;
  border: 1px solid rgba(227, 168, 60, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.detail-image-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(35, 83, 91, 0.65), #071522 75%);
}

.detail-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.detail-image-button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.detail-image-button.zoomed img {
  transform: scale(1.65);
}

.detail-image-fallback {
  font-size: 6rem;
}

.detail-info {
  align-self: center;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 2.25rem;
}

.detail-info h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.detail-description {
  margin: 1.25rem 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-stock,
.detail-price-label {
  color: var(--muted-dark);
}

.detail-price-label {
  margin: 1.2rem 0 0.2rem;
}

.detail-price {
  display: block;
  color: var(--primary-soft);
  font-size: 2rem;
}

.detail-info .add-to-cart-button {
  margin-top: 1.5rem;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(7, 21, 34, 0.9);
  color: var(--text);
  font-size: 1.6rem;
}

.cart-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  max-height: min(760px, calc(100dvh - 2rem));
  padding: 1.5rem;
  overflow: auto;
  background: #0d2231;
  border: 1px solid rgba(227, 168, 60, 0.35);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.confirmation-dialog {
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2rem;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0, rgba(227, 168, 60, 0.12), transparent 58%),
    #0d2231;
  border: 1px solid rgba(227, 168, 60, 0.42);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.confirmation-dialog::backdrop {
  background: rgba(1, 8, 14, 0.82);
  backdrop-filter: blur(7px);
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(237, 130, 116, 0.45);
  border-radius: 50%;
  background: rgba(237, 130, 116, 0.1);
  color: var(--danger);
  font-size: 1.6rem;
  font-weight: 700;
}

.confirmation-dialog h2 {
  margin: 0;
  color: var(--primary-soft);
}

.confirmation-dialog p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.confirmation-actions button {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
}

.confirmation-cancel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(148, 170, 179, 0.08);
  color: var(--text);
}

.confirmation-accept {
  border: 1px solid rgba(237, 130, 116, 0.6);
  background: rgba(237, 130, 116, 0.16);
  color: #ffb0a4;
}

.confirmation-actions button:hover {
  filter: brightness(1.15);
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2.7rem;
}

.cart-heading h2 {
  margin: 0;
}

.cart-heading .dialog-close {
  top: 1rem;
  right: 1rem;
}

.cart-empty {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(69, 208, 189, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.cart-item > img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-alt);
}

.cart-item-info {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.cart-item-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.cart-item-info > span,
.cart-note {
  color: var(--muted-dark);
  font-size: 0.85rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quantity-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(227, 168, 60, 0.35);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.quantity-controls .remove-cart-item {
  width: auto;
  padding: 0 0.55rem;
  border-color: rgba(237, 130, 116, 0.35);
  color: var(--danger);
}

.cart-item-total {
  color: var(--primary-soft);
  white-space: nowrap;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-total strong {
  color: var(--primary-soft);
}

.clear-cart-button {
  display: block;
  margin-left: auto;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(237, 130, 116, 0.45);
  border-radius: 999px;
  background: rgba(237, 130, 116, 0.1);
  color: var(--danger);
  font: inherit;
}

.clear-cart-button:hover {
  background: rgba(237, 130, 116, 0.18);
}

.cart-note {
  line-height: 1.5;
}

.order-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(69, 208, 189, 0.18);
  border-radius: 16px;
  background: rgba(7, 21, 34, 0.55);
}

.order-form h3,
.order-form .cart-note {
  margin: 0;
}

.order-form h3 {
  color: var(--primary-soft);
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.order-form-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.order-form-grid .order-form-wide {
  grid-column: 1 / -1;
}

.order-form-grid input,
.order-form-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(227, 168, 60, 0.25);
  border-radius: 10px;
  outline: none;
  background: rgba(148, 170, 179, 0.08);
  color: var(--text);
  font: inherit;
}

.order-form-grid input:focus,
.order-form-grid textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(36, 183, 174, 0.14);
}

.order-form-grid textarea {
  resize: vertical;
}

.order-form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.order-success {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(69, 208, 189, 0.35);
  border-radius: 12px;
  background: rgba(69, 208, 189, 0.1);
  color: var(--success);
  line-height: 1.5;
}

.order-submit-button {
  width: 100%;
  margin-top: 0;
}

.order-submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 1.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.1rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(69, 208, 189, 0.4);
  border-radius: 999px;
  background: #102738;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 700px) {
  .nav {
    gap: 0.75rem;
  }

  .nav-panel {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.5rem;
  }

  .nav-panel > .cart-button {
    grid-column: 2;
    justify-self: end;
  }

  .language-chevron {
    display: none;
  }

  .search-box {
    min-width: 0;
    max-width: none;
  }

  .tag-filters {
    grid-template-columns: repeat(4, minmax(155px, 1fr)) 44px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--muted-dark) var(--bg);
  }

  .tag-filter select {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  #reset-filters {
    position: sticky;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--panel);
    box-shadow: -10px 0 12px var(--bg);
  }

  .reset-filter-label {
    display: none;
  }

  .reset-filter-icon {
    display: inline;
    font-size: 1.5rem;
  }

  .brand img {
    width: 82px;
    height: 82px;
  }

  .cart-button {
    padding: 0.6rem 0.75rem;
  }

  .product-dialog {
    height: min(760px, calc(100vh - 1rem));
    height: min(760px, calc(100dvh - 1rem));
  }

  .product-detail {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 40vh) auto;
    grid-template-rows: minmax(140px, 40dvh) auto;
    overflow: auto;
  }

  .detail-image-frame {
    padding: 0.75rem;
  }

  .detail-info {
    align-self: start;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.25rem 1.5rem;
  }

  .detail-info h2 {
    margin: 0.45rem 0;
  }

  .detail-description {
    margin: 0.7rem 0;
  }

  .detail-price {
    font-size: 1.6rem;
  }

  .cart-dialog {
    padding: 1rem;
  }

  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cart-item > img {
    width: 56px;
    height: 56px;
  }

  .cart-item-total {
    grid-column: 2;
  }

  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .order-form-grid .order-form-wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 68px;
    height: 68px;
  }

  .search-box {
    padding: 0.45rem 0.6rem;
  }

  .cart-button {
    font-size: 0.85rem;
    margin-left: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  dialog::backdrop {
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
