/* The illustrated welcome is controlled by the admin appearance setting.
   Keep the classic layout and all transactional pages intact. */
body.page-home.page-home--illustrated {
  --welcome-cream: #fdebb2;
  --welcome-sage: #f1f2e3;
  --welcome-brown: #40260f;
  --welcome-line: #f0dfb9;
  background: #fff;
}
.category-illustration { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.category-sidebar__icon:has(.category-illustration) { background: transparent; }
.category-symbol { font-size: 26px; }
.category-symbol--olive { color: #52732b; }
.category-symbol--orange { color: #c86b11; }
.category-symbol--red { color: #b53c2f; }
.category-symbol--blue { color: #327ca3; }
.category-symbol--plum { color: #794060; }
.category-symbol--rose { color: #b15c69; }
.category-symbol--brown { color: #88522a; }
.category-symbol--amber { color: #b57914; }
.page-home--illustrated .store-main-header { min-height: 136px; }
.page-home--illustrated .store-brand img { width: 150px; height: 124px; object-fit: contain; }
.page-home--illustrated .store-search { background: #fff8ed; border-color: var(--welcome-line); }
.page-home--illustrated .store-search input { background: transparent; }
.page-home--illustrated .store-search button { min-height: 44px; }
.page-home--illustrated .store-categories-link { display: none; }
.page-home--illustrated .store-nav-row nav a[href="/"] { color: var(--mb-green-dark); box-shadow: inset 0 -3px var(--mb-green); }
.welcome { padding-top: 26px; }
.welcome-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.welcome-content { min-width: 0; }
.welcome-sidebar { border-color: var(--welcome-line); background: #fffcf5; box-shadow: none; }
.welcome-sidebar .category-sidebar__head { background: transparent; }
.welcome-sidebar .category-sidebar__eyebrow { display: none; }
.welcome-sidebar .category-sidebar__head strong { font-size: 19px; color: var(--mb-green-dark); }
.welcome-sidebar .category-sidebar__scroll-hint { white-space: normal; text-overflow: clip; line-height: 1.2; }
.welcome-sidebar .category-sidebar__link { min-height: 70px; grid-template-columns: 50px minmax(0, 1fr); padding: 9px 8px; gap: 12px; }
.welcome-sidebar .category-sidebar__count { display: none; }
.welcome-sidebar .category-sidebar__icon { width: 50px; height: 50px; flex: 0 0 50px; }
.welcome-sidebar .category-sidebar__label { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; overflow: visible; }
.welcome-sidebar .category-sidebar__nav { max-height: min(650px, calc(100dvh - 300px)); }
.welcome-hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 300px; background: var(--welcome-cream); border: 1px solid #f8d882; border-radius: 24px; overflow: hidden; }
.welcome-hero__copy { padding: 24px 0 24px 28px; position: relative; z-index: 1; }
.welcome-hero .home-eyebrow { color: #795624; font-size: 11px; letter-spacing: .05em; }
.welcome-hero h1 { font-family: Montserrat, Inter, sans-serif; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.13; letter-spacing: -.045em; color: var(--welcome-brown); margin: 12px 0 14px; }
.welcome-hero p { color: var(--welcome-brown); line-height: 1.5; font-size: 16px; margin: 0 0 18px; max-width: 350px; }
.welcome-hero .store-button { min-height: 52px; padding-inline: 24px; box-shadow: 0 4px 0 rgba(36, 79, 18, .12); }
.welcome-hero__image { width: 100%; max-width: none; aspect-ratio: 1; height: auto; max-height: 300px; object-fit: contain; mix-blend-mode: darken; }
.welcome-popular-empty { padding: 22px; border: 1px solid var(--welcome-line); border-radius: 17px; background: #fffcf5; color: #655b4e; line-height: 1.6; }
.welcome-products { --welcome-product-columns: 4; --welcome-product-gap: 16px; min-width: 0; margin-top: 32px; }
.welcome .home-section__head { gap: 16px; align-items: center; margin-bottom: 18px; }
.welcome .home-section__head h2 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; margin: 0; }
.welcome .home-section__head h2 i { color: var(--mb-green); margin-right: 10px; }
.welcome .home-section__link { font-size: 13px; flex-shrink: 0; }
.welcome-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.welcome-product-grid .product-card { min-width: 0; box-shadow: none; border-radius: 17px; transition: transform 180ms ease, box-shadow 180ms ease; }
.welcome-product-grid .product-card__media { height: 160px; }
.welcome-product-grid .product-card__media img { padding: 10px; }
.welcome-product-grid .product-card__body { min-width: 0; padding: 12px; gap: 6px; }
.welcome-product-grid .product-card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; min-height: 2.8em; font-size: 14px; }
.welcome-product-grid .product-card__price { font-size: 20px; overflow-wrap: anywhere; }
.welcome-product-grid .product-card__browse { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--mb-green-dark); font-size: 14px; text-decoration: none; }
.welcome .welcome-products .welcome-product-grid--rail { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--welcome-product-columns) - 1) * var(--welcome-product-gap)) / var(--welcome-product-columns)); gap: var(--welcome-product-gap); overflow-x: auto; padding-block: 4px 8px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.welcome-product-grid--rail::-webkit-scrollbar { display: none; }
.welcome-product-slide { min-width: 0; scroll-snap-align: start; }
.welcome-product-slide .product-card { height: 100%; display: flex; flex-direction: column; }
.welcome-product-slide .product-card__body { flex: 1; display: flex; flex-direction: column; }
.welcome-product-slide .product-card__actions, .welcome-product-slide .product-card__browse { margin-top: auto; }
.welcome-products__controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.welcome-products__controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--welcome-line); border-radius: 10px; background: var(--mb-surface); color: var(--mb-green-dark); cursor: pointer; }
.welcome-products__controls button:hover { background: var(--mb-green-soft); }
.welcome-product-grid--rail:focus-visible, .welcome-products__controls button:focus-visible { outline: 3px solid var(--mb-green-dark); outline-offset: 2px; }
.welcome--can-order .product-card__actions { grid-template-columns: 1fr; }
.welcome--can-order .product-card__qty { grid-template-columns: 44px minmax(0, 1fr) 44px; min-height: 44px; }
.welcome--can-order .product-card__qty button { min-height: 44px; }
.welcome--can-order .product-card__add { min-height: 44px; width: 100%; }
.welcome--can-order .product-card__add span { display: inline; }
.welcome-guest-note { text-align: center; font-size: 13px; line-height: 1.7; color: #655b4e; margin: 26px 0 0; }
.welcome-guest-note a { color: var(--mb-green-dark); font-weight: 600; padding: 10px 2px; display: inline-block; }
.welcome-sharing { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; margin-top: 32px; padding: 24px 44px; background: var(--welcome-sage); border: 1px solid #dfe5c6; border-radius: 24px; overflow: hidden; }
.welcome-sharing h2 { color: var(--mb-green-dark); font-family: Georgia, serif; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.welcome-sharing p { max-width: 420px; line-height: 1.7; margin: 0 0 18px; }
.welcome-sharing img { width: 100%; height: auto; max-height: 290px; object-fit: contain; mix-blend-mode: darken; }
.welcome-how { margin-block: 38px 24px; }
.welcome-how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.welcome-how__grid article { display: flex; gap: 14px; align-items: flex-start; }
.welcome-how__grid article > span { font-size: 30px; color: #9f792b; font-weight: 700; line-height: 1.2; }
.welcome-how h3 { font-size: 16px; margin: 2px 0 6px; }
.welcome-how p { font-size: 14px; line-height: 1.65; color: var(--mb-muted); margin: 0; }
.welcome-assurances { border-top: 1px solid var(--mb-border); padding: 18px 0 0; margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; font-size: 13px; color: var(--mb-green-dark); }
.welcome-assurances i { margin-right: 6px; }
.page-home--illustrated .store-footer { background: #fffcf5; color: var(--mb-ink); border-top: 1px solid var(--welcome-line); }
.page-home--illustrated .store-footer a, .page-home--illustrated .store-footer h2 { color: var(--mb-green-dark); }
.page-home--illustrated .store-footer__bottom { border-top-color: var(--welcome-line); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .welcome-product-grid .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(66, 70, 34, .1); }
  .welcome-hero__image { animation: welcome-arrive 650ms ease-out both; }
  .welcome-sidebar .category-illustration { transition: transform 180ms ease; }
  .welcome-sidebar .category-sidebar__link:hover .category-illustration { transform: rotate(-5deg) scale(1.08); }
}
@keyframes welcome-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 901px) {
  .welcome-sidebar { position: sticky; top: 236px; max-height: calc(100dvh - 252px); }
}
@media (max-width: 1100px) {
  .welcome-products { --welcome-product-columns: 3; --welcome-product-gap: 12px; }
  .welcome--can-order .welcome-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .welcome-products { --welcome-product-columns: 2; }
  .welcome--can-order .welcome-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .welcome-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .welcome-hero__copy { padding-left: 24px; }
  .welcome-hero h1 { font-size: 34px; }
  .welcome-hero { min-height: 320px; }
  .welcome-product-grid { gap: 10px; }
  .welcome-product-grid .product-card__media { height: 145px; }
  .welcome .home-section__head { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .welcome-layout { display: block; }
  .welcome-sidebar .category-sidebar__nav { max-height: none; }
  .page-home--illustrated .store-main-header { min-height: 86px; }
  .page-home--illustrated .store-brand img { width: 85px; height: 68px; }
  .welcome-hero { min-height: 300px; }
  .welcome-hero h1 { font-size: 34px; }
  .welcome-product-grid { gap: 12px; }
  .welcome-product-grid .product-card__media { height: 140px; }
  .welcome-how__grid { gap: 18px; }
}
@media (max-width: 600px) {
  .welcome { padding-top: 14px; }
  .welcome-hero { grid-template-columns: 1fr; border-radius: 19px; }
  .welcome-hero__copy { padding: 26px 24px 0; }
  .welcome-hero h1 { font-size: clamp(30px, 8vw, 36px); margin-block: 10px 12px; }
  .welcome-hero p { font-size: 16px; margin-bottom: 16px; }
  .welcome-hero__image { width: 100%; margin: 0; max-height: 150px; }
  .welcome-products { margin-top: 24px; }
  .welcome .home-section__head { flex-wrap: wrap; gap: 8px; }
  .welcome .home-section__head h2 { font-size: 20px; }
  .welcome .home-section__link { display: inline-flex; align-items: center; min-height: 44px; }
  .welcome-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .welcome-product-grid .product-card__media { height: 124px; }
  .welcome-product-grid .product-card__price { font-size: 18px; }
  .welcome-sharing { grid-template-columns: 1fr; padding: 28px 24px 0; margin-top: 24px; border-radius: 19px; }
  .welcome-sharing h2 { font-size: 34px; }
  .welcome-sharing img { max-height: 230px; }
  .welcome-how__grid { grid-template-columns: 1fr; gap: 20px; }
  .welcome-assurances { justify-content: flex-start; gap: 12px; }
  .welcome-assurances a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome *, .welcome *::before, .welcome *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .welcome-products { --welcome-product-columns: 1; }
  .welcome--can-order .welcome-product-grid { grid-template-columns: minmax(0, 1fr); }
}
