
/* Dominika 39 | responsive revision R5.1 | 08 Nov 2026
   Additive override to R4. No WordPress, WooCommerce or Bono core files modified. */

:root {
  --dominika-type: "DominikaManrope", "Segoe UI", Arial, sans-serif;
  --dominika-brown: #3b241b;
}

/* Keep the store's visual hierarchy without touching icon fonts or SVG icons. */
body,
body button:not([class*="wci-"]),
body input,
body textarea,
body select,
body h1, body h2, body h3, body h4, body h5, body h6,
body .shop-item__title,
body .shop-item__price,
body .header-phone__item a {
  font-family: var(--dominika-type) !important;
}
body { font-weight: 400; line-height: 1.52; }
body h1, body h2, body h3, body h4 { line-height: 1.2; overflow-wrap: break-word; }
body .shop-item__title { line-height: 1.35; }
body .header-phone__item a { font-weight: 600; letter-spacing: .005em; white-space: nowrap; }

/* Do not hide failures: keep visible WooCommerce error notices and valid links.
   Success message is shortened on the server, not stripped with JavaScript. */
body.single-product .woocommerce-notices-wrapper,
body.single-product .woocommerce-message,
body.woocommerce .woocommerce-message {
  max-width: 100%;
  box-sizing: border-box;
}
body.single-product .woocommerce-message {
  position: relative;
  display: block;
  float: none;
  margin: 12px 0 24px;
  padding: 16px 18px 16px 52px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body.single-product .woocommerce-message .button.wc-forward {
  display: none !important; /* fallback for cached Woo "View cart" notice */
}

/* Undo R4's forced square image wrapper (that wrapper also contains buttons).
   Product pictures should be fully visible and never scale beyond the card. */
body .shop-grid .shop-item--type-standard .shop-item__image,
body.home .shop-grid .shop-item--type-standard .shop-item__image {
  height: auto !important;
  max-width: 100%;
  min-width: 0;
}
body .shop-grid .shop-item--type-standard .shop-item__image-inner,
body.home .shop-grid .shop-item--type-standard .shop-item__image-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
body .shop-grid .shop-item--type-standard .shop-item__image-inner > a,
body.home .shop-grid .shop-item--type-standard .shop-item__image-inner > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body .shop-grid .shop-item--type-standard .shop-item__image-inner > img,
body .shop-grid .shop-item--type-standard .shop-item__image-inner > a > img,
body.home .shop-grid .shop-item--type-standard .shop-item__image-inner > img,
body.home .shop-grid .shop-item--type-standard .shop-item__image-inner > a > img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 280px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none;
}
body .shop-grid .shop-item--type-standard .shop-item__buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body .shop-grid .shop-item--type-standard .shop-item-inner,
body .shop-grid .shop-item--type-standard .shop-item__title {
  min-width: 0;
  max-width: 100%;
}

/* R5.1: restore the original seamless WHITE product card background.
   R4 introduced #faf7f4 on .shop-item__image-inner, which is visible as
   beige strips surrounding photos that themselves have a white background.
   Scope this override to standard product cards, not banner/category imagery,
   and do not modify the brown add-to-cart button. Applies to mobile/desktop. */
body .shop-grid .shop-item--type-standard,
body .shop-grid .shop-item--type-standard .shop-item-inner,
body .shop-grid .shop-item--type-standard .shop-item__image,
body .shop-grid .shop-item--type-standard .shop-item__image-inner,
body .shop-grid .shop-item--type-standard .shop-item__image-inner > a,
body .shop-grid .shop-item--type-standard .shop-item__buttons {
  background-color: #fff !important;
  background-image: none !important;
}
/* JPEG/PNG edges blend into the card, while transparency remains untouched. */
body .shop-grid .shop-item--type-standard .shop-item__image-inner img {
  background-color: #fff !important;
}

/* Product-detail gallery on desktop: preserve the established 42%/text columns. */
body.single-product .product-container,
body.single-product .product-images,
body.single-product .product-info,
body.single-product .woocommerce-product-gallery {
  min-width: 0;
  box-sizing: border-box;
}
body.single-product .product-images,
body.single-product .woocommerce-product-gallery {
  max-width: 100%;
}
/* FlexSlider must be able to expand the inner slide strip. */
body.single-product .woocommerce-product-gallery__wrapper {
  max-width: none;
}
body.single-product .woocommerce-breadcrumb {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  /* Restore the original multi-row category selector; no sideways swiping. */
  html body.home .section-html .woocommerce-tabs.wc-tabs-wrapper > ul.tabs,
  html body.home .section-html ul.tabs.wc-tabs,
  html body.home .section-html .woocommerce-tabs > ul.wc-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    align-content: center !important;
    gap: 6px 10px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overscroll-behavior-inline: auto !important;
    max-width: 100% !important;
    padding: 4px 0 12px !important;
    margin: 0 0 18px !important;
    text-align: center !important;
    scrollbar-width: none;
  }
  html body.home .section-html .woocommerce-tabs ul.wc-tabs > li,
  html body.home .section-html ul.tabs.wc-tabs > li {
    float: none !important;
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.home .section-html .woocommerce-tabs ul.wc-tabs > li > a,
  html body.home .section-html ul.tabs.wc-tabs > li > a {
    display: block !important;
    padding: 8px 10px !important;
    font-size: clamp(16px, 4.4vw, 21px) !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: center !important;
  }
  body .shop-grid .shop-item--type-standard .shop-item__image-inner > img,
  body .shop-grid .shop-item--type-standard .shop-item__image-inner > a > img,
  body.home .shop-grid .shop-item--type-standard .shop-item__image-inner > img,
  body.home .shop-grid .shop-item--type-standard .shop-item__image-inner > a > img {
    max-height: 265px !important;
    max-width: min(75vw, 310px) !important;
  }
  body.single-product .product-container {display: block;}
    body.single-product .product-info h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.22 !important;
  }
  body.single-product .woocommerce-message {
    padding: 14px 14px 14px 46px;
  }
}

@media (max-width: 359px) {
  html body.home .section-html .woocommerce-tabs ul.wc-tabs > li > a,
  html body.home .section-html ul.tabs.wc-tabs > li > a {
    font-size: 16px !important;
    padding: 7px 8px !important;
  }
  body .shop-grid .shop-item--type-standard .shop-item__image-inner > img,
  body .shop-grid .shop-item--type-standard .shop-item__image-inner > a > img {
    max-height: 235px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .shop-grid .shop-item__image img {transition: none !important;}
}


/* -------------------------------------------------------------------------
   R5.2 — Shop sorting and footer typography (08 Nov 2026)
   Carefully scoped: does not change product cards, images, menu tabs or icon
   font pseudo-elements. R5.1 white background is retained above.
   ------------------------------------------------------------------------- */

/* Reuse the locally hosted Manrope that is already enqueued by the R5 MU PHP.
   Textual elements only, to avoid overriding Bono's icon-font glyphs. */
html body .shop-sorting,
html body .shop-sorting .woocommerce-ordering,
html body .shop-sorting .woocommerce-ordering select,
html body .shop-sorting .woocommerce-ordering select option,
html body .site-footer,
html body .site-footer .site-footer-inner,
html body .site-footer .footer-bottom,
html body .site-footer .footer-info,
html body .site-footer .footer-widgets,
html body .site-footer .footer-widget,
html body .site-footer :is(p, a, ul, ol, li, span, small, strong, em, .widget-title),
html body .footer-navigation :is(a, span, li) {
  font-family: var(--dominika-type, "DominikaManrope", "Segoe UI", Arial, sans-serif) !important;
}

/* WooCommerce sorting: compact, legible, horizontally centred text.
   Mobile browsers may use a native system dialog for the list of options;
   that dialog's layout is controlled by Android/iOS, not entirely by CSS. */
html body .shop-sorting .woocommerce-ordering select {
  display: block !important;
  box-sizing: border-box !important;
  width: min(100%, 302px) !important;
  max-width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 38px 10px 14px !important;
  border: 1px solid #d4d7db !important;
  border-radius: 7px !important;
  color: #3b241b !important;
  background-color: #fff !important;
  background-position: right 12px center !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-align-last: center !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html body .shop-sorting .woocommerce-ordering select option {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  background-color: #fff;
  color: #3b241b;
}
html body .shop-sorting .woocommerce-ordering select:focus-visible {
  outline: 2px solid #3b241b !important;
  outline-offset: 2px;
}

/* Footer: same typeface as the site, with a readable, non-oversized scale.
   Long SEO-flavoured copyright text wraps safely instead of clipping. */
html body .site-footer .footer-info,
html body .site-footer .footer-info :is(p, a, span, small, strong, em, div),
html body .site-footer .footer-widgets,
html body .site-footer .footer-widget :is(p, a, li, span, small, strong, em),
html body .footer-navigation :is(a, span, li) {
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
  word-break: normal;
}
html body .site-footer .footer-info,
html body .site-footer .footer-widgets,
html body .site-footer .footer-bottom,
html body .site-footer .footer-widget {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
html body .site-footer .footer-info a,
html body .site-footer .footer-widget a {
  color: inherit;
  text-underline-offset: .14em;
}

@media (max-width: 767px) {
  html body .shop-sorting .woocommerce-ordering {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  html body .shop-sorting .woocommerce-ordering select {
    width: min(100%, 302px) !important;
    font-size: 16px !important;
  }
  html body .site-footer .footer-info,
  html body .site-footer .footer-info :is(p, a, span, small, strong, em, div),
  html body .site-footer .footer-widget :is(p, a, li, span, small, strong, em),
  html body .footer-navigation :is(a, span, li) {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
}

@media (min-width: 768px) {
  html body .shop-sorting .woocommerce-ordering select {
    width: 290px !important;
    font-size: 15px !important;
  }
  html body .site-footer .footer-info,
  html body .site-footer .footer-info :is(p, a, span, small, strong, em, div),
  html body .site-footer .footer-widget :is(p, a, li, span, small, strong, em),
  html body .footer-navigation :is(a, span, li) {
    font-size: 16px !important;
  }
}
