/* Mint Value Diamonds — Global Typography v1.0
   Load AFTER theme and other custom CSS.
   Visible text: EB Garamond + Montserrat. Theme icon fonts remain untouched.
*/

:root {
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --mv-font-heading: var(--font-heading);
  --mv-font-body: var(--font-body);
  --mv-font-10: 0.75rem;
  --mv-font-xs: 0.8125rem;
  --mv-font-sm: 0.875rem;
  --mv-font-base: 1rem;
  --mv-font-lead: 1.0625rem;
  --mv-font-h6: clamp(1.125rem, 1.05rem + .35vw, 1.25rem);
  --mv-font-h5: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --mv-font-h4: clamp(1.375rem, 1.15rem + .8vw, 1.6875rem);
  --mv-font-h3: clamp(1.5rem, 1.18rem + 1vw, 1.875rem);
  --mv-font-h2: clamp(1.625rem, 1.2rem + 1.35vw, 2.125rem);
  --mv-font-h1: clamp(1.875rem, 1.38rem + 1.7vw, 2.625rem);
  --mv-font-product-price: clamp(1.875rem, 1.45rem + 1.2vw, 2.25rem);
  --mv-line-body: 1.65;
  --mv-line-heading: 1.14;
}

html { font-size: 16px; }
body,
body #content-wrapper,
body #header,
body #footer,
body .top-navigation-bar,
body .navigation-in,
body .breadcrumbs,
body input:not([type='checkbox']):not([type='radio']),
body select,
body textarea,
body button,
body .btn,
body .form-control,
body .dropdown-menu,
body .popup-widget,
body .cookies-bar,
body .site-msg,
body .navigationActions,
body .languagesMenu {
  font-family: var(--mv-font-body) !important;
}

body { font-size: var(--mv-font-base); line-height: var(--mv-line-body); }
body p,
body li,
body td,
body th,
body label,
body .basic-description,
body .extended-description,
body .description-inner,
body .custom-footer,
body .contact-box,
body .category-perex,
body .welcome,
body .article-detail {
  font-family: var(--mv-font-body) !important;
}
body p { font-size: var(--mv-font-base); line-height: var(--mv-line-body); }

/* Editorial serif: hierarchy, product names and prices */
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6,
body .p-detail-inner-header h1,
body .p-name,
body .products .p .name,
body .products .p .name span,
body .product .p-in-in .name,
body .product .p-in-in .name span,
body .price-final,
body .price-final *,
body .prices .price,
body .prices .price strong,
body .p-final-price-wrapper .price-final,
body .products-related-header,
body .category-header h1,
body .article h2 a,
body .article-detail h1 {
  font-family: var(--mv-font-heading) !important;
  letter-spacing: normal;
}
body h1, body .h1, body .p-detail-inner-header h1 { font-size: var(--mv-font-h1); line-height: var(--mv-line-heading); font-weight: 600; }
body h2, body .h2, body .products-related-header { font-size: var(--mv-font-h2); line-height: 1.2; font-weight: 600; }
body h3, body .h3 { font-size: var(--mv-font-h3); line-height: 1.25; font-weight: 600; }
body h4, body .h4 { font-size: var(--mv-font-h4); line-height: 1.25; font-weight: 600; }
body h5, body .h5 { font-size: var(--mv-font-h5); line-height: 1.3; font-weight: 600; }
body h6, body .h6 { font-size: var(--mv-font-h6); line-height: 1.35; font-weight: 600; }
body .products .p .name,
body .products .p .name span,
body .product .p-in-in .name,
body .product .p-in-in .name span { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.4375rem); line-height: 1.28; font-weight: 500; }
body .p-detail .p-final-price-wrapper .price-final,
body .p-detail .p-final-price-wrapper .price-final * { font-size: var(--mv-font-product-price) !important; line-height: 1.15; font-weight: 600; }

/* UI texts stay in Montserrat, including labels inside custom buttons */
body .btn, body button, body input, body select, body textarea,
body .navigation-in a, body .top-navigation-bar a,
body .breadcrumbs, body .navigationActions a,
body .availability-value, body .availability-value *,
body .availability, body .availability *,
body .detail-parameters, body .detail-parameters *,
body .p-code, body .p-code *,
body .p-detail-info, body .p-detail-info *,
body .mv-action-label, body .mv-action-channel,
body .mv-whatsapp-action, body .mv-whatsapp-action *,
body .mv-whatsapp-button, body .mv-whatsapp-button *,
body .mv-product-cta, body .mv-product-cta * {
  font-family: var(--mv-font-body) !important;
}
body .btn, body button { font-size: var(--mv-font-sm); font-weight: 500; }
body .detail-parameters, body .detail-parameters td, body .detail-parameters th { font-size: var(--mv-font-sm); line-height: 1.5; }
body .p-code, body .p-detail-info, body .breadcrumbs { font-size: var(--mv-font-xs); }
body .availability-value, body .availability-value .availability-label { font-size: var(--mv-font-xs); }
body #footer, body #footer li, body #footer a { font-family: var(--mv-font-body) !important; }

/* Icon glyphs: do NOT reset fonts on icon pseudo-elements or icon classes. */
/* No universal '*' font rule — native theme icon fonts and SVGs are preserved. */

@media (max-width: 767px) {
  :root {
    --mv-font-base: 0.9375rem;
    --mv-line-body: 1.62;
  }
  body .btn, body button { font-size: var(--mv-font-sm); }
  body .products .p .name, body .products .p .name span,
  body .product .p-in-in .name, body .product .p-in-in .name span {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 500;
  }
}

/* Preserve intentionally oversized hero typography while keeping the same two font families. */
body .header-hero-copy h1 { font-size: clamp(36px, 6vw, 82px); line-height: 1.2; }
body .header-hero-copy h1 .hero-heading__line2 { font-size: clamp(46px, 7.5vw, 102px); }
body .homepage-group-title { font-size: clamp(28px, 3.5vw, 48px) !important; line-height: 1.15; }
body .mv-brand__title { font-size: clamp(32px, 3.5vw, 48px); }
/* Cart button and availability badge retain colors from Shoptet/custom status rules. */

@media (min-width: 768px) {
/* v4.7 — Let full product names wrap naturally; never cut through a text line. */
body .products-block .p a.name,
body .products-inline .p a.name {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  line-height: 1.3 !important;
}
body .products-block .p a.name > span,
body .products-inline .p a.name > span {
  display: inline !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
}
body .products-block .p .p-in-in,
body .products-inline .p .p-in-in {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
}

/* Footer generated legal column matches native contact and info headings. */
body #footer .custom-footer .custom-footer__contact h3,
body #footer .custom-footer .custom-footer__articles h3,
body #footer .custom-footer .custom-footer__legal h4,
body #footer .custom-footer .pageElement__heading {
  font-family: var(--mv-font-heading) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
}
@media (max-width:767px) {
  body .products-block .p a.name,
  body .products-inline .p a.name { min-height: 0 !important; max-height: none !important; }
  body.is-home .mv-hero .header-hero-copy h1 { font-size: clamp(30px, 8vw, 42px) !important; line-height: 1.1 !important; }
  body.is-home .mv-hero .header-hero-copy h1 .hero-heading__line2 { font-size: clamp(36px, 10vw, 52px) !important; line-height: 1.08 !important; }
}
