/* 3.19.8 — Shared navigation and assistance, with the original logo and fonts. */
body .mgx-shop .mgx-module-header,
body.mgx-product-page .mgx-shop > .mgx-commerce-header {
  width: min(1280px,calc(100% - 2 * var(--mgx-premium-gutter,24px))) !important;
  min-height: 88px !important; margin: 0 auto !important; padding: 10px 0 !important;
  align-items: center; border: 0; border-bottom: 1px solid rgba(11,43,61,.18);
  border-radius: 0; background: #fffaf5; box-shadow: none; overflow: visible;
}
.mgx-shop .mgx-module-header > * { min-width: 0; }
.mgx-shop .mgx-module-header .mgx-module-brand { gap: 12px; max-width: 100%; }
.mgx-shop .mgx-module-header .mgx-module-brand > span { min-width: 0; }
body .mgx-shop .mgx-module-header .mgx-module-brand img,
body.mgx-product-page .mgx-shop > .mgx-commerce-header .mgx-module-brand img,
.mgx-shop .mgx-commerce-header.is-home-scrolled .mgx-module-brand img {
  width: 64px !important; height: 64px !important; flex: 0 0 64px !important;
  object-fit: contain; box-shadow: none; transform: none; transition: none;
}
body .mgx-shop .mgx-module-header .mgx-module-brand strong {
  display: block; width: auto; max-width: none; color: #0b2b3d;
  font-family: var(--mgx-display,'Libre Baskerville',serif);
  font-size: 21px !important; font-weight: 400; line-height: 1.25; letter-spacing: -.025em;
  white-space: normal; text-transform: none;
}
.mgx-shop .mgx-module-header .mgx-module-brand small {
  margin-top: 4px; color: #4c626b; font-size: 11px !important;
  font-family: var(--mgx-sans,'Libre Baskerville',serif);
  line-height: 1.5; letter-spacing: .015em; text-transform: none; opacity: 1;
}
.mgx-shop .mgx-module-header nav { gap: clamp(8px,1.15vw,18px); min-width: 0; }
.mgx-shop .mgx-module-header nav > a {
  min-height: 44px; padding: 10px 4px; color: #29434e;
  font-family: var(--mgx-sans,'Libre Baskerville',serif);
  font-size: 14px !important; font-weight: 400; line-height: 1.5;
  letter-spacing: 0 !important; text-transform: none; white-space: normal;
}
.mgx-shop .mgx-module-header nav > a::after { height: 2px; background: #9d4433; }
.mgx-shop .mgx-module-header nav > a:is(:hover,[aria-current="page"],.is-current) { color: #9d4433; }
.mgx-shop .mgx-module-header :is(.mgx-module-help,.mgx-module-cart) {
  min-height: 44px; padding: 10px 14px; border: 1px solid rgba(11,43,61,.24);
  border-radius: 10px; font-size: 13px !important; font-weight: 400; line-height: 1.5;
  letter-spacing: 0; text-transform: none; box-shadow: none; transform: none;
}
.mgx-shop .mgx-module-header .mgx-module-help { background: #0b2b3d; color: #fffaf5 !important; }
.mgx-shop .mgx-module-header .mgx-module-help:hover { background: #244b5c; }
.mgx-shop .mgx-module-header .mgx-module-cart { gap: 9px; background: #fffdf9; color: #0b2b3d; }
.mgx-shop .mgx-module-header .mgx-cart-count {
  min-width: 22px; height: 22px; padding: 0 5px;
  background: #9d4433; color: #fffaf5; font-size: 11px; line-height: 1;
}
.mgx-shop .mgx-module-header :is(a,button):focus-visible { outline: 3px solid #9d4433 !important; outline-offset: 4px; }
@media (min-width: 981px) {
  body .mgx-shop .mgx-module-header {
    display: grid !important; grid-template-columns: auto minmax(0,1fr) auto auto !important;
    grid-template-rows: auto !important; gap: clamp(12px,1.5vw,24px) !important;
  }
  .mgx-shop .mgx-module-header > .mgx-module-brand { grid-column: 1 !important; grid-row: 1 !important; }
  .mgx-shop .mgx-module-header > .mgx-module-menu-toggle { display: none !important; }
  .mgx-shop .mgx-module-header > nav {
    display: flex !important; position: static !important; grid-column: 2 !important; grid-row: 1 !important;
    width: auto !important; justify-content: center !important; padding: 0; border: 0; box-shadow: none;
  }
  .mgx-shop .mgx-module-header > .mgx-module-help { display: inline-flex !important; grid-column: 3 !important; grid-row: 1 !important; }
  .mgx-shop .mgx-module-header > .mgx-module-cart { grid-column: 4 !important; grid-row: 1 !important; }
}
/* Keep all four navigation links and both actions clear just above the menu breakpoint. */
@media (min-width: 981px) and (max-width: 1100px) {
  body .mgx-shop .mgx-module-header { gap: 12px !important; }
  .mgx-shop .mgx-module-header .mgx-module-brand { gap: 10px; }
  .mgx-shop .mgx-module-header nav { gap: 8px; }
  .mgx-shop .mgx-module-header nav > a { padding-inline: 2px; }
  .mgx-shop .mgx-module-header :is(.mgx-module-help,.mgx-module-cart) { padding-inline: 10px; }
}
@media (max-width: 980px) {
  body .mgx-shop .mgx-module-header,
  body.mgx-product-page .mgx-shop > .mgx-commerce-header {
    min-height: 80px !important; padding: 10px 0 !important;
    grid-template-columns: minmax(0,1fr) 48px 48px !important; gap: 10px !important;
  }
  body .mgx-shop .mgx-module-header .mgx-module-brand img,
  body.mgx-product-page .mgx-shop > .mgx-commerce-header .mgx-module-brand img {
    width: 56px !important; height: 56px !important; flex: 0 0 56px !important;
  }
  .mgx-shop .mgx-module-header .mgx-module-menu-toggle {
    width: 48px; height: 48px; min-width: 48px; border-radius: 10px;
    border-color: rgba(11,43,61,.24); background: #fffdf9;
  }
  .mgx-shop .mgx-module-header > .mgx-module-cart { width: 48px; height: 48px; padding: 0; }
  .mgx-shop .mgx-module-header > nav {
    inset: calc(100% + 1px) 0 auto !important; padding: 10px;
    border: 1px solid rgba(11,43,61,.18); border-radius: 0 0 16px 16px;
    background: #fffdf9; box-shadow: 0 12px 24px rgba(11,43,61,.10);
  }
  .mgx-shop .mgx-module-header > nav > a { border-radius: 8px; min-height: 48px; font-size: 16px !important; }
  .mgx-shop .mgx-module-header > nav > a[aria-current="page"] { background: #f3ece4; color: #9d4433; }
  /* Preserve the existing controller's no-JavaScript navigation. */
  body .mgx-shop .mgx-module-header:not(.is-navigation-ready) { grid-template-columns: minmax(0,1fr) 48px !important; }
  .mgx-shop .mgx-module-header:not(.is-navigation-ready) > nav { inset: auto !important; border-radius: 12px; box-shadow: none; }
}
@media (max-width: 540px) {
  body .mgx-shop .mgx-module-header,
  body.mgx-product-page .mgx-shop > .mgx-commerce-header {
    width: calc(100% - 32px) !important; min-height: 78px !important; gap: 8px !important;
  }
  .mgx-shop .mgx-module-header .mgx-module-brand { gap: 8px; }
  body .mgx-shop .mgx-module-header .mgx-module-brand img,
  body.mgx-product-page .mgx-shop > .mgx-commerce-header .mgx-module-brand img {
    width: 48px !important; height: 48px !important; flex: 0 0 48px !important;
  }
  body .mgx-shop .mgx-module-header .mgx-module-brand strong { font-size: 17px !important; line-height: 1.25; }
  .mgx-shop .mgx-module-header .mgx-module-brand small { display: none; }
}

/* Flexible grid tracks prevent long assistance and contact labels from clipping. */
.mgx-shop .mgx-module-footer {
  display: grid; grid-template-columns: minmax(0,1.2fr) repeat(3,minmax(0,1fr));
  gap: 36px 32px; width: 100%; max-width: 100%; margin-top: 0;
  padding: 48px max(24px,calc((100% - 1280px)/2)) 32px;
  color: #fffaf5; background-color: #0b2b3d;
  background-image: linear-gradient(rgba(11,43,61,.94),rgba(11,43,61,.94)),url('trama.webp');
  background-size: auto,540px 675px;
}
.mgx-shop .mgx-module-footer :is(div,p,a,span,strong,h3) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.mgx-shop .mgx-module-footer .mgx-footer-assistance {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center; gap: 18px 20px; padding: 0 0 32px;
  border: 0; border-bottom: 1px solid rgba(255,250,245,.22); border-radius: 0;
}
.mgx-shop .mgx-module-footer .mgx-footer-assistance > div { min-width: 0; }
.mgx-shop .mgx-module-footer .mgx-footer-assistance > div > span {
  color: #f0b7a6; font-size: 12px; font-weight: 400; line-height: 1.6;
  letter-spacing: .02em; text-transform: none;
}
.mgx-shop .mgx-module-footer .mgx-footer-assistance > div > strong {
  display: block; max-width: 30ch; margin-top: 10px; color: #fffaf5;
  font-family: var(--mgx-display,'Libre Baskerville',serif); font-size: clamp(23px,2.1vw,28px);
  font-weight: 400; line-height: 1.4; letter-spacing: -.025em;
}
.mgx-shop .mgx-module-footer .mgx-footer-assistance > a {
  min-width: 0; width: auto; min-height: 48px; padding: 12px 18px;
  border: 1px solid rgba(255,250,245,.56); border-radius: 10px;
  background: transparent; color: #fffaf5; font-size: 14px !important; font-weight: 400;
  line-height: 1.6; text-align: center; letter-spacing: 0; text-transform: none;
}
.mgx-shop .mgx-module-footer .mgx-footer-assistance > .mgx-footer-whatsapp { background: #fffaf5; color: #0b2b3d; border-color: #fffaf5; }
.mgx-shop .mgx-module-footer .mgx-footer-assistance > a:hover { background: #244b5c; color: #fffaf5; }
.mgx-shop .mgx-module-footer .mgx-footer-brand > div { gap: 14px; margin-bottom: 16px; }
.mgx-shop .mgx-module-footer .mgx-footer-brand img { width: 66px !important; height: 66px !important; flex: 0 0 66px; padding: 0; object-fit: contain; }
.mgx-shop .mgx-module-footer .mgx-footer-brand strong { font-size: 23px; font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.mgx-shop .mgx-module-footer .mgx-footer-brand p { max-width: 27ch; color: #dce5e7; font-size: 15px !important; line-height: 1.75; }
.mgx-shop .mgx-module-footer .mgx-footer-column { gap: 2px; align-items: stretch; }
.mgx-shop .mgx-module-footer .mgx-footer-column h3 {
  margin: 0 0 12px; color: #f0b7a6; font-size: 15px !important;
  font-weight: 400; line-height: 1.5; letter-spacing: .02em; text-transform: none;
}
.mgx-shop .mgx-module-footer .mgx-footer-column > a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 0;
  color: #fffaf5; font-size: 14px !important; font-weight: 400; line-height: 1.6;
  text-decoration: none; text-underline-offset: 4px;
}
.mgx-shop .mgx-module-footer .mgx-footer-column > a:hover { color: #f0b7a6; text-decoration: underline; }
.mgx-shop .mgx-module-footer .mgx-footer-column > span { padding: 8px 0; color: #dce5e7; font-size: 13px; line-height: 1.7; }
.mgx-shop .mgx-module-footer .mgx-footer-bottom {
  grid-column: 1 / -1; gap: 12px 28px; flex-wrap: wrap;
  margin: 0; padding-top: 24px; border-color: rgba(255,250,245,.22);
}
.mgx-shop .mgx-module-footer .mgx-footer-bottom > span { color: #dce5e7; font-size: 12px !important; font-weight: 400; line-height: 1.7; letter-spacing: .01em; text-transform: none; }
.mgx-shop .mgx-module-footer a:focus-visible { outline: 3px solid #f0b7a6 !important; outline-offset: 4px; }
.mgx-shop .mgx-whatsapp { min-height: 48px; color: #0b2b3d; border-color: rgba(11,43,61,.2); box-shadow: 0 6px 20px rgba(11,43,61,.12); }
.mgx-shop .mgx-whatsapp > span { background: #0b2b3d; font-size: 11px; font-weight: 400; }
.mgx-shop .mgx-whatsapp > strong { font-size: 13px; font-weight: 400; line-height: 1.5; }
@media (max-width: 1100px) {
  .mgx-shop .mgx-module-footer { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
  .mgx-shop .mgx-module-footer .mgx-footer-brand { grid-column: 1 / -1; }
  .mgx-shop .mgx-module-footer .mgx-footer-assistance { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mgx-shop .mgx-module-footer .mgx-footer-assistance > div { grid-column: 1 / -1; }
  .mgx-shop .mgx-module-footer .mgx-footer-assistance > a { width: 100%; }
}
@media (max-width: 620px) {
  .mgx-shop .mgx-module-footer {
    grid-template-columns: minmax(0,1fr); gap: 28px;
    padding: 36px 22px calc(112px + env(safe-area-inset-bottom,0px));
  }
  .mgx-shop .mgx-module-footer .mgx-footer-assistance { grid-template-columns: minmax(0,1fr); gap: 12px; padding-bottom: 28px; }
  .mgx-shop .mgx-module-footer .mgx-footer-assistance > div { margin-bottom: 8px; }
  .mgx-shop .mgx-module-footer .mgx-footer-column { padding-top: 20px; border-top: 1px solid rgba(255,250,245,.15); }
  .mgx-shop .mgx-module-footer .mgx-footer-column h3 { margin-bottom: 8px; }
  .mgx-shop .mgx-module-footer .mgx-footer-column > a { font-size: 15px !important; }
  .mgx-shop .mgx-module-footer .mgx-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .mgx-shop .mgx-module-header *, .mgx-shop .mgx-module-footer *, .mgx-shop .mgx-whatsapp { transition: none !important; }
}
