/* MC mobile layout v1: one shared responsive contract; desktop cascade is unchanged. */
@media (max-width:820px) {
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header {
    width:calc(100% - 24px);max-width:none;margin:0 auto;padding:6px 0;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header-row {
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand cart" "search search" "phones callback";
    gap:6px 10px;align-items:center;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .brand {
    grid-area:brand;width:176px;max-width:100%;height:48px;margin:0;display:flex;align-items:center;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .brand img {
    display:block;width:100%;height:auto;max-height:48px;object-fit:contain;object-position:left center;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .catalogue-button {display:none;}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .personal-links {display:contents;}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .cart-link {
    grid-area:cart;justify-self:end;grid-column:auto;min-height:44px;display:inline-flex;
    align-items:center;gap:6px;margin:0;padding:8px 0 8px 8px;font-size:13px;white-space:nowrap;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .search {
    grid-area:search;width:100%;min-width:0;max-width:none;min-height:44px;margin:0;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .search input {
    min-width:0;height:44px;padding:10px 12px;font-size:16px;line-height:1.3;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .search button {
    min-width:54px;min-height:44px;padding:8px 10px;font-size:13px;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mc-header-phones {
    grid-area:phones;display:flex;flex-direction:column;gap:0;margin:0;line-height:1.4;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .personal-links .mc-header-phone {
    min-height:24px;display:inline-flex;align-items:center;font-size:13px;font-weight:600;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .personal-links .mc-header-callback {
    grid-area:callback;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
    margin:0;padding:10px 12px;font-size:12px;line-height:1.3;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mobile-navigation {
    display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;margin-top:6px;
    padding-bottom:0;border-bottom:0;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mobile-menu {padding:0;min-width:0;}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mobile-menu>summary {
    min-height:44px;padding:11px 10px;font-size:13px;line-height:20px;
  }
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mobile-menu nav a {
    display:block;min-height:44px;padding:11px 12px;font-size:15px;line-height:22px;
  }

  body.refinements.scandi .sc-hero {display:flex;flex-direction:column;gap:18px;margin-top:16px;}
  body.refinements.scandi .ref-hero-copy {order:-1;padding:0;max-width:46rem;}
  body.refinements.scandi .ref-hero-copy .eyebrow {margin:0 0 10px;font-size:11px;}
  body.refinements.scandi .ref-hero-copy h1 {font-size:clamp(28px,7.5vw,38px);line-height:1.12;margin:0;}
  body.refinements.scandi .ref-hero-lede {margin:14px 0 18px;font-size:16px;line-height:1.5;}
  body.refinements.scandi .ref-hero-copy>.button {min-height:46px;font-size:15px;padding:12px 18px;}
  body.refinements.scandi .ref-secondary {display:inline-flex;align-items:center;min-height:44px;margin-left:12px;font-size:14px;}
  body.refinements.scandi .ref-hero-copy>.sc-cozy-accent {display:none;}
  body.refinements.scandi .sc-hero-visual {min-width:0;}
  body.refinements.scandi .sc-hero figure>img {width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;}
  body.refinements.scandi .sc-hero-review {position:static;bottom:auto;right:auto;width:auto;max-width:none;margin:12px 0 0;padding:16px;}

  body.mc-exact-catalog main>h1 {margin:16px 0;font-size:28px;line-height:1.2;}
  body.mc-exact-catalog .category-links {
    display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;margin:12px 0 16px;
    padding-bottom:0;scrollbar-width:none;
  }
  body.mc-exact-catalog .category-links::-webkit-scrollbar {display:none;}
  body.mc-exact-catalog .category-links a {flex:0 0 auto;min-height:44px;padding:11px 12px;font-size:13px;white-space:nowrap;}
  body.mc-exact-catalog .pc-filter-bar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;}
  body.mc-exact-catalog .pc-filter-root {margin-top:12px;}
  body.mc-exact-catalog .mc-price-filter {min-width:0;max-width:none;font-size:13px;}
  body.mc-exact-catalog .mc-price-filter input {font-size:16px;height:44px;padding:10px;}
  body.mc-exact-catalog .mc-filter-actions {grid-column:1/-1;display:flex;gap:10px;align-items:center;}
  body.mc-exact-catalog .mc-filter-actions .button {min-height:44px;flex:1;justify-content:center;}
  body.mc-exact-catalog :is(.product-grid,.local-product-grid) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;}
  body.refinements.scandi.mc-exact-catalog .local-product-card {padding:0;border-radius:12px;}
  body.refinements.scandi.mc-exact-catalog .local-product-card>a {display:block;padding:0;overflow:hidden;border-radius:11px 11px 0 0;flex:0 0 auto;}
  body.refinements.scandi.mc-exact-catalog .local-product-card>div {padding:10px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(3.9em,1fr) auto 44px;grid-template-areas:"code" "name" "price" "action";gap:6px;align-items:stretch;}
  body.refinements.scandi.mc-exact-catalog .local-product-card img {display:block;width:100%;max-width:none;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center;margin:0;padding:0;border:0;}
  body.refinements.scandi.mc-exact-catalog .local-product-card h2 {grid-area:name;min-width:0;font-size:15px;line-height:1.3;margin:0;overflow-wrap:anywhere;}
  body.refinements.scandi.mc-exact-catalog .local-product-card .caption {grid-area:code;font-size:11px;line-height:1.4;margin:0;}
  body.refinements.scandi.mc-exact-catalog .local-product-card .mc-item-price {grid-area:price;display:flex;align-items:flex-end;min-height:2.5em;font-size:18px;line-height:1.25;margin:2px 0 0;overflow-wrap:anywhere;}
  body.mc-exact-catalog .local-product-card .button {grid-area:action;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;margin:0;padding:10px 4px;font-size:13px;line-height:1.2;white-space:nowrap;}

  body:not(.refinements)>main {padding:16px 12px 36px;}
  body[data-checkout-page] main {max-width:760px;margin:auto;padding:16px 12px 36px;}
  body[data-checkout-page] main>h1 {margin:0 0 12px;font-size:28px;line-height:1.2;}
  body[data-checkout-page] .checkout-steps {gap:8px;flex-wrap:wrap;margin:0 0 12px;font-size:13px;line-height:1.4;}
  body[data-checkout-page] .checkout-steps a {min-height:32px;display:inline-flex;align-items:center;}
  body[data-checkout-page] [data-checkout-mode] {margin:0 0 14px;font-size:14px;line-height:1.5;}
  body[data-checkout-page] .checkout-payment-note {padding:14px;margin:14px 0;border-radius:10px;}
  body[data-checkout-page] .checkout-payment-note h2 {font-size:17px;line-height:1.4;}
  body[data-checkout-page] #emergency-checkout-form {gap:14px;padding:16px;border-radius:12px;}
  body[data-checkout-page] #emergency-checkout-form label {font-size:15px;line-height:1.5;}
  body[data-checkout-page] #emergency-checkout-form :is(input:not([type=checkbox]),select,textarea) {font-size:16px;min-height:46px;}
  body[data-checkout-page] #emergency-checkout-form textarea {min-height:90px;}
  body[data-checkout-page] #checkout-submit {min-height:48px;font-size:16px;}
  body[data-checkout-page] .consent {align-items:start;}
  body[data-checkout-page] .consent input {min-width:24px;width:24px;height:24px;}
  body:not(.refinements)>.mc-article-reading>h1 {font-size:28px;line-height:1.22;margin:8px 0 20px;}
  body:not(.refinements)>.mc-readable-content {padding:16px 12px 36px;}
  dialog.mc-photo-dialog button {width:auto;flex:0 0 auto;min-width:48px;min-height:48px;max-width:none;}
  dialog.mc-photo-dialog .mc-photo-counter {white-space:nowrap;flex:0 0 auto;}
}

@media (max-width:360px) {
  body.mc-exact-catalog :is(.product-grid,.local-product-grid) {grid-template-columns:minmax(0,1fr);}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .brand {width:160px;}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .header .cart-link {font-size:12px;}
  :is(body.refinements.scandi,.mc-product-header.refinements.scandi) .mobile-menu>summary {font-size:12px;}
  body.refinements.scandi .ref-secondary {margin-left:6px;font-size:13px;}

}

/* Keep the connection status available to assistive technology during loading. */
body #mc-cart-connection[data-connection-state="pending"]{
 position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;
 border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
@media (max-width:820px) and (scripting:enabled){
 #mc-compact-site-header:not([data-mc-header-ready]) form.search{display:none!important}
}
@media (max-width:820px) and (scripting:none){
 #mc-compact-site-header .mc-search-toggle{display:none!important}
}
main:has(>#search-results){min-block-size:calc(100svh - 5rem)}
body[data-checkout-page] main#mc-card-v4.port-checkout{min-height:calc(100svh - 5rem)!important}
body[data-checkout-page="cart"] main>[data-checkout-mode]{box-sizing:border-box;min-block-size:55px}
#emergency-callback-page:has(>form:not([data-mc-callback-preview]))>form[data-mc-callback-preview]{display:none}
@media(scripting:none){form[data-mc-callback-preview]{display:none}}
