:root {
  --ink: #172233;
  --muted: #68707d;
  --paper: #f3f3f3;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --line: #e2e5e9;
  --primary: #166f9e;
  --primary-dark: #0b1c2b;
  --accent: #76b829;
  --accent-dark: #5d951e;
  --shadow: 0 8px 24px rgba(30, 40, 55, 0.08);
  --font-body: Lato, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 2px 14px rgba(28, 35, 45, 0.08);
}

.top-bar {
  min-height: 18px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  background: var(--accent);
}

.masthead {
  min-height: 92px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 174px 148px minmax(260px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
}

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

.brand img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.brand-exinte img {
  width: 158px;
}

.brand-leroy img {
  width: 132px;
}

.search-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
}

.search-form input:focus {
  outline: 2px solid rgba(22, 111, 158, 0.18);
  outline-offset: -2px;
}

.search-button {
  width: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
}

.search-button:hover {
  background: var(--primary-dark);
}

.search-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-user:hover {
  color: var(--primary);
}

.header-user svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-return-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-return-button:hover {
  background: var(--primary-dark);
}

.header-cart {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.header-cart:hover,
.header-cart.has-items {
  color: var(--primary);
}

.header-cart:hover .cart-count,
.header-cart.has-items .cart-count {
  color: #ffffff;
  background: var(--primary);
}

.cart-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.7rem;
  line-height: 1;
}

.nav-strip {
  min-height: 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  border-top: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: center;
}

.nav-strip a {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-breadcrumb {
  display: none;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.nav-strip.is-breadcrumb .nav-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-breadcrumb-count {
  flex: 0 0 auto;
  font-size: 0.94rem;
  font-weight: 500;
  text-transform: none;
}

.nav-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.nav-breadcrumb a:hover {
  text-decoration: underline;
}

.nav-strip.is-breadcrumb {
  min-height: 74px;
  padding: 12px 0;
}

.nav-strip.is-breadcrumb .nav-links {
  display: none;
}

.layout {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  flex: 1;
}

.shop-title {
  min-height: 118px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.shop-title.is-compact {
  display: none;
}

.breadcrumb,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  margin: 0 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--primary-dark);
}

h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.title-note,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.shop-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-layout.is-product-view {
  grid-template-columns: 1fr;
}

.shop-layout.is-product-view .category-sidebar {
  display: none;
}

.catalog-panel > .section-header {
  display: none;
}

.category-sidebar {
  position: sticky;
  top: 212px;
  max-height: calc(100vh - 236px);
  overflow: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.category-sidebar h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.category-nav {
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-nav-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.category-nav-button:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.category-nav-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-group {
  margin-top: 16px;
}

.category-group:first-of-type {
  margin-top: 0;
}

.category-group-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--primary-dark);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.category-link.is-child {
  padding-left: 12px;
}

.category-link:hover,
.category-link.is-active {
  color: var(--accent-dark);
}

.category-count {
  color: var(--muted);
  font-weight: 600;
}

.section-header {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.product-card {
  min-width: 0;
  min-height: 100%;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 3px 13px rgba(30, 40, 55, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 40, 55, 0.12);
}

.product-link {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 280px 1fr auto;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 280px;
  position: relative;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: none;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  image-rendering: auto;
}

.product-image.is-contained img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image.is-cropped img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image.is-cropped-width img {
  width: 50%;
  height: auto;
  max-height: none;
  align-self: start;
  justify-self: center;
}

.product-image.is-cropped-height img {
  width: auto;
  height: 50%;
  max-width: none;
  align-self: center;
  justify-self: start;
}

.product-image.has-image img {
  display: block;
}

.product-image.has-image .product-initials {
  display: none;
}

.product-initials {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.product-copy,
.product-footer {
  padding: 0 16px;
  min-width: 0;
}

.product-copy {
  padding-top: 16px;
}

.product-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.product-price {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.button-secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: var(--primary);
}

.button-secondary:hover {
  color: #ffffff;
  background: var(--primary);
}

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

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-media {
  height: 520px;
  position: relative;
}

.detail-image-button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-image-fallback {
  cursor: default;
}

.detail-media.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-carousel-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.detail-carousel-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.detail-carousel-button:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.detail-carousel-count {
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.detail-carousel-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.detail-carousel-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.detail-carousel-dot span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b8c0ca;
}

.detail-carousel-dot[aria-current="true"] span {
  background: var(--primary);
}

.detail-media .product-initials {
  width: 96px;
  height: 96px;
}

.detail-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-copy h2,
#detailDescription {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-context {
  display: grid;
  gap: 4px;
}

.product-context strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-price {
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1.25;
}

.purchase-controls {
  display: grid;
  gap: 18px;
}

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: flex-end;
}

.purchase-options-row {
  align-items: flex-start;
}

.purchase-actions-row {
  align-items: flex-end;
}

.quantity-field {
  display: grid;
  gap: 7px;
}

.quantity-field span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quantity-field input,
.quantity-field select {
  width: 86px;
  min-height: 41px;
  border: 0;
  padding: 9px 10px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  color: var(--primary-dark);
}

.quantity-field select {
  width: min(320px, 72vw);
  border: 1px solid var(--line);
  text-align: left;
  background: #ffffff;
}

.custom-dimensions-panel {
  display: grid;
  gap: 10px;
  flex: 0 1 476px;
  min-width: min(100%, 240px);
}

.custom-dimensions-toggle {
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.custom-dimensions-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.dimensions-control {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dimensions-control[hidden] {
  display: none !important;
}

.dimension-field input {
  width: 112px;
  border: 1px solid var(--line);
  text-align: left;
}

.readonly-option strong {
  min-width: 160px;
  min-height: 41px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-size: 0.95rem;
  line-height: 1.25;
}

.quantity-stepper {
  display: flex;
  align-items: stretch;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.quantity-button {
  width: 38px;
  min-height: 41px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--primary-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quantity-button:hover {
  color: #ffffff;
  background: var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: -1px;
}

.file-field {
  display: grid;
  gap: 8px;
  flex: 1 1 360px;
  min-width: min(100%, 340px);
}

.file-field span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-field input {
  width: 100%;
  min-height: 43px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.84rem;
}

.file-field strong {
  color: var(--primary-dark);
  font-size: 0.86rem;
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-primary:disabled {
  color: #f4f7f9;
  background: #93a3ad;
  border-color: #93a3ad;
  cursor: not-allowed;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #cbd1d8;
}

.is-unauthorized-access .search-form,
.is-unauthorized-access .header-user,
.is-unauthorized-access .header-cart,
.is-unauthorized-access .category-sidebar,
.is-unauthorized-access .section-header {
  display: none;
}

.is-unauthorized-access .masthead {
  grid-template-columns: 174px 148px 1fr;
}

.is-unauthorized-access .nav-strip {
  min-height: 74px;
}

.is-unauthorized-access .catalog-panel {
  background: transparent;
  border: 0;
}

.unauthorized-access {
  min-height: calc(100vh - 322px);
  display: grid;
  place-items: center;
}

.unauthorized-panel {
  width: min(650px, 100%);
  display: grid;
  gap: 14px;
  padding: 44px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.unauthorized-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.unauthorized-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.unauthorized-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.cart-view {
  display: grid;
  gap: 16px;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line,
.cart-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cart-line h3 {
  margin-top: 4px;
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-controls {
  display: flex;
  align-items: stretch;
}

.cart-quantity-input {
  width: 54px;
  min-height: 38px;
  border: 0;
  padding: 8px 6px;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.cart-line-total {
  min-width: 72px;
  text-align: right;
}

.cart-remove {
  appearance: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-remove:hover {
  color: #ffffff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.has-modal {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(11, 28, 43, 0.78);
}

.image-modal-panel {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
}

.image-modal-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  background: #ffffff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.image-modal-close:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.cart-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.cart-actions .button {
  min-width: 150px;
}

.orders-view {
  display: grid;
  gap: 12px;
}

.order-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.order-card-top,
.order-line-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.order-card-top {
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-status {
  padding: 6px 10px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-line-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.order-line-qty {
  width: 42px;
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-weight: 800;
}

.is-order-success .site-header,
.is-order-success .shop-title,
.is-order-success .category-sidebar,
.is-order-success .section-header {
  display: none;
}

.is-order-success .layout {
  width: 100%;
  min-height: calc(100vh - 62px);
  padding: 0;
}

.is-order-success .shop-layout {
  display: block;
}

.is-order-success .catalog-panel {
  padding: 0;
  background: transparent;
  border: 0;
}

.order-success-view {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 62px);
}

.success-top {
  width: 100%;
  background: var(--surface);
}

.success-green-strip {
  min-height: 18px;
  background: var(--accent);
}

.success-logo-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 68px;
}

.success-brand {
  display: flex;
  align-items: center;
}

.success-brand img {
  display: block;
  object-fit: contain;
}

.success-brand-exinte img {
  width: 158px;
}

.success-brand-leroy img {
  width: 132px;
}

.success-green-band {
  min-height: 58px;
  background: var(--accent);
}

.order-success-content {
  width: min(780px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 36px 0 56px;
}

.order-success-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.order-success-number {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.order-success-panel h1 {
  max-width: 620px;
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.12;
}

.order-success-detail {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.order-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.order-success-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  padding: 22px max(18px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: var(--primary-dark);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .masthead,
  .shop-title,
  .section-header,
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .masthead {
    min-height: 0;
    padding: 18px 0;
    display: flex;
  }

  .nav-strip {
    justify-content: flex-start;
    gap: 18px;
    padding: 0 16px;
    overflow-x: auto;
  }

  .shop-layout,
  .product-detail,
  .cart-line {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

@media (max-width: 560px) {
  .layout,
  .masthead {
    width: min(100vw - 20px, 1180px);
  }

  .top-bar {
    padding-left: 10px;
    padding-right: 10px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
