:root {
  --ink: #13213c;
  --ink-soft: #46546b;
  --blue: #145da0;
  --blue-dark: #0d3f73;
  --red: #e33b3b;
  --green: #147a4b;
  --yellow: #f3c64d;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --line: #dfe4ea;
  --shadow: 0 14px 36px rgba(19, 33, 60, 0.12);
  --dock-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom) + 20px);
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(20, 93, 160, 0.3);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 228, 234, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.intro-inner,
.trust-row,
.toolbar-inner,
.gift-band,
.product-section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  color: white;
  background: var(--red);
  font-size: 1.2rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  margin-top: 3px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.utility-button,
.secondary-button,
.primary-button,
.whatsapp-button,
.link-button,
.close-button {
  border: 0;
  cursor: pointer;
}

.utility-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.intro-band {
  color: white;
  background: var(--ink);
}

.intro-inner {
  min-height: 198px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  align-items: center;
  gap: 42px;
  padding-block: 30px 24px;
}

.proposal-label,
.section-label {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 720px;
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.intro-copy p {
  max-width: 620px;
  margin: 0;
  color: #d6deeb;
  font-size: 1rem;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #d6deeb;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.steps span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto 7px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.75rem;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  overflow-x: auto;
  color: #d6deeb;
  scrollbar-width: none;
}

.trust-row::-webkit-scrollbar {
  display: none;
}

.trust-row span {
  position: relative;
  flex: 0 0 auto;
  padding-left: 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--yellow);
}

.catalog-toolbar {
  position: sticky;
  top: 66px;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(19, 33, 60, 0.06);
  backdrop-filter: blur(12px);
}

.toolbar-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(190px, 0.55fr) minmax(420px, 1.65fr);
  gap: 14px 18px;
  padding-block: 16px 12px;
}

.search-filter-row {
  display: contents;
}

.mobile-filter-button {
  display: none;
}

.search-field {
  display: grid;
  grid-template-columns: 20px 1fr 32px;
  align-items: center;
  min-height: 48px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.search-field:focus-within {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.1);
}

.search-symbol {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
}

.search-symbol::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  background: var(--ink-soft);
}

.search-field input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.clear-search,
.close-button {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
}

.clear-search {
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}

.filter-section {
  min-width: 0;
}

.filter-heading {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented,
.size-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar,
.size-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.size-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-chip {
  padding: 6px 12px;
}

.size-chip {
  min-width: 36px;
  padding: 6px 9px;
}

.filter-chip[aria-pressed="true"],
.size-chip[aria-pressed="true"] {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.mobile-filter-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
}

.results-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.results-row strong {
  color: var(--ink);
}

.link-button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
}

.gift-band {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  margin-block: 22px;
  padding: 18px 22px;
  border-left: 5px solid var(--red);
  color: white;
  background: var(--blue-dark);
}

.gift-band h2,
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.gift-thumbs {
  display: flex;
  align-items: center;
}

.gift-thumbs img {
  width: 54px;
  height: 54px;
  margin-left: -8px;
  border: 3px solid var(--blue-dark);
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

.gift-thumbs img:first-child {
  margin-left: 0;
}

.secondary-button,
.primary-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.primary-button {
  color: white;
  background: var(--blue);
}

.primary-button:disabled,
.whatsapp-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
}

.whatsapp-button {
  color: white;
  background: var(--green);
}

.product-section {
  margin-block: 24px 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-grid.is-filtering {
  opacity: 0.45;
  transform: translateY(4px);
  pointer-events: none;
}

.product-grid.is-loading {
  min-height: 420px;
}

.skeleton {
  aspect-ratio: 0.74;
  border-radius: 8px;
  background: linear-gradient(100deg, #e6eaf0 30%, #f8f9fb 48%, #e6eaf0 66%);
  background-size: 240% 100%;
  animation: skeleton 1.2s infinite linear;
}

@keyframes skeleton {
  to {
    background-position-x: -240%;
  }
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(19, 33, 60, 0.07);
  animation: card-in 260ms ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef1f4;
  cursor: pointer;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eef1f4;
}

.type-badge,
.selected-badge {
  position: absolute;
  top: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.type-badge {
  left: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.selected-badge {
  right: 10px;
  color: white;
  background: var(--green);
}

.product-copy {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-copy h3 {
  min-height: 36px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.size-line {
  min-height: 30px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.35;
}

.choose-button {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.choose-button.is-selected {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.empty-state,
.order-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 54px 20px;
  border: 1px dashed #b9c1cc;
  color: var(--ink-soft);
  background: white;
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.order-dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(620px, calc(100% - 24px));
  transform: translateX(-50%);
}

.order-dock > button {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 36px rgba(19, 33, 60, 0.3);
  cursor: pointer;
  text-align: left;
}

.order-count {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.order-dock strong,
.order-dock small {
  display: block;
}

.order-dock small {
  margin-top: 2px;
  color: #c9d2df;
}

.dock-action {
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
}

.sheet {
  width: min(760px, calc(100% - 24px));
  max-height: min(86vh, 780px);
  margin: auto auto 0;
  padding: 18px;
  overflow: auto;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--ink);
  background: white;
  box-shadow: 0 -24px 60px rgba(19, 33, 60, 0.28);
}

.sheet::backdrop {
  background: rgba(10, 18, 33, 0.62);
  backdrop-filter: blur(3px);
}

.compact-sheet {
  width: min(540px, calc(100% - 24px));
}

.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sheet-head h2 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.45rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.product-detail > img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 6px;
  background: #eef1f4;
}

.product-detail-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-detail-copy > p:first-child {
  margin: 0 0 10px;
  font-weight: 900;
}

.dialog-sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dialog-size {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.dialog-size[aria-pressed="true"] {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.selection-help {
  min-height: 38px;
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.product-detail-copy .primary-button {
  width: 100%;
  margin-top: auto;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-row img {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef1f4;
}

.order-row h3 {
  margin: 0 0 7px;
  font-size: 0.9rem;
}

.order-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-control label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.order-control select {
  min-height: 34px;
  padding: 4px 28px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-weight: 900;
}

.remove-order {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  background: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.order-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  margin: 16px -18px -18px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}

.sheet-helper {
  margin: -4px 0 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.mobile-filter-group {
  display: grid;
  gap: 9px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.mobile-filter-label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-segmented {
  flex-wrap: wrap;
  overflow: visible;
}

.mobile-size-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.mobile-size-grid .size-chip {
  width: 100%;
  min-width: 0;
}

.filter-sheet-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
  margin: 8px -18px -18px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}

.filter-sheet-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.size-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.size-table span {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.size-table span:nth-child(odd) {
  font-weight: 900;
}

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

.gift-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.gift-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef1f4;
}

.gift-item strong {
  display: block;
  padding: 9px;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-height) + env(safe-area-inset-bottom) + 16px);
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 960px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .toolbar-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .search-field,
  .results-row {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  :root {
    --dock-height: 80px;
  }

  .topbar-inner,
  .intro-inner,
  .trust-row,
  .toolbar-inner,
  .gift-band,
  .product-section {
    width: min(100% - 24px, 1180px);
  }

  .topbar-inner {
    min-height: 60px;
  }

  .catalog-toolbar {
    top: 60px;
  }

  .utility-button {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 0.74rem;
  }

  .intro-inner {
    min-height: 0;
    gap: 14px;
    padding-block: 17px 13px;
  }

  .intro-copy h1 {
    margin-block: 4px 6px;
    font-size: 1.8rem;
  }

  .intro-copy p {
    font-size: 0.9rem;
  }

  .steps {
    gap: 6px;
  }

  .steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  .steps span {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 22px;
  }

  .trust-row {
    min-height: 40px;
    gap: 16px;
  }

  .toolbar-inner {
    display: block;
    padding-block: 8px 7px;
  }

  .search-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-field {
    grid-column: auto;
    min-height: 46px;
  }

  .toolbar-inner > .filter-section {
    display: none;
  }

  .mobile-filter-button {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 102px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: white;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .mobile-filter-button.has-filters {
    border-color: var(--blue);
    color: var(--blue);
    background: #f1f7fc;
  }

  .filter-symbol {
    position: relative;
    width: 16px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .filter-symbol::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 3px;
    border-top: 2px solid currentColor;
  }

  .results-row {
    min-height: 20px;
    margin-top: 5px;
    gap: 10px;
    white-space: nowrap;
  }

  .results-row #activeFilterLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }

  .gift-band {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    margin-block: 14px;
    padding: 10px;
  }

  .gift-band > div:first-child {
    grid-column: auto;
  }

  .gift-band h2 {
    font-size: 0.88rem;
  }

  .gift-thumbs img {
    width: 34px;
    height: 34px;
  }

  .gift-thumbs img:nth-child(n + 3) {
    display: none;
  }

  .gift-band .secondary-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .product-section {
    margin-top: 18px;
  }

  .section-heading h2 {
    font-size: 1.12rem;
  }

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

  .product-copy {
    gap: 7px;
    padding: 9px;
  }

  .product-copy h3 {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .size-line {
    min-height: 38px;
    font-size: 0.7rem;
  }

  .choose-button {
    font-size: 0.76rem;
  }

  .type-badge,
  .selected-badge {
    top: 7px;
    min-height: 23px;
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .type-badge {
    left: 7px;
  }

  .selected-badge {
    right: 7px;
  }

  .order-dock {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
  }

  .order-dock > button {
    min-height: 62px;
  }

  .sheet {
    width: 100%;
    max-height: 90vh;
    padding: 14px;
    border-radius: 8px 8px 0 0;
  }

  .filter-sheet {
    max-height: min(82vh, 680px);
  }

  .filter-sheet-head {
    margin-bottom: 8px;
  }

  .filter-sheet-actions {
    bottom: -14px;
    margin: 8px -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

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

  .product-detail > img {
    max-height: 43vh;
  }

  .dialog-sizes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dialog-size {
    min-height: 38px;
  }

  .order-row {
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    gap: 9px;
  }

  .order-row img {
    width: 58px;
    height: 58px;
  }

  .order-actions {
    bottom: -14px;
    margin: 14px -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

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

@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;
  }
}
