/* ========================================================================== */
/* Reference typography and clean storefront canvas                           */
/* ========================================================================== */

html {
  font-size: 16px;
}

body {
  color: #202331;
  background-color: #fefaf7;
  background-image: none;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

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

.home-category-strip,
.home-hero--reference,
.home-reference-section,
.home-benefits {
  background: #f5f6ef;
}

.home-category-strip {
  padding-top: 2rem;
}

.home-reference-section {
  padding-top: 4.5rem;
}

.home-reference-section--compact {
  padding-top: 3rem;
}

.home-reference-section--about {
  padding-top: 5rem;
}

.site-header {
  margin-top: 2.5rem;
}

.promo-strip__inner {
  min-height: 48px;
  font-size: 13px;
}

.topbar {
  grid-template-columns: 195px minmax(320px, 1fr) auto;
  min-height: 104px;
  gap: 1rem;
}

.topbar .brand__copy strong {
  font-size: 19px;
}

.topbar .brand__copy small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-search-shell {
  min-height: 48px;
}

.header-search-shell__input {
  font-size: 13px;
}

.header-search-shell__button {
  min-width: 100px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
}

.header-account-link strong,
.header-register-link {
  font-size: 13px;
}

.header-account-link small {
  font-size: 10px;
}

.primary-nav-bar,
.primary-nav-bar__inner,
.primary-nav-bar .main-nav {
  min-height: 58px;
}

.primary-nav-bar .main-nav > a {
  padding: 1rem 0;
  font-size: 14px;
  font-weight: 600;
}

.home-hero--reference {
  padding-top: 1.5rem;
}

.home-hero--reference .home-hero__main,
.home-hero--reference .future-hero__banner,
.home-hero--reference .future-hero__banner--full {
  aspect-ratio: 2.65 / 1;
}

.hero-slide__catalogue-copy > span {
  font-size: 18px;
}

.hero-slide__catalogue-copy h1 {
  font-size: clamp(38px, 4.25vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-slide__catalogue-copy p {
  font-size: 15px;
}

.hero-slide__catalogue-copy a {
  padding: 0.75rem 1.5rem;
  font-size: 12px;
}

.home-category-strip__grid {
  gap: 2rem;
}

.home-category-tile {
  min-height: 90px;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.home-category-tile__icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 1.45rem;
}

.home-category-tile strong {
  font-size: 17px;
  font-weight: 500;
}

.home-reference-heading {
  min-height: 58px;
  margin-bottom: 2.5rem;
}

.home-reference-heading h2 {
  padding-bottom: 1rem;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-reference-heading > a {
  padding-bottom: 1rem;
  font-size: 12px;
}

.home-product-tabs {
  gap: 2rem;
}

.home-product-tabs__item {
  font-size: 12px;
  font-weight: 600;
}

.product-grid--home-reference,
.product-grid--home-reference.product-grid--shop {
  gap: 2rem;
}

.product-grid--home-reference .pcard {
  min-height: 470px;
}

.product-grid--home-reference .pcard__media {
  min-height: 265px;
  padding: 2rem 1.5rem 1rem;
}

.product-grid--home-reference .pcard__img {
  max-height: 245px;
}

.product-grid--home-reference .pcard__img--art {
  width: 138px;
  height: 188px;
  font-size: 2.75rem;
}

.product-grid--home-reference .pcard__name {
  min-height: 60px;
  padding: 0.85rem 1.25rem 0.35rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.product-grid--home-reference .pcard__price-wrap {
  padding: 0.5rem 1.25rem 0.75rem;
}

.product-grid--home-reference .pcard__uom1-price {
  font-size: 15px;
  font-weight: 600;
}

.product-grid--home-reference .pcard__inc-label,
.product-grid--home-reference .pcard__uom2-ref {
  font-size: 11px;
}

.product-grid--home-reference .pcard__footer {
  padding: 0.75rem 1.25rem 1.5rem;
}

.product-grid--home-reference .pcard__add-btn,
.product-grid--home-reference .pcard__login-cta {
  min-height: 42px;
  padding: 0.65rem 1.2rem;
  font-size: 12px;
}

.home-split-ads {
  gap: 2rem;
}

.home-split-ad {
  min-height: 298px;
  padding: 2.5rem;
  border-radius: 8px;
}

.home-split-ad__copy small {
  font-size: 13px;
}

.home-split-ad__copy strong {
  font-size: clamp(36px, 3vw, 46px);
}

.home-split-ad__copy em {
  font-size: 13px;
}

.home-wide-promo {
  min-height: 360px;
  border-radius: 10px;
}

.home-wide-promo__eyebrow {
  font-size: 13px;
}

.home-wide-promo > strong {
  font-size: clamp(30px, 3vw, 44px);
}

.home-wide-promo__button {
  font-size: 12px;
}

.home-story-grid {
  gap: 2rem;
}

.home-story-card {
  border-radius: 10px;
}

.home-story-card__media {
  height: 235px;
}

.home-story-card__body {
  padding: 1.5rem 1.75rem 2rem;
}

.home-story-card__body small {
  font-size: 13px;
  font-style: italic;
}

.home-story-card__body h3 {
  min-height: 64px;
  margin: 0.65rem 0 0.8rem;
  font-size: 18px;
  line-height: 1.3;
}

.home-story-card__body p {
  min-height: 92px;
  font-size: 14px;
  line-height: 1.75;
}

.home-story-card__body > a {
  padding: 0.65rem 1.2rem;
  font-size: 12px;
}

.home-about-card {
  min-height: 475px;
}

.home-about-card__copy > span {
  font-size: 12px;
}

.home-about-card__copy h2 {
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-about-card__copy p {
  font-size: 15px;
  line-height: 1.75;
}

.home-about-card__copy a {
  font-size: 13px;
}

.home-benefits {
  padding: 6rem 0;
}

.home-benefits__grid {
  gap: 4rem;
}

.home-benefits article > span {
  font-size: 2.25rem;
}

.home-benefits strong {
  margin-bottom: 0.6rem;
  font-size: 17px;
  line-height: 1.25;
}

.home-benefits p {
  font-size: 14px;
  line-height: 1.75;
}

.home-newsletter__inner {
  min-height: 310px;
}

.home-newsletter h2 {
  font-size: 22px;
  font-weight: 700;
}

.home-newsletter p {
  margin: 1rem 0 2rem;
  font-size: 14px;
}

.home-newsletter__form {
  min-height: 52px;
}

.home-newsletter__form input {
  padding: 0.75rem 1.25rem;
  font-size: 14px;
}

.home-newsletter__form button {
  padding: 0.7rem 1.6rem;
  font-size: 12px;
}

.site-footer {
  padding-top: 5rem;
}

.footer-grid {
  gap: 3rem;
  padding-bottom: 4rem;
}

.site-footer h3 {
  font-size: 20px;
}

.site-footer h4 {
  margin-bottom: 1.5rem;
  font-size: 14px;
  font-weight: 600;
}

.footer-grid a,
.footer-grid p,
.footer-note {
  font-size: 14px;
  line-height: 1.8;
}

.footer-category-links {
  gap: 0.55rem;
}

.footer-bottom {
  min-height: 78px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .home-category-strip__grid,
  .product-grid--home-reference,
  .product-grid--home-reference.product-grid--shop {
    gap: 1rem;
  }

  .home-category-tile strong {
    font-size: 14px;
  }

  .product-grid--home-reference .pcard__name {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    margin-top: 0;
  }

  .home-reference-section {
    padding-top: 3.5rem;
  }

  .home-benefits {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .promo-strip__inner {
    min-height: 40px;
    font-size: 11px;
  }

  .home-hero--reference .home-hero__main,
  .home-hero--reference .future-hero__banner,
  .home-hero--reference .future-hero__banner--full {
    aspect-ratio: 1.55 / 1;
  }

  .hero-slide__catalogue-copy > span {
    font-size: 13px;
  }

  .hero-slide__catalogue-copy h1 {
    font-size: 32px;
  }

  .home-category-strip {
    padding-top: 1rem;
  }

  .home-category-tile {
    min-height: 68px;
    padding: 0.7rem;
  }

  .home-category-tile__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1rem;
  }

  .home-category-tile strong {
    font-size: 13px;
  }

  .home-reference-heading {
    min-height: 48px;
    margin-bottom: 1.5rem;
  }

  .home-reference-heading h2 {
    font-size: 18px;
  }

  .product-grid--home-reference .pcard {
    min-height: 360px;
  }

  .product-grid--home-reference .pcard__media {
    min-height: 180px;
    padding: 1rem 0.75rem;
  }

  .product-grid--home-reference .pcard__img--art {
    width: 96px;
    height: 132px;
  }

  .product-grid--home-reference .pcard__name {
    min-height: 54px;
    padding: 0.65rem 0.6rem 0.25rem;
    font-size: 13px;
  }

  .product-grid--home-reference .pcard__add-btn,
  .product-grid--home-reference .pcard__login-cta {
    min-height: 36px;
    padding: 0.5rem 0.7rem;
    font-size: 10px;
  }

  .home-split-ad {
    min-height: 235px;
    padding: 1.5rem;
  }

  .home-split-ad__copy strong {
    font-size: 30px;
  }

  .home-story-card__body h3 {
    min-height: 0;
    font-size: 17px;
  }

  .home-story-card__body p {
    min-height: 0;
    font-size: 13px;
  }

  .home-about-card__copy h2 {
    font-size: 38px;
  }

  .home-newsletter__inner {
    min-height: 260px;
  }

  .footer-grid a,
  .footer-grid p,
  .footer-note {
    font-size: 12px;
  }
}

/* Keep the supplied food illustration visible through the full homepage. */
body[data-page="home"] .site-shell {
  width: min(calc(100% - 2rem), 1170px);
  margin: 0 auto;
}

body[data-page="home"] .site-header {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body[data-page="home"] .page-root {
  background: #f5f6ef;
}

body[data-page="home"] .page-root > section,
body[data-page="home"] .home-category-strip,
body[data-page="home"] .home-hero--reference,
body[data-page="home"] .home-reference-section,
body[data-page="home"] .home-benefits {
  background: transparent;
}

body[data-page="home"] .page-root > section > .container,
body[data-page="home"] .site-footer > .container {
  width: 100%;
}

body[data-page="home"] .site-footer {
  width: 100%;
}

@media (max-width: 900px) {
  body[data-page="home"] .site-shell {
    width: 100%;
  }
}

/* ========================================================================== */
/* Final Efway-matched storefront pass                                         */
/* ========================================================================== */

body[data-page="home"] .page-root {
  overflow: hidden;
}

body[data-page="home"] .site-header {
  border-color: #ebe8e2;
  box-shadow: 0 8px 26px rgba(36, 39, 48, 0.045);
}

body[data-page="home"] .home-hero--reference .hero-slide {
  min-height: 100%;
  padding: 0;
}

body[data-page="home"] .home-hero--reference .hero-slide__image--feature {
  transform: none;
}

body[data-page="home"] .home-reference-heading {
  border-color: #e2e3dc;
}

body[data-page="home"] .product-grid--home-reference .pcard {
  overflow: hidden;
  border: 1px solid rgba(226, 225, 218, 0.72);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body[data-page="home"] .product-grid--home-reference .pcard:hover,
body[data-page="home"] .product-grid--home-reference .pcard:focus-visible {
  border-color: rgba(215, 107, 45, 0.2);
}

body[data-page="home"] .product-grid--home-reference .pcard__footer {
  flex-direction: column;
  gap: 0.6rem;
}

.pcard__quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.pcard__quick-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: #f4f5ef;
  color: #202331;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pcard__quick-action:hover,
.pcard__quick-action:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.pcard__quick-action.is-active {
  background: rgba(215, 107, 45, 0.12);
  color: var(--primary);
}

body[data-page="home"] .home-split-ad,
body[data-page="home"] .home-wide-promo,
body[data-page="home"] .home-story-card,
body[data-page="home"] .home-about-card {
  box-shadow: 0 1px 0 rgba(32, 35, 49, 0.025);
}

body[data-page="home"] .home-newsletter {
  position: relative;
}

body[data-page="home"] .home-newsletter::before,
body[data-page="home"] .home-newsletter::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(215, 107, 45, 0.18);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

body[data-page="home"] .home-newsletter::before {
  left: -72px;
}

body[data-page="home"] .home-newsletter::after {
  right: -72px;
}

@media (min-width: 901px) {
  body[data-page="home"] .home-hero--reference {
    padding-top: 1.5rem;
  }

  body[data-page="home"] .home-reference-section--compact .home-split-ad {
    min-height: 270px;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__footer {
    min-height: 112px;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] {
    background-color: #f5f6ef;
    background-image: none;
  }

  body[data-page="home"] .site-header {
    margin-top: 0;
  }

  body[data-page="home"] .promo-strip__inner {
    grid-template-columns: 1fr auto;
    min-height: 40px;
    padding: 0.55rem 1rem;
  }

  body[data-page="home"] #promo-center {
    display: none;
  }

  body[data-page="home"] #promo-right {
    border: 0;
    padding-left: 0.75rem;
  }

  body[data-page="home"] .topbar {
    min-height: 94px;
    padding: 0.7rem 1rem;
  }

  body[data-page="home"] .topbar .brand__mark {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  body[data-page="home"] .menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid #ebe8e2;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 35, 49, 0.06);
  }

  body[data-page="home"] .home-hero--reference {
    padding-top: 0;
  }

  body[data-page="home"] .home-hero--reference .home-hero__main,
  body[data-page="home"] .home-hero--reference .future-hero__banner,
  body[data-page="home"] .home-hero--reference .future-hero__banner--full {
    min-height: 0;
    aspect-ratio: 1.72 / 1;
  }

  body[data-page="home"] .home-hero--reference .hero-slide,
  body[data-page="home"] .home-hero--reference .hero-slide--static {
    min-height: 100%;
  }

  body[data-page="home"] .home-category-strip {
    padding: 1rem 0 0;
  }

  body[data-page="home"] .home-reference-section {
    padding-top: 3.25rem;
  }

  body[data-page="home"] .home-reference-section--compact {
    padding-top: 2rem;
  }

  body[data-page="home"] .home-reference-heading {
    margin-bottom: 1.5rem;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__footer {
    min-height: 104px;
  }

  body[data-page="home"] .home-about-card__copy h2 {
    letter-spacing: -0.035em;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .page-root > section > .container,
  body[data-page="home"] .site-footer > .container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  body[data-page="home"] .home-hero--reference > .container {
    padding: 0;
  }

  body[data-page="home"] .home-hero--reference .home-hero__main,
  body[data-page="home"] .home-hero--reference .future-hero__banner,
  body[data-page="home"] .home-hero--reference .future-hero__banner--full {
    aspect-ratio: 1.58 / 1;
  }

  body[data-page="home"] .home-category-strip__grid {
    gap: 0.75rem;
  }

  body[data-page="home"] .home-category-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .home-reference-heading h2 {
    font-size: 17px;
  }

  body[data-page="home"] .product-grid--home-reference,
  body[data-page="home"] .product-grid--home-reference.product-grid--shop {
    gap: 0.75rem;
  }

  body[data-page="home"] .product-grid--home-reference .pcard {
    min-height: 392px;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__media {
    min-height: 176px;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__price-wrap {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__footer {
    min-height: 106px;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  body[data-page="home"] .product-grid--home-reference .pcard__add-btn,
  body[data-page="home"] .product-grid--home-reference .pcard__login-cta {
    width: 100%;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    white-space: nowrap;
  }

  body[data-page="home"] .home-split-ad {
    min-height: 225px;
  }

  body[data-page="home"] .home-story-grid {
    gap: 1rem;
  }

  body[data-page="home"] .home-about-card__copy h2 {
    font-size: 36px;
  }

  body[data-page="home"] .home-newsletter::before,
  body[data-page="home"] .home-newsletter::after {
    display: none;
  }

  body[data-page="home"] .site-footer {
    padding-top: 3.25rem;
  }
}

/* Unified gutters: content sections align with the header, while visual
   hero/promo/about blocks keep the full-bleed treatment from the reference. */
body[data-page="home"] {
  --home-content-gutter: 30px;
}

body[data-page="home"] .site-header .container,
body[data-page="home"] .home-category-strip > .container,
body[data-page="home"] .home-reference-section:not(.home-reference-section--compact):not(.home-reference-section--about) > .container,
body[data-page="home"] .home-benefits > .container,
body[data-page="home"] .site-footer > .container {
  padding-right: var(--home-content-gutter);
  padding-left: var(--home-content-gutter);
}

body[data-page="home"] .home-hero--reference > .container,
body[data-page="home"] .home-reference-section--compact > .container,
body[data-page="home"] .home-reference-section--about > .container,
body[data-page="home"] .home-newsletter > .container {
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 900px) {
  body[data-page="home"] {
    --home-content-gutter: 18px;
  }

  body[data-page="home"] .home-hero--reference > .container,
  body[data-page="home"] .home-reference-section--compact > .container,
  body[data-page="home"] .home-reference-section--about > .container,
  body[data-page="home"] .home-newsletter > .container {
    padding-right: var(--home-content-gutter);
    padding-left: var(--home-content-gutter);
  }
}

@media (max-width: 640px) {
  body[data-page="home"] {
    --home-content-gutter: 12px;
  }

  body[data-page="home"] .home-hero--reference > .container {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Exact reference navbar structure, backed by live SupplyFlow data. */
.site-header {
  overflow: visible;
  background: #fff;
  border: 1px solid #ece9e3;
  box-shadow: none;
}

.site-header .container {
  padding-right: 0;
  padding-left: 0;
}

body[data-page="home"] .site-header .container {
  padding-right: 0;
  padding-left: 0;
}

.promo-strip__inner {
  min-height: 48px;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 0;
  padding: 0;
}

#promo-left {
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  color: #747882;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-utility {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 16px;
  border-left: 1px solid #ebe9e4;
  color: #4f535c;
  white-space: nowrap;
}

.header-utility__icon {
  color: var(--primary);
  font-size: 1rem;
}

#promo-center,
#promo-right {
  text-align: left;
  padding: 0;
  border: 0;
}

.topbar {
  grid-template-columns: 195px minmax(300px, 1fr) auto;
  gap: 0;
  min-height: 104px;
  padding: 0;
}

.topbar > .brand {
  width: 100%;
  height: 104px;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid #ebe9e4;
}

.topbar .brand__mark {
  width: 78px;
  height: 72px;
  flex-basis: 78px;
  border-radius: 0;
}

.topbar .brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar .brand__copy {
  display: none;
}

.header-quick-search {
  min-width: 0;
  padding: 0 28px 0 16px;
}

.header-search-shell {
  min-height: 48px;
  border: 1px solid #e3e4df;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(32, 35, 49, 0.015);
}

.header-search-shell__icon {
  width: 18px;
  height: 18px;
  margin-left: 15px;
  color: #8b9098;
}

.header-search-shell__button {
  min-width: 100px;
  min-height: 38px;
  margin-right: 4px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: none;
  font-size: 13px;
}

.header-actions {
  gap: 12px;
  padding-right: 20px;
}

.header-auth-group {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.header-round-action {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid #ebe9e4;
  border-radius: 50%;
  background: #f7f8f2;
  color: #202331;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header-round-action:hover,
.header-round-action:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.header-round-action svg {
  width: 23px;
  height: 23px;
}

.header-auth-copy {
  display: grid;
  color: #101216;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.header-auth-copy > span {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.header-auth-copy a:hover {
  color: var(--primary);
}

.header-auth-copy small {
  color: #757982;
  font-size: 9px;
  font-weight: 500;
}

.header-auth-copy .logout-link {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 9px;
}

.header-action-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f3a047;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.header-action-badge--cart {
  background: var(--primary-deep);
}

.header-cart-total {
  color: #6c7078;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav-bar {
  min-height: 58px;
  border-top: 1px solid #ebe9e4;
  border-bottom: 0;
}

.primary-nav-bar__inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  padding: 0;
}

.primary-nav-bar__inner::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid #ebe9e4;
}

.primary-nav-bar .main-nav {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 42px);
  padding: 0 16px;
}

.primary-nav-bar .main-nav > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0;
  color: #101216;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav-bar .main-nav > a.is-active {
  color: var(--primary);
}

.primary-nav-bar .main-nav > a.is-active::after {
  display: none;
}

@media (max-width: 1080px) and (min-width: 901px) {
  .header-utility--hours,
  .header-utility--location,
  .header-round-action--badge:first-of-type,
  .header-cart-total {
    display: none;
  }

  .topbar {
    grid-template-columns: 165px minmax(260px, 1fr) auto;
  }

  .topbar > .brand,
  .primary-nav-bar__inner::before {
    width: 165px;
  }

  .primary-nav-bar__inner {
    grid-template-columns: 165px minmax(0, 1fr);
  }

  .header-quick-search {
    padding-right: 18px;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-page="home"] .site-header .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .promo-strip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 40px;
    padding: 0;
  }

  body[data-page="home"] .promo-strip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 40px;
    padding: 0 16px;
  }

  #promo-left {
    padding-left: 0;
    font-size: 10px;
  }

  .header-utility {
    min-height: 40px;
    padding: 0 0 0 12px;
    font-size: 10px;
  }

  .header-utility--hours,
  .header-utility--location {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 90px;
    padding: 0 16px;
  }

  body[data-page="home"] .topbar {
    grid-template-columns: 1fr auto;
    min-height: 90px;
    padding: 0 16px;
  }

  .topbar > .brand {
    width: fit-content;
    height: 90px;
    justify-content: flex-start;
    padding: 10px 0;
    border-right: 0;
  }

  .topbar .brand__mark {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .header-actions,
  .header-quick-search,
  .primary-nav-bar {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    display: inline-flex;
    justify-self: end;
  }
}

/* Restore the original SpiceBoss orange canvas; no decorative pattern. */
body,
body[data-page="home"] {
  background-color: #ff6b35;
  background-image: none;
}

/* Clean canvas shared by every storefront page. */
body {
  background-color: #fefaf7;
  background-image: none;
  background-attachment: scroll;
}

body[data-page="home"] .site-shell {
  width: 100%;
  margin: 0;
}

body[data-page="home"] .site-header {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body[data-page="home"] .page-root {
  background: transparent;
}

body[data-page="home"] .page-root > section:not(.home-hero--reference):not(.home-category-strip),
body[data-page="home"] .site-footer {
  background-color: #fefaf7;
}

body[data-page="home"] .page-root > section > .container,
body[data-page="home"] .site-footer > .container {
  width: min(calc(100% - 2rem), 1170px);
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .home-hero--reference,
body[data-page="home"] .home-category-strip {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  background: transparent;
}

body[data-page="home"] .home-hero--reference > .container,
body[data-page="home"] .home-category-strip > .container {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

body[data-page="home"] .home-hero--reference .home-hero__main,
body[data-page="home"] .home-hero--reference .future-hero__banner,
body[data-page="home"] .home-hero--reference .future-hero__banner--full,
body[data-page="home"] .home-category-strip__grid {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body[data-page="home"] .home-section--screen {
  width: 100%;
}

body[data-page="home"] .home-section--screen > .container,
body[data-page="home"] .site-footer > .container {
  width: 100%;
  max-width: none;
  padding-right: clamp(30px, 5vw, 96px);
  padding-left: clamp(30px, 5vw, 96px);
}

body[data-page="home"] .page-root > section.home-section--screen > .container {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: clamp(30px, 5vw, 96px);
  padding-left: clamp(30px, 5vw, 96px);
}

body[data-page="home"] .page-root > section.home-reference-section.home-section--screen:not(.home-reference-section--compact):not(.home-reference-section--about) > .container {
  padding-right: clamp(30px, 5vw, 96px);
  padding-left: clamp(30px, 5vw, 96px);
}

body[data-page="home"] .home-section--screen.home-reference-section--compact > .container,
body[data-page="home"] .home-section--screen.home-reference-section--about > .container,
body[data-page="home"] .home-section--screen.home-newsletter > .container {
  padding-right: clamp(30px, 5vw, 96px);
  padding-left: clamp(30px, 5vw, 96px);
}

@media (max-width: 900px) {
  body[data-page="home"] {
    background-color: #fefaf7;
    background-image: none;
  }

  body[data-page="home"] .site-header {
    width: 100%;
  }

  body[data-page="home"] .page-root > section > .container,
  body[data-page="home"] .page-root > section.home-section--screen > .container,
  body[data-page="home"] .page-root > section.home-reference-section.home-section--screen:not(.home-reference-section--compact):not(.home-reference-section--about) > .container,
  body[data-page="home"] .home-section--screen > .container,
  body[data-page="home"] .site-footer > .container {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-page="home"] .home-hero--reference > .container {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .page-root > section > .container,
  body[data-page="home"] .page-root > section.home-section--screen > .container,
  body[data-page="home"] .page-root > section.home-reference-section.home-section--screen:not(.home-reference-section--compact):not(.home-reference-section--about) > .container,
  body[data-page="home"] .home-section--screen > .container,
  body[data-page="home"] .site-footer > .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  body[data-page="home"] .home-hero--reference > .container {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Homepage above-the-fold polish. */
body[data-page="home"] {
  --home-edge-gutter: clamp(22px, 4.5vw, 72px);
}

body[data-page="home"] .site-header {
  margin-top: 0;
  border-top: 4px solid var(--primary);
  border-right: 0;
  border-left: 0;
  box-shadow: 0 8px 28px rgba(40, 35, 31, 0.07);
}

body[data-page="home"] .promo-strip__inner {
  min-height: 42px;
  padding-right: var(--home-edge-gutter);
  padding-left: var(--home-edge-gutter);
}

body[data-page="home"] #promo-left {
  padding-left: 0;
}

body[data-page="home"] .topbar {
  grid-template-columns: 180px minmax(320px, 1fr) auto;
  min-height: 96px;
  padding-right: var(--home-edge-gutter);
  padding-left: var(--home-edge-gutter);
}

body[data-page="home"] .topbar > .brand {
  height: 96px;
}

body[data-page="home"] .primary-nav-bar__inner {
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 54px;
  padding-right: var(--home-edge-gutter);
  padding-left: var(--home-edge-gutter);
}

body[data-page="home"] .primary-nav-bar .main-nav,
body[data-page="home"] .primary-nav-bar .main-nav > a {
  min-height: 54px;
}

html body[data-page="home"] .page-root > .home-hero--reference,
html body[data-page="home"] .page-root > .home-category-strip {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

html body[data-page="home"] .page-root > .home-hero--reference {
  padding: 16px 0 0;
  background: var(--primary);
}

html body[data-page="home"] .home-hero--reference > .container,
html body[data-page="home"] .home-hero--reference .home-hero__main,
html body[data-page="home"] .home-hero--reference .future-hero__banner,
html body[data-page="home"] .home-hero--reference .future-hero__banner--full {
  width: 100%;
  max-width: none;
  min-height: clamp(430px, 38vw, 600px);
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
  min-height: clamp(430px, 38vw, 600px);
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(42px, 6vw, 92px) var(--home-edge-gutter);
  background: #fff9f5;
  box-shadow: inset 0 -1px 0 rgba(32, 35, 49, 0.06);
}

body[data-page="home"] .hero-slide__catalogue-copy {
  max-width: 590px;
}

body[data-page="home"] .hero-slide__catalogue-copy > span {
  font-size: clamp(16px, 1.35vw, 21px);
}

body[data-page="home"] .hero-slide__catalogue-copy h1 {
  max-width: 10ch;
  margin: 14px 0 18px;
  font-size: clamp(44px, 4.8vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

body[data-page="home"] .hero-slide__catalogue-copy p {
  max-width: 46ch;
  margin-bottom: 26px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}

body[data-page="home"] .hero-slide__catalogue-copy a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(255, 107, 53, 0.2);
  font-size: 12px;
  letter-spacing: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="home"] .hero-slide__catalogue-copy a:hover,
body[data-page="home"] .hero-slide__catalogue-copy a:focus-visible {
  background: var(--primary-deep);
  box-shadow: 0 13px 26px rgba(229, 85, 39, 0.24);
  transform: translateY(-2px);
}

body[data-page="home"] .hero-slide__catalogue-art {
  min-height: 320px;
}

body[data-page="home"] .hero-art-shape {
  filter: drop-shadow(0 18px 16px rgba(89, 49, 27, 0.16));
}

html body[data-page="home"] .page-root > .home-category-strip {
  padding: 14px var(--home-edge-gutter) 18px;
  background: var(--primary);
}

html body[data-page="home"] .home-category-strip > .container,
html body[data-page="home"] .home-category-strip__grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-page="home"] .home-category-strip__grid {
  gap: 12px;
}

body[data-page="home"] .home-category-tile {
  min-width: 0;
  min-height: 82px;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 51, 25, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-page="home"] .home-category-tile:hover,
body[data-page="home"] .home-category-tile:focus-visible {
  border-color: #fff;
  box-shadow: 0 14px 28px rgba(120, 51, 25, 0.18);
  transform: translateY(-3px);
}

body[data-page="home"] .home-category-tile__icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  background: #fff2ec;
  font-size: 19px;
}

body[data-page="home"] .home-category-tile strong {
  overflow: visible;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 1080px) {
  body[data-page="home"] {
    --home-edge-gutter: clamp(18px, 3vw, 32px);
  }

  body[data-page="home"] .topbar {
    grid-template-columns: 150px minmax(260px, 1fr) auto;
  }

  body[data-page="home"] .primary-nav-bar__inner {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  }

  body[data-page="home"] .home-category-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .promo-strip__inner,
  body[data-page="home"] .topbar {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-page="home"] .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-page="home"] .menu-toggle {
    grid-column: 2;
  }

  html body[data-page="home"] .page-root > .home-hero--reference {
    padding-top: 10px;
  }

  html body[data-page="home"] .home-hero--reference > .container,
  html body[data-page="home"] .home-hero--reference .home-hero__main,
  html body[data-page="home"] .home-hero--reference .future-hero__banner,
  html body[data-page="home"] .home-hero--reference .future-hero__banner--full,
  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    min-height: 440px;
  }

  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
    padding: 48px 28px;
  }

  body[data-page="home"] .hero-slide__catalogue-copy h1 {
    font-size: clamp(40px, 6vw, 56px);
  }

  html body[data-page="home"] .page-root > .home-category-strip {
    padding: 10px 18px 14px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] {
    --home-edge-gutter: 16px;
  }

  body[data-page="home"] .site-header {
    border-top-width: 3px;
  }

  html body[data-page="home"] .home-hero--reference > .container,
  html body[data-page="home"] .home-hero--reference .home-hero__main,
  html body[data-page="home"] .home-hero--reference .future-hero__banner,
  html body[data-page="home"] .home-hero--reference .future-hero__banner--full,
  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    min-height: 400px;
  }

  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 20px;
  }

  body[data-page="home"] .hero-slide__catalogue-copy {
    max-width: 70%;
  }

  body[data-page="home"] .hero-slide__catalogue-copy > span {
    font-size: 14px;
  }

  body[data-page="home"] .hero-slide__catalogue-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 10vw, 44px);
  }

  body[data-page="home"] .hero-slide__catalogue-copy a {
    min-height: 42px;
    padding: 0 18px;
  }

  body[data-page="home"] .hero-slide__catalogue-art {
    position: absolute;
    inset: 0 0 0 40%;
    min-height: 0;
    opacity: 0.78;
  }

  html body[data-page="home"] .page-root > .home-category-strip {
    padding: 9px 12px 12px;
  }

  body[data-page="home"] .home-category-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .home-category-tile {
    min-height: 64px;
    gap: 9px;
    padding: 10px;
  }

  body[data-page="home"] .home-category-tile__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 15px;
  }

  body[data-page="home"] .home-category-tile strong {
    font-size: 12px;
  }
}

/* Use the homepage frame consistently across every storefront route. */
.home-newsletter__art {
  display: none !important;
}

body:not([data-page="home"]) {
  --page-edge-gutter: clamp(30px, 5vw, 96px);
}

body:not([data-page="home"]) .site-shell,
body:not([data-page="home"]) .page-root,
body:not([data-page="home"]) .site-footer {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  background-color: #fefaf7;
}

body:not([data-page="home"]) .site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 4px solid var(--primary);
  border-right: 0;
  border-left: 0;
  box-shadow: 0 8px 28px rgba(40, 35, 31, 0.07);
}

body:not([data-page="home"]) .site-header .container {
  width: 100%;
  max-width: none;
}

body:not([data-page="home"]) .promo-strip__inner {
  min-height: 42px;
  padding-right: var(--page-edge-gutter);
  padding-left: var(--page-edge-gutter);
}

body:not([data-page="home"]) #promo-left {
  padding-left: 0;
}

body:not([data-page="home"]) .topbar {
  grid-template-columns: 180px minmax(320px, 1fr) auto;
  min-height: 96px;
  padding-right: var(--page-edge-gutter);
  padding-left: var(--page-edge-gutter);
}

body:not([data-page="home"]) .topbar > .brand {
  height: 96px;
}

body:not([data-page="home"]) .primary-nav-bar__inner {
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 54px;
  padding-right: var(--page-edge-gutter);
  padding-left: var(--page-edge-gutter);
}

body:not([data-page="home"]) .primary-nav-bar .main-nav,
body:not([data-page="home"]) .primary-nav-bar .main-nav > a {
  min-height: 54px;
}

body:not([data-page="home"]) .page-root > section,
body:not([data-page="home"]) .page-section {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  background-color: #fefaf7;
}

body:not([data-page="home"]) .page-section > .container:not(.container--narrow):not(.container--form),
body:not([data-page="home"]) .page-root > section > .container:not(.container--narrow):not(.container--form),
body:not([data-page="home"]) .site-footer > .container {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: var(--page-edge-gutter);
  padding-left: var(--page-edge-gutter);
}

body:not([data-page="home"]) .site-footer {
  margin-top: 0;
}

@media (max-width: 1080px) {
  body:not([data-page="home"]) {
    --page-edge-gutter: clamp(18px, 3vw, 32px);
  }

  body:not([data-page="home"]) .topbar {
    grid-template-columns: 150px minmax(260px, 1fr) auto;
  }

  body:not([data-page="home"]) .primary-nav-bar__inner {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body:not([data-page="home"]) {
    --page-edge-gutter: 18px;
  }

  body:not([data-page="home"]) .site-header {
    border-top-width: 3px;
  }

  body:not([data-page="home"]) .promo-strip__inner,
  body:not([data-page="home"]) .topbar {
    padding-right: var(--page-edge-gutter);
    padding-left: var(--page-edge-gutter);
  }

  body:not([data-page="home"]) .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not([data-page="home"]) .menu-toggle {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body:not([data-page="home"]) {
    --page-edge-gutter: 12px;
  }
}

/* Compact phones: keep every storefront surface readable below 420px. */
.pcard--reference {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.pcard--reference::before {
  display: none;
}

.pcard--reference .pcard__media {
  order: 1;
  border: 0;
  background: #fff;
}

.pcard--reference .pcard__name {
  order: 2;
  margin: 0;
  text-align: center;
}

.pcard--reference .pcard__price-wrap {
  order: 3;
  margin: 0;
  border: 0;
  background: #fff;
  text-align: center;
}

.pcard--reference .pcard__uom1-price {
  justify-content: center;
}

.pcard--reference .pcard__footer {
  order: 4;
  justify-content: center;
  border: 0;
  background: #fff;
}

.pcard--reference .pcard__add-btn,
.pcard--reference .pcard__login-cta {
  border: 1px solid #dad7d1;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--text);
}

.pcard--reference .pcard__add-btn:hover,
.pcard--reference .pcard__login-cta:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pcard--reference .pcard__qty-wrap {
  display: none;
}

@media (max-width: 420px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .site-shell,
  .site-header,
  .page-root,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .promo-strip__inner {
    min-height: 34px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10px;
  }

  .topbar,
  body[data-page="home"] .topbar,
  body:not([data-page="home"]) .topbar {
    grid-template-columns: minmax(0, 1fr) 40px;
    min-height: 70px;
    gap: 8px;
    padding: 8px 10px;
  }

  .topbar > .brand,
  body:not([data-page="home"]) .topbar > .brand {
    height: 54px;
    min-width: 0;
  }

  .topbar .brand__mark,
  body[data-page="home"] .topbar .brand__mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .menu-toggle,
  body[data-page="home"] .menu-toggle {
    grid-column: 2;
    width: 40px;
    height: 40px;
  }

  body[data-page="home"] .page-root > section > .container,
  body[data-page="home"] .site-footer > .container,
  body:not([data-page="home"]) .page-section > .container:not(.container--narrow):not(.container--form),
  body:not([data-page="home"]) .site-footer > .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  html body[data-page="home"] .home-hero--reference > .container,
  html body[data-page="home"] .home-hero--reference .home-hero__main,
  html body[data-page="home"] .home-hero--reference .future-hero__banner,
  html body[data-page="home"] .home-hero--reference .future-hero__banner--full,
  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    min-height: 340px;
  }

  html body[data-page="home"] .home-hero--reference .hero-slide--catalogue {
    padding: 26px 14px;
  }

  body[data-page="home"] .hero-slide__catalogue-copy {
    max-width: 70%;
  }

  body[data-page="home"] .hero-slide__catalogue-copy > span {
    font-size: 12px;
  }

  body[data-page="home"] .hero-slide__catalogue-copy h1 {
    margin: 8px 0 14px;
    font-size: clamp(28px, 12vw, 34px);
    line-height: 0.98;
  }

  body[data-page="home"] .hero-slide__catalogue-copy a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
  }

  body[data-page="home"] .home-category-strip__grid {
    gap: 7px;
  }

  body[data-page="home"] .home-category-tile {
    min-width: 0;
    min-height: 58px;
    gap: 7px;
    padding: 8px;
  }

  body[data-page="home"] .home-category-tile__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 14px;
  }

  body[data-page="home"] .home-category-tile strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .home-reference-heading {
    min-height: 0;
    margin-bottom: 14px;
  }

  .product-grid--home-reference,
  .product-grid--home-reference.product-grid--shop,
  body[data-page="home"] .product-grid--home-reference,
  body[data-page="home"] .product-grid--home-reference.product-grid--shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-grid--home-reference .pcard,
  body[data-page="home"] .product-grid--home-reference .pcard {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .product-grid--home-reference .pcard__media,
  body[data-page="home"] .product-grid--home-reference .pcard__media {
    min-height: 140px;
    padding: 9px 7px 6px;
  }

  .product-grid--home-reference .pcard__img {
    max-height: 128px;
  }

  .product-grid--home-reference .pcard__img--art {
    width: 82px;
    height: 110px;
  }

  .product-grid--home-reference .pcard__name,
  body[data-page="home"] .product-grid--home-reference .pcard__name {
    min-height: 58px;
    padding: 8px 6px 4px;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .product-grid--home-reference .pcard__price-wrap,
  body[data-page="home"] .product-grid--home-reference .pcard__price-wrap {
    padding: 6px 6px 8px;
  }

  .product-grid--home-reference .pcard__footer,
  body[data-page="home"] .product-grid--home-reference .pcard__footer {
    min-height: 0;
    flex-wrap: wrap;
    padding: 8px 6px 12px;
  }

  .product-grid--home-reference .pcard__add-btn,
  .product-grid--home-reference .pcard__login-cta,
  body[data-page="home"] .product-grid--home-reference .pcard__add-btn,
  body[data-page="home"] .product-grid--home-reference .pcard__login-cta {
    width: 100%;
    min-height: 34px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .product-grid--home-reference .pcard__quick-actions {
    width: 100%;
    justify-content: center;
  }

  .home-split-ad {
    min-height: 200px;
    padding: 18px;
  }

  .home-split-ad__copy strong {
    font-size: 26px;
  }

  .home-wide-promo {
    min-height: 210px;
    padding: 22px 38% 22px 16px;
  }

  .home-wide-promo > strong {
    font-size: 25px;
  }

  .home-story-card__media {
    height: 170px;
  }

  .home-story-card__body {
    padding: 16px 16px 20px;
  }

  .home-story-card__body h3,
  .home-story-card__body p {
    min-height: 0;
  }

  .home-about-card__visual {
    min-height: 210px;
  }

  .home-about-card__copy {
    padding: 28px 18px;
  }

  body[data-page="home"] .home-about-card__copy h2 {
    font-size: 31px;
  }

  .home-newsletter__inner {
    min-height: 230px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-newsletter__form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }

  .home-newsletter__form input,
  .home-newsletter__form button {
    width: 100%;
  }

  .b2b-topbar {
    gap: 8px;
    padding: 10px;
  }

  .b2b-search-wrap,
  .b2b-filter-select {
    width: 100%;
    min-width: 0;
  }

  .b2b-view-btns {
    align-self: flex-start;
  }

  .b2b-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Mobile editorial cards: two clean columns with uncropped product artwork. */
@media (max-width: 640px) {
  body[data-page="home"] .home-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="home"] .home-story-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
  }

  body[data-page="home"] .home-story-card__media {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 105px;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    place-items: center;
    padding: 10px;
    background: #fff3ed;
  }

  body[data-page="home"] .home-story-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  body[data-page="home"] .home-story-card__media span {
    font-size: 2.5rem;
  }

  body[data-page="home"] .home-story-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 12px 11px 14px;
  }

  body[data-page="home"] .home-story-card__body small {
    font-size: 10px;
  }

  body[data-page="home"] .home-story-card__body h3 {
    min-height: 0;
    margin: 6px 0 7px;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.3;
  }

  body[data-page="home"] .home-story-card__body p {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.5;
  }

  body[data-page="home"] .home-story-card__body > a {
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 9px;
    font-size: 10px;
  }
}

/* Mobile navigation overlays the banner instead of changing page height. */
@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 120;
    margin: 0;
    padding: 0 12px 12px;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel__card {
    max-height: min(480px, calc(100vh - 120px));
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(32, 35, 49, 0.18);
    overscroll-behavior: contain;
  }

  .mobile-panel__card a,
  .mobile-panel__card button {
    min-height: 44px;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu-toggle span {
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
}

/* Logged-in home keeps the public storefront rhythm and adds account context. */
body[data-page="home"] .home-reference-section--trade {
  padding-top: 28px;
}

body[data-page="home"] .home-trade-dashboard {
  display: grid;
  gap: 12px;
}

body[data-page="home"] .home-trade-dashboard .b2b-welcome {
  margin: 0;
  padding: 20px 24px;
  border: 1px solid #ebe8e2;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 39, 48, 0.05);
  color: var(--text);
}

body[data-page="home"] .home-trade-dashboard .b2b-welcome__eyebrow,
body[data-page="home"] .home-trade-dashboard .b2b-welcome__name span {
  color: var(--primary);
}

body[data-page="home"] .home-trade-dashboard .b2b-welcome__name {
  color: var(--text);
}

body[data-page="home"] .home-trade-dashboard .b2b-welcome__meta {
  color: var(--muted);
}

body[data-page="home"] .home-trade-dashboard .b2b-welcome__logo {
  border: 1px solid #ebe8e2;
  background: #fff8f3;
}

body[data-page="home"] .home-trade-dashboard .b2b-stats-strip {
  margin: 0;
}

body[data-page="home"] .home-trade-dashboard .b2b-stat {
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(36, 39, 48, 0.04);
}

body[data-page="home"] .home-reference-section--orders {
  padding-top: 44px;
}

body[data-page="home"] .home-recent-orders {
  overflow: hidden;
  border: 1px solid #ebe8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 39, 48, 0.04);
}

body[data-page="home"] .home-recent-orders .b2b-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  body[data-page="home"] .home-reference-section--trade,
  body[data-page="home"] .home-reference-section--orders {
    padding-top: 24px;
  }

  body[data-page="home"] .home-trade-dashboard .b2b-welcome {
    padding: 16px;
  }

  body[data-page="home"] .home-trade-dashboard .b2b-welcome__actions {
    width: 100%;
  }

  body[data-page="home"] .home-recent-orders {
    overflow-x: auto;
  }
}
