/* /public/assets/littoral/storefront-harmony.css */
body:has(.mk-header) {
  background: var(--bg);
}
.mk-header.public-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  z-index: 70;
}
.mk-header.public-topbar .mk-header-inner {
  grid-template-columns: 220px minmax(200px, 1fr) 190px;
  gap: 24px;
}
.mk-header.public-topbar .mk-search {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: visible;
}
.mk-header.public-topbar .mk-search input {
  color: var(--ink);
  font-size: 16px;
}
.mk-header .mk-search .search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(65dvh, 560px);
  overflow: auto;
  margin: 0;
  padding: 7px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px #0003;
  border-radius: 10px;
  z-index: 100;
}
.search-suggestions[hidden] {
  display: none !important;
}
.search-suggestions .search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  padding: 8px;
  text-decoration: none;
}
.search-suggestions .search-result:hover,
.search-suggestions .search-result:focus-visible {
  background: var(--tint);
}
.search-suggestions .search-result-thumbnail {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}
.search-suggestions .search-result-no-photo {
  display: grid;
  place-items: center;
  color: #64748b;
}
.search-suggestions .search-result-no-photo svg {
  width: 24px;
  height: 24px;
}
.search-suggestions .search-result-text {
  flex: 1;
  min-width: 0;
}
.search-suggestions .search-result strong,
.search-suggestions .search-result small {
  display: block;
  overflow-wrap: anywhere;
}
.search-suggestions .search-result small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.search-suggestions .search-result-price {
  white-space: nowrap;
  font-size: 12px;
  color: var(--red);
}
.mk-catalogue-shell {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
}
.mk-catalogue-shell.catalogue-shell > main {
  max-width: 1480px !important;
  margin: auto !important;
  padding: 0 20px 30px !important;
  width: 100% !important;
  box-sizing: border-box;
}
.mk-navigation {
  background: var(--surface);
  border-radius: 0;
  padding: 9px 0;
  gap: 16px;
  z-index: 45;
}
.mk-navigation .sf-category-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
  scrollbar-width: thin;
  padding: 3px 0;
}
.mk-navigation .sf-category-shortcuts a {
  flex: none;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.mk-navigation .sf-category-shortcuts a[aria-current],
.mk-navigation .sf-category-shortcuts a:hover {
  background: var(--tint);
  color: var(--red);
}
.mk-navigation .sf-category-panel {
  background: var(--surface);
  color: var(--ink);
  max-height: 65dvh;
  overflow: auto;
  z-index: 60;
}
.mk-navigation .sf-category-menu > summary {
  white-space: nowrap;
}
.mk-navigation .sf-project-link {
  flex: none;
}
body:has(.mk-header) .mk-product {
  display: flex !important;
  flex-direction: column !important;
  background: var(--surface);
  color: var(--ink);
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
}
body:has(.mk-header) .mk-product .design-card-heading {
  position: relative;
  padding: 0 !important;
  min-height: 0;
}
body:has(.mk-header) .mk-product .design-card-heading h2 {
  font-size: 13px !important;
  line-height: 1.3 !important;
  height: 2.6em !important;
  min-height: 2.6em !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:has(.mk-header) .mk-product .design-card-heading h2 a {
  text-decoration: none;
  color: var(--ink);
}
body:has(.mk-header)
  .mk-product
  .design-card-heading:has(.catalogue-card-edit a)
  h2 {
  padding-right: 27px;
}
body:has(.mk-header) .mk-product .catalogue-card-edit:not(:empty) {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}
body:has(.mk-header) .mk-product .catalogue-card-edit a {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 5px;
}
body:has(.mk-header) .mk-product .design-card-media {
  position: relative;
  background: #fff;
  border-radius: 5px;
  color: #26303d;
  height: 130px;
  min-height: 130px;
}
body:has(.mk-header) .mk-product .design-gallery {
  padding: 0 !important;
  height: 100%;
}
body:has(.mk-header) .mk-product .design-photo-rail {
  height: 100%;
  width: 100%;
  border-radius: 5px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
body:has(.mk-header) .mk-product .design-photo-slide {
  height: 130px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 8px !important;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}
body:has(.mk-header) .mk-product .design-photo-slide img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
body:has(.mk-header) .mk-product .design-photo-counter {
  bottom: 5px;
  right: 5px;
  font-size: 10px;
}
body:has(.mk-header) .mk-product .design-favorite {
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 5px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #26303d;
  z-index: 3;
}
body:has(.mk-header) .mk-product .design-favorite svg {
  width: 20px;
  height: 20px;
}
body:has(.mk-header) .mk-product .product-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
body:has(.mk-header) .mk-product .product-price {
  font-size: 16px;
  color: var(--red);
  line-height: 1.3;
}
body:has(.mk-header) .mk-product .card-reference {
  font-size: 10px !important;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  min-height: 13px;
  margin-top: auto !important;
  color: var(--muted);
}
body:has(.mk-header) .mk-product .card-action-row {
  padding: 0 !important;
  margin: 0 !important;
}
body:has(.mk-header) .mk-product .card-action-row > [data-sync-quantity] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  gap: 6px !important;
}
body:has(.mk-header)
  .mk-product
  .card-action-row
  > [data-sync-quantity]
  .product-quantity-stepper {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center;
  width: min(100%, 108px) !important;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid var(--line);
  border-radius: 7px !important;
  overflow: hidden;
  box-sizing: border-box;
  gap: 0 !important;
}
body:has(.mk-header)
  .mk-product
  .card-action-row
  > [data-sync-quantity]
  .product-quantity-stepper
  button {
  display: grid !important;
  place-items: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 30px !important;
  padding: 0 !important;
  line-height: 1;
  font-size: 20px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}
body:has(.mk-header)
  .mk-product
  .card-action-row
  > [data-sync-quantity]
  .product-quantity-stepper
  input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 30px !important;
  padding: 0 !important;
  line-height: 30px;
  text-align: center;
  font-size: 16px !important;
  border: 0;
  color: var(--ink);
  background: var(--surface);
}
body:has(.mk-header) .mk-product [data-product-remove] {
  display: none !important;
}
body:has(.mk-header)
  .mk-product
  .card-action-row
  > [data-sync-quantity]
  [data-quantity-apply] {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-height: 36px !important;
  height: auto !important;
  padding: 7px 3px !important;
  font-size: 12px !important;
  line-height: 1.2;
  white-space: normal;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}
.mk-catalogue-shell [data-ci-product-grid],
.mk-home .mk-product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 10px !important;
}
.mk-catalogue-shell [data-ci-product-grid] > .panel {
  grid-column: 1/-1;
}
.mk-catalogue-shell
  [data-intuitive-catalogue].ci-responsive-mode
  .catalogue-filter-layout {
  grid-template-columns: 180px minmax(0, 1fr) !important;
  gap: 16px !important;
}
.mk-catalogue-shell
  [data-intuitive-catalogue]
  .catalogue-active-filters:not([hidden]) {
  display: flex !important;
  gap: 6px;
  flex-wrap: wrap;
}
.mk-catalogue-shell
  [data-intuitive-catalogue]
  .catalogue-active-filters[hidden] {
  display: none !important;
}
.mk-catalogue-shell [data-intuitive-catalogue] .ci-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.mk-catalogue-shell
  [data-intuitive-catalogue]
  .ci-sort-options
  button:disabled {
  display: none;
}
.mk-mobile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}
.mk-mobile-count[hidden] {
  display: none !important;
}
.mk-cart-icon {
  position: relative;
  display: block;
  height: 22px;
}
.mk-cart-icon .mk-mobile-count {
  position: absolute;
  left: 15px;
  top: -5px;
}
.mk-mobile-bar > button {
  position: relative;
}
.mk-mobile-bar > [data-favorites-open] > .mk-mobile-count {
  position: absolute;
  top: 0;
  left: calc(50% + 5px);
}
.mk-empty-selection {
  min-height: 240px;
  justify-content: center;
}
html[data-theme="dark"] .mk-project {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .mk-category .mk-sprite {
  background-color: #fff;
  border-radius: 4px;
}
html[data-theme="dark"] .mk-duo > a {
  border: 1px solid var(--line);
}
.mk-header :focus-visible,
.mk-navigation :focus-visible,
.mk-mobile-bar :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (max-width: 1099px) and (min-width: 768px) {
  .mk-header.public-topbar .mk-header-inner {
    grid-template-columns: 160px minmax(180px, 1fr) 160px;
    gap: 14px;
    padding: 12px 20px;
  }
  .mk-header .mk-brand {
    width: 160px;
  }
  .mk-header.public-topbar .mk-header-actions {
    gap: 12px;
  }
  .mk-catalogue-shell [data-ci-product-grid],
  .mk-home .mk-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  body:has(.mk-header) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .mk-header.public-topbar .mk-header-inner {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 8px 12px;
  }
  .mk-header .mk-brand {
    justify-self: center;
    width: 170px;
    grid-column: 2;
    grid-row: 1;
  }
  .mk-header .mk-mobile-menu {
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 36px;
    min-height: 0;
    padding: 5px;
    color: var(--ink);
    background: transparent;
    border: 0;
  }
  .mk-header .mk-mobile-menu svg {
    width: 22px;
    height: 22px;
  }
  .mk-header.public-topbar .mk-header-actions {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }
  .mk-header.public-topbar .mk-header-actions > .mk-account,
  .mk-header.public-topbar .mk-header-actions > .mk-favorites {
    display: none !important;
  }
  .mk-header.public-topbar .mk-header-actions > .mk-theme {
    display: grid;
    width: 32px;
    height: 36px;
  }
  .mk-header.public-topbar .navbar-cart > summary {
    display: none !important;
  }
  .mk-header .navbar-cart {
    position: static !important;
  }
  .mk-header .navbar-cart[open] .navbar-cart-panel {
    position: fixed !important;
    top: 12px !important;
    right: 10px !important;
    left: 10px !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--surface);
  }
  .mk-header .navbar-cart[open] .navbar-cart-panel .design-cart-scroll,
  .mk-header .navbar-cart[open] .navbar-cart-panel [data-basket-content] {
    overflow: auto;
    min-height: 0;
    flex: 1;
  }
  .mk-header.public-topbar .mk-search {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    min-height: 40px;
  }
  .mk-header .mk-search .search-suggestions {
    max-height: 55dvh;
    font-size: 13px;
  }
  .search-suggestions .search-result {
    gap: 8px;
    padding: 7px 3px;
    flex-wrap: wrap;
  }
  .search-suggestions .search-result-price {
    margin-left: 60px;
  }
  .mk-mobile-bar.sf-mobile-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    z-index: 80;
    background: var(--surface);
    padding-top: 6px;
  }
  .mk-mobile-bar.sf-mobile-bar a,
  .mk-mobile-bar.sf-mobile-bar button {
    font-size: 10px;
    padding: 4px 1px;
    min-width: 0;
    color: var(--ink);
  }
  .mk-mobile-bar.sf-mobile-bar [aria-current] {
    color: var(--red);
  }
  .mk-mobile-bar.sf-mobile-bar svg {
    width: 21px;
    height: 21px;
  }
  .mk-catalogue-shell.catalogue-shell > main {
    padding: 0 10px 22px !important;
  }
  .mk-navigation.sf-navigation {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 0;
    margin: 0;
  }
  .mk-navigation .sf-category-menu {
    flex: 1;
    min-width: 0;
    position: static;
  }
  .mk-navigation .sf-category-menu > summary {
    width: max-content;
    padding: 6px 8px;
    font-size: 11px;
    min-height: 34px;
  }
  .mk-navigation .sf-project-link {
    font-size: 12px;
    padding: 8px;
  }
  .mk-navigation .sf-category-shortcuts {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    gap: 5px;
    padding: 3px 0 6px;
  }
  .mk-navigation .sf-category-shortcuts a {
    font-size: 11px;
    padding: 7px 9px;
    border: 1px solid var(--line);
  }
  .mk-navigation .sf-category-panel {
    position: absolute;
    top: 43px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    max-height: 60dvh;
    padding: 14px;
    background: var(--surface);
  }
  .mk-navigation .sf-category-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .mk-catalogue-shell [data-ci-product-grid],
  .mk-home .mk-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .mk-catalogue-shell
    [data-intuitive-catalogue].ci-responsive-mode
    .catalogue-filter-layout {
    display: block !important;
  }
  .mk-catalogue-shell [data-intuitive-catalogue] .ci-sidebar-toggle {
    bottom: calc(87px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    left: auto !important;
    right: 12px !important;
    z-index: 55;
  }
  body:has(.mk-header) .mk-product .design-card-media,
  body:has(.mk-header) .mk-product .design-photo-slide {
    height: 126px !important;
    min-height: 126px;
  }
  body:has(.mk-header)
    .mk-product
    .card-action-row
    > [data-sync-quantity]
    .product-quantity-stepper {
    height: 36px !important;
    min-height: 36px !important;
  }
  body:has(.mk-header)
    .mk-product
    .card-action-row
    > [data-sync-quantity]
    .product-quantity-stepper
    button,
  body:has(.mk-header)
    .mk-product
    .card-action-row
    > [data-sync-quantity]
    .product-quantity-stepper
    input {
    height: 34px !important;
    line-height: 34px;
  }
  .home-install-app {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Boutons contrastés dans les deux thèmes. */
body:has(.mk-header) .primary,
body:has(.mk-header)
  .mk-product
  .card-action-row
  > [data-sync-quantity]
  [data-quantity-apply],
body:has(.mk-header) .sf-category-menu > summary {
  background: #d92531;
  color: #fff;
}

/* Les menus de l’accueil sont la référence sur les deux pages. */
.mk-navigation .mk-navigation-links.sf-category-shortcuts {
  gap: clamp(8px, 2vw, 28px);
}
.mk-navigation .mk-navigation-links.sf-category-shortcuts a {
  padding: 7px 0;
}
.mk-navigation .mk-project-links {
  display: flex;
  gap: 20px;
  flex: none;
}
@media (max-width: 767px) {
  .mk-navigation .mk-navigation-links.sf-category-shortcuts {
    gap: 7px;
  }
  .mk-navigation .mk-navigation-links.sf-category-shortcuts a {
    padding: 7px 9px;
  }
  .mk-navigation .mk-project-links {
    display: flex;
    padding-left: 8px;
    gap: 12px;
    border-left: 0;
  }
  .mk-navigation .mk-project-links a {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .mk-catalogue-shell
    [data-intuitive-catalogue].ci-responsive-mode
    button.ci-sidebar-toggle.ci-filter-tab {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    flex-direction: row !important;
    box-shadow: 0 5px 18px #0003;
  }
  .mk-catalogue-shell .ci-filter-tab .ci-tab-count:not([hidden]) {
    position: absolute;
    top: -5px;
    right: -5px;
  }
}
