/* Shop (redesign 2026-10-14): shop grid card (Loop Item "Shop grid card", m-shopgrid), the type filter (native Taxonomy
   Filter in m-shopfilter, styled like m-pills), and the single product template (m-product). Rules: design-system.md. */

/* ---------- grid card: the homepage shop card's look (2026-10-14): white card, 32px corners, the photo inside an 8px
   frame with 24px corners, Synthmesc name and price in orange. Hover: the second photo cross-fades in (shop.js). ---------- */
.m-shopgrid.e-con { --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0; padding: 8px 8px 24px !important;
  background: #fff; border-radius: 32px; height: 100%; }
.m-shopgrid .elementor-widget-image, .m-shopgrid .elementor-widget-image a { display: block; width: 100%; }
.m-shopgrid .elementor-widget-image a { position: relative; overflow: hidden; border-radius: 24px; }
.m-shopgrid img { display: block; width: 100% !important; aspect-ratio: 4 / 5; height: auto !important; max-width: none;
  object-fit: cover; border-radius: 24px; }
.m-shopgrid img.m-sg-second { position: absolute; inset: 0; height: 100% !important; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
/* m-sg-ready once it has loaded, so a first hover fades it in instead of popping */
@media (hover: hover) { .m-shopgrid:hover img.m-sg-second.m-sg-ready { opacity: 1; } }
.m-shopgrid .m-sg-name .elementor-heading-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: .02em; }
.m-shopgrid :is(.m-sg-name, .m-sg-price) .elementor-heading-title * { text-transform: uppercase; }   /* Synthmesc's lowercase o is a ring */
.m-shopgrid .m-sg-name a { color: inherit; }
.m-shopgrid .m-sg-price del { color: #6B6560; font-size: .7em; margin-right: 6px; }
.m-shopgrid .m-sg-price ins { text-decoration: none; }
/* "inc. VAT" on its own line under the price, like the homepage card */
.m-shopgrid .m-sg-price .elementor-heading-title .woocommerce-price-suffix { display: block; margin-top: 6px;
  font: 500 13px/1 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; color: #6B6560; }
/* the description: the first paragraph, 2 lines; the price sits at the bottom so prices line up across a row */
.m-shopgrid .e-con.m-sg-info { flex-grow: 1; }
.m-shopgrid .m-sg-desc .elementor-widget-container { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-shopgrid .m-sg-desc .elementor-widget-container > * { margin: 0; }
.m-shopgrid .m-sg-desc .elementor-widget-container > :not(:first-child) { display: none; }
.m-shopgrid .m-sg-info > .m-sg-price { margin-top: auto !important; padding-top: 4px; }
/* Add to cart (2026-10-18): WooCommerce's loop button under the price, full width, the gooey button (m-goo on the
   widget). It adds without leaving the page and the header cart opens (shop-query.php, header 6669), so WooCommerce's
   "View cart" link after it is hidden. Sold-out cards have none. */
.m-shopgrid .m-sg-cart { margin-top: 6px !important; }
.m-shopgrid .m-sg-cart :is(.e-loop-add-to-cart-form-container, form) { margin: 0; width: 100%; flex: 1 1 auto; }   /* Elementor's wrapper is a flex row that shrinks the form */
.m-shopgrid .m-sg-cart .add_to_cart_button { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%;
  min-height: 47px; padding: 15px 16px; font-family: 'Synthmesc', sans-serif !important; font-weight: 400; font-size: 16px; line-height: 1;
  letter-spacing: .5px; text-transform: uppercase; }
.m-shopgrid .m-sg-cart .add_to_cart_button.loading { opacity: .6; pointer-events: none; }
.m-shopgrid .m-sg-cart .added_to_cart { display: none !important; }   /* Elementor shows it as a flex item */
.e-loop-item.outofstock .m-shopgrid .m-sg-cart { display: none; }
@media (max-width: 767px) { .m-shopgrid .m-sg-cart .add_to_cart_button { font-size: 14px; padding: 14px 8px; } }
/* phones: two narrow columns, so a slimmer frame and corners in proportion */
@media (max-width: 767px) { .m-shopgrid.e-con { padding: 6px 6px 16px !important; border-radius: 24px; }
  .m-shopgrid img, .m-shopgrid .elementor-widget-image a { border-radius: 18px; } }

/* sold out: after everything you can buy (shop-query.php), faded, labelled on the photo */
.e-loop-item.outofstock .m-shopgrid img { opacity: .45; filter: grayscale(.4); }
/* label on the photo's widget: the card container's ::before is Elementor's background overlay (2026-10-14: a white
   blob covered the card when the label lived there) */
.e-loop-item.outofstock .m-shopgrid .elementor-widget-image { position: relative; }
.e-loop-item.outofstock .m-shopgrid .elementor-widget-image::after {
  content: "Sold out"; position: absolute; z-index: 2; top: 12px; left: 12px; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: #2A2F33; font: 700 13px/1 Montserrat, sans-serif; letter-spacing: .02em; pointer-events: none;
}
@media (max-width: 767px) { .e-loop-item.outofstock .m-shopgrid .elementor-widget-image::after { top: 8px; left: 8px; padding: 7px 11px; font-size: 12px; } }

/* ---------- type filter: Elementor's Taxonomy Filter, identical to the Events pills (pills.css) ----------
   Elementor's own rules are heavier (".elementor-widget-taxonomy-filter .e-filter-item:hover:not([aria-pressed])" set
   a near-black text and ring on hover, 2026-10-14), so every rule here names the widget class too, and the states that
   Elementor also sets carry !important. */
.m-shopfilter.elementor-widget-taxonomy-filter .e-filter { display: flex; flex-wrap: nowrap; justify-content: flex-start !important; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-shopfilter.elementor-widget-taxonomy-filter .e-filter::-webkit-scrollbar { display: none; }
.m-shopfilter.elementor-widget-taxonomy-filter .e-filter-item {
  flex: 0 0 auto; display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 12px 22px; margin: 0; white-space: nowrap;
  background: transparent; color: #F3763A; border: 2px solid #F3763A; border-radius: 999px; cursor: pointer;
  font-family: 'Synthmesc', sans-serif; font-weight: 400; font-size: 17px; line-height: 1; letter-spacing: 0; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.m-shopfilter.elementor-widget-taxonomy-filter .e-filter-item[aria-pressed="true"] { background: #F3763A !important; color: #fff !important; border-color: #F3763A !important; }
@media (hover: hover) {
  .m-shopfilter.elementor-widget-taxonomy-filter .e-filter-item:hover { background: #F3763A !important; color: #fff !important; border-color: #F3763A !important; }
}
.m-shopfilter.elementor-widget-taxonomy-filter .e-filter-item:focus-visible { outline: 2px solid #F3763A; outline-offset: 3px; }
@media (max-width: 767px) { .m-shopfilter.elementor-widget-taxonomy-filter .e-filter { margin-right: -20px; padding-right: 20px; } }
/* "Show more" under the grid: the gooey button (m-goo on the Loop Grid widget, gooey.css draws it), on the
   section's left edge. Only its size lives here, like a Button widget's settings. */
.m-shopgrid-wrap .e-load-more-anchor + .elementor-button-wrapper, .m-shopgrid-wrap .elementor-button-wrapper { text-align: left; margin-top: 48px; }
.m-shopgrid-wrap .elementor-button-wrapper .elementor-button {
  display: inline-flex; align-items: center; box-sizing: border-box; min-height: 56px; padding: 20px 40px;
  font-family: 'Synthmesc', sans-serif; font-weight: 400; font-size: 19px; line-height: 1; letter-spacing: .6px; text-transform: uppercase;
}
.m-shopgrid-wrap .elementor-button-wrapper .elementor-button * { text-transform: uppercase; }
@media (max-width: 767px) { .m-shopgrid-wrap .elementor-button-wrapper { margin-top: 32px; } .m-shopgrid-wrap .elementor-button-wrapper .elementor-button { width: 100%; justify-content: center; font-size: 17px; padding: 18px 32px; } }
/* the grid dims while a filter loads */
.m-shopgrid-wrap .e-load-more-spinner, .m-shopgrid-wrap .e-loop-nothing-found-message { color: #6B6560; }

/* ---------- product page ---------- */
/* no photo hero here, so the header is solid cream from the start (motion.js only adds m-scrolled after 40px) */
body.single-product .m-header { background-color: var(--m-header-bg); box-shadow: 0 1px 0 rgba(26, 44, 55, .08); }
body.single-product .m-header .elementor-nav-menu--main .elementor-item,
body.single-product .m-header .m-header-link .elementor-button,
body.single-product .m-header .m-header-link .elementor-heading-title a { color: var(--m-header-ink) !important; }
body.single-product .m-header .elementor-menu-toggle { color: var(--m-header-ink) !important; }
body.single-product .m-header .elementor-menu-toggle svg { fill: var(--m-header-ink) !important; }

/* photos (rev b, 2026-10-18, Majd: the stacked photos made the page ~12,000px tall): product.js moves every photo
   into .m-pg-track, one main photo that snaps sideways (swipe, trackpad), and adds a row of thumbnails under it. Until
   it runs only the featured photo shows, at the same size, so nothing jumps. */
.m-pgallery .elementor-widget-image-gallery, .m-pgallery.m-pg-ready > .elementor-widget-image { display: none; }
.m-pgallery .elementor-widget-image a, .m-pg-slide a { display: block; }
.m-pgallery .elementor-widget-image img, .m-pg-slide img { display: block; width: 100% !important; height: auto !important; max-width: none;
  aspect-ratio: 4 / 5; object-fit: cover; }
.m-pgallery .elementor-widget-image img, .m-pg-track { border-radius: 32px; }
.m-pg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-pg-track::-webkit-scrollbar { display: none; }
.m-pg-slide { flex: 0 0 100%; scroll-snap-align: start; }
.m-pg-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.m-pg-thumbs::-webkit-scrollbar { display: none; }
/* hello-elementor's reset paints buttons pink on hover and focus: every state is set here */
.m-pg-thumb, .m-pg-thumb:hover, .m-pg-thumb:focus { flex: 0 0 64px; width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 14px;
  overflow: hidden; background: #fff; cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .2s ease, outline-color .2s ease; }
.m-pg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-pg-thumb.m-on { opacity: 1; outline-color: #F3763A; }
@media (hover: hover) { .m-pg-thumb:hover { opacity: 1; } }
.m-pg-thumb:focus-visible { opacity: 1; outline-color: #2A2F33; }
/* desktop: the photo column is as wide as the photo, and the photo plus thumbnails fit the screen under the header */
@media (min-width: 1025px) {
  .m-pgallery.e-con { flex: 0 0 auto !important; width: min(50%, calc((100vh - 260px) * .8)) !important; }
  .m-pinfo.e-con { flex: 1 1 0 !important; width: auto !important; }
}
@media (max-width: 767px) { .m-pgallery .elementor-widget-image img, .m-pg-track { border-radius: 24px; }
  .m-pg-thumb, .m-pg-thumb:hover, .m-pg-thumb:focus { flex-basis: 56px; width: 56px; border-radius: 12px; } }

/* the photos stay in view while the description scrolls past (desktop only; CSS, no scroll listener) */
@media (min-width: 1025px) { .m-sticky.e-con { position: sticky; top: 112px; align-self: flex-start; } }

/* trust row under Add to cart */
.m-product .m-p-trust .elementor-icon-list-icon i { width: 18px; text-align: center; }

/* phone cart bar (product.js): price + Add to cart, once the real button has scrolled away above */
.m-pbar { display: none; }
@media (max-width: 767px) {
  .m-pbar { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
    padding: 8px 8px 8px 20px; background: #fff; border-radius: 999px; box-shadow: 0 8px 28px rgba(43, 26, 18, .18);
    transform: translateY(calc(100% + 24px)); transition: transform .35s ease; }
  .m-pbar.m-on { transform: none; }
  .m-pbar-price { flex: 1 1 auto; min-width: 0; font: 400 20px/1 'Synthmesc', sans-serif; color: #F3763A; text-transform: uppercase; }
  .m-pbar-price * { text-transform: uppercase; }
  .m-pbar-price del { color: #6B6560; font-size: .7em; margin-right: 6px; }
  .m-pbar-price ins { text-decoration: none; }
  .m-pbar-price .woocommerce-price-suffix { display: block; margin-top: 4px; font: 500 12px/1 Montserrat, sans-serif; text-transform: none; color: #6B6560; }
  .m-pbar .m-goo { flex: 0 0 auto; }
  .m-pbar .elementor-button { display: inline-flex; align-items: center; min-height: 47px; padding: 15px 24px;
    font: 400 16px/1 'Synthmesc', sans-serif !important; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
}

.m-product .m-p-price .price, .m-product .m-p-price .amount { color: #F3763A; }
.m-product .m-p-price .price * { text-transform: uppercase; }
.m-product .m-p-price del { color: #6B6560; font-size: .7em; margin-right: 8px; }
.m-product .m-p-price ins { text-decoration: none; }
.m-product .m-p-price .woocommerce-price-suffix { font: 500 15px/1 Montserrat, sans-serif; text-transform: none; color: #6B6560; margin-left: 6px; }
.m-product .m-p-desc ul { padding-left: 1.2em; margin: 0; }
.m-product .m-p-desc p:last-child { margin-bottom: 0; }

/* Add to cart: quantity stepper and the gooey button (m-goo on the widget, gooey.css draws it) on one line */
.m-product .m-p-cart form.cart { display: flex; align-items: stretch; gap: 12px; margin: 0; }
.m-product .m-p-cart .quantity .qty { height: 100%; min-height: 56px; width: 76px; border: 2px solid #E6DCD2; border-radius: 999px;
  background: #fff; color: #2A2F33; font: 600 17px Montserrat, sans-serif; text-align: center; }
.m-product .m-p-cart .single_add_to_cart_button {
  flex: 1 1 auto; min-height: 56px; padding: 18px 40px;
  font-family: 'Synthmesc', sans-serif !important; font-weight: 400; font-size: 19px; line-height: 1; text-transform: uppercase; letter-spacing: .6px;
}
.m-product .m-p-cart .single_add_to_cart_button * { text-transform: uppercase; }
.m-product .m-p-cart .stock.out-of-stock { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #fff; color: #2A2F33;
  font: 700 15px/1 Montserrat, sans-serif; margin: 0; }
.m-product .m-p-cart .stock.in-stock { display: none; }
@media (max-width: 767px) { .m-product .m-p-cart .single_add_to_cart_button { font-size: 17px; padding: 18px 24px; } }
/* one left in stock: WooCommerce prints the quantity box with only a hidden input, which still takes a slot in the row */
.m-product .m-p-cart .quantity:has(input[type="hidden"]) { display: none; }
