:root {
  color-scheme: light;
  --app-bg: #edf2f6;
  --surface: #ffffff;
  --text: #161a1f;
  --muted: #6f7b88;
  --line: #e3e9ef;
  --blue: #0a2a5a;
  --blue-deep: #061d3a;
  --navy: #0a2a5a;
  --gold: #d7a54f;
  --green: #25d366;
  --red: #e2263d;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #dfe9f2 0, var(--app-bg) 240px),
    var(--app-bg);
  color: var(--text);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, #e6f0f8 0, var(--app-bg) 260px),
    var(--app-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(6, 29, 58, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(300px, calc(100vw - 32px));
  object-fit: contain;
}

.brand h1,
.page-title h2,
.about-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lang-selector {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(6, 29, 58, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(6, 29, 58, 0.06);
}

.lang-current {
  overflow: hidden;
  max-width: 88px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-arrow {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.lang-button.is-open .lang-arrow {
  transform: translateY(2px) rotate(225deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 152px;
  padding: 6px;
  border: 1px solid rgba(6, 29, 58, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(6, 29, 58, 0.16);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.lang-option:hover,
.lang-option.is-selected {
  background: #eaf3fb;
  color: var(--blue-deep);
}

.lang-check {
  color: var(--blue);
  font-size: 13px;
}

.page-stack {
  min-height: calc(100vh - 152px);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.banner-card {
  position: relative;
  margin: 12px 14px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 29, 58, 0.16);
}

.banner-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.banner-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 6px;
  padding: 30px 18px 18px;
  background: linear-gradient(180deg, rgba(6, 29, 58, 0) 0%, rgba(6, 29, 58, 0.88) 100%);
  color: #fff;
}

.banner-copy span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.banner-logo {
  display: block;
  width: min(158px, 45vw);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.banner-copy strong {
  max-width: 17ch;
  font-size: 30px;
  line-height: 1.08;
}

.home-whatsapp {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 60px;
  margin: 0 14px 12px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(6, 29, 58, 0.08);
  background: linear-gradient(135deg, #0b2342 0%, #12355c 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(6, 29, 58, 0.16);
  font-size: 16px;
  font-weight: 900;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 14px 8px;
  padding: 0 2px;
}

.home-section-head strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.whatsapp-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  color: var(--green);
}

.whatsapp-mark svg {
  width: 20px;
  height: 20px;
}

.home-whatsapp-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-whatsapp-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.96;
}

.whatsapp-inline-logo {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
}

.whatsapp-inline-logo svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.home-whatsapp-number {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: 0;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 14px 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-category {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  min-height: 128px;
  padding: 12px 8px 10px;
  border: 1px solid rgba(6, 29, 58, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.045);
}

.home-category-image {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f8fb;
  box-shadow: inset 0 0 0 1px rgba(8, 119, 201, 0.08);
}

.home-category img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-category span:last-child {
  width: 100%;
  overflow: hidden;
  min-height: 34px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
}

.home-tiles {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 18px;
}

.feature-tile {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  color: #111827;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  text-align: left;
}

.feature-tile img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.search-wrap {
  position: sticky;
  top: 86px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
}

.home-search-wrap {
  position: relative;
  top: auto;
  z-index: 1;
  margin: 0 14px 12px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
}

.home-search-wrap input {
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.search-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(6, 29, 58, 0.12);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px 0 44px;
  color: var(--text);
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.search-icon {
  position: absolute;
  left: 28px;
  color: #a3abb4;
  font-size: 24px;
  line-height: 1;
}

.catalog-status {
  padding: 2px 16px 8px;
  background: #fff;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 14px 12px;
  background: #fff;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.subcat-rail::-webkit-scrollbar,
.product-list::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: grid;
  flex: 0 0 92px;
  min-height: 58px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #f2f7fb;
  color: #5b6570;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px;
  text-align: center;
}

.category-tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 42, 90, 0.18);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 114px 1fr;
  min-height: calc(100vh - 230px);
  background: #fff;
}

.subcat-rail {
  position: sticky;
  top: 214px;
  align-self: start;
  height: calc(100vh - 294px);
  overflow-y: auto;
  background: #f3f6f9;
}

.subcat-item {
  display: block;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #3f454d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.22;
  padding: 12px 10px 12px 12px;
  text-align: left;
}

.subcat-item.is-active {
  border-left-color: var(--blue);
  background: #fff;
  color: #111827;
}

.catalog-content {
  min-width: 0;
  background: #fff;
}

.catalog-sortbar {
  display: none;
}

.sort-tab {
  border: 0;
  background: transparent;
  color: #8b929c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
}

.sort-tab.is-active {
  color: #111827;
}

.catalog-sortbar span {
  margin-left: auto;
  color: #9aa1aa;
  font-size: 12px;
  white-space: nowrap;
}

.product-list {
  display: grid;
  padding-bottom: 18px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 52px;
  gap: 12px;
  min-height: 156px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.product-media {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  min-width: 0;
}

.product-name {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.product-name span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #8b929c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.product-note {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #9aa1aa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.price {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.add-button {
  align-self: end;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(10, 42, 90, 0.2);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.add-button strong {
  position: absolute;
  right: 2px;
  bottom: 56px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
}

.page-title {
  padding: 18px 16px 8px;
  background: #fff;
}

.page-title h2 {
  font-size: 28px;
}

.cart-page {
  background: #fff;
}

.cart-page.is-active {
  display: flex;
  height: calc(100vh - 144px - env(safe-area-inset-bottom));
  min-height: 0;
  flex-direction: column;
}

.cart-items {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 56px 22px;
  text-align: center;
}

.empty-state strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.empty-state p {
  max-width: 24ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 15px;
  min-width: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.cart-item-body {
  min-width: 0;
}

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

.cart-item h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.cart-item h3 span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.remove-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff3f4;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.qty-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eaf3fb;
  color: var(--blue);
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
}

.qty-display {
  min-width: 20px;
  color: #111827;
  font-size: 14px;
  text-align: center;
}

.cart-summary {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  max-height: min(64vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -8px 20px rgba(17, 24, 39, 0.04);
}

.cart-summary[hidden] {
  display: none;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.summary-line strong {
  color: var(--red);
  font-size: 25px;
}

.price-disclaimer {
  margin: -2px 0 12px;
  color: #7c8796;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.quote-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid #d9e5ef;
  border-radius: 14px;
  background: #f8fbfe;
}

.quote-form-head {
  display: grid;
  gap: 2px;
}

.quote-form-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.quote-form-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

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

.quote-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-field span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.quote-field input {
  min-height: 42px;
}

.quote-field textarea {
  min-height: 62px;
  max-height: 110px;
  resize: vertical;
}

.quote-field input:focus,
.quote-field textarea:focus {
  border-color: rgba(10, 42, 90, 0.48);
  outline: 3px solid rgba(10, 42, 90, 0.1);
}

.primary-action,
.secondary-action {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  background: var(--blue);
  color: #fff;
}

.secondary-action {
  background: #eef3f7;
  color: #334155;
}

.full {
  width: 100%;
  margin-top: 8px;
}

.quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.quote-send {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
}

.quote-send-whatsapp {
  background: #0f8f55;
  color: #fff;
}

.quote-send-email {
  background: #eaf1f8;
  color: var(--blue);
}

.quote-send.is-disabled {
  opacity: 0.48;
}

.quote-send:focus-visible {
  outline: 3px solid rgba(10, 42, 90, 0.2);
  outline-offset: 2px;
}

textarea {
  width: 100%;
  min-height: 96px;
  max-height: 150px;
  margin-top: 10px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

#orderOutput:placeholder-shown {
  display: none;
}

.about-page {
  padding: 22px 16px;
}

.about-panel {
  padding: 28px 20px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-logo {
  display: block;
  width: min(360px, 82vw);
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.about-panel h2 {
  font-size: 25px;
}

.about-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.about-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.contact-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.contact-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.contact-link {
  color: var(--blue);
  text-decoration: none;
}

.contact-link:active {
  color: var(--blue-deep);
}

.about-lines span {
  padding: 12px;
  border-radius: 12px;
  background: #f5f8fb;
  color: #334155;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: #fff;
}

.bottom-nav-item {
  position: relative;
  display: grid;
  gap: 2px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav-item:focus-visible,
.home-category:focus-visible,
.category-tab:focus-visible,
.subcat-item:focus-visible,
.add-button:focus-visible,
.qty-button:focus-visible,
.home-whatsapp:focus-visible,
.lang-button:focus-visible,
.lang-option:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 2px solid rgba(0, 119, 200, 0.45);
  outline-offset: 2px;
}

.bottom-nav-item.is-active {
  color: var(--blue);
}

.nav-icon {
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  line-height: 1;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item.is-active .nav-icon {
  background: var(--blue);
  color: #fff;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 22%;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 380px) {
  .topbar {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-logo {
    height: 52px;
    max-width: min(260px, calc(100vw - 24px));
  }

  .brand h1 {
    font-size: 16px;
  }

  .lang-button {
    min-width: 94px;
    padding: 0 10px;
    font-size: 13px;
  }

  .lang-current {
    max-width: 74px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .cart-item-top {
    flex-direction: column;
  }

  .remove-button {
    align-self: flex-start;
  }

  .quote-fields,
  .quote-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 640px) {
  .page-title {
    padding: 12px 16px 6px;
  }

  .page-title h2 {
    font-size: 24px;
  }

  .cart-items {
    min-height: 88px;
  }

  .cart-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px 14px;
  }

  .summary-line,
  .price-disclaimer,
  .quote-form,
  .quote-actions,
  #orderOutput {
    grid-column: 1 / -1;
  }

  .summary-line,
  .price-disclaimer,
  .quote-form,
  .quote-actions,
  .full,
  #orderOutput {
    margin-top: 0;
    margin-bottom: 0;
  }

  .quote-form {
    gap: 8px;
    padding: 10px;
  }

  .quote-field input {
    min-height: 38px;
  }

  .quote-field textarea {
    min-height: 48px;
    max-height: 72px;
  }

  .summary-line {
    font-size: 16px;
  }

  .summary-line strong {
    font-size: 22px;
  }

  .primary-action,
  .secondary-action {
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.15;
  }

  textarea {
    min-height: 54px;
    max-height: 80px;
  }

  .empty-state {
    padding: 24px 18px;
  }
}

@media (min-width: 720px) {
  .app-shell {
    max-width: 760px;
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .bottom-nav {
    right: max(0px, calc((100vw - 760px) / 2));
    left: max(0px, calc((100vw - 760px) / 2));
  }

  .cart-page.is-active {
    height: calc(100vh - 158px - env(safe-area-inset-bottom));
  }

  .cart-items {
    gap: 12px;
    min-height: 160px;
    padding: 10px 18px 0;
  }

  .cart-item {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .cart-item img {
    width: 104px;
    height: 104px;
  }

  .cart-item h3 {
    font-size: 17px;
  }

  .cart-item h3 span {
    font-size: 13px;
  }

  .cart-line {
    font-size: 14px;
  }

  .cart-summary {
    margin: 0 18px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
  }
}
