/* mm-v9-shop: second overlay for Warehouse 4.8.2 (after mm-v9-brand.css). Marker: mm-v9-shop-20260915.
   Owner request (15 Sept 2026, evening): the shop must look like the main site — same brand mark in the header,
   coherent buttons and cards, brief and restrained motion. CSS only: no JavaScript, no template beyond one link,
   no data, price, stock, module or checkout change. Motion is scroll-driven CSS (Chrome/Edge); other browsers
   and reduced-motion users simply see the static design. Tokens come from mm-v9-brand.css (--mm-*). */

/* 1. Header brand: the v9 symbol + stacked "Masseria / Monte" wordmark next to it. The original <img> stays in the
      DOM (accessible name of the link) but is visually hidden; the two marks are drawn on the link itself. */
#desktop_logo { display: flex; align-items: center; }
#desktop_logo a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
#desktop_logo img.logo { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#desktop_logo a::before { content: ""; display: block; width: 62px; height: 62px; flex: none;
  background: url("/shop/themes/warehouse/assets/css/mm-v9-logo/simbolo-320.png") center / contain no-repeat; }
#desktop_logo a::after { content: ""; display: block; height: 52px; width: 101px; flex: none;
  background: url("/shop/themes/warehouse/assets/css/mm-v9-logo/masseria-monte-stacked.svg") left center / contain no-repeat;
  transition: height .25s ease, width .25s ease; }
.sticky-desktop-wrapper #desktop-header.stuck-header #desktop_logo a::before { width: 48px; height: 48px; }
.sticky-desktop-wrapper #desktop-header.stuck-header #desktop_logo a::after { height: 42px; width: 82px; }
#desktop_logo a:hover::after { opacity: .85; }
@media (max-width: 1199px) { #desktop_logo a::after { display: none; } }
/* Mobile header: same marks, smaller (symbol 52px, wordmark 40px). */
#mobile-header .col-mobile-logo a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; text-decoration: none; }
#mobile-header .col-mobile-logo img.logo { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#mobile-header .col-mobile-logo a::before { content: ""; display: block; width: 52px; height: 52px; flex: none;
  background: url("/shop/themes/warehouse/assets/css/mm-v9-logo/simbolo-320.png") center / contain no-repeat; }
#mobile-header .col-mobile-logo a::after { content: ""; display: block; height: 40px; width: 78px; flex: none;
  background: url("/shop/themes/warehouse/assets/css/mm-v9-logo/masseria-monte-stacked.svg") left center / contain no-repeat; }

/* 2. Menu: v9 rhythm (uppercase, tracked, quiet underline on hover/current). */
#iqitmegamenu-horizontal .cbp-hrmenu > ul > li > a, #iqitmegamenu-horizontal .cbp-hrmenu > ul > li > .cbp-empty-mlink {
  font-family: var(--mm-sans); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--mm-ink); }
#iqitmegamenu-horizontal .cbp-tab-title { position: relative; padding-bottom: 4px; }
#iqitmegamenu-horizontal .cbp-tab-title::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--mm-accent); transition: right .3s ease; }
#iqitmegamenu-horizontal li:hover > a .cbp-tab-title::after, #iqitmegamenu-horizontal li.cbp-hropen > a .cbp-tab-title::after,
#iqitmegamenu-horizontal li.active > a .cbp-tab-title::after { right: 0; }

/* 3. Buttons: filled olive, gentle lift; secondary as quiet outline. */
.btn-primary, .btn-primary.disabled, .btn-primary:disabled { background: var(--mm-olive); border-color: var(--mm-olive); color: #fff; border-radius: var(--mm-radius); letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem; font-weight: 600; padding: .7rem 1.35rem; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active { background: var(--mm-accent); border-color: var(--mm-accent); color: #fff; transform: translateY(-1px); box-shadow: var(--mm-shadow); }
.btn-secondary, .btn-outline-secondary { background: transparent; border: 1px solid var(--mm-line-soft); color: var(--mm-ink); border-radius: var(--mm-radius); transition: border-color .25s ease, color .25s ease, transform .25s ease; }
.btn-secondary:hover, .btn-outline-secondary:hover { background: transparent; border-color: var(--mm-accent); color: var(--mm-accent); transform: translateY(-1px); }
.elementor-widget-button .elementor-button { border-radius: var(--mm-radius); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.elementor-widget-button .elementor-button:hover { transform: translateY(-1px); box-shadow: var(--mm-shadow); }

/* 4. Product cards: white photo field, slow zoom on hover, title turns to the accent, price in olive. */
.product-miniature .thumbnail-container { overflow: hidden; border-radius: var(--mm-radius); background: #fff; }
.product-miniature .thumbnail-container img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.product-miniature:hover .thumbnail-container img, .product-miniature:focus-within .thumbnail-container img { transform: scale(1.035); }
.product-miniature .product-title a { transition: color .25s ease; }
.product-miniature:hover .product-title a { color: var(--mm-accent); }
.product-miniature .product-price { color: var(--mm-olive); font-family: var(--mm-serif); font-size: 1.05rem; }
.product-miniature .product-functional-buttons { transition: opacity .3s ease; }

/* 5. Section titles and editorial blocks: v9 serif rhythm, olive eyebrow. */
.elementor-widget-heading .elementor-heading-title, .section-title, .block-title { font-family: var(--mm-serif); font-weight: 400; letter-spacing: -.02em; color: var(--mm-ink); }
.elementor-widget-text-editor, .elementor-widget-text-editor p { color: var(--mm-muted); line-height: 1.65; }
.elementor-widget-iqit-heading .elementor-heading-subtitle, .elementor-heading-subtitle { font-family: var(--mm-sans); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; color: var(--mm-accent); }

/* 6. Footer: cream field, quiet links, brand rule. */
#footer { background: var(--mm-cream); color: var(--mm-ink); border-top: 1px solid var(--mm-line); }
#footer a { color: var(--mm-ink); text-underline-offset: 3px; transition: color .25s ease; }
#footer a:hover { color: var(--mm-accent); }
#footer .block-title { font-family: var(--mm-sans); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--mm-accent); }

/* 7. Brief scroll reveals (CSS scroll-driven animations, no JS). Only where supported; never with reduced motion.
      Sections already in view at load have their range behind them, so nothing is hidden on arrival. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes mm-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    #content-wrapper .elementor-top-section:not(:first-child), .js-product-miniature-wrapper, #footer .block, .featured-products, .block-category .category-description {
      animation: mm-reveal .6s ease both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
