/**
 * Mycotrop - Growkit category page design (2026-09-19).
 *
 * Page-specific: every selector is scoped to body.category-id-45 and the
 * .mgk wrapper, so no other category, listing or product page is restyled.
 * Layout only - prices, counts, dates, images and copy come from the catalog.
 */

body.category-id-45 {
  --mgk-ink: #111214;
  --mgk-muted: #5b5f63;
  --mgk-line: #ececec;
  --mgk-green: #1f7a45;
  --mgk-green-text: #2f7d4f;
  --mgk-green-rule: #1c6a43;
  --mgk-red: #d81a0d;
  --mgk-peach: #ffecd8;
  --mgk-peach-soft: #fdf3e4;
  --mgk-badge-bg: #ffe9c6;
  --mgk-badge-ink: #97570d;
  --mgk-icon: #e08a1e;
}

/* The reference design is a full-width listing: the category sidebar with the
   legacy tree is not part of it. Only this category is affected. */
body.category-id-45 #left-column {
  display: none;
}

body.category-id-45 #content-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.mgk {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
}

.mgk h1,
.mgk h2,
.mgk h3 {
  font-family: inherit;
}

.mgk *,
.mgk *::before,
.mgk *::after {
  box-sizing: border-box;
}

.mgk-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---------------------------------------------------------------- intro --- */

.mgk-intro {
  align-items: center;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding-top: 6px;
}

.mgk-intro__titles {
  min-width: 0;
}

.mgk-intro .page-title,
.mgk-intro .h1 {
  border-bottom: 0;
  color: var(--mgk-ink);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  padding-bottom: 0;
}

.mgk-intro #js-product-list-header {
  border-bottom: 0;
  padding-bottom: 0;
}

.mgk-intro__subtitle {
  color: var(--mgk-muted);
  font-size: 17px;
  margin: 12px 0 0;
}

.mgk-intro__promo {
  flex: 0 0 auto;
  padding-top: 6px;
}

/* ------------------------------------------------- promo (existing data) --- */

.mycotrop-growkit-promo {
  align-items: center;
  background: var(--mgk-peach-soft);
  border-radius: 6px;
  display: flex;
  gap: 14px;
  padding: 14px 18px;
}

.mycotrop-growkit-promo[hidden] {
  display: none !important;
}

.mycotrop-growkit-promo__icon {
  color: #c9761a;
  font-size: 17px;
  line-height: 1;
}

.mycotrop-growkit-promo__text {
  color: var(--mgk-ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.mycotrop-growkit-promo__link {
  color: #2a2c31;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.mycotrop-growkit-promo__link:hover {
  color: var(--mgk-green-rule);
}

/* ------------------------------------------------------------ section nav --- */

.mgk-nav {
  border-bottom: 1px solid var(--mgk-line);
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 26px;
}

.mgk-nav__link {
  border-bottom: 2px solid transparent;
  color: #3b3c44;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: -1px;
  padding: 12px 0 13px;
  text-decoration: none;
}

.mgk-nav__link:hover,
.mgk-nav__link:focus-visible {
  color: var(--mgk-green-rule);
}

.mgk-nav__link.is-active {
  border-bottom-color: var(--mgk-green-rule);
  color: var(--mgk-green-rule);
}

.mgk-nav__count {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- section head --- */

.mgk-section {
  scroll-margin-top: 110px;
}

.mgk-section__head {
  align-items: center;
  display: flex;
  gap: 20px;
  margin: 40px 0 26px;
}

.mgk-section__title {
  color: var(--mgk-ink);
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.mgk-section__rule {
  background: var(--mgk-green-rule);
  flex: 1 1 auto;
  height: 2px;
  min-width: 40px;
}

.mgk-section__note {
  color: #3b3c44;
  flex: 0 0 auto;
  font-size: 14px;
  margin: 0;
}

/* -------------------------------------------------------- product grid --- */

.mgk-grid {
  display: grid;
  gap: 34px 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.mgk-grid__item {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 200px minmax(0, 1fr);
  min-width: 0;
}

.mgk-grid__media {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mgk-grid__media img {
  height: auto;
  max-height: 210px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.mgk-grid__body {
  min-width: 0;
}

.mgk-brand {
  color: var(--mgk-muted);
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.mgk-name {
  color: var(--mgk-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 0;
}

.mgk-name a {
  color: inherit;
  text-decoration: none;
}

.mgk-name a:hover {
  color: var(--mgk-green-rule);
}

.mgk-price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mgk-price__current {
  color: var(--mgk-ink);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mgk-price__current--sale {
  color: var(--mgk-red);
}

.mgk-price__old {
  color: #75797c;
  font-size: 15px;
  font-weight: 600;
  text-decoration: line-through;
}

.mgk-stock {
  align-items: center;
  color: var(--mgk-green-text);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  margin: 12px 0 0;
}

.mgk-stock__dot {
  background: var(--mgk-green);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.mgk-stock--hold {
  color: var(--mgk-muted);
  font-weight: 500;
}

.mgk-more {
  color: #23252a;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mgk-more:hover,
.mgk-more:focus-visible {
  color: var(--mgk-green-rule);
}

.mgk-more__arrow {
  margin-left: 6px;
  text-decoration: none;
}

/* ------------------------------------------------------------ preorders --- */

.mgk-preorder__head {
  align-items: center;
  background: var(--mgk-peach);
  border-radius: 5px 5px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
  padding: 15px 22px;
}

.mgk-preorder__title {
  color: var(--mgk-ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.mgk-preorder__divider {
  background: #d8c3a4;
  height: 30px;
  width: 1px;
}

.mgk-preorder__dispatch,
.mgk-preorder__offer {
  align-items: center;
  display: flex;
  font-size: 15px;
  gap: 10px;
  margin: 0;
}

.mgk-preorder__dispatch {
  color: #2f2415;
  font-weight: 600;
}

.mgk-preorder__offer {
  color: var(--mgk-ink);
  font-weight: 700;
  margin-left: auto;
}

.mgk-preorder__icon {
  color: var(--mgk-icon);
  font-size: 17px;
}

.mgk-preorder__note {
  border-bottom: 1px solid var(--mgk-line);
  color: var(--mgk-muted);
  font-size: 13.5px;
  margin: 0;
  padding: 12px 2px;
}

.mgk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mgk-rows__row {
  align-items: center;
  border-bottom: 1px solid #f1f1f1;
  display: grid;
  gap: 6px 20px;
  grid-template-areas: 'media brand name price badge link';
  grid-template-columns: 62px minmax(100px, 0.9fr) minmax(210px, 1.8fr) minmax(150px, 1fr) minmax(150px, 0.9fr) auto;
  padding: 10px 0;
}

.mgk-rows__media {
  align-items: center;
  display: flex;
  grid-area: media;
  justify-content: center;
}

.mgk-rows__media img {
  height: auto;
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.mgk-rows__row .mgk-brand { grid-area: brand; }
.mgk-rows__row .mgk-name { font-size: 16.5px; grid-area: name; margin: 0; }
.mgk-rows__row .mgk-price { grid-area: price; margin: 0; }
.mgk-rows__row .mgk-badge { grid-area: badge; justify-self: start; }
.mgk-rows__row .mgk-more { grid-area: link; justify-self: end; margin: 0; white-space: nowrap; }

.mgk-badge {
  align-items: center;
  background: var(--mgk-badge-bg);
  border-radius: 6px;
  color: var(--mgk-badge-ink);
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 700;
  gap: 9px;
  padding: 9px 15px;
  white-space: nowrap;
}

.mgk-badge .fa {
  font-size: 14px;
}

/* ----------------------------------------------------------- accordions --- */

.mgk-info {
  margin-top: 56px;
}

.mgk-acc {
  border-top: 1px solid var(--mgk-line);
}

.mgk-acc:last-child {
  border-bottom: 1px solid var(--mgk-line);
}

.mgk-acc__heading {
  margin: 0;
}

.mgk-acc__toggle {
  align-items: center;
  background: none;
  border: 0;
  color: #23252a;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  gap: 18px;
  justify-content: space-between;
  padding: 21px 2px;
  text-align: left;
  width: 100%;
}

.mgk-acc__toggle:hover {
  color: var(--mgk-green-rule);
}

.mgk-acc__toggle:focus-visible {
  outline: 2px solid var(--mgk-green-rule);
  outline-offset: 2px;
}

.mgk-acc__chevron {
  color: #8a8d92;
  font-size: 14px;
  transition: transform 180ms ease;
}

.mgk-acc__toggle[aria-expanded='true'] .mgk-acc__chevron {
  transform: rotate(180deg);
}

.mgk-acc__panel {
  padding: 2px 2px 28px;
}

.mgk-acc__content {
  color: #33363b;
  font-size: 15px;
  max-width: 1000px;
}

.mgk-acc__content > :last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mgk-acc__chevron {
    transition: none;
  }
}

/* --------------------------------------------------------- tablet (md) --- */

@media (max-width: 1199px) {
  .mgk-grid {
    gap: 30px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgk-grid__item {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .mgk-rows__row {
    grid-template-areas:
      'media brand name price'
      'media badge badge link';
    grid-template-columns: 64px minmax(110px, 1fr) minmax(140px, 1.3fr) auto;
  }

  .mgk-preorder__offer {
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .mgk-intro {
    flex-wrap: wrap;
    gap: 20px;
  }

  .mgk-intro__promo {
    width: 100%;
  }

  .mycotrop-growkit-promo {
    justify-content: space-between;
    width: 100%;
  }

  .mycotrop-growkit-promo__text {
    white-space: normal;
  }

  .mgk-section__head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .mgk-section__rule {
    order: 3;
    width: 100%;
  }
}

/* --------------------------------------------------------- mobile (sm) --- */

@media (max-width: 767px) {
  .mgk-intro .page-title,
  .mgk-intro .h1 {
    font-size: 30px;
  }

  .mgk-intro__subtitle {
    font-size: 15px;
  }

  .mgk-nav {
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .mgk-nav__link {
    font-size: 14px;
    white-space: nowrap;
  }

  .mgk-section__title {
    font-size: 23px;
  }

  .mgk-section__head {
    margin: 32px 0 20px;
  }

  .mgk-section__note {
    font-size: 13px;
  }

  .mgk-grid {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
  }

  .mgk-grid__item {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .mgk-grid__media img {
    max-height: 150px;
  }

  .mgk-name {
    font-size: 17px;
  }

  .mgk-preorder__head {
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .mgk-preorder__title {
    font-size: 21px;
  }

  .mgk-preorder__divider {
    display: none;
  }

  .mgk-preorder__dispatch,
  .mgk-preorder__offer {
    flex: 1 1 100%;
    font-size: 14px;
  }

  .mgk-rows__row {
    gap: 6px 14px;
    grid-template-areas:
      'media brand'
      'media name'
      'media price'
      'badge link';
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 14px 0;
  }

  .mgk-rows__media {
    align-self: start;
  }

  .mgk-rows__row .mgk-badge {
    margin-top: 10px;
  }

  .mgk-rows__row .mgk-more {
    margin-top: 10px;
  }

  .mgk-acc__toggle {
    font-size: 15px;
    padding: 18px 2px;
  }
}

@media (max-width: 420px) {
  .mgk-grid__item {
    gap: 14px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .mgk-price__current {
    font-size: 17px;
  }
}

/* =========================================================================
   Preorder surface (2026-09-19b) - module data on screen.
   Every rule below styles only the preorder panel of this one category.
   ========================================================================= */

.mycotrop-growkit-promo__value {
  color: #a4530c;
  font-weight: 800;
  margin-right: 4px;
  white-space: nowrap;
}

.mycotrop-growkit-promo__copy {
  color: #4a3a25;
}

/* The offer line grew a real value, so let the banner wrap instead of pushing
   "Voir les conditions" past the viewport on narrow screens. */
.mycotrop-growkit-promo__text {
  min-width: 0;
}

@media (max-width: 767px) {
  .mycotrop-growkit-promo {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .mycotrop-growkit-promo__text {
    flex: 1 1 55%;
  }

  .mycotrop-growkit-promo__link {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* --- preorder rows: thumbnail with the module badge overlay --- */

.mgk-rows__row {
  grid-template-columns: 104px minmax(96px, 0.8fr) minmax(220px, 1.7fr) minmax(140px, 0.95fr) minmax(140px, 0.85fr) auto;
}

.mgk-rows__media {
  align-items: center;
  display: flex;
  grid-area: media;
  justify-content: center;
}

.mgk-rows__thumb {
  display: block;
  position: relative;
  width: 100%;
}

/* Scoped to the media cell so the legacy `.mgk-rows__media img` rule cannot win
   on specificity over the overlay below. */
.mgk-rows__media .mgk-rows__photo {
  display: block;
  height: 62px;
  object-fit: contain;
  width: 100%;
}

/* Badge artwork served by the preorder rule, drawn over the packshot exactly
   like the module does on the standard listings. The rule supplies the corner
   and the width; the floor below keeps the stamp readable at 96 px. */
.mgk-rows__media .mgk-rows__overlay {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  height: auto;
  max-height: 84%;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  width: max(var(--mgk-overlay-width, 100%), 68%);
}

.mgk-rows__media .mgk-rows__overlay[data-corner='top-right'] {
  right: 0;
  top: 0;
}

.mgk-rows__media .mgk-rows__overlay[data-corner='top-left'] {
  left: 0;
  top: 0;
}

.mgk-rows__media .mgk-rows__overlay[data-corner='bottom-right'] {
  bottom: 0;
  right: 0;
}

.mgk-rows__media .mgk-rows__overlay[data-corner='bottom-left'] {
  bottom: 0;
  left: 0;
}

.mgk-rows__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-area: name;
  min-width: 0;
}

.mgk-deal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mgk-deal__chip {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  line-height: 1.35;
  padding: 4px 9px;
}

.mgk-deal__chip--discount {
  background: #fdebd0;
  color: #9a5a0f;
  font-weight: 800;
}

.mgk-deal__chip--discount .fa {
  font-size: 12px;
}

.mgk-deal__chip--gift {
  background: #eef8f1;
  color: #17603a;
  font-weight: 600;
}

.mgk-deal__chip--gift .fa {
  color: #d98a12;
  font-size: 13px;
}

.mgk-rows__actions {
  align-items: center;
  display: flex;
  gap: 16px;
  grid-area: link;
  justify-self: end;
}

.mgk-buy {
  margin: 0;
}

.mgk-buy__button {
  align-items: center;
  background: #17181c;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 700;
  gap: 8px;
  line-height: 1;
  padding: 11px 16px;
  white-space: nowrap;
}

.mgk-buy__button:hover,
.mgk-buy__button:focus-visible {
  background: #2f3036;
}

.mgk-buy__button:focus-visible {
  outline: 2px solid var(--mgk-green-rule);
  outline-offset: 2px;
}

.mgk-buy__button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.mgk-buy__spinner {
  display: none;
}

.mgk-buy__button.is-loading .mgk-buy__spinner {
  display: inline-block;
}

.mgk-buy__button.is-loading .mgk-buy__icon {
  display: none;
}

/* --- gift strip under the preorder header --- */

.mgk-gift {
  align-items: center;
  background: #f2f9f3;
  border: 1px solid #cfe6d6;
  border-radius: 5px;
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 16px;
}

.mgk-gift[hidden] {
  display: none !important;
}

.mgk-gift__image {
  border-radius: 5px;
  flex: none;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.mgk-gift__icon {
  align-items: center;
  background: var(--mgk-badge-bg);
  border-radius: 50%;
  color: #b1741a;
  display: flex;
  flex: none;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.mgk-gift__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mgk-gift__name {
  color: #14512f;
  font-size: 15px;
}

.mgk-gift__note {
  color: #4a6152;
  font-size: 12.5px;
}

/* --- countdown --- */

.mgk-preorder__note {
  align-items: center;
  border-bottom: 1px solid var(--mgk-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 12px 2px;
}

.mgk-preorder__note-text {
  color: var(--mgk-muted);
  font-size: 13.5px;
  margin: 0;
}

.mgk-preorder__closing {
  align-items: center;
  display: flex;
  gap: 12px;
}

.mgk-preorder__closing-label {
  align-items: center;
  color: #2f2415;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  white-space: nowrap;
}

.mgk-countdown {
  align-items: stretch;
  display: inline-flex;
  gap: 6px;
}

.mgk-countdown__unit {
  align-items: center;
  background: var(--mgk-peach);
  border-radius: 4px;
  display: inline-flex;
  flex-direction: column;
  min-width: 46px;
  padding: 5px 7px;
}

.mgk-countdown__value {
  color: #241a0c;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
}

.mgk-countdown__label {
  color: #7a5a2c;
  font-size: 10.5px;
  line-height: 1.3;
}

@media (max-width: 1199px) {
  .mgk-rows__row {
    grid-template-columns: 96px minmax(96px, 1fr) minmax(160px, 1.3fr) auto;
  }

  .mgk-rows__actions {
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .mgk-preorder__note {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mgk-preorder__closing {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .mgk-rows__row {
    grid-template-areas:
      'media brand'
      'media name'
      'media price'
      'badge badge'
      'link link';
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .mgk-rows__photo {
    max-height: 72px;
  }

  .mgk-rows__actions {
    flex-wrap: wrap;
    gap: 14px;
    justify-self: start;
  }

  .mgk-buy__button {
    padding: 11px 14px;
  }

  .mgk-countdown__unit {
    min-width: 42px;
  }
}

@media (max-width: 420px) {
  .mgk-rows__row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .mgk-rows__actions {
    gap: 12px;
  }
}
