:root {
  --primary: #ff921a;
  --primary-hover: #f18008;
  --text-main: #20242b;
  --text-muted: #727a87;
  --bg-body: #f5f6f8;
  --bg-card: #fff;
  --radius: 20px;
  --line: #e6e9ed;
  --shadow-soft: 0 8px 28px #20242b05;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-bottom: 100px;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
}
button {
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff921a;
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text-main);
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.65;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--text-muted);
  font-size: 13px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #ad5400;
  padding: 10px 4px;
  font-weight: 600;
}
.primary,
.secondary,
.account-button {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
}
.primary {
  background: var(--primary);
  color: #20242b;
}
.primary:hover {
  background: var(--primary-hover);
}
.secondary,
.account-button {
  background: white;
  border-color: var(--line);
  color: var(--text-main);
}
.secondary:hover {
  background: #fff7ed;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row input {
  min-width: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
  background: white;
  padding: 12px;
}
.shop-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  gap: 20px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
}
.brand strong {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.3px;
  line-height: 1.1;
}
.brand strong span {
  color: var(--primary);
}
.brand small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.language-button {
  border: 0;
  background: #f5f6f8;
  border-radius: 9px;
  padding: 8px;
  font-weight: 700;
}
#cart-count {
  font-size: 12px;
  font-weight: 700;
}
#tab-shop {
  max-width: 1200px;
  margin: auto;
  padding: 24px 0 48px;
}
.search-wrap {
  background: white;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 2px 16px;
  margin-bottom: 24px;
}
.search-wrap input {
  border: 0;
  background: none;
  min-width: 0;
  padding: 14px 0;
  outline-offset: 0;
}
.search-wrap .ui-icon {
  color: #8c929c;
}
.search-wrap button {
  white-space: nowrap;
}
.hero {
  background: #22262e;
  border-radius: 24px;
  min-height: 310px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: white;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 500px;
  right: -150px;
  top: 0;
  transform: rotate(35deg);
  background: #ffffff04;
  pointer-events: none;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hero .eyebrow {
  color: #c7cbd1;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: #ffad4d;
}
.hero p {
  color: #b8bdc6;
  font-size: 14px;
  max-width: 370px;
  margin-bottom: 24px;
}
.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 270px;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.hero-mark img {
  width: 170px;
  filter: drop-shadow(0 16px 24px #0006);
}
.hero-mark > span {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
}
.hero-mark > span span {
  color: var(--primary);
}
.shortcut-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 34px;
}
.shortcut-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 15px 12px;
  border-radius: 14px;
  background: white;
  font-weight: 600;
}
.shortcut-row button > span:first-child {
  font-size: 26px;
  color: #d87708;
  line-height: 24px;
}
.shortcut-row svg {
  color: #d87708;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 18px;
}
.section-heading h1,
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .text-button {
  font-size: 13px;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.category-card {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.3;
}
.category-card:hover {
  border-color: #ffbd70;
  box-shadow: var(--shadow-soft);
}
.category-card img {
  height: 70px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.category-card .category-placeholder {
  font-size: 30px;
  color: #9ca4af;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-open {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: var(--text-main);
}
.product-image {
  height: 160px;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.product-open h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.product-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 10px 0 5px;
}
.product-price {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.product-price small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}
.favorite-button {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: white;
  color: #8b929c;
  font-size: 21px;
  z-index: 1;
}
.favorite-button.selected {
  background: #fff1df;
  color: #e07900;
  border-color: #ffdfb7;
}
.card-add {
  margin-top: 12px;
  min-height: 40px;
  padding: 8px 12px;
  width: 100%;
  border: 0;
  background: #fff2df;
  color: #b45d00;
  border-radius: 10px;
  font-weight: 700;
}
.card-add:hover {
  background: #ffe1b6;
}
.availability {
  font-size: 11px;
  color: #717a87;
}
.availability.available {
  color: #488445;
}
.product-grid.list-layout {
  grid-template-columns: 1fr;
}
.list-layout .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px;
  column-gap: 25px;
  align-items: center;
  padding: 16px 20px;
}
.list-layout .product-open {
  grid-row: 1/5;
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: center;
  gap: 20px;
  padding-right: 30px;
}
.list-layout .product-image {
  height: 80px;
}
.list-layout .product-open h3 {
  min-height: 0;
  font-size: 15px;
}
.list-layout .favorite-button {
  top: 18px;
  right: 220px;
}
.list-layout .product-meta {
  margin-top: 0;
}
.list-layout .card-add {
  margin-top: 5px;
}
.filter-panel {
  background: white;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filter-panel summary {
  font-weight: 700;
  cursor: pointer;
}
.filter-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr 0.8fr;
  gap: 12px;
  margin-top: 16px;
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  grid-column: 1/-1;
}
.check-label input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  gap: 16px;
}
.results-toolbar p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.results-toolbar select {
  width: auto;
  max-width: 200px;
  font-size: 13px;
  min-height: 40px;
}
.view-toggle {
  display: flex;
  gap: 5px;
  background: white;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.view-toggle button {
  border: 0;
  border-radius: 8px;
  background: none;
  width: 38px;
  height: 36px;
  color: var(--text-muted);
}
.view-toggle .selected {
  background: #fff0db;
  color: #d1780b;
}
.load-more {
  display: block;
  margin: 24px auto;
}
.empty-state {
  background: white;
  border: 1px dashed #d8dde4;
  border-radius: 18px;
  padding: 40px 22px;
  text-align: center;
  grid-column: 1/-1;
  color: var(--text-muted);
}
.empty-state h2 {
  color: var(--text-main);
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.promo-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.promo-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}
.promo-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.promo-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.help-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-radius: 20px;
  background: #fff0dd;
  margin: 32px 0 0;
  gap: 20px;
}
.help-banner h2 {
  font-size: 21px;
  margin-bottom: 6px;
}
.help-banner p {
  font-size: 13px;
  color: #897056;
  margin: 0;
}
.help-banner .secondary {
  white-space: nowrap;
}
.panel,
.summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.detail-photo {
  width: 100%;
  height: 350px;
  object-fit: contain;
}
.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-top: 14px;
}
.detail-thumbs button {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.detail-thumbs img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.detail-copy h1 {
  font-size: 27px;
  margin: 8px 0 16px;
}
.detail-copy .product-price {
  font-size: 30px;
}
.detail-description {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.8;
  color: #626c79;
  margin-top: 24px;
}
.detail-variants {
  margin: 18px 0;
}
.detail-variants label {
  font-size: 13px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  background: white;
}
.quantity-control button {
  border: 0;
  background: #f6f7f9;
  width: 44px;
  min-height: 44px;
  font-size: 22px;
  flex-shrink: 0;
}
.quantity-control input {
  border: 0;
  width: 100px;
  text-align: center;
  border-radius: 0;
  font-weight: 700;
  min-height: 44px;
  padding: 8px;
}
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.quantity-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.quantity-presets button {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12px;
}
.quantity-rules {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0;
}
.bulk-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.bulk-tier {
  padding: 9px 12px;
  border: 1px solid #ffdcad;
  background: #fff9f0;
  border-radius: 10px;
  font-size: 12px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-actions .primary {
  flex: 1;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}
.cart-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.cart-row img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.cart-row h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.cart-row .quantity-control input {
  width: 100px;
}
.cart-row .quantity-control {
  margin-top: 14px;
}
.cart-row .quantity-control button {
  width: 38px;
  min-height: 40px;
}
.cart-row .quantity-control input {
  min-height: 40px;
}
.cart-row .row-end {
  text-align: right;
  font-size: 15px;
  font-weight: 750;
}
.row-end button {
  display: block;
  margin: 10px 0 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}
.summary-card {
  position: sticky;
  top: 20px;
  margin: 0;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin: 12px 0;
}
.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 20px;
  font-weight: 800;
}
.summary-card .primary {
  width: 100%;
  margin-top: 15px;
}
.summary-card .secondary {
  width: 100%;
  margin-top: 10px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
#checkout-form label {
  margin-bottom: 16px;
}
#map {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  margin: 16px 0;
  background: #f1f3f6;
}
.notice {
  padding: 16px;
  border-radius: 12px;
  background: #fff2df;
  color: #85501c;
  font-size: 13px;
  margin: 16px auto;
  max-width: 1200px;
}
.notice button {
  margin: 8px 8px 0 0;
}
.list-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.material-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.material-list h3 {
  margin-bottom: 3px;
}
.material-list p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.material-list .actions {
  display: flex;
  gap: 10px;
}
.material-list .text-button {
  font-size: 12px;
}
.order-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  margin-bottom: 16px;
}
.order-card h3 {
  margin: 0;
}
.order-card ul {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.order-steps {
  display: flex;
  gap: 5px;
  margin: 18px 0;
}
.order-step {
  flex: 1;
  font-size: 10px;
  color: #a1a6ae;
  border-top: 3px solid #eef0f3;
  padding-top: 8px;
}
.order-step.done {
  border-color: var(--primary);
  color: #97550a;
}
.order-status {
  font-size: 12px;
  background: #fff1df;
  border-radius: 8px;
  padding: 6px 10px;
  color: #a15c0a;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-grid p {
  white-space: pre-line;
  font-size: 14px;
}
.status-pill {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1f3f5;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 24px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  color: var(--text-main);
  box-shadow: 0 24px 80px #10141b33;
}
dialog::backdrop {
  background: #171b2466;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 21px;
  margin: 0;
}
.dialog-heading .icon-button {
  border: 0;
  font-size: 26px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.dialog-actions > * {
  flex: 1;
}
dialog label {
  margin: 16px 0;
}
dialog .notice {
  margin-bottom: 0;
}
.link-input {
  width: 100%;
  margin: 10px 0 14px;
}
.account-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-panel p {
  font-size: 14px;
  color: var(--text-muted);
}
#link-code-output {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  padding: 12px;
  background: #f6f7f9;
}
#phone-login-form label {
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 14px;
  background: #20242b;
  color: white;
  z-index: 1000;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 8px 32px #0003;
  font-size: 13px;
  width: max-content;
  pointer-events: none;
}
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.tab-item {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-toolbar h1 {
  line-height: 1.3;
}
#profile-view {
  margin: auto;
}
#profile-orders .section-heading {
  margin-top: 0;
}
.profile-brand-button {
  background: none;
}
#browser-checkout {
  display: none !important;
}
@media (max-width: 1250px) {
  #tab-shop {
    padding: 20px 24px 40px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-mark {
    width: 190px;
  }
  .filter-fields {
    grid-template-columns: repeat(3, 1fr);
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .product-detail {
    gap: 24px;
    padding: 24px;
  }
  .detail-photo {
    height: 270px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 14px;
    padding-bottom: 86px;
  }
  .shop-header {
    height: 72px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand strong {
    font-size: 22px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions > .text-button {
    display: none;
  }
  #tab-shop {
    padding: 16px 16px 30px;
  }
  .search-wrap {
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 2px 12px;
  }
  .search-wrap input {
    font-size: 13px;
  }
  .search-wrap .text-button {
    font-size: 12px;
  }
  .hero {
    min-height: 265px;
    padding: 25px 22px;
    gap: 0;
    border-radius: 20px;
  }
  .hero h1 {
    font-size: 31px;
    position: relative;
    z-index: 1;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .hero p {
    font-size: 12px;
    max-width: 245px;
  }
  .hero-mark {
    position: absolute;
    width: 100px;
    right: -20px;
    top: 80px;
    opacity: 0.18;
  }
  .hero-mark img {
    width: 130px;
  }
  .hero-mark > span {
    display: none;
  }
  .hero .primary {
    font-size: 13px;
    padding: 11px 15px;
    min-height: 42px;
  }
  .shortcut-row {
    gap: 8px;
    margin: 12px 0 26px;
  }
  .shortcut-row button {
    flex-direction: column;
    gap: 8px;
    padding: 13px 6px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    border-radius: 12px;
  }
  .section-heading {
    margin: 24px 0 14px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading .text-button {
    font-size: 11px;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .category-card {
    padding: 11px;
    min-height: 118px;
    font-size: 11px;
    border-radius: 12px;
  }
  .category-card img {
    height: 53px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    padding: 12px;
    border-radius: 14px;
  }
  .product-image {
    height: 126px;
  }
  .product-open h3 {
    font-size: 12px;
    min-height: 36px;
    line-height: 1.5;
  }
  .product-price {
    font-size: 16px;
  }
  .product-price small {
    font-size: 10px;
  }
  .product-meta {
    font-size: 10px;
  }
  .card-add {
    font-size: 12px;
    min-height: 40px;
    padding: 8px;
  }
  .favorite-button {
    width: 30px;
    height: 30px;
    right: 9px;
    top: 9px;
    font-size: 19px;
  }
  .list-layout .product-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 8px;
    padding: 12px;
  }
  .list-layout .product-open {
    grid-template-columns: 48px 1fr;
    gap: 8px;
    padding-right: 0;
    align-items: start;
  }
  .list-layout .product-image {
    height: 48px;
  }
  .list-layout .product-open h3 {
    font-size: 11px;
    padding-top: 4px;
    display: block;
  }
  .list-layout .favorite-button {
    position: static;
    grid-column: 2;
    width: 30px;
    height: 30px;
    margin-left: auto;
    grid-row: 1;
  }
  .list-layout .product-meta {
    display: none;
  }
  .list-layout .availability {
    font-size: 10px;
  }
  .list-layout .product-price {
    font-size: 15px;
  }
  .list-layout .product-price small {
    display: block;
  }
  .list-layout .card-add {
    font-size: 11px;
  }
  .filter-panel {
    padding: 14px;
  }
  .filter-fields {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filter-fields label:first-child {
    grid-column: 1/-1;
  }
  .filter-fields label {
    font-size: 11px;
  }
  .filter-fields input,
  .filter-fields select {
    font-size: 12px;
    padding: 9px;
    min-height: 42px;
  }
  .results-toolbar select {
    max-width: 160px;
    font-size: 11px;
  }
  .results-toolbar p {
    font-size: 11px;
  }
  .help-banner {
    padding: 22px;
    display: block;
  }
  .help-banner .secondary {
    margin-top: 16px;
  }
  .help-banner h2 {
    font-size: 20px;
  }
  .help-banner p {
    font-size: 12px;
  }
  .product-detail {
    display: block;
    padding: 20px;
  }
  .detail-photo {
    height: 235px;
  }
  .detail-copy {
    margin-top: 20px;
  }
  .detail-copy h1 {
    font-size: 24px;
  }
  .cart-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
    gap: 12px;
  }
  .cart-row img {
    width: 48px;
    height: 55px;
  }
  .cart-row .row-end {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cart-row .row-end button {
    margin: 0;
  }
  .cart-row .quantity-control input {
    width: 110px;
  }
  .cart-row h3 {
    font-size: 13px;
  }
  .cart-row .quantity-control {
    margin-top: 10px;
  }
  .summary-card,
  .panel {
    padding: 20px;
  }
  .summary-card .primary {
    position: fixed;
    bottom: 83px;
    left: 16px;
    right: 16px;
    width: calc(100vw - 32px);
    z-index: 35;
    box-shadow: 0 4px 18px #0002;
  }
  .cart-active {
    padding-bottom: 150px;
  }
  .cart-active.checkout-active .summary-card .primary {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .checkout-grid label {
    margin-bottom: 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .material-list {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .material-list .actions {
    flex-wrap: wrap;
  }
  .material-list .actions button {
    padding: 8px 0;
  }
  .section-heading h1 {
    font-size: 27px;
  }
  .list-toolbar button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .order-card {
    padding: 18px;
  }
  .order-step {
    font-size: 9px;
  }
  dialog {
    padding: 22px;
  }
  .profile-menu-row {
    min-height: 62px;
  }
  #profile-view {
    padding-bottom: 25px;
  }
  .profile-toolbar .profile-brand-button img {
    width: 30px;
  }
  .tab-bar {
    gap: 0;
    justify-content: space-around;
  }
  .tab-item {
    max-width: none;
    font-size: 10px;
  }
  .tab-item svg {
    width: 23px;
    height: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.cart-row > div > .text-button {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 700;
}
.summary-total {
  display: block;
}
.summary-total span:first-child {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.summary-total span:last-child {
  display: block;
  font-size: 26px;
  white-space: nowrap;
}

.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 12px;
}
.catalog-breadcrumbs .text-button {
  font-size: 12px;
  text-align: left;
  white-space: normal;
}
.catalog-breadcrumbs [aria-current="page"] {
  color: var(--text-main);
  font-weight: 700;
}
.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.catalog-category {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 96px;
  color: var(--text-main);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.catalog-category:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.catalog-category-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff3e4;
  color: #d57a0a;
}
.catalog-category-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.catalog-category-copy strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.catalog-category-copy small {
  font-size: 12px;
  color: var(--text-muted);
}
.catalog-category-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}
@media (max-width: 850px) {
  .catalog-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .catalog-category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-category {
    padding: 16px;
    min-height: 82px;
  }
  #catalog-categories .section-heading {
    align-items: flex-start;
    gap: 12px;
  }
  #catalog-all-products {
    max-width: 150px;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-category {
    transition: none;
  }
  .catalog-category:hover {
    transform: none;
  }
}

.install-card { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:20px; margin-top:20px; border:1px solid #f3dcc1; border-radius:20px; background:#fffaf3; }
.install-card strong { font-size:18px; }
.install-card p { margin:6px 0 0; color:var(--text-muted); font-size:14px; }
.install-card button { margin:0; }
.install-steps { padding-left:24px; line-height:1.7; }
.install-steps li { padding-left:5px; margin:14px 0; }

/* All catalog cards stay in the DOM; offscreen cards defer layout and painting. */
.product-card { content-visibility:auto; contain-intrinsic-size:auto 380px; }

.review-banner { margin: 12px auto; max-width: 1180px; padding: 16px 24px; background: #fff3df; color: #543300; border: 1px solid #ffd08e; border-radius: 16px; }
