/* Compact presentation shared by the Peony homepage and native pages. */
html body .phk-pro-link,
html body #header .phk-shared-pro,
.phk-nav li:has(a[href*="id_cms=6"]),
#header .phk-shared-menu li:has(a[href*="id_cms=6"]) { display: none !important; }
html body .phk-bar,
html body #header .phk-shared-top-inner { justify-content: flex-end; }
html body .phk-sticky-shell .phk-bar { justify-content: flex-end !important; }
html body .phk-header .phk-head,
html body #header .phk-shared-main {
  display: grid !important; grid-template-columns: 104px minmax(0, 1fr) 60px;
  gap: 18px; min-height: 96px; max-height: 112px; padding: 8px 0;
  overflow: clip; opacity: 1;
  transition: max-height .24s ease, min-height .24s ease, padding .24s ease, opacity .18s ease;
}
html body .phk-header .phk-head .phk-logo .peony-brand-logo,
html body #header .phk-shared-main .peony-brand-logo { width: 80px !important; height: 80px !important; }
html body .phk-head .phk-title,
html body #header .phk-shared-slogan { font-size: 16px; line-height: 1.4; }
html body .phk-head .phk-bretagne,
html body #header .phk-shared-origin { width: 54px; height: auto; }
html body .phk-nav a,
html body #header .phk-shared-menu a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
html body #header .phk-shared-menu { min-height: 44px; }
.peony-compact-logo { display: none; margin-right: auto; width: 34px; height: 34px; }
.peony-compact-logo img { display: block; width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
@media (min-width: 992px) {
  .peony-header-compact .peony-compact-logo { display: block; }
  html.peony-header-compact body .phk-header .phk-head,
  html.peony-header-compact body #header .phk-shared-main {
    min-height: 0 !important; max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0;
  }
  .page-category #left-column { flex: 0 0 210px; width: 210px; max-width: 210px; }
  .page-category #content-wrapper { flex: 1; width: calc(100% - 210px); max-width: calc(100% - 210px); min-width: 0; }
}
html body .phk-category-frame ~ #wrapper { padding-top: 16px !important; }
html body.page-category .breadcrumb { padding: 10px 0 !important; margin: 0 0 12px !important; min-height: 0; }
html body .page-category .block-category,
html body.page-category .block-category {
  min-height: 0; padding: 0; margin: 0 0 16px; border: 0;
  border-radius: 0; background: transparent; box-shadow: none;
}
html body.page-category .block-category h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
html body.page-category .block-category .category-cover { margin: 0; width: 100%; background: var(--peony-surface); }
html body.page-category .block-category .category-cover img {
  display: block; width: 100%; height: auto; max-height: 210px; aspect-ratio: auto;
  object-fit: contain; object-position: center;
}
.peony-category-description { margin-top: 12px; }
.page-category .product_list:not(.list) .leo-product-ajax {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0;
}
.page-category .product_list:not(.list) .leo-product-ajax > .ajax_block_product {
  float: none; flex: none; width: auto; min-width: 0; max-width: none; padding: 0;
}
html body .product-miniature { min-width: 0; }
html body .product-miniature .thumbnail-container {
  margin-bottom: 0;
  padding: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}
html body .product-miniature .thumbnail-top { height: 190px; }
html body .product-miniature a.product-thumbnail { display: flex; align-items: center; justify-content: center; height: 190px; }
html body .product-miniature .product-thumbnail > img,
html body .product-miniature .product-thumbnail > picture > img { width: 100%; height: 180px; object-fit: contain; }
html body .product-miniature .product-description { padding: 12px; }
html body .product-miniature .product-title,
html body .product-miniature .product-title a { font-size: 13px !important; line-height: 1.45 !important; }
html body .product-miniature .product-title { margin-bottom: 8px; }
html body .product-miniature .phk-mini-description { font-size: 12px; line-height: 1.45; margin-bottom: 8px; }
html body .product-miniature .phk-mini-variant-field,
html body .product-miniature .phk-mini-variant-select { font-size: 12px; line-height: 1.45; }
html body .product-miniature .phk-mini-variant-row {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 6px;
  margin-bottom: 5px; font-size: 12px;
}
html body .product-miniature .phk-mini-variant-row select { min-width: 0; width: 100%; height: 30px; font-size: 12px; padding: 2px 22px 2px 6px; }
html body .product-miniature .phk-mini-variant-row label { min-width: 0; margin: 0; overflow-wrap: anywhere; }
html body .product-miniature .phk-price-cart-row { gap: 6px; padding: 6px; align-items: center; }
html body .product-miniature .phk-price-cart-row .price { font-size: 16px; }
html body .product-miniature .leo-bt-cart { padding: 0; font-size: 11px; }
html body .product-miniature .name-btn-product { font-size: 12px; }
html body .product-miniature .functional-buttons .wishlist,
html body .product-miniature .functional-buttons .quickview { display: none !important; }
@media (min-width: 576px) {
  .page-category .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .page-category .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .page-category .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .page-category:has(#btn_view_product .view-1.active) .product_list:not(.list) .leo-product-ajax { grid-template-columns: minmax(0, 1fr); }
  .page-category:has(#btn_view_product .view-2.active) .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-category:has(#btn_view_product .view-3.active) .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-category:has(#btn_view_product .view-4.active) .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-category:has(#btn_view_product .view-5.active) .product_list:not(.list) .leo-product-ajax { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  #btn_view_product { display: none; }
  html body .phk-header .phk-head,
  html body #header .phk-shared-main { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; min-height: 80px; max-height: none; padding: 8px 0; }
  html body .phk-header .phk-head .phk-logo .peony-brand-logo,
  html body #header .phk-shared-main .peony-brand-logo { width: 64px !important; height: 64px !important; }
  html body .phk-head .phk-title,
  html body #header .phk-shared-slogan { grid-column: 2; grid-row: 1; font-size: 13px; padding: 0; }
  html body .phk-head .phk-bretagne,
  html body #header .phk-shared-origin { display: none; }
  html body .phk-sticky-shell .phk-header .phk-head,
  html body #header .phk-shared-main { grid-template-columns: 72px minmax(0, 1fr) !important; width: calc(100% - 24px) !important; }
  html body .phk-sticky-shell .phk-head .phk-title,
  html body #header .phk-shared-main .phk-shared-slogan { grid-column: 2 !important; grid-row: 1 !important; font-size: 13px !important; padding: 0 !important; }
}
@media (max-width: 575px) {
  html body .product-miniature .phk-mini-variant-field,
  html body .product-miniature .phk-mini-variant-select { font-size: 13px; }
  html body .phk-tools a[href^="tel:"] .phk-tool-label,
  html body #header .phk-shared-tools a[href^="tel:"] .phk-shared-tool-label { display: none !important; }
  html body .phk-bar,
  html body #header .phk-shared-top-inner { min-height: 44px; padding: 0; }
  html body.page-category .block-category .category-cover img { max-height: none; }
  html body.page-category .block-category h1 { font-size: 20px; }
  html body .product-miniature .phk-mini-variant-row { grid-template-columns: 82px minmax(0, 1fr); font-size: 13px; }
  html body .product-miniature .phk-mini-variant-row select { font-size: 13px; height: 34px; }
  html body .product-miniature .phk-mini-quantity,
  html body .product-miniature .phk-mini-quantity .leo-touchspin,
  html body .product-miniature .phk-mini-quantity .input-group,
  html body .product-miniature .phk-mini-quantity input,
  html body .product-miniature .phk-mini-quantity button { height: 36px !important; min-height: 36px !important; }
  html body .product-miniature .phk-mini-quantity .leo-touchspin .input-group-btn-vertical .btn { height: 36px !important; min-height: 36px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .phk-header .phk-head,
  html body #header .phk-shared-main { transition: none; }
}
