:root {
  --store-radius: 14px;
  --store-shadow: 0 10px 30px rgb(32 49 58 / 9%);
  --store-shadow-hover: 0 16px 42px rgb(32 49 58 / 15%);
  --store-soft: #f3f7f8;
  --store-line: #dfe7ea;
}

.button {
  min-height: 44px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
}

.brand {
  display: inline-grid;
  justify-items: start;
  gap: 5px;
}

.brand-tagline {
  color: #56636a;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.15;
  text-transform: uppercase;
}

.mobile-header-offer {
  display: none;
}

.hero-slider__controls {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 10px 30px rgb(25 39 47 / 18%);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.hero-slider__dots {
  position: static;
  display: flex;
  gap: 6px;
}

.hero-slider__arrow {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #a9c2ce;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 14px rgb(32 67 84 / 13%);
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: scale(1.06);
}

.hero-slider__dots button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #b9c6cc;
  border-radius: 50%;
  background: #fff;
  color: #445158;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: width .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.hero-slider__dots button[aria-current="true"] {
  width: 48px;
  border-color: var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.hero-slider__dots button:focus-visible {
  outline: 3px solid rgb(77 136 170 / 28%);
  outline-offset: 2px;
}

.catalog-pagination > .load-more {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 10px 22px;
  border: 1px solid #b9ced8;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(32 49 58 / 7%);
}

.catalog-pagination > .load-more[aria-busy="true"] {
  cursor: wait;
  opacity: .7;
}

/* Full home catalogue with immediately visible crawlable subcategories. */
.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}

.category-grid .home-category-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
  box-shadow: var(--store-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-grid .home-category-card:hover {
  border-color: #9fc2d2;
  box-shadow: 0 18px 44px rgb(43 91 113 / 18%);
  transform: translateY(-5px);
}

.category-grid .home-category-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(77 136 170 / 18%), var(--store-shadow-hover);
}

.home-category-card__main {
  display: block;
  color: #252a2e;
}

.home-category-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--store-soft);
}

.category-grid .home-category-card__media img {
  width: 100%;
  height: 100%;
  margin: 0;
  float: none;
  object-fit: cover;
  object-position: center;
  transition: transform .24s ease;
}

.home-category-card:hover .home-category-card__media img {
  transform: scale(1.065);
}

.home-category-card:hover h3,
.home-category-card:focus-within h3 {
  color: var(--accent);
}

.home-category-card h3 {
  margin: 0;
  padding: 17px 18px 10px;
  color: #252a2e;
  font-size: 18px;
  line-height: 1.28;
}

.home-category-card__children {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 18px 20px;
  list-style: none;
}

.home-category-card__children a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #526069;
  font-size: 15px;
  line-height: 1.35;
  transition: color .16s ease, transform .16s ease;
}

.home-category-card__children a:hover,
.home-category-card__children a:focus-visible {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(3px);
}

.home-category-card__children a::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

/* Root and child category cards use the image area edge-to-edge. */
.catalog-root-grid,
.catalog-section-grid {
  gap: 18px;
  border: 0;
}

.catalog-root-card,
.catalog-section-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgb(32 49 58 / 7%);
}

.catalog-root-card > a,
.catalog-section-card {
  display: block;
}

.catalog-root-card img,
.catalog-section-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.catalog-root-card h2 {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 18px;
}

.catalog-root-card ul {
  padding: 0 18px 20px;
}

.catalog-root-card li {
  margin: 7px 0;
  font-size: 14px;
}

.catalog-section-card strong {
  display: block;
  padding: 15px 16px 18px;
  color: #252a2e;
  font-size: 16px;
  line-height: 1.35;
}

/* Product media fills the card; descriptions remain visible. */
.catalog-products--table {
  gap: 16px;
  border: 0;
}

.catalog-products--table .catalog-product,
.marketplace-prototype .catalog-products--table .catalog-product--marketplace {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
}

.catalog-products--table .catalog-product__media {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.catalog-products--table .catalog-product__media > a,
.marketplace-prototype .catalog-products--table .catalog-product__media > a {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.catalog-products--table .catalog-product__media img,
.marketplace-prototype .catalog-products--table .catalog-product__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.related-products .catalog-products--table .catalog-product__media img,
.home-products .catalog-products--table .catalog-product__media img {
  object-fit: contain;
  object-position: center;
}

.home-products__tabs {
  gap: 8px;
}

.home-products__tabs button {
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #30383d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-products__tabs button:hover {
  color: var(--store-accent);
}

.home-products__tabs button[aria-selected="true"] {
  border-bottom-color: var(--store-accent);
  color: var(--store-accent);
}

.home-products__tabs button:focus-visible {
  outline: 3px solid rgb(77 136 170 / 28%);
  outline-offset: 2px;
}

.home-products__grid[hidden] {
  display: none !important;
}

.catalog-products--table .catalog-product__content,
.marketplace-prototype .catalog-products--table .catalog-product__content {
  padding: 14px 16px 0;
}

.catalog-products--table .catalog-product h2,
.marketplace-prototype .catalog-products--table .catalog-product h2 {
  margin: 0 0 4px;
}

.catalog-products--table .product-meta,
.marketplace-prototype .catalog-products--table .product-meta {
  margin-bottom: 6px;
}

.catalog-products--table .catalog-product__buy,
.marketplace-prototype .catalog-products--table .catalog-product__buy {
  padding: 10px 16px 14px;
}

.catalog-products--table .product-excerpt,
.marketplace-prototype .catalog-products--table .product-excerpt {
  display: block;
  margin: 0 0 16px;
  color: #56636a;
  font-size: 14px;
  line-height: 1.55;
}

.product-excerpt > :first-child,
.product-summary > :first-child,
.home-article-card__summary > :first-child {
  margin-top: 0;
}

.product-excerpt > :last-child,
.product-summary > :last-child,
.home-article-card__summary > :last-child {
  margin-bottom: 0;
}

.catalog-product__buy .button {
  width: 100%;
  min-height: 48px;
}

.catalog-product--list .catalog-product__media {
  overflow: hidden;
  border-radius: 10px;
  background: var(--store-soft);
}

@media (min-width: 901px) {
  .catalog-products--price {
    display: grid;
    gap: 10px;
    border-top: 0;
  }

  .catalog-products--price .catalog-product {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgb(28 44 52 / 6%);
  }

  .catalog-products--price .catalog-product__media {
    width: 190px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--store-soft);
  }

  .catalog-products--price .catalog-product__media > a {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .catalog-products--price .catalog-product__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .catalog-products--price .catalog-product__content {
    min-width: 0;
  }

  .catalog-products--price .catalog-product__buy {
    width: 190px;
  }
}

.catalog-product--list .catalog-product__media > a {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

.catalog-product--list .catalog-product__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}

/* Product detail gallery uses the whole available media column. */
.product-gallery {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--store-soft);
}

.product-gallery__zoom {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.product-gallery__main {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}

.product-gallery__thumbs {
  align-content: center;
  padding: 12px 8px;
}

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

.product-tabs {
  border: 1px solid var(--store-line);
  border-radius: 12px;
  overflow: hidden;
}

.product-tab-panel {
  padding: 28px;
}

/* Modern article presentation on the home page and article hub. */
.home-articles {
  gap: 20px;
  border: 0;
}

.home-articles__small {
  gap: 20px;
}

.home-articles .home-article-card {
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  background: #fff;
  box-shadow: var(--store-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-articles .home-article-card:hover {
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-3px);
}

.home-articles article.is-featured {
  grid-template-rows: minmax(360px, 1fr) auto;
}

.home-articles__small article {
  grid-template-rows: minmax(210px, 1fr) auto;
}

.home-article-image {
  width: 100%;
}

.home-articles img {
  transition: transform .28s ease;
}

.home-article-card:hover img {
  transform: scale(1.035);
}

.home-articles article > .home-article-card__body {
  padding: 22px 24px 24px;
}

.home-articles h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
}

.home-articles time {
  font-size: 13px;
}

.home-article-card__summary {
  color: #5c676d;
  font-size: 15px;
  line-height: 1.55;
}

.home-article-card__more {
  display: inline-flex;
  gap: 8px;
  margin-top: 17px;
  font-weight: 700;
}

.content-grid--article {
  gap: 20px;
  border: 0;
}

.content-grid--article .content-card {
  min-height: 100%;
  padding: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.content-grid--article .content-card:hover {
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-3px);
}

.content-grid--article .content-card > a:first-child {
  display: block;
}

.content-grid--article .content-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  object-fit: cover;
}

.content-grid--article .content-card h2,
.content-grid--article .content-card > div,
.content-grid--article .content-card__more {
  margin-inline: 22px;
}

.content-grid--article .content-card h2 {
  font-size: 20px;
  line-height: 1.35;
}

/* Pagination includes explicit directions in addition to page numbers. */
.catalog-pagination > div {
  flex-wrap: wrap;
  justify-content: center;
}

.catalog-pagination > div a {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
}

.catalog-pagination > div .catalog-pagination__direction {
  width: auto;
  padding-inline: 14px;
  gap: 7px;
}

.mobile-back-bar {
  display: none;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-back-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    border-bottom: 1px solid rgb(220 229 233 / 88%);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(10px);
  }

  .mobile-back-bar .container {
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .mobile-back-bar a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #252a2e;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-back-bar__icon {
    color: var(--accent-dark);
    font-size: 27px;
    line-height: 1;
  }

  .marketplace-prototype .catalog-toolbar {
    top: 56px;
  }
}

@media (max-width: 600px) {
  .brand-row {
    min-height: 76px;
  }

  .brand {
    gap: 4px;
  }

  .brand img {
    width: min(164px, 100%);
    height: auto;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .nav-inner {
    min-height: 58px;
    gap: 4px;
  }

  .main-nav {
    right: 0;
    left: 0;
  }

  .mobile-header-offer {
    display: grid;
    min-width: 0;
    margin-inline: auto;
    padding: 4px 7px;
    color: #3d4a50;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }

  .mobile-header-offer strong {
    color: var(--accent);
    font-size: 12px;
  }

  .mobile-header-offer:hover,
  .mobile-header-offer:focus-visible {
    border-radius: 7px;
    background: var(--store-soft);
    text-decoration: none;
  }

  .search-link {
    margin-left: 0;
  }

  .hero-slider__controls {
    bottom: 16px;
    max-width: calc(100% - 24px);
    gap: 5px;
    padding: 6px;
  }

  .hero-slider__dots {
    gap: 4px;
  }

  .hero-slider__dots button {
    width: 32px;
    height: 32px;
  }

  .hero-slider__dots button[aria-current="true"] {
    width: 42px;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  body {
    font-size: 16px;
    line-height: 1.62;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  h1 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.08;
  }

  h2 {
    font-size: 27px;
    line-height: 1.15;
  }

  h3 {
    font-size: 19px;
  }

  .breadcrumbs {
    display: none;
  }

  .section-heading {
    align-items: baseline;
  }

  .section-heading > a {
    font-size: 15px;
    white-space: nowrap;
  }

  .home-catalog__intro {
    font-size: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .category-grid .home-category-card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(32 49 58 / 11%);
  }

  .home-category-card__media {
    aspect-ratio: 1 / .96;
  }

  .home-category-card h3 {
    padding: 14px 13px 9px;
    font-size: 18px;
    line-height: 1.3;
  }

  .home-category-card__children {
    gap: 8px;
    padding: 0 13px 17px;
  }

  .home-category-card__children a {
    gap: 5px;
    font-size: 15px;
    line-height: 1.35;
  }

  .category-grid .home-category-card:active {
    border-color: #9fc2d2;
    box-shadow: 0 12px 30px rgb(43 91 113 / 16%);
    transform: translateY(-2px);
  }

  .catalog-root-grid,
  .catalog-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-root-card img,
  .catalog-section-card img {
    aspect-ratio: 1 / .86;
  }

  .catalog-root-card h2 {
    padding: 13px 12px 7px;
    font-size: 16px;
    line-height: 1.3;
  }

  .catalog-root-card ul {
    padding: 0 12px 15px;
  }

  .catalog-root-card li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .catalog-section-card strong {
    padding: 12px;
    font-size: 15px;
  }

  .catalog-products--table,
  .marketplace-prototype .catalog-products--table {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-products--table .catalog-product__media > a,
  .marketplace-prototype .catalog-products--table .catalog-product__media > a {
    aspect-ratio: 1 / 1;
  }

  .catalog-products--table .catalog-product__content,
  .marketplace-prototype .catalog-products--table .catalog-product__content {
    padding: 14px 16px 0;
  }

  .catalog-products--table .catalog-product__buy,
  .marketplace-prototype .catalog-products--table .catalog-product__buy {
    padding: 10px 16px 14px;
  }

  .catalog-products--table .product-excerpt,
  .marketplace-prototype .catalog-products--table .product-excerpt {
    font-size: 16px;
    line-height: 1.55;
  }

  .catalog-products--table .catalog-product h2,
  .marketplace-prototype .catalog-products--table .catalog-product h2 {
    font-size: 19px;
    line-height: 1.32;
  }

  .catalog-products--table .product-meta,
  .marketplace-prototype .catalog-products--table .product-meta {
    font-size: 14px;
  }

  .marketplace-prototype .catalog-products--table .product-characteristics {
    font-size: 15px;
  }

  .marketplace-prototype .catalog-products--table .catalog-product__buy {
    grid-template-columns: minmax(0, .75fr) minmax(172px, 1.25fr);
  }

  .marketplace-prototype .catalog-products--table .catalog-product__buy .button {
    padding-inline: 10px;
    font-size: 14px;
  }

  /* Restore the three explicit mobile catalogue views. */
  .marketplace-prototype .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .marketplace-prototype .marketplace-results {
    grid-column: 1;
  }

  .marketplace-prototype .display-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .marketplace-prototype .display-switch a {
    min-height: 50px;
    padding-inline: 8px;
    font-size: 15px;
    font-weight: 700;
  }

  .marketplace-prototype .display-switch__icon {
    display: none;
  }

  .marketplace-prototype .display-switch__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
  }

  /* Compact price rows: large media and no artificial vertical gaps. */
  .catalog-products--price {
    display: grid;
    gap: 10px;
    border-top: 0;
  }

  .catalog-products--price .catalog-product {
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: start;
    gap: 7px 14px;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgb(28 44 52 / 6%);
  }

  .catalog-products--price .catalog-product__media {
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--store-soft);
  }

  .catalog-products--price .catalog-product__media > a {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .catalog-products--price .catalog-product__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .catalog-products--price .catalog-product__content {
    align-self: center;
    min-width: 0;
  }

  .catalog-products--price .catalog-product h2 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
  }

  .catalog-products--price .product-meta {
    margin-bottom: 0;
    font-size: 14px;
  }

  .catalog-products--price .catalog-product__buy {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(190px, 1fr);
    align-items: center;
    gap: 9px;
    padding: 0;
  }

  .catalog-products--price .catalog-price {
    margin: 0;
  }

  .catalog-products--price .catalog-price strong {
    font-size: 22px;
  }

  .catalog-products--price .catalog-product__buy form {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .catalog-products--price .quantity-label input,
  .catalog-products--price .catalog-product__buy .button {
    min-height: 48px;
    height: 48px;
  }

  /* More readable catalogue mega-menu on phones. */
  .main-nav .nav-dropdown--mega {
    padding: 10px 12px 18px;
  }

  .main-nav .nav-catalog-link {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    min-height: 102px;
    padding: 10px 8px;
    font-size: 17px;
    line-height: 1.32;
  }

  .main-nav .nav-catalog-link img {
    width: 76px;
    height: 76px;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
  }

  .catalog-product--list {
    padding: 0;
    overflow: hidden;
    border-radius: var(--store-radius);
  }

  .catalog-product--list .catalog-product__media {
    border-radius: 0;
  }

  .catalog-product--list .catalog-product__content {
    padding: 0 18px;
  }

  .catalog-product--list .catalog-product__buy {
    padding: 0 18px 18px;
  }

  .product-hero {
    overflow: hidden;
    border-radius: 12px;
  }

  .product-gallery {
    padding: 0;
  }

  .product-gallery__zoom {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .product-gallery__thumbs {
    padding: 12px;
  }

  .product-info {
    padding: 24px 18px;
  }

  .product-summary,
  .product-tab-panel {
    font-size: 16px;
    line-height: 1.62;
  }

  .product-order {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .product-order input {
    width: 82px;
    min-height: 48px;
    font-size: 16px;
  }

  .product-tab-panel {
    padding: 22px 18px;
  }

  .product-tabs__nav button {
    min-height: 60px;
    font-size: 15px;
  }

  .home-articles {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-articles__small {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-articles article.is-featured,
  .home-articles__small article {
    grid-template-rows: auto auto;
  }

  .home-article-image {
    aspect-ratio: 16 / 10;
  }

  .home-articles article.is-featured .home-article-image {
    aspect-ratio: 16 / 11;
  }

  .home-articles article > .home-article-card__body {
    padding: 20px;
  }

  .home-articles h3 {
    font-size: 20px;
  }

  .home-article-card__summary {
    font-size: 16px;
  }

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

  .content-grid--article .content-card h2 {
    font-size: 20px;
  }

  .catalog-pagination {
    padding-inline: 0;
  }

  .catalog-pagination > div {
    gap: 7px;
  }

  .catalog-pagination > div a {
    min-width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .marketplace-prototype .catalog-pagination > div a {
    min-width: 44px;
    height: 44px;
  }

  .catalog-pagination > div .catalog-pagination__direction {
    order: 2;
    flex: 1 1 120px;
  }

  .home-products > .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .home-products__heading {
    gap: 14px;
  }

  .home-products__heading h2 {
    font-size: 30px;
  }

  .home-products__tabs {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px 0 7px;
    overflow: visible;
    font-size: 15px;
  }

  .home-products__tabs button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .home-products__grid {
    gap: 18px;
  }

  .home-products .catalog-products--table .catalog-product__media > a {
    aspect-ratio: 4 / 3;
  }

  .home-products .catalog-products--table .catalog-product__media img {
    object-fit: cover;
    object-position: center bottom;
  }

  .home-products .catalog-product__content {
    padding: 20px 20px 0;
  }

  .home-products .catalog-product__buy {
    padding: 20px;
  }

  .home-products .catalog-product h2 {
    font-size: 21px;
    line-height: 1.32;
  }

  .home-products .product-section-name,
  .home-products .product-meta {
    font-size: 15px;
  }

  .home-products .product-excerpt {
    font-size: 17px;
    line-height: 1.58;
  }

  .home-products .catalog-price strong {
    font-size: 24px;
  }

  .home-products .catalog-product__buy .button {
    min-height: 52px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .marketplace-prototype .catalog-products--table .catalog-product__buy {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .catalog-root-grid,
  .catalog-section-grid {
    gap: 8px;
  }

  .home-category-card h3,
  .catalog-root-card h2 {
    font-size: 17px;
  }

  .catalog-products--price .catalog-product {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px;
  }

  .catalog-products--price .catalog-product__buy {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .catalog-products--price .catalog-price strong {
    font-size: 19px;
  }

  .catalog-products--price .catalog-product__buy form {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .main-nav .nav-catalog-link {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 94px;
    font-size: 16px;
  }

  .main-nav .nav-catalog-link img {
    width: 68px;
    height: 68px;
  }

  .mobile-header-offer {
    padding-inline: 3px;
  }

  .mobile-header-offer strong {
    font-size: 11px;
  }

  .mobile-header-offer span {
    font-size: 10px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .category-grid .home-category-card,
  .category-grid .home-category-card img,
  .home-articles .home-article-card,
  .home-articles img,
  .content-grid--article .content-card {
    transition: none;
  }
}

/* Accessibility pass: preserve the palette while meeting text contrast and target-size requirements. */
:root {
  --accent: #417a99;
}

.mobile-header-offer strong {
  color: #2e718f;
}

.contact--phone > a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.product-badges span {
  background: #08799e;
}

.product-badges span:nth-child(2n) {
  background: #3b7615;
}

.product-badges span:nth-child(3n) {
  background: #aa3030;
}

.product-meta span,
.product-characteristics,
.range-fields label,
.product-section-name {
  color: #666;
}

.recently-viewed .carousel__slide .product-meta span {
  color: #666;
}

.product-page .product-gallery__dots button,
.product-page .product-gallery__dots button[aria-current="true"] {
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
}

.product-page .product-gallery__dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccd0d4;
  transform: translate(-50%, -50%);
}

.product-page .product-gallery__dots button[aria-current="true"]::before {
  width: 20px;
  border-radius: 4px;
  background: #417a99;
}

/* Desktop fidelity pass: header/hero, catalogue media, prices and contacts. */
.topbar nav a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  letter-spacing: .03em;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
}

.brand {
  justify-items: center;
}

.brand .brand-tagline {
  width: 100%;
  color: #111;
  text-align: center;
}

.hero-slider__controls {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-slider__dots {
  gap: 10px;
}

.hero-slider__dots button,
.hero-slider__dots button[aria-current="true"] {
  width: 11px;
  height: 11px;
  border: 2px solid #343a3e;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 24%);
}

.hero-slider__dots button[aria-current="true"] {
  background: #343a3e;
}

.hero-slider__dots button:focus-visible {
  outline: 3px solid rgb(77 136 170 / 42%);
  outline-offset: 5px;
}

@media (min-width: 901px) {
  .is-home-page .site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    color: #252a2e;
  }

  .is-home-page .brand-row,
  .is-home-page .nav-wrap {
    background: transparent;
  }

  .is-home-page .nav-wrap {
    border-color: rgb(74 83 88 / 14%);
  }

  .is-home-page .main-nav__top-link,
  .is-home-page .search-link,
  .is-home-page .cart-link {
    color: #252a2e;
  }

  .is-home-page .hero-slider,
  .is-home-page .hero-slide,
  .is-home-page .hero-slide__content {
    min-height: 650px;
  }

  .is-home-page .hero-slide__content {
    padding-top: 265px;
    padding-bottom: 86px;
  }

  .catalog-sidebar {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #aac3cf transparent;
  }
}

/* Subcategories use readable horizontal rows with source descriptions. */
.catalog-section-list {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.catalog-section-row {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--store-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.catalog-section-row:hover {
  border-color: #aac9d7;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.catalog-section-row__media {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 10px;
  background: #f7f9fa;
}

.catalog-section-row__media img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
}

.catalog-section-row__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.catalog-section-row__body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.catalog-section-row__body h2 a {
  color: #252a2e;
}

.catalog-section-row__body p {
  max-width: 72ch;
  margin: 0 0 18px;
  color: #59656b;
  font-size: 15px;
  line-height: 1.6;
}

.catalog-section-row__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-weight: 700;
  white-space: nowrap;
}

/* Source images are shown completely in every catalogue mode. */
.catalog-root-card img,
.catalog-section-card img,
.category-grid .home-category-card__media img,
.catalog-products--table .catalog-product__media img,
.marketplace-prototype .catalog-products--table .catalog-product__media img,
.catalog-product--list .catalog-product__media img,
.catalog-products--price .catalog-product__media img,
.home-products .catalog-products--table .catalog-product__media img,
.related-products .catalog-products--table .catalog-product__media img {
  object-fit: contain;
  object-position: center;
}

.catalog-products--table .catalog-product__media,
.catalog-product--list .catalog-product__media,
.catalog-products--price .catalog-product__media {
  background: #fff;
}

.catalog-products--table .catalog-product__media > a,
.marketplace-prototype .catalog-products--table .catalog-product__media > a,
.catalog-product--list .catalog-product__media > a,
.catalog-products--price .catalog-product__media > a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.catalog-products--table .catalog-product__media img,
.marketplace-prototype .catalog-products--table .catalog-product__media img,
.catalog-product--list .catalog-product__media img,
.catalog-products--price .catalog-product__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery {
  background: #fff;
}

.product-gallery__zoom {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.product-gallery__main {
  object-fit: contain;
  object-position: center;
}

@media (min-width: 901px) {
  .catalog-products--price .catalog-product {
    grid-template-columns: 230px minmax(0, 1fr) 200px;
    gap: 22px;
    padding: 14px;
  }

  .catalog-products--price .catalog-product__media {
    width: 230px;
  }

  .catalog-products--price .catalog-product__media > a {
    aspect-ratio: 4 / 3;
  }

  .catalog-products--price .catalog-product__buy {
    width: 200px;
  }
}

/* Articles share one card rhythm; images are never clipped. */
@media (min-width: 901px) {
  .home-articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-articles__small {
    display: contents;
  }
}

.home-articles article.is-featured,
.home-articles__small article {
  display: grid;
  grid-template-rows: auto 1fr;
}

.home-article-image {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: #f5f7f8;
}

.home-articles article.is-featured .home-article-image {
  aspect-ratio: 16 / 10;
}

.home-articles img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.home-article-card:hover img {
  transform: none;
}

.home-articles article > .home-article-card__body {
  display: flex;
  flex-direction: column;
}

.home-article-card__more {
  margin-top: auto;
  padding-top: 17px;
}

/* Price lists are presented as downloadable document cards. */
.page-shell--price {
  max-width: var(--container);
}

.price-page__intro {
  max-width: 760px;
  margin: 0 0 30px;
  color: #5c676d;
  font-size: 17px;
}

.price-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f8fbfc);
  box-shadow: 0 8px 26px rgb(32 49 58 / 7%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.price-card:hover {
  border-color: #a9c8d6;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.price-card__icon {
  display: grid;
  width: 76px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #e9f3f7;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.price-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.32;
}

.price-card p {
  margin: 0;
  color: #7b858a;
  font-size: 13px;
}

.price-card__download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #aac7d4;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.price-card__download:hover,
.price-card__download:focus-visible {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Contacts are visible before the map and grouped into clear cards. */
.page-shell--contacts {
  max-width: var(--container);
}

.contacts-layout {
  display: grid;
  gap: 24px;
}

.contacts-layout .contact-page {
  order: -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contacts-layout .contact-page > div {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f7fafb);
  box-shadow: 0 8px 24px rgb(32 49 58 / 7%);
}

.contacts-layout .contact-page h2 {
  margin: 0 0 10px;
  color: #252a2e;
  font-size: 18px;
}

.contacts-layout .contact-page p {
  margin: 0;
  color: #59656b;
  font-size: 15px;
}

.contacts-layout .contact-map {
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 16px;
  box-shadow: var(--store-shadow);
}

.contacts-layout .contact-map iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

@media (max-width: 900px) {
  .catalog-section-row {
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    min-height: 180px;
  }

  .catalog-section-row__body {
    padding: 22px;
  }

  .price-card-grid {
    grid-template-columns: 1fr;
  }

  .contacts-layout .contact-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-slider__controls {
    padding: 0;
  }

  .hero-slider__dots button,
  .hero-slider__dots button[aria-current="true"] {
    width: 11px;
    height: 11px;
  }

  .catalog-section-row {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 150px;
    border-radius: 10px;
  }

  .catalog-section-row__media {
    padding: 6px;
  }

  .catalog-section-row__body {
    padding: 16px;
  }

  .catalog-section-row__body h2 {
    font-size: 18px;
  }

  .catalog-section-row__link {
    font-size: 14px;
  }

  .catalog-section-row__body p {
    display: none;
  }

  .price-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .price-card__icon {
    width: 64px;
    height: 78px;
  }

  .price-card__download {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .contacts-layout .contact-page {
    grid-template-columns: 1fr;
  }

  .contacts-layout .contact-map iframe {
    min-height: 420px;
  }
}

/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · mobile catalog chrome · existing storefront DNA */
.mobile-header-back {
  display: none;
}

@media (max-width: 900px) {
  .has-mobile-header-back .brand-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .has-mobile-header-back .brand-row::before {
    content: "";
    width: 48px;
    height: 48px;
  }

  .mobile-header-back {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    z-index: 1200;
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    color: var(--accent-dark);
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-header-back > span:first-child {
    position: relative;
    width: 26px;
    height: 18px;
    font-size: 0;
  }

  .mobile-header-back > span:first-child::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 2px;
    width: 23px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.95));
  }

  .mobile-header-back > span:first-child::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-bottom: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg);
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.95));
  }

  .mobile-header-back > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mobile-header-back:hover {
    color: var(--accent-dark);
    background: var(--store-soft);
    box-shadow: none;
    text-decoration: none;
  }

  .mobile-header-back:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
  }

  .mobile-header-back:active {
    color: var(--accent-dark);
    background: var(--store-soft);
    transform: translateY(1px);
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    top: 0;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(116px, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results {
    display: contents;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    white-space: nowrap;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    grid-column: 3;
    grid-row: 1;
    min-height: 38px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    width: 120px;
    min-height: 38px;
    justify-self: center;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch a {
    min-height: 36px;
    padding: 5px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-sort-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select {
    min-height: 38px;
  }
}

@media (max-width: 600px) {
  .has-mobile-header-back .brand-row {
    display: flex;
    gap: 8px;
  }

  .has-mobile-header-back .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .has-mobile-header-back .page-shell > .breadcrumbs {
    display: none;
  }

  .has-mobile-header-back .page-shell {
    padding-top: 18px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    display: grid;
    grid-template-columns: auto minmax(102px, 1fr) auto;
    gap: 6px;
    padding: 8px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results {
    display: contents;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 12px;
    white-space: nowrap;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    grid-column: 3;
    grid-row: 1;
    min-height: 36px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(116px, 100%);
    min-height: 36px;
    justify-self: center;
    border-radius: 7px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch a {
    min-height: 34px;
    padding: 4px;
    font-size: 0;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch__icon {
    display: inline;
    font-size: 15px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-sort-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select {
    min-height: 36px;
    padding-block: 5px;
    border-radius: 7px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .has-mobile-header-back .brand img {
    width: min(118px, 100%);
  }

  .has-mobile-header-back .brand-tagline {
    font-size: 8px;
  }

  .mobile-header-back {
    width: 36px;
    flex-basis: 36px;
  }

  .has-mobile-header-back .brand-row::before {
    width: 36px;
  }

  .has-mobile-header-back .brand-row {
    gap: 4px;
  }

  .has-mobile-header-back .brand-row .contact--phone {
    font-size: 10px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(96px, 1fr) auto;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span,
  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    font-size: 11px;
  }
}

/* Final compact order: results · views · sorting · filters. */
@media (max-width: 900px) {
  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(108px, 1.3fr) minmax(82px, 0.85fr) auto;
    align-items: center;
    gap: 6px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span {
    grid-column: 1;
    grid-row: 1;
    line-height: 1;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-height: 36px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch a {
    min-height: 34px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-sort-form {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 5px 24px 5px 8px;
    line-height: 1;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    grid-column: 4;
    grid-row: 1;
    min-height: 36px;
    line-height: 1;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .mobile-header-back {
    top: 0;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .catalog-toolbar {
    grid-template-columns: 48px minmax(108px, 1.3fr) minmax(82px, 0.85fr) auto;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .marketplace-results > span {
    display: none;
  }
}

@media (max-width: 600px) {
  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(94px, 1.3fr) minmax(68px, 0.85fr) auto;
    gap: 4px;
    padding: 6px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch {
    width: 100%;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch a {
    min-height: 32px;
    padding: 3px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch__icon {
    font-size: 14px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select,
  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    min-height: 34px;
    font-size: 11px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span {
    font-size: 11px;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .catalog-toolbar {
    grid-template-columns: 48px minmax(94px, 1.3fr) minmax(68px, 0.85fr) auto;
  }

}

@media (max-width: 360px) {
  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(86px, 1.25fr) minmax(64px, 0.8fr) auto;
    gap: 3px;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch {
    width: 100%;
  }

  .has-mobile-header-back .marketplace-prototype .display-switch__icon {
    font-size: 13px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select {
    padding-inline: 5px 20px;
    font-size: 10px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > span,
  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    font-size: 10px;
  }

  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    padding-inline: 6px;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .catalog-toolbar {
    grid-template-columns: 36px minmax(86px, 1.25fr) minmax(64px, 0.8fr) auto;
  }
}

/* White media surfaces keep contained images clean and consistent across content cards. */
.category-grid .home-category-card,
.home-category-card__media,
.catalog-root-card,
.catalog-section-card,
.catalog-section-row__media,
.home-article-image,
.marketplace-prototype .catalog-products--table .catalog-product__media,
.marketplace-prototype .catalog-products--list .catalog-product__media,
.marketplace-prototype .catalog-products--price .catalog-product__media,
.home-products .catalog-products--table .catalog-product__media,
.related-products .catalog-products--table .catalog-product__media {
  background: #fff;
}

/* Hallmark · component polish: larger back target and optically aligned catalog controls. */
.main-nav .main-nav__mobile-service-link {
  display: none;
}

@media (min-width: 901px) {
  .main-nav {
    grid-template-columns: repeat(6, auto);
  }

  .main-nav .main-nav__top-link {
    padding-inline: 18px;
  }
}

@media (max-width: 900px) {
  .main-nav .main-nav__mobile-service-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    white-space: nowrap;
  }

  .main-nav .main-nav__training-link {
    display: none;
  }

  .is-home-page .site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    background: transparent;
  }

  .is-home-page .brand-row,
  .is-home-page .nav-wrap,
  .is-home-page .menu-toggle {
    background: transparent;
  }

  .is-home-page .nav-wrap {
    border-color: rgb(74 83 88 / 14%);
  }

  .is-home-page .hero-slider,
  .is-home-page .hero-slide,
  .is-home-page .hero-slide__content {
    min-height: 500px;
  }

  .is-home-page .hero-slide__content {
    padding-top: 178px;
    padding-bottom: 64px;
  }

  .has-mobile-header-back .brand-row::before {
    width: 56px;
    height: 56px;
  }

  .mobile-header-back {
    top: max(2px, env(safe-area-inset-top));
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .mobile-header-back > span:first-child {
    width: 34px;
    height: 24px;
  }

  .mobile-header-back > span:first-child::before {
    top: 10px;
    width: 30px;
    height: 4px;
  }

  .mobile-header-back > span:first-child::after {
    top: 4px;
    width: 13px;
    height: 13px;
    border-bottom-width: 4px;
    border-left-width: 4px;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .mobile-header-back {
    top: 4px;
  }
}

@media (max-width: 600px) {
  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(94px, 1fr) 76px 76px;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .catalog-toolbar {
    grid-template-columns: 56px minmax(94px, 1fr) 76px 76px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-sort-form,
  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    width: 100%;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar select,
  .has-mobile-header-back .marketplace-prototype .marketplace-results > button {
    height: 34px;
    min-height: 34px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
  }
}

@media (max-width: 360px) {
  .has-mobile-header-back .brand-row::before {
    width: 52px;
  }

  .has-mobile-header-back .marketplace-prototype .catalog-toolbar {
    grid-template-columns: auto minmax(66px, 1fr) 72px 72px;
  }

  .has-mobile-header-back.is-mobile-back-scrolled .marketplace-prototype .catalog-toolbar {
    grid-template-columns: 56px minmax(66px, 1fr) 72px 72px;
  }
}
