/* Only the home, catalogue and announcements presentation. Commerce code is unchanged. */
body[data-storefront-editorial] { overflow-x: visible; }
body[data-storefront-editorial] main, body[data-storefront-editorial] main * { min-width: 0; box-sizing: border-box; }
body[data-storefront-editorial] main { overflow-wrap: anywhere; }
body[data-storefront-editorial] main :is(h1,h2,h3,p,li,figcaption) { text-wrap: pretty; }
body[data-storefront-editorial] :is(a,button,summary):focus-visible { outline: 3px solid #9c6528; outline-offset: 4px; }
body[data-storefront-editorial] main [id] { scroll-margin-top: calc(var(--storefront-header-height,80px) + var(--storefront-category-height,0px) + 24px); }
.storefront-skip { position: fixed; left: 10px; top: 10px; z-index: 1100; transform: translateY(-180%); padding: 12px 18px; border-radius: 8px; background: #213d2a; color: #fff; }
.storefront-skip:focus { transform: none; }
body[data-storefront-editorial] .reveal { opacity: 1; transform: none; }
body[data-storefront-editorial] .mobile-nav { top: var(--storefront-header-height,72px); max-height: calc(100dvh - var(--storefront-header-height,72px)); overflow-y: auto; }
body[data-storefront-editorial] .nav-item-dropdown:focus-within .dropdown-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0) !important; }
body[data-storefront-editorial] .cart-drawer:not(.open) { transform: none; visibility: hidden; pointer-events: none; }
body[data-storefront-editorial] .storefront-nojs { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; margin-top: var(--storefront-header-height,80px); background: #f1f3eb; }
body[data-storefront-editorial] .storefront-nojs a { min-height: 44px; display: inline-flex; align-items: center; color: #31543b; white-space: normal; }
body[data-storefront-editorial]:has(.storefront-nojs) :is(.hero,.page-hero) { margin-top: 0; }
body[data-storefront-editorial] :is(.hero-desc,.section-desc,.featured-desc,.product-sub,.news-desc,.news-card-desc,.product-entry-desc,.page-hero-desc,.storefront-intro) { color: #5e665a; line-height: 1.85; }
body[data-storefront-editorial] :is(.section-label,.section-lbl,.product-cat,.news-date,.product-entry-eyebrow) { color: #52694b; }
body[data-storefront-editorial] :is(.products-grid,.cat-grid,.news-grid) { min-width: 0; }
body[data-storefront-editorial] :is(.product-card,.hibou-card-shell,.news-card) { min-width: 0; }
body[data-storefront-editorial] .product-sub { white-space: normal; overflow: visible; text-overflow: clip; display: block; -webkit-line-clamp: unset; line-clamp: unset; max-height: none; font-size: .88rem; line-height: 1.75; }
body[data-storefront-editorial] .product-name { line-height: 1.55; }
body[data-storefront-editorial] .product-footer { gap: .7rem; flex-wrap: wrap; }
body[data-storefront-editorial] .product-price { white-space: normal; }
body[data-storefront-editorial] .product-cat { display: none; }
body[data-storefront-editorial] .product-img-wrap { overflow: visible; display: block; border-radius: 16px 16px 0 0; background: #f4f1eb; }
body[data-storefront-editorial] .product-img-wrap picture { display: block; width: 100%; height: 100%; }
body[data-storefront-editorial] .product-img-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; transform: none !important; border-radius: 16px 16px 0 0; }
body[data-storefront-editorial] .product-badge { position: static; display: inline-flex; max-width: 100%; margin: .6rem .75rem 0; line-height: 1.6; font-size: .75rem; letter-spacing: .03em; white-space: normal; }
body[data-storefront-editorial] .product-img-wrap:has(.product-badge) { aspect-ratio: auto; }
body[data-storefront-editorial] .product-img-wrap:has(.product-badge) > picture,
body[data-storefront-editorial] .product-img-wrap:has(.product-badge) > img { aspect-ratio: 1; height: auto; }
body[data-storefront-editorial] .product-img-wrap:has(.product-badge) > picture img { aspect-ratio: 1; }
body[data-storefront-editorial] :is(.badge-new,.badge-hot,.badge-gift) { background: #eef0e5; color: #38502f; }
body[data-storefront-editorial] .product-img-title { display: none; }
body[data-storefront-editorial] .btn-view { min-height: 36px; line-height: 1.5; }
body[data-storefront-editorial] .hibou-card-action { min-height: 44px; white-space: normal; }
body[data-storefront-editorial="home"] main { padding: 0; margin: 0; max-width: none; }
body[data-storefront-editorial="home"] .hero { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-areas: "copy photo"; gap: clamp(24px,4vw,64px); align-items: center; height: auto; min-height: 0; max-width: 1376px; margin: var(--storefront-header-height,80px) auto 0; padding: clamp(36px,5vw,72px) clamp(20px,4vw,64px); overflow: visible; }
body[data-storefront-editorial="home"] .hero-overlay { display: none; }
body[data-storefront-editorial="home"] .hero-content { grid-area: copy; position: static; transform: none; max-width: none; }
body[data-storefront-editorial="home"] .hero-eyebrow { line-height: 1.7; letter-spacing: .08em; white-space: normal; }
body[data-storefront-editorial="home"] .hero-title { font-size: clamp(2rem,3.6vw,3.2rem); line-height: 1.4; letter-spacing: .01em; }
body[data-storefront-editorial="home"] .hero-desc { font-size: 1rem; margin: 1.2rem 0 1.7rem; }
body[data-storefront-editorial="home"] .hero-cta { flex-wrap: wrap; gap: .7rem; }
body[data-storefront-editorial="home"] .hero-cta a { min-height: 44px; }
body[data-storefront-editorial="home"] .commerce-mode-note { margin: 0 0 1.5rem; border-radius: 12px; padding: .8rem 1rem; }
.storefront-hero-photo { grid-area: photo; margin: 0; }
.storefront-hero-photo img, .storefront-brand-photo img, .storefront-feature-photo img { display: block; width: 100%; height: auto !important; object-fit: contain !important; filter: none !important; border-radius: 18px; }
.storefront-hero-photo figcaption, .storefront-feature-photo figcaption { color: #606859; font-size: .82rem; line-height: 1.8; margin-top: .8rem; }
.storefront-hero-photo figcaption a, .storefront-feature-photo figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: #31543b; text-underline-offset: 4px; }
body[data-storefront-editorial="home"] .cat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
body[data-storefront-editorial="home"] .cat-card { display: flex; flex-direction: column; aspect-ratio: auto; background: #fffef9; border: 1px solid #dfdfd3; border-radius: 14px; overflow: visible; }
body[data-storefront-editorial="home"] .cat-img { width: 100%; height: 218px; object-fit: contain !important; background: #f3f1e9; transform: none !important; border-radius: 14px 14px 0 0; }
body[data-storefront-editorial="home"] .cat-info { position: static; padding: 1rem; }
body[data-storefront-editorial="home"] .cat-name { color: #344e2e; line-height: 1.55; }
body[data-storefront-editorial="home"] .cat-sub { color: #616758; font-size: .8rem; line-height: 1.75; }
body[data-storefront-editorial="home"] :is(.cat-overlay,.cat-arrow) { display: none; }
body[data-storefront-editorial="home"] .products-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
body[data-storefront-editorial="home"] .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3rem; }
body[data-storefront-editorial="home"] .featured-visual { overflow: visible; background: #f7f4ed; padding: 1rem; border: 1px solid #dfdfd3; }
body[data-storefront-editorial="home"] .featured-tag { position: static; display: inline-block; margin-top: .6rem; color: #38502f; background: #eef0e5; }
body[data-storefront-editorial="home"] .featured-content { padding: 0; }
body[data-storefront-editorial="home"] .brand-story { overflow: visible; }
body[data-storefront-editorial="home"] .brand-story::before, body[data-storefront-editorial="home"] .brand-story::after { display: none; }
.storefront-brand-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3rem; align-items: center; }
.storefront-brand-photo { margin: 0; }
body[data-storefront-editorial="home"] .schoolstart-home__gallery { align-items: center; }
body[data-storefront-editorial="home"] .schoolstart-home__gallery img { display: block; height: auto; min-height: 0; object-fit: contain; }
body[data-storefront-editorial="home"] .schoolstart-home__gallery picture:first-child img { min-height: 0; }
.storefront-brand-photo figcaption { color: #edf0e5; line-height: 1.8; font-size: .82rem; margin-top: 1rem; }
body[data-storefront-editorial="home"] .brand-desc { color: #f0f3e8; line-height: 1.95; margin: 0 0 1.25rem; }
body[data-storefront-editorial="home"] .brand-label { color: #e2e8d5; line-height: 1.75; }
body[data-storefront-editorial="home"] .brand-story-link { padding: .65rem 1rem; min-height: 44px; line-height: 1.6; }
.storefront-note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.storefront-note-grid > * { display: flex; flex-direction: column; padding: 1.8rem; background: #fffef9; border: 1px solid #dfe2d4; border-radius: 16px; text-decoration: none; color: #2d3d29; }
.storefront-note-grid h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; margin: .5rem 0 1rem; }
.storefront-note-grid p { font-size: .93rem; line-height: 1.9; color: #5f6758; margin-bottom: 1.3rem; }
.storefront-note-grid :is(a,span:last-child) { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; color: #31543b; font-size: .87rem; text-underline-offset: 4px; }
.storefront-number { color: #9c702f; font-family: var(--serif); font-size: 1.3rem; }
.storefront-reading-photo { background: #f7f4ed; padding: .8rem; }
.storefront-reading-photo img { display: block; width: 100%; height: 236px; object-fit: contain; border-radius: 12px; }
.storefront-kicker { color: #536b4b; font-size: .78rem; line-height: 1.7; margin-bottom: .8rem; }
body[data-storefront-editorial="home"] .news-card { display: flex; flex-direction: column; }
body[data-storefront-editorial="home"] .news-card-body { flex: 1; display: flex; flex-direction: column; }
body[data-storefront-editorial="home"] .news-card-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; }
.storefront-next { background: #f1f3e9; }
body[data-storefront-editorial="shop-all"] .page-hero { margin-top: var(--storefront-header-height,80px); }
body[data-storefront-editorial="shop-all"] .category-nav-wrap { top: var(--storefront-header-height,80px); }
body[data-storefront-editorial="shop-all"] .category-nav { flex-wrap: wrap; white-space: normal; overflow: visible; }
body[data-storefront-editorial="shop-all"] :is(.cat-tab,.category-more summary,.category-more-menu a) { min-height: 44px; display: flex; align-items: center; line-height: 1.55; white-space: normal; }
body[data-storefront-editorial="shop-all"] .category-more-menu { min-width: 200px; }
body[data-storefront-editorial="shop-all"] .group-title { flex-wrap: wrap; gap: .6rem 1rem; }
body[data-storefront-editorial="shop-all"] .group-title span { white-space: normal; line-height: 1.6; color: #66715f; }
body[data-storefront-editorial="shop-all"] .products-grid { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; }
body[data-storefront-editorial="shop-all"] .product-entry-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
body[data-storefront-editorial="shop-all"] .product-entry-link { white-space: normal; text-decoration: none; padding: .75rem; }
body[data-storefront-editorial="news-list"] main { margin-top: calc(var(--storefront-header-height,80px) + 44px); max-width: 1180px; }
body[data-storefront-editorial="news-list"] .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
body[data-storefront-editorial="news-list"] .news-img { display: block; width: 100%; height: 300px; aspect-ratio: auto; object-fit: contain; background: #f6f3ec; }
body[data-storefront-editorial="news-list"] .news-meta { flex-wrap: wrap; }
body[data-storefront-editorial="news-list"] .news-tag { font-size: .76rem; line-height: 1.6; padding: .3rem .7rem; }
body[data-storefront-editorial="news-list"] .news-more { min-height: 44px; font-size: .9rem; line-height: 1.7; }
.storefront-intro { max-width: 44rem; margin: 0 auto; line-height: 1.9; }
@media(max-width: 1050px) {
  body[data-storefront-editorial="home"] .hero { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
  body[data-storefront-editorial="home"] :is(.cat-grid,.products-grid), body[data-storefront-editorial="shop-all"] .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .storefront-note-grid { grid-template-columns: 1fr; }
  body[data-storefront-editorial="shop-all"] .category-nav-wrap { position: relative; top: auto; }
  body[data-storefront-editorial="shop-all"] .category-more-menu { position: static; margin-top: .6rem; }
  body[data-storefront-editorial="shop-all"] .category-more { flex-basis: 100%; }
  body[data-storefront-editorial="shop-all"] .category-more summary { width: fit-content; }
}
@media(max-width: 760px) {
  body[data-storefront-editorial="home"] .hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "photo"; padding: 32px 20px; }
  body[data-storefront-editorial="home"] .hero-title { font-size: clamp(2rem,6.4vw,2.6rem); }
  body[data-storefront-editorial="home"] .hero-title br { display: none; }
  body[data-storefront-editorial="home"] .featured-grid, .storefront-brand-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  body[data-storefront-editorial="home"] .news-grid { grid-template-columns: minmax(0,1fr); }
  body[data-storefront-editorial="shop-all"] .product-entry-inner { grid-template-columns: minmax(0,1fr); }
  body[data-storefront-editorial="news-list"] .news-grid { grid-template-columns: minmax(0,1fr); }
  body[data-storefront-editorial="news-list"] .news-img { height: 250px; }
}
@media(max-width: 480px) {
  body[data-storefront-editorial="home"] :is(.cat-grid,.products-grid), body[data-storefront-editorial="shop-all"] .products-grid { grid-template-columns: minmax(0,1fr); }
  body[data-storefront-editorial="home"] main > section { padding-left: 20px; padding-right: 20px; }
  body[data-storefront-editorial="shop-all"] .product-entry-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-storefront-editorial="shop-all"] .shop-section { padding-left: 20px; padding-right: 20px; }
  .storefront-note-grid > * { padding: 1.4rem; }
}
@media(prefers-reduced-motion: reduce) { html:has(body[data-storefront-editorial]) { scroll-behavior: auto; } body[data-storefront-editorial] * { animation: none !important; transition: none !important; } }
