/* Danish before-bestseller anatomy with canonical tokens and intrinsic heights.
 * Scoped separately from Sweden's fixed 430px/2660px legacy layout frames.
 */
.ms-storefront-home{color:#0f172a;background:#fff}
.ms-storefront-home .container{width:100%!important;max-width:1170px!important;padding:0 16px!important;margin:0 auto!important}
.ms-storefront-home .ms-storefront-home-top{padding:32px 0 0}
.ms-storefront-home .brand-section-title{font-size:24px;line-height:30px;font-weight:700;text-align:center;margin:0 0 24px;color:#0f172a}
.ms-storefront-home .brand-carousel-wrapper{position:relative;max-width:100%}
.ms-storefront-home .brand-carousel{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;list-style:none;margin:0;padding:4px 4px 16px;scrollbar-width:thin}
.ms-storefront-home .brand-item{display:flex;flex:0 0 105px;width:105px;height:85px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.06);scroll-snap-align:start;margin:0;position:relative}
.ms-storefront-home .brand-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:12px;border-radius:10px}
.ms-storefront-home .brand-logo{display:block;width:100%;height:100%;object-fit:contain;opacity:1}
.ms-storefront-home .brand-item:hover{border-color:#214249;transform:none}
.ms-storefront-home .ms-storefront-brands-help{font-size:12px;line-height:16px;color:#64748b;margin:8px 0 0;text-align:center}
.ms-storefront-home .ms-storefront-proof{display:flex;flex-direction:column;align-items:center;gap:24px;margin:24px 0}
.ms-storefront-home .ms-storefront-home-review{display:flex;justify-content:center;flex-wrap:wrap;font-size:14px;line-height:21px;min-height:44px}
.ms-storefront-home .ms-storefront-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:center;margin:24px 0}
.ms-storefront-home .ms-storefront-benefits img{display:block;margin:0 auto 8px;width:28px;height:28px;object-fit:contain}
.ms-storefront-home .ms-storefront-benefits p{font-size:12px;line-height:16px;color:#334155;margin:0}
.ms-storefront-home .offer-section-new{padding:32px 24px;margin:24px 0 0;text-align:center;border-radius:16px;position:relative;color:#fff;background:#214249;overflow:hidden;isolation:isolate}
.ms-storefront-home .offer-media-new,.ms-storefront-home .offer-media-new img{display:block;width:100%;height:100%;position:absolute;inset:0;z-index:-2;object-fit:cover}
.ms-storefront-home .offer-section-new:before{content:'';position:absolute;inset:0;background:rgba(15,23,42,.52);z-index:-1}
.ms-storefront-home .offer-content-new{position:relative}
.ms-storefront-home .offer-content-new h2{font-size:24px;line-height:30px;font-weight:700;color:#fff;margin:0 0 24px}
.ms-storefront-home .btn-shop-brands{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:12px 24px;border:1px solid #fff;border-radius:10px;background:#fff;color:#214249;font-size:13px;line-height:16px;font-weight:700;text-decoration:none}
.ms-storefront-home .btn-shop-brands:hover{background:#e8eef0;text-decoration:underline}
.ms-storefront-home .ms-storefront-bestsellers{margin:48px 0}
.ms-storefront-home .ms-storefront-bestsellers>.bestseller-heading{display:block!important;text-align:center;color:#0f172a!important;font-size:24px!important;line-height:30px!important;margin:0 16px 24px!important;font-weight:700!important;text-transform:none!important}
.ms-storefront-home .ms-storefront-bestsellers>.container .bestseller-heading{display:none!important}
.ms-storefront-home .ms-storefront-bestsellers ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 10px!important;margin:0!important;padding:0!important}
.ms-storefront-home .ms-storefront-bestsellers ul.products:before,.ms-storefront-home .ms-storefront-bestsellers ul.products:after{display:none!important}
.ms-storefront-home .ms-storefront-bestsellers ul.products li.product{width:100%!important;float:none!important;margin:0!important;border:1px solid #e5e7eb!important;border-radius:12px!important;min-width:0;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.06)}
.ms-storefront-home .ms-storefront-bestsellers ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;line-height:19px!important;font-weight:600!important;color:#0f172a!important}
.ms-storefront-home .ms-storefront-bestsellers ul.products li.product a.button{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#214249!important;color:#fff!important;border-radius:10px!important}
.ms-storefront-home .after-bestseller{background:#f8fafc!important;color:#334155!important;padding:32px 0!important;margin:48px 0!important}
.ms-storefront-home .after-bestseller .container{max-width:760px!important}
.ms-storefront-home .after-bestseller :is(p,li){font-size:16px!important;line-height:24px!important}
.ms-storefront-home .after-bestseller :is(h2,h3){color:#0f172a!important;font-weight:700!important;text-transform:none!important}
@media(min-width:768px){
  .ms-storefront-home .container{padding:0 24px!important}
  .ms-storefront-home .brand-carousel{flex-wrap:wrap;justify-content:center;overflow:visible;gap:16px;padding:8px 0}
  .ms-storefront-home .brand-item{flex-basis:125px;width:125px;height:95px}
  .ms-storefront-home .brand-section-title{font-size:28px;line-height:34px}
  .ms-storefront-home .ms-storefront-brands-help{display:none}
  .ms-storefront-home .offer-section-new{padding:48px 24px}
  .ms-storefront-home .offer-content-new h2{font-size:28px;line-height:34px}
  .ms-storefront-home .ms-storefront-bestsellers{margin:64px 0}
  .ms-storefront-home .ms-storefront-bestsellers ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px 16px!important}
  .ms-storefront-home .ms-storefront-bestsellers ul.products li.product{border-radius:14px!important}
  .ms-storefront-home .ms-storefront-bestsellers ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:20px!important}
}
