:root {
  --bg: #f3eee7;
  --paper: rgba(255, 251, 245, 0.92);
  --paper-strong: #fffaf3;
  --ink: #1f2320;
  --muted: #6f7269;
  --line: rgba(39, 45, 38, 0.1);
  --line-strong: rgba(39, 45, 38, 0.18);
  --accent: #7b5a35;
  --accent-dark: #4e3c28;
  --sage: #56645c;
  --dark: #161a17;
  --shadow: 0 24px 60px rgba(20, 24, 20, 0.12);
  --shadow-soft: 0 18px 32px rgba(20, 24, 20, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #fff;
}

body.is-app-loading {
  overflow: hidden;
}

body.is-app-loading .app-shell,
body.is-app-revealing .app-shell {
  filter: blur(10px);
  transform: scale(1.01);
  transition: filter 420ms ease, transform 420ms ease;
}

body:not(.is-app-loading):not(.is-app-revealing) .app-shell {
  transition: filter 420ms ease, transform 420ms ease;
}

.global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.global-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.global-loader.is-fading .global-loader__content {
  opacity: 0;
  transform: translateY(8px);
}

.global-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

body[data-guest-home="true"] .global-loader__backdrop {
  background: rgba(4, 4, 4, 0.58);
}

.global-loader__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.global-loader__dots {
  position: relative;
  width: 64px;
  height: 64px;
  animation: global-loader-rotate 1.4s linear infinite;
}

.global-loader__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(24, 52, 104, 0.18);
}

.global-loader__dot--a {
  transform: translateY(-20px);
  background: #111111;
}

.global-loader__dot--b {
  transform: translateY(20px);
  background: #111111;
}

.global-loader__text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #183468;
}

body[data-guest-home="true"] .global-loader__text {
  color: #fff;
}

@keyframes global-loader-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body[data-guest-home="true"] {
  color: #fff;
  background:
    radial-gradient(circle at top center, rgba(123, 90, 53, 0.16), transparent 24%),
    #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-shell--guest {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: #050505;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.site-header__inner,
.page-wrap {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-mark--center {
  justify-self: center;
}

.brand-logo {
  display: block;
  width: 188px;
  height: auto;
}

.header-side {
  display: flex;
  align-items: center;
}

.header-side--left {
  justify-content: flex-start;
}

.header-side--right {
  justify-content: flex-end;
}

.header-tools,
.hero-badges,
.hero-actions,
.footer-nav,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-menu {
  position: relative;
}

.header-menu summary {
  list-style: none;
}

.header-menu summary::-webkit-details-marker {
  display: none;
}

.utility-link,
.footer-link,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 0;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  font-family: inherit;
}

.utility-link,
.footer-link,
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.utility-link:hover,
.footer-link:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.utility-button {
  cursor: pointer;
}

.header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 56px;
  padding: 0 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.header-icon-button {
  position: relative;
}

.header-icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.header-icon-button.is-highlighted {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-icon-image {
  width: 26px;
  height: 26px;
  display: block;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(21, 26, 23, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.header-menu:not([open]) .header-dropdown {
  display: none;
}

.header-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: #fff;
  color: #183468;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  border: 0;
}

.header-dropdown__item--with-alert {
  justify-content: space-between;
}

.header-dropdown__item-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-dropdown__item:hover,
.header-dropdown__item.is-active {
  background: #f3f5f8;
}

.header-dropdown__item.is-active {
  font-weight: 600;
}

.header-dropdown__item--button {
  appearance: none;
}

.header-dropdown__item--submenu {
  justify-content: space-between;
  list-style: none;
}

.header-dropdown__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  background-color: #183468;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.header-dropdown__icon--orders {
  -webkit-mask-image: url("/img/icons/menu/orders.svg");
  mask-image: url("/img/icons/menu/orders.svg");
}

.header-dropdown__icon--settings {
  -webkit-mask-image: url("/img/icons/settings_black.svg");
  mask-image: url("/img/icons/settings_black.svg");
}

.header-dropdown__icon--language {
  -webkit-mask-image: url("/img/icons/menu/language.svg");
  mask-image: url("/img/icons/menu/language.svg");
}

.header-dropdown__icon--logout {
  -webkit-mask-image: url("/img/icons/menu/logout.svg");
  mask-image: url("/img/icons/menu/logout.svg");
}

.header-dropdown__item--submenu::-webkit-details-marker {
  display: none;
}

.header-dropdown__label {
  display: block;
  padding: 0 14px 8px;
  color: #6f7269;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-dropdown__links {
  display: grid;
  gap: 2px;
}

.header-dropdown__hint {
  margin: 0;
  padding: 0 14px 8px;
  color: #6f7269;
  line-height: 1.6;
}

.header-cart-list {
  display: grid;
  gap: 0;
}

.header-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #ececec;
  animation: cartItemAppear 0.24s ease;
}

.header-cart-item__thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
}

.header-cart-item__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-cart-item__thumb-placeholder {
  color: #8b8b8b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-cart-item__meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.header-cart-item__title {
  color: #111;
  font-size: 14px;
  line-height: 1.35;
}

.header-cart-item__article,
.header-cart-item__qty-label {
  color: #6f7269;
  font-size: 12px;
}

.header-cart-item__controls {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
}

.header-cart-qty {
  display: inline-grid;
  grid-template-columns: 28px minmax(32px, auto) 28px;
  align-items: center;
  justify-content: start;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.header-cart-qty__button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: #f5f5f5;
  color: #111;
  font-size: 18px;
  cursor: pointer;
}

.header-cart-qty__button:hover {
  background: #ececec;
}

.header-cart-qty__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 8px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.header-cart-item__price {
  color: #111;
  font-size: 14px;
  white-space: nowrap;
}

.header-cart-item__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-cart-item__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d63939;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-cart-item__remove:hover {
  transform: scale(1.08);
  opacity: 0.82;
}

.header-cart-item__remove-icon,
.checkout-item__remove-icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask-image: url("/img/icons/trash.svg");
  mask-image: url("/img/icons/trash.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.header-dropdown--cart {
  min-width: 360px;
}

.header-cart-footer {
  padding: 12px 14px 6px;
  border-top: 1px solid #ececec;
}

.header-cart-checkout-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cart-checkout-btn:hover {
  background: #252525;
  transform: translateY(-1px);
}

.header-cart-list {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.header-menu[open] .header-cart-list {
  opacity: 1;
  transform: translateY(0);
}

.cart-fly-token {
  position: fixed;
  z-index: 120;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  opacity: 0.95;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}

.cart-fly-token.is-animating {
  opacity: 0.18;
  transform: translate3d(var(--cart-fly-x, 0), var(--cart-fly-y, 0), 0) scale(0.28);
}

.cart-fly-token__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-fly-token__mark {
  color: #111;
  font-size: 28px;
  font-weight: 700;
}

@keyframes cartItemAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-submenu {
  position: relative;
}

.header-submenu summary {
  list-style: none;
}

.header-submenu summary::-webkit-details-marker {
  display: none;
}

.header-submenu__caret {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
}

.header-submenu__panel {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(21, 26, 23, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.header-submenu:not([open]) .header-submenu__panel {
  display: none;
}

.header-flag {
  font-size: 16px;
  line-height: 1;
}

.page-wrap {
  flex: 1 0 auto;
  padding: 22px 0 48px;
}

.page-wrap--guest {
  flex: 1 0 auto;
  width: min(1040px, calc(100% - 32px));
  min-height: 100vh;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-screen {
  width: 100%;
  display: grid;
  gap: 32px;
}

.guest-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.brand-mark--guest {
  padding: 0;
}

.brand-logo--guest {
  width: 240px;
}

.guest-lang-switch {
  justify-self: center;
}

.guest-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.guest-layout--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.guest-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.guest-switcher {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.guest-switcher__item {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 20px;
  cursor: pointer;
}

.guest-switcher__item.is-active {
  color: #fff;
}

.guest-view {
  min-height: 0;
}

.guest-card .form-grid label {
  color: rgba(255, 255, 255, 0.78);
}

.guest-card .form-grid input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.guest-card .form-grid input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.guest-title,
.guest-subtitle {
  color: #fff;
  font-family: inherit;
}

.guest-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 54px);
}

.guest-subtitle {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 28px;
}

.guest-back {
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 15px;
}

.guest-request-panel {
  margin-top: 0;
}

.guest-card__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.guest-lang-link {
  color: rgba(255, 255, 255, 0.54);
  font-size: 15px;
}

.guest-lang-link.is-active {
  color: #fff;
}

.guest-lang-divider {
  color: rgba(255, 255, 255, 0.24);
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.guest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.guest-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 24px));
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.guest-modal__text {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.guest-modal__button {
  width: 100%;
}

.hero,
.story-section {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
}

.hero-copy,
.hero-panel,
.feature-card,
.story-card,
.showroom-section,
.catalog-section,
.page-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  min-height: 640px;
  padding: 54px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f8f3ea;
  background:
    linear-gradient(180deg, rgba(17, 18, 16, 0.1), rgba(17, 18, 16, 0.58)),
    linear-gradient(120deg, rgba(86, 100, 92, 0.35), rgba(123, 90, 53, 0.28)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1080'%3E%3Crect width='1600' height='1080' fill='%23ddd1c0'/%3E%3Crect x='120' y='110' width='1360' height='860' rx='42' fill='%23f8f2e7'/%3E%3Crect x='220' y='230' width='380' height='500' rx='26' fill='%23ccb79b'/%3E%3Crect x='650' y='230' width='520' height='180' rx='24' fill='%23d7c4ab'/%3E%3Crect x='650' y='440' width='520' height='290' rx='24' fill='%2394a39a'/%3E%3Crect x='1200' y='230' width='170' height='500' rx='24' fill='%23b88d5d' fill-opacity='0.85'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 13, 0.36), transparent 40%);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--light {
  color: rgba(255, 248, 239, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 24px;
  line-height: 1.1;
}

.hero-text,
.welcome-box p,
.feature-card p,
.story-card p,
.showroom-section p,
.catalog-item p,
.list-item p,
.card p {
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  font-size: 19px;
  color: rgba(255, 248, 239, 0.88);
}

.hero-actions--primary {
  margin-top: 22px;
}

.hero-panel,
.page-panel,
.feature-card,
.story-card,
.showroom-section,
.catalog-section {
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.hero-panel {
  padding: 28px;
}

.welcome-box {
  width: 100%;
}

.welcome-box h2 {
  font-size: 34px;
}

.welcome-box p {
  color: var(--muted);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
}

.ghost-btn--light,
.pill--light {
  background: rgba(255, 250, 244, 0.12);
  color: #fff;
  border-color: rgba(255, 250, 244, 0.24);
}

.feature-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
}

.story-section {
  margin-top: 20px;
  grid-template-columns: 1.1fr 0.9fr;
}

.story-card {
  min-height: 280px;
  padding: 30px;
}

.story-card--dark {
  color: #f4eee4;
  background:
    linear-gradient(135deg, rgba(20, 22, 20, 0.94), rgba(86, 100, 92, 0.92)),
    linear-gradient(180deg, #1f2521, #59675f);
}

.story-card--light {
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(123, 90, 53, 0.12), transparent 34%),
    var(--paper);
}

.stat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 42px;
  color: var(--accent-dark);
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-family: inherit;
}

.showroom-section {
  margin-top: 20px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.catalog-section,
.page-panel {
  margin-top: 20px;
  padding: 0;
}

.catalog-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-catalog-layout {
  position: relative;
  min-height: 320px;
}

.home-catalog-filters {
  position: absolute;
  left: 0;
  top: 0;
  width: 280px;
  z-index: 2;
}

.home-catalog-stage {
  width: 100%;
  padding-left: 340px;
  min-width: 0;
}

.section-head,
.panel-header,
.card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-grid,
.list-table {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.catalog-item,
.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
}

.catalog-item strong,
.list-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.catalog-grid--tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  gap: 36px;
}

.catalog-grid--products {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  justify-content: center;
  margin-top: 0;
  gap: 24px;
}

.catalog-grid--products.home-catalog-grid {
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(248px, 248px));
  justify-content: start;
  align-content: start;
}

.product-card-link {
  display: block;
  width: 248px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: 248px;
  max-width: 100%;
  min-height: 500px;
  height: 500px;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.product-card__header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-bottom: 1px solid #e3e3e3;
  min-width: 0;
  overflow: hidden;
}

.product-card__brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111;
}

.product-card__media {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  height: 280px;
  min-height: 280px;
  padding: 26px 22px;
  background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f4 100%);
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-card__placeholder {
  width: min(100%, 180px);
  aspect-ratio: 0.72;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #b8b8b8 0%, #6e6e6e 48%, #333 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.product-card__placeholder-mark {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card__arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #111;
  font-size: 68px;
  line-height: 1;
  font-weight: 200;
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 18px;
  border-top: 1px solid #e3e3e3;
}

.product-card__article {
  display: block;
  overflow: visible;
  text-align: right;
  color: #4e4e4e;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: normal;
  word-break: break-word;
}

.product-card__state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__state--inactive {
  color: #c93b34;
}

.product-card__specs {
  display: none;
}

.product-card__footer {
  margin-top: auto;
  padding: 0 18px 16px;
}

.product-card__price {
  display: block;
  text-align: center;
  color: #111;
  font-size: clamp(26px, 1.8vw, 30px);
  line-height: 1;
  font-weight: 800;
}

.product-page {
  display: grid;
  gap: 28px;
}

.product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.product-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.product-detail__main,
.product-detail__side,
.product-purchase-card,
.product-purchase-card__top {
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 16px;
}

.product-gallery__viewport {
  position: relative;
  min-height: 520px;
  border: 1px solid #e5e5e5;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery__image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: opacity 220ms ease, transform 260ms ease;
  will-change: transform, opacity;
}

.product-gallery__viewport.is-zoomed .product-gallery__image {
  transform: scale(1.8);
}

.product-gallery__image.is-switching {
  opacity: 0;
}

.product-gallery__placeholder {
  color: #999;
  font-size: 18px;
}

.product-gallery__thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 1px solid #d8d8d8;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-gallery__thumb.is-active {
  border-color: #111;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.product-gallery__thumb:hover {
  transform: translateY(-2px);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-purchase-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.product-purchase-card__top {
  display: grid;
  gap: 10px;
}

.product-purchase-card__brand {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-purchase-card__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.product-purchase-card__article {
  margin: 0;
  color: var(--muted);
}

.product-purchase-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.product-purchase-card__price {
  font-size: 38px;
  line-height: 1;
}

.product-purchase-card__status {
  color: #3c9a4d;
  font-weight: 600;
}

.product-purchase-card__cta {
  min-height: 58px;
  border: 0;
  background: #3c9a4d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-purchase-card__cta:disabled {
  background: #bdbdbd;
  cursor: default;
}

.product-content {
  display: grid;
  gap: 24px;
}

.product-content__section {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.product-content__section h2 {
  margin: 0;
  font-size: 26px;
}

.product-content__text {
  display: grid;
  gap: 12px;
  color: #222;
  line-height: 1.7;
}

.product-content__text p {
  margin: 0;
}

.product-specs {
  display: grid;
  gap: 0;
}

.product-specs__row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #ececec;
}

.product-specs__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.product-specs__label {
  color: var(--muted);
}

.catalog-tile {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: none;
}

.catalog-tile__article {
  display: block;
  margin-bottom: 14px;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-tile__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #f6f6f6;
}

.catalog-tile__image-wrap--placeholder {
  display: grid;
  place-items: center;
}

.catalog-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-tile__placeholder {
  color: #7a7a7a;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-tile__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 0 0;
}

.catalog-tile__body strong {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.catalog-tile__price {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  grid-column: span 4;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.card-wide {
  grid-column: span 8;
}

.manage-shell {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: #fff;
}

.account-shell {
  min-height: 620px;
}

.manage-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

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

.manage-tab {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d7d7d7;
  background: #f3f3f3;
  color: #1f2320;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.manage-tab.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.manage-tab--with-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.manage-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2d7ff9;
  position: absolute;
  top: 10px;
  right: 10px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #fff;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #c93b34;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
}

.alert-badge--header {
  position: absolute;
  top: 8px;
  right: 4px;
}

.manage-workspace {
  min-height: 520px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.manage-add-tile {
  width: 100%;
  min-height: 56px;
  border: 2px dashed #b9b9b9;
  background: transparent;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.manage-add-tile:hover {
  border-color: #111;
  background: #f6f6f6;
}

.manage-add-tile--media {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
}

.manage-add-tile__plus {
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
}

.manage-panel {
  height: 100%;
  padding: 24px;
}

.manage-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.manage-panel__header h2 {
  margin: 0;
  font-size: 28px;
}

.manage-products-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.manage-filters {
  display: grid;
  gap: 14px;
  align-content: start;
}

.manage-filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.manage-filters__group {
  display: grid;
  gap: 10px;
}

.manage-outline-link {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px dashed #b9b9b9;
  color: #111;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.manage-outline-link:hover {
  border-color: #111;
  background: #f6f6f6;
}

.manage-filters__title {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-filters input,
.manage-filters select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #111;
}

.manage-filters__checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.manage-filters__checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.manage-filters__checks {
  display: grid;
  gap: 10px;
}

.manage-products-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  justify-content: start;
}

.manage-products-content {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-card--manage {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card--manage:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
  border-color: #b9b9b9;
}

.product-card--inactive {
  filter: grayscale(1);
  opacity: 0.82;
}

.product-card__title {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #111;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.12;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.product-card__title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 88%);
}

.product-card__title.is-overflowing::after {
  opacity: 1;
}

.product-form {
  gap: 22px;
  max-width: none;
}

.category-params-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.category-params-sidebar,
.category-params-editor {
  min-width: 0;
}

.category-params-editor__header {
  align-items: flex-start;
}

.category-params-form {
  display: grid;
  gap: 18px;
}

.category-params-fields {
  display: grid;
  gap: 14px;
}

.category-param-category.is-active {
  border-color: #111;
}

.category-param-row {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.category-param-row__grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.category-param-row__grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.category-param-row__grid input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #111;
}

.category-param-row__checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  min-height: 48px;
}

.category-param-row__checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.category-param-row__delete {
  justify-self: start;
}

.category-params-form__actions {
  justify-content: flex-end;
}

.product-form__media {
  display: grid;
  gap: 14px;
}

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

.product-image-row {
  display: grid;
  grid-template-columns: auto auto 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e3e3e3;
  background: #fff;
}

.product-image-row__badge {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-image-row__label {
  min-width: 0;
  color: #111;
  font-weight: 600;
  word-break: break-word;
}

.product-image-row__preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
  border: 1px solid #e3e3e3;
}

.product-image-row__cover {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.product-image-row__remove {
  background: transparent;
  color: #c93b34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.product-image-row__remove-icon {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask-image: url("/img/icons/trash.svg");
  mask-image: url("/img/icons/trash.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
  line-height: 1;
  cursor: pointer;
}

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

.product-description-editor {
  display: grid;
  gap: 12px;
}

.product-params-editor {
  display: grid;
  gap: 14px;
}

.product-params-editor__header {
  margin-bottom: 0;
}

.product-params-editor__header h4 {
  margin: 0;
  font-size: 22px;
}

.product-params-list {
  display: grid;
  gap: 14px;
}

.product-param-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  background: #fff;
}

.product-param-row__header strong {
  font-size: 16px;
  color: #111;
}

.product-param-row__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.product-description-panel {
  display: grid;
  gap: 8px;
}

.product-description-textarea {
  min-height: 140px;
  resize: none;
}

.product-price-field {
  display: grid;
  gap: 8px;
}

.product-price-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.product-price-input input {
  border: 0;
}

.product-price-input__suffix {
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.manage-subtabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.manage-subtab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.manage-subtab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.manage-subpanel.is-active {
  display: block;
}

.manage-table-head,
.manage-request__row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 1fr) minmax(170px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.manage-list .account-record__summary {
  display: block;
  padding: 18px 20px;
}

.manage-list .manage-request__row {
  width: 100%;
}

.manage-table-head {
  padding: 0 20px 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-list {
  margin-top: 0;
}

.manage-placeholder {
  max-width: 760px;
  color: var(--muted);
}

.manage-request__name {
  min-width: 0;
}

.manage-request__company,
.manage-request__date,
.manage-request__details span {
  color: var(--muted);
}

.manage-request__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-top: 18px;
}

.manage-request__actions {
  margin-top: 18px;
}

.manage-request--approved {
  border-left: 4px solid #a8db8f;
  background: #f2faec;
}

.manage-request--rejected {
  border-left: 4px solid #d88ca2;
  background: #fff0f5;
}

.manage-request--approved .account-record__summary,
.manage-request--approved .account-record__body {
  background: #f2faec;
}

.manage-request--rejected .account-record__summary,
.manage-request--rejected .account-record__body {
  background: #fff0f5;
}

.manage-request__details p {
  margin: 0;
  line-height: 1.6;
}

.myorder-record__summary {
  display: block;
}

.myorder-record__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 18px;
  align-items: center;
}

.myorder-record__title {
  font-size: 18px;
}

.myorder-record__status,
.myorder-record__date {
  color: var(--muted);
}

.myorder-record__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.myorder-record__status-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  background-color: #1d4ed8;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.myorder-record__status-icon--pending {
  -webkit-mask-image: url("/img/icons/status/pending.svg");
  mask-image: url("/img/icons/status/pending.svg");
}

.myorder-record__status-icon--supplier {
  -webkit-mask-image: url("/img/icons/status/supplier.svg");
  mask-image: url("/img/icons/status/supplier.svg");
}

.myorder-record__status-icon--delivered {
  -webkit-mask-image: url("/img/icons/status/delivered.svg");
  mask-image: url("/img/icons/status/delivered.svg");
}

.myorder-record__status-icon--refused {
  background-color: #dc2626;
  -webkit-mask-image: url("/img/icons/status/refused.svg");
  mask-image: url("/img/icons/status/refused.svg");
}

.myorder-record__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-top: 18px;
}

.myorder-record__details p {
  margin: 0;
  line-height: 1.6;
}

.myorder-record__details span {
  color: var(--muted);
}

.myorder-items {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.myorder-items h4 {
  margin: 0;
  font-size: 18px;
}

.myorder-items__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #e7e1d7;
  color: var(--muted);
}

.myorder-items__total strong {
  color: #111;
  font-size: 18px;
}

.myorder-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 60px 140px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.myorder-item:hover {
  border-color: #d6cec0;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
}

.myorder-item__thumb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
}

.account-save-btn--success {
  background: #2d8b57;
  color: #fff;
}

.manage-order-dialog {
  width: min(980px, calc(100% - 24px));
}

.manage-order-dialog__subtitle {
  margin: 6px 0 0;
}

.manage-order-dialog__steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.manage-order-dialog__step {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #e3ddd2;
  color: var(--muted);
  background: #f8f5ef;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-order-dialog__step.is-active {
  border-color: #111;
  color: #111;
  background: #fff;
}

.manage-order-dialog__panel-section {
  display: grid;
  gap: 18px;
}

.manage-order-items-editor,
.manage-order-preview-list,
.manage-order-send-result {
  display: grid;
  gap: 14px;
}

.manage-order-item-edit {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5dfd4;
  background: #fff;
}

.manage-order-item-edit__thumb {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid #e5dfd4;
  background: #f7f4ef;
}

.manage-order-item-edit__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-order-item-edit__thumb-placeholder {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manage-order-item-edit__meta {
  display: grid;
  gap: 6px;
}

.manage-order-item-edit__meta span {
  color: var(--muted);
}

.manage-order-item-edit__qty {
  display: grid;
  gap: 8px;
}

.manage-order-item-edit__qty span {
  color: var(--muted);
  font-size: 13px;
}

.manage-order-item-edit__qty input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d1c2;
}

.manage-order-preview-list__title {
  margin: 0;
  font-size: 18px;
}

.manage-order-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5dfd4;
  background: #fff;
}

.manage-order-preview-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.manage-order-preview-card__head strong,
.manage-order-preview-card__meta strong {
  display: block;
}

.manage-order-preview-card__head span,
.manage-order-preview-card__meta span {
  color: var(--muted);
  font-size: 13px;
}

.manage-order-preview-card__meta {
  text-align: right;
}

.manage-order-preview-card__items {
  display: grid;
  gap: 10px;
}

.manage-order-preview-card__item,
.manage-order-send-result__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #ece6dc;
  background: #fbf9f5;
}

.manage-order-send-result__item {
  border-width: 0 0 0 4px;
  background: #fff;
}

.manage-order-send-result__item.is-success {
  border-color: #7fcf8f;
}

.manage-order-send-result__item.is-error {
  border-color: #d4547f;
}

.manage-order-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.manage-order-dialog__actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.manage-order-dialog__actions .account-delete-btn {
  flex: 0 0 auto;
}

.myorder-item__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.myorder-item__thumb-placeholder {
  color: #8b8b8b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.myorder-item__meta {
  display: grid;
  gap: 4px;
}

.myorder-item__meta span,
.myorder-item__qty {
  color: var(--muted);
}

.myorder-item__price {
  justify-self: end;
}

#orders-supplier-list .account-record__summary,
#orders-supplier-list .account-record__body {
  background: #f8fbff;
}

#orders-delivered-list .account-record__summary,
#orders-delivered-list .account-record__body {
  background: #f3faef;
}

#orders-rejected-list .account-record__summary,
#orders-rejected-list .account-record__body {
  background: #fff4f8;
}

.manage-list .account-record.is-open .account-record__body {
  max-height: 900px;
  padding: 0 20px 20px;
  opacity: 1;
  transform: translateY(0);
}

.request-action--approve {
  background: #2d8b57;
  color: #fff;
  border-color: #2d8b57;
}

.vendor-record--missing {
  border-left: 4px solid #c93b34;
}

.vendor-record__summary {
  display: block;
}

.vendor-record__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.vendor-record__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.vendor-record__name {
  font-size: 18px;
}

.vendor-record__sub,
.vendor-record__meta,
.vendor-record__count {
  color: var(--muted);
}

.vendor-record__count {
  min-width: 28px;
  text-align: right;
  font-weight: 700;
}

.vendor-record__alert {
  justify-self: end;
}

.vendor-contact-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}

.account-dialog__header--with-back {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.account-dialog__back-btn {
  min-height: auto;
  padding: 0;
}

.vendor-contact-section__header {
  margin-bottom: 16px;
}

.vendor-contact-section__header h4 {
  margin: 0;
  font-size: 22px;
}

.vendor-contact-record__summary {
  justify-content: space-between;
}

.vendor-contact-edit-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.vendor-delete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: #c93b34;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.account-save-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.user-record--inactive .account-record__summary,
.user-record--inactive .account-record__body {
  background: #f7f7f7;
}

.user-dialog__panel {
  width: min(760px, calc(100% - 24px));
}

.user-dialog__content {
  display: grid;
  gap: 24px;
}

.user-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.user-dialog__grid p,
.user-dialog__stack p {
  margin: 0;
  line-height: 1.6;
}

.user-dialog__section {
  display: grid;
  gap: 12px;
}

.user-dialog__section:last-child {
  margin-bottom: 10px;
}

.user-dialog__section h4 {
  margin: 0;
  font-size: 20px;
}

.user-dialog__stack {
  display: grid;
  gap: 10px;
}

.user-dialog__password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.user-dialog__password-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d1c2;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.user-dialog__actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ece6dc;
  justify-content: flex-start;
}

.user-dialog__actions .account-cancel-btn {
  margin-left: auto;
}

#user-toggle-active-button.account-delete-btn {
  border: 0;
}


.account-records {
  display: grid;
  gap: 14px;
}

.account-record {
  border: 1px solid #e6e6e6;
  background: #fff;
  overflow: hidden;
  transform-origin: top center;
  animation: accountRecordAppear 0.24s ease;
}

.account-record__summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.account-record__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.account-record__type {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.account-record__value {
  min-width: 0;
  color: #111;
  font-size: 17px;
  font-weight: 700;
  word-break: break-word;
}

.account-record__body {
  max-height: 0;
  padding: 0 20px;
  border-top: 1px solid #ececec;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-record.is-open .account-record__body {
  max-height: 120px;
  padding: 0 20px 20px;
  opacity: 1;
  transform: translateY(0);
}

.myorder-record.is-open .account-record__body {
  max-height: 1200px;
}

.account-record__actions,
.account-dialog__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-record__actions {
  padding-top: 18px;
}

.account-record__actions .ghost-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
}

.account-dialog__actions .ghost-btn,
.user-dialog__password-row .ghost-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
}

.ghost-btn--danger,
.account-delete-btn {
  background: #c93b34;
  color: #fff;
  border: 0;
}

.account-record__actions .ghost-btn--danger {
  background: #c93b34;
  color: #fff;
  border-color: #c93b34;
}

.account-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
}

.account-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  color: #111;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.account-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: #2d8b57;
  color: #fff;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.account-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.account-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.account-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.account-dialog__panel--compact {
  width: min(420px, calc(100% - 24px));
}

.account-dialog__panel--wide {
  width: min(980px, calc(100% - 24px));
}

.checkout-dialog__panel {
  width: min(920px, calc(100% - 24px));
}

.checkout-dialog__content {
  display: grid;
  gap: 20px;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.checkout-schedule-card {
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: linear-gradient(180deg, #fbfbfb 0%, #f6f6f6 100%);
}

.checkout-schedule-card__field {
  display: grid;
  gap: 10px;
}

.checkout-schedule-card__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-schedule-card input[type="date"] {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

.checkout-items-list {
  display: grid;
  gap: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  animation: cartItemAppear 0.24s ease;
}

.checkout-item__thumb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
}

.checkout-item__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item__thumb-placeholder {
  color: #8b8b8b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-item__meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.checkout-item__title {
  color: #111;
  font-size: 16px;
}

.checkout-item__article {
  color: var(--muted);
  font-size: 13px;
}

.checkout-item__controls {
  display: inline-grid;
  grid-template-columns: 28px minmax(32px, auto) 28px;
  align-items: center;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.checkout-item__price {
  white-space: nowrap;
}

.checkout-item__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d63939;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 0;
  color: #111;
  font-size: 16px;
}

.checkout-info-input {
  min-height: 120px;
  resize: none;
}

#checkout-submit-button:disabled {
  opacity: 0.42;
  cursor: default;
}

@keyframes accountRecordAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-dialog__header {
  margin-bottom: 18px;
}

.account-dialog__header h3 {
  margin: 0;
  font-size: 28px;
}

.account-form {
  max-width: 560px;
}

.account-form--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: inherit;
}

.form-grid input:focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:focus-visible,
.utility-link:focus-visible,
.header-icon-button:focus-visible,
.header-dropdown__item:focus-visible,
.footer-link:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible {
  outline: 2px solid rgba(123, 90, 53, 0.4);
  outline-offset: 2px;
}

.list-item--stacked {
  align-items: stretch;
}

.list-item__stack {
  min-width: 0;
  flex: 1 1 auto;
}

.account-inline-select {
  min-width: 220px;
}

.account-inline-textarea {
  width: 100%;
  resize: none;
  margin-top: 10px;
}

#address-value-input {
  min-height: 120px;
  overflow: hidden;
  resize: none;
}


.form-error {
  color: #9e2e2e;
  font-family: inherit;
}

.form-note {
  color: var(--accent-dark);
  font-family: inherit;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 0;
  border: 1px solid rgba(123, 90, 53, 0.14);
  background: rgba(123, 90, 53, 0.08);
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 34px 0 30px;
  border-radius: 0;
  background: #000;
  color: #fff;
  box-shadow: none;
}

.footer-grid {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-grid--compact {
  grid-template-columns: 1.35fr 1.1fr 1.1fr 1.3fr auto;
  gap: 32px;
}

.footer-label {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.footer-column p,
.footer-copy,
.footer-link--plain,
.footer-social__link {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.footer-column p,
.footer-copy {
  margin: 0 0 6px;
}

.footer-column--copyright {
  display: flex;
  align-items: center;
}

.footer-column--nav {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-link--plain {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.footer-link--plain:hover,
.footer-link--plain:focus-visible {
  transform: none;
  opacity: 0.8;
}

@media (max-width: 1160px) {
  .site-header__inner {
    grid-template-columns: 1fr;
  }

  .header-side,
  .brand-mark--center {
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid--compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .story-section,
  .showroom-section,
  .feature-row,
  .guest-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 520px;
    padding: 36px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid--products {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .manage-products-layout {
    grid-template-columns: 1fr;
  }

  .category-params-layout {
    grid-template-columns: 1fr;
  }

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

  .home-catalog-layout {
    min-height: 0;
  }

  .home-catalog-filters {
    position: static;
    width: 100%;
  }

  .home-catalog-stage {
    padding-left: 0;
    margin-top: 24px;
  }

  .manage-products-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

  .category-param-row__grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card-wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid--compact {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-column--nav {
    justify-items: start;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding-top: 0;
  }

  .site-header__inner,
  .site-footer,
  .catalog-section,
  .page-panel,
  .showroom-section,
  .feature-card,
  .story-card,
  .hero-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-wrap,
  .site-header__inner,
  .site-footer {
    width: min(100% - 16px, 1280px);
  }

  .brand-mark__title {
    font-size: 22px;
  }

  .brand-logo {
    width: 156px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 62px);
  }

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

  .manage-products-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery__viewport {
    min-height: 360px;
  }

  .product-card {
    min-height: 0;
  }

  .product-card__article {
    font-size: 18px;
  }

  .product-card__price {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .catalog-grid--products {
    grid-template-columns: 1fr;
  }
}
