/* ==========================================================================
   Mycotrop new look (2026-11-16) – one layer over the Warehouse theme.
   Everything is scoped to html.mt-look: without that class nothing changes.
   Rollback = remove this file (or stop adding the class).
   Same values as the Iberian Mycology pages (im-styles.css).
   ========================================================================== */

/* ---- Fonts (self-hosted, same folder pattern as Karla) ---- */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("../fonts/fraunces/fraunces-latin-var.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;
  src:url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-500.woff2") format("woff2")}

/* ---- Tokens ---- */
html.mt-look{
  --mt-paper:#f4f0e6; --mt-card:#fbf9f3; --mt-ink:#17201b; --mt-text:#2a352f; --mt-muted:#5b665f;
  --mt-spruce:#1e3a2f; --mt-signal:#c4532b; --mt-gold:#e3bd62; --mt-rule:rgba(23,32,27,.16);
  --mt-serif:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --mt-mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --mt-sans:"Karla",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ---- Base: paper background, 16 px body, ink headings ---- */
html.mt-look body{background:var(--mt-paper)!important;color:var(--mt-ink);font-family:var(--mt-sans);font-size:16px;line-height:1.6}
html.mt-look #wrapper,html.mt-look #main,html.mt-look #content-wrapper,html.mt-look .page-content,html.mt-look #footer{background-color:transparent}
html.mt-look #header,html.mt-look #header .header-top,html.mt-look .header-sticky,html.mt-look #header-sticky{background-color:var(--mt-paper)!important}
html.mt-look p,html.mt-look .rte p,html.mt-look .product-description p,html.mt-look #category-description p{color:var(--mt-text);font-size:16px;line-height:1.65}
html.mt-look h1,html.mt-look h2,html.mt-look h3,html.mt-look .h1,html.mt-look .h2,html.mt-look .h3,
html.mt-look .page-title,html.mt-look .section-title,html.mt-look .block-title,html.mt-look .elementor-heading-title{
  font-family:var(--mt-serif)!important;font-weight:500!important;color:var(--mt-ink)!important;letter-spacing:-.012em;line-height:1.12;text-transform:none!important}
html.mt-look h1,html.mt-look .h1,html.mt-look .page-title{font-size:clamp(2rem,4vw,3rem)!important}
html.mt-look h2,html.mt-look .h2,html.mt-look .section-title{font-size:clamp(1.5rem,2.6vw,2rem)!important}
html.mt-look h3,html.mt-look .h3,html.mt-look .block-title{font-size:1.25rem!important}

/* Product page: product name is the largest title, description titles smaller */
html.mt-look #product h1,html.mt-look .page-product h1,html.mt-look #product .page-title{font-size:clamp(1.9rem,3.4vw,2.9rem)!important}
html.mt-look #product .product-description h2,html.mt-look #product .rte h2,html.mt-look #product-description-short h2{font-size:clamp(1.4rem,2.2vw,1.8rem)!important}

/* ---- Links: underlined inside text, plain in navigation ---- */
html.mt-look a{color:var(--mt-ink)}
html.mt-look a:hover{color:var(--mt-signal)}
html.mt-look .rte a,html.mt-look .product-description a,html.mt-look #category-description a,html.mt-look .cms-content a,html.mt-look .page-cms a{
  color:var(--mt-ink)!important;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:.2em}
html.mt-look a:focus-visible,html.mt-look button:focus-visible,html.mt-look .btn:focus-visible{outline:2px solid var(--mt-signal);outline-offset:3px}

/* ---- Small labels: Plex Mono ---- */
html.mt-look .breadcrumb,html.mt-look .product-flags .product-flag,html.mt-look .product-category-name,
html.mt-look .product-reference,html.mt-look .product-availability,html.mt-look .tax-shipping-delivery-label{
  font-family:var(--mt-mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--mt-muted)}
html.mt-look .breadcrumb{background:transparent}
/* v2 2026-11-16: breadcrumb back to Karla (Plex Mono looked too "technical" on mobile) */
html.mt-look .breadcrumb,html.mt-look .breadcrumb *{font-family:var(--mt-sans)!important;font-size:13px!important;letter-spacing:0!important;text-transform:none!important;color:var(--mt-muted)!important}
/* v2: mobile icon bar (menu / search / account / cart) was theme grey; RC thread to confirm the selector */
html.mt-look #mobile-header .mobile-main-bar,html.mt-look #mobile-header .mobile-buttons-bar,html.mt-look #mobile-header .row.mobile-buttons-bar{background:var(--mt-card)!important;border-top:1px solid var(--mt-rule);border-bottom:1.5px solid var(--mt-ink)}
html.mt-look .product-flags .product-flag{background:var(--mt-spruce);color:var(--mt-paper);border-radius:0}

/* ---- Buttons: one style everywhere, 48 px, 16 px text ---- */
html.mt-look .btn,html.mt-look button.btn{border-radius:3px;font-family:var(--mt-sans);font-size:16px;font-weight:700;text-transform:none;min-height:48px;padding:.75em 1.4em;transition:background .15s,color .15s}
html.mt-look .btn-primary,html.mt-look .add-to-cart,html.mt-look .mt-btn,html.mt-look .elementor-button{
  background:var(--mt-ink)!important;border-color:var(--mt-ink)!important;color:var(--mt-paper)!important;border-radius:3px!important;font-weight:700!important;font-size:16px!important}
html.mt-look .btn-primary:hover,html.mt-look .add-to-cart:hover,html.mt-look .mt-btn:hover,html.mt-look .elementor-button:hover{
  background:var(--mt-signal)!important;border-color:var(--mt-signal)!important;color:#fff!important}
html.mt-look .btn-secondary,html.mt-look .btn-default,html.mt-look .btn-outline-primary{
  background:transparent!important;color:var(--mt-ink)!important;border:1.5px solid var(--mt-ink)!important}
html.mt-look .btn-secondary:hover,html.mt-look .btn-default:hover{background:var(--mt-ink)!important;color:var(--mt-paper)!important}
html.mt-look .product-add-to-cart .add-to-cart{min-height:52px;font-size:17px!important}

/* ---- Form fields ---- */
html.mt-look .form-control,html.mt-look input[type=text],html.mt-look input[type=email],html.mt-look input[type=search],
html.mt-look input[type=number],html.mt-look input[type=password],html.mt-look select,html.mt-look textarea{
  background:var(--mt-card);border:1px solid rgba(23,32,27,.35);border-radius:3px;color:var(--mt-ink);font-size:16px;min-height:44px}

/* ---- Prices: sapin, Fraunces on the product page ---- */
html.mt-look .price,html.mt-look .product-price,html.mt-look .current-price .price,html.mt-look .product-price-and-shipping .price{color:var(--mt-spruce)!important;font-weight:700}
html.mt-look #product .current-price .price,html.mt-look .page-product .current-price-value{font-family:var(--mt-serif);font-weight:500!important;font-size:2.2rem!important}
html.mt-look .regular-price{color:var(--mt-muted)!important}
html.mt-look .discount,html.mt-look .discount-percentage,html.mt-look .discount-amount{background:var(--mt-signal)!important;color:#fff!important;border-radius:0}

/* ---- Product cards ---- */
html.mt-look .product-miniature .thumbnail-container,html.mt-look .product-miniature .product-miniature-container{
  background:var(--mt-card);border:1px solid rgba(23,32,27,.2);border-radius:0;box-shadow:none}
html.mt-look .product-miniature .product-title,html.mt-look .product-miniature .product-title a{
  font-family:var(--mt-serif);font-weight:500;font-size:1.12rem;line-height:1.25;color:var(--mt-ink);text-transform:none}
html.mt-look .product-miniature:hover .product-title a{color:var(--mt-signal)}

/* ---- Header and menu ---- */
html.mt-look #header{border-bottom:1.5px solid var(--mt-ink)}
html.mt-look #header .header-nav,html.mt-look #header .header-banner{background:var(--mt-spruce)!important;color:var(--mt-paper)}
html.mt-look #header .header-nav a,html.mt-look #header .header-nav span{color:var(--mt-paper)!important}
html.mt-look .cbp-hrmenu .cbp-hrmenu-tab>a,html.mt-look #iqitmegamenu-horizontal a,html.mt-look .top-menu a{
  font-family:var(--mt-sans);font-weight:700;font-size:15px;text-transform:none;color:var(--mt-ink)}
html.mt-look .cbp-hrmenu .cbp-hrsub-inner,html.mt-look .cbp-hrmenu .cbp-hrsub{background:var(--mt-card)}

/* ---- Footer ---- */
html.mt-look #footer{border-top:1.5px solid var(--mt-ink);color:var(--mt-text)}
html.mt-look #footer .block-title,html.mt-look #footer h4,html.mt-look #footer h5{font-family:var(--mt-mono)!important;font-size:.78rem!important;letter-spacing:.08em;text-transform:uppercase!important}
html.mt-look #footer a{color:var(--mt-ink)}

/* ---- Tables, FAQ, rules ---- */
html.mt-look .rte table,html.mt-look .product-description table{border-collapse:collapse;border-top:1.5px solid var(--mt-ink)}
html.mt-look .rte th,html.mt-look .rte td,html.mt-look .product-description th,html.mt-look .product-description td{border:0;border-bottom:1px solid var(--mt-rule);padding:10px 14px 10px 0;background:transparent}
html.mt-look .rte thead th,html.mt-look .product-description thead th{font-family:var(--mt-mono);font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;color:var(--mt-muted);font-weight:500}
html.mt-look hr{border-color:var(--mt-rule)}

/* ---- Growkit landing (mgk-): drop the yellow pill style ---- */
html.mt-look [class^="mgk-"] h1,html.mt-look [class*=" mgk-"] h1,html.mt-look [class^="mgk-"] h2,html.mt-look [class*=" mgk-"] h2{font-family:var(--mt-serif)!important;font-weight:500!important}
html.mt-look [class^="mgk-"],html.mt-look [class*=" mgk-"]{font-family:var(--mt-sans)}

/* ---- Mobile ---- */
@media (max-width:767px){
  html.mt-look p,html.mt-look .rte p,html.mt-look .product-description p{font-size:17px}
  html.mt-look h1,html.mt-look .h1,html.mt-look .page-title{font-size:2rem!important}
}
@media (prefers-reduced-motion:reduce){html.mt-look *{transition:none!important}}

/* ---- v3 2026-11-16 (owner's choice: blend, not white tiles): product photos have white backgrounds ->
   multiply them onto the paper so the white disappears; containers transparent, swiper slides painted paper. ---- */
html.mt-look .product-miniature .thumbnail-container,html.mt-look .product-miniature .thumbnail-top,
html.mt-look .product-miniature .product-thumbnail,html.mt-look #product .product-cover,html.mt-look #product-images-large,
html.mt-look #product .product-lmage-large,html.mt-look #product-images-thumbs .thumb-container,
html.mt-look [class*="mgk"] picture,html.mt-look .cart-grid .product-line-grid-left{background:transparent!important}
/* swiper slides are their own stacking context: give them the paper colour so multiply blends onto paper, not onto nothing */
html.mt-look #product-images-large .swiper-slide,html.mt-look #product-images-thumbs .swiper-slide,html.mt-look .product-miniature .swiper-slide{background:var(--mt-paper)!important}
html.mt-look .product-miniature img,html.mt-look #product-images-large img,html.mt-look #product-images-thumbs img,
html.mt-look #product .product-cover img,html.mt-look [class*="mgk"] img,
html.mt-look .cart-grid .product-line-grid-left img,html.mt-look .cart-summary-products img{mix-blend-mode:multiply}
/* v3b: home/product carousels (Creative Elements products carousel): the slide holding each card is also a swiper stacking context */
html.mt-look .swiper-products-carousel .swiper-slide,html.mt-look .elementor-products-carousel .swiper-slide,
html.mt-look .swiper-slide:has(.product-miniature){background:var(--mt-paper)!important}
/* v3c: inside swiper carousels Chrome only blends when the card's image box is its own isolated group with the paper colour */
html.mt-look .product-miniature .thumbnail-container{background:var(--mt-paper)!important;isolation:isolate}

/* ---- v4 2026-11-16: readability audit (contrast checked page by page, WCAG AA 4.5:1) ----
   The theme's default grey #777 is 3.9:1 on the paper background (it was 4.5:1 on white): darken it to --mt-muted (5.6:1).
   Dark components keep light text. */
html.mt-look #wrapper{color:var(--mt-text)}
html.mt-look a:link:not(.nav-link):not(.btn),html.mt-look a:visited:not(.nav-link):not(.btn){color:var(--mt-muted)}
html.mt-look .form-control,html.mt-look .form-control:focus{color:var(--mt-ink)}
html.mt-look .form-control-label,html.mt-look .col-form-label,html.mt-look .form-control-comment,html.mt-look .radio-label,
html.mt-look .forgot-password a,html.mt-look .no-account a{color:var(--mt-text)!important}
html.mt-look #footer-container-main,html.mt-look #footer-container-main a,html.mt-look #checkout-footer,html.mt-look #checkout-footer a{color:var(--mt-text)}
html.mt-look .mgk-nav__link,html.mt-look .mgk-nav__count,html.mt-look .mgk-name a,html.mt-look .mgk-more,
html.mt-look .mgk-price__old,html.mt-look .mycotrop-growkit-promo__link,html.mt-look .mycotrop-product-proof__links a{color:var(--mt-muted)!important}
html.mt-look .mgk-nav__link.is-active,html.mt-look .mgk-name a{color:var(--mt-ink)!important}
/* dark CTA on product pages: text was the same colour as its background */
html.mt-look .mt-cta a.mt-btn,html.mt-look a.mt-btn,html.mt-look .mt-btn{color:var(--mt-paper)!important}
html.mt-look .mt-cta a.mt-btn:hover,html.mt-look a.mt-btn:hover{color:#fff!important}
/* cookie banner (dark grey): white text again, button stays dark with white text */
html.mt-look #iqitcookielaw,html.mt-look #iqitcookielaw p,html.mt-look #iqitcookielaw span,html.mt-look #iqitcookielaw a:not(.btn){color:#fff!important}
html.mt-look #iqitcookielaw a:not(.btn){text-decoration:underline}
/* dark green call-to-action box on CMS pages: light text */
html.mt-look .mycotrop-cms__cta,html.mt-look .mycotrop-cms__cta h2,html.mt-look .mycotrop-cms__cta h3,html.mt-look .mycotrop-cms__cta p,
html.mt-look .mycotrop-cms__cta li,html.mt-look .mycotrop-cms__cta a:not(.btn){color:var(--mt-paper)!important}
html.mt-look .mycotrop-growkit-manual__support,html.mt-look .mycotrop-growkit-manual__support h2,html.mt-look .mycotrop-growkit-manual__support h3,
html.mt-look .mycotrop-growkit-manual__support p,html.mt-look .mycotrop-growkit-manual__support li,
html.mt-look .mycotrop-growkit-manual__support a:not(.btn):not(.mt-btn):not(.mycotrop-growkit-manual__button){color:var(--mt-paper)!important}
html.mt-look .mycotrop-growkit-manual__eyebrow{color:#7a5a10!important}
html.mt-look .mycotrop-growkit-manual__support a.mycotrop-growkit-manual__button{color:var(--mt-ink)!important}
