/* Mamitahaya chrome — full bleed header/footer + shop
 * Overrides Hello Elementor boxed .site-header:not(.dynamic-header) max-width.
 */

body.mamitahaya-theme {
  --mh-chrome-max: 1180px;
  --mh-chrome-gutter: clamp(1rem, 4vw, 1.25rem);
  --mh-chrome-width: min(var(--mh-chrome-max), calc(100% - (var(--mh-chrome-gutter) * 2)));
  --mh-header-h: 4.5rem;
  padding: 0 !important;
  overflow-x: clip;
}

/* Kill Elementor Theme Builder chrome if it still injects */
body.mamitahaya-theme .elementor-location-header,
body.mamitahaya-theme .elementor-location-footer {
  display: none !important;
}

/* ——— Header: beat Hello max-width ——— */
body.mamitahaya-theme .site-header,
body.mamitahaya-theme .site-header.header-full-width,
body.mamitahaya-theme .site-header.dynamic-header,
body.mamitahaya-theme .site-header:not(.dynamic-header) {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(247, 243, 236, 0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 213, 200, 0.65);
  box-sizing: border-box;
}

body.mamitahaya-theme .site-header__bar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mamitahaya-theme .site-header__inner,
body.mamitahaya-theme .site-header .header-inner {
  width: var(--mh-chrome-width) !important;
  max-width: var(--mh-chrome-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  min-height: var(--mh-header-h);
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-areas: "logo actions";
  align-items: center;
  column-gap: 0.75rem;
  box-sizing: border-box;
}

body.mamitahaya-theme .site-logo {
  grid-area: logo;
  display: block;
  min-width: 0;
  max-width: min(190px, 48vw);
  line-height: 0;
}

body.mamitahaya-theme .site-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 1.7rem;
  object-fit: contain;
}

body.mamitahaya-theme .site-nav {
  grid-area: nav;
  display: none;
  justify-content: center;
  min-width: 0;
}

body.mamitahaya-theme .site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mamitahaya-theme .site-nav__list a {
  display: inline-block;
  text-decoration: none;
  color: #1a1816;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  white-space: nowrap;
}

body.mamitahaya-theme .site-nav__list a:hover,
body.mamitahaya-theme .site-nav__list a[aria-current="page"],
body.mamitahaya-theme .site-nav__list .current-menu-item > a {
  color: #b8326a;
}

body.mamitahaya-theme .header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

body.mamitahaya-theme .header-lang {
  display: flex;
  align-items: center;
  max-width: 5.75rem;
  overflow: hidden;
}

body.mamitahaya-theme .header-lang .gtranslate_wrapper,
body.mamitahaya-theme .header-lang .gt_switcher,
body.mamitahaya-theme .header-lang select,
body.mamitahaya-theme .header-lang a {
  max-width: 5.75rem !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

body.mamitahaya-theme .mh-cart-link,
body.mamitahaya-theme .cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.25rem;
  text-decoration: none;
  color: #1a1816;
  font-size: 0.8125rem;
  font-weight: 500;
}

body.mamitahaya-theme .mh-cart-link__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mamitahaya-theme .mh-cart-link::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.mamitahaya-theme .mh-cart-count,
body.mamitahaya-theme .cart-count {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #b8326a;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

body.mamitahaya-theme .menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

body.mamitahaya-theme .menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: #1a1816;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.mamitahaya-theme .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.mamitahaya-theme .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
body.mamitahaya-theme .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

body.mamitahaya-theme .mobile-nav {
  position: fixed;
  top: var(--mh-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0 2rem;
  background: #f7f3ec;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
}

body.mamitahaya-theme .mobile-nav.is-open,
body.mamitahaya-theme .mobile-nav.is-open[hidden] {
  display: block !important;
}

body.mamitahaya-theme .mobile-nav[hidden]:not(.is-open) {
  display: none !important;
}

body.mamitahaya-theme .mobile-nav__inner {
  width: var(--mh-chrome-width);
  max-width: var(--mh-chrome-max);
  margin-inline: auto;
}

body.mamitahaya-theme .mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mamitahaya-theme .mobile-nav__list > li {
  border-bottom: 1px solid #ddd5c8;
}

body.mamitahaya-theme .mobile-nav__list a {
  display: block;
  padding: 1.05rem 0;
  text-decoration: none;
  color: #1a1816;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.mamitahaya-theme.nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  body.mamitahaya-theme .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav actions";
    column-gap: 1.25rem;
  }

  body.mamitahaya-theme .site-nav {
    display: flex;
  }

  body.mamitahaya-theme .menu-toggle {
    display: none !important;
  }

  body.mamitahaya-theme .mobile-nav,
  body.mamitahaya-theme .mobile-nav.is-open {
    display: none !important;
  }

  body.mamitahaya-theme .header-lang {
    max-width: 8rem;
  }

  body.mamitahaya-theme .mh-cart-link {
    min-width: 0;
    padding: 0.25rem 0.15rem;
  }

  body.mamitahaya-theme .mh-cart-link__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: nowrap;
  }

  body.mamitahaya-theme .mh-cart-link::before {
    display: none;
  }

  body.mamitahaya-theme .mh-cart-count,
  body.mamitahaya-theme .cart-count {
    position: static;
  }
}

/* ——— Footer full bleed ——— */
body.mamitahaya-theme .site-footer,
body.mamitahaya-theme .site-footer.footer-full-width,
body.mamitahaya-theme .site-footer.dynamic-footer,
body.mamitahaya-theme .site-footer:not(.dynamic-footer) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #1a1816 !important;
  color: rgba(255, 252, 248, 0.85);
  box-sizing: border-box;
}

body.mamitahaya-theme .site-footer__bar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.75rem;
  box-sizing: border-box;
}

body.mamitahaya-theme .site-footer__grid,
body.mamitahaya-theme .site-footer__bottom,
body.mamitahaya-theme .site-footer .footer-inner,
body.mamitahaya-theme .site-footer .container {
  width: var(--mh-chrome-width) !important;
  max-width: var(--mh-chrome-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

body.mamitahaya-theme .site-footer__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
}

body.mamitahaya-theme .site-footer__nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.25rem 1.5rem !important;
}

body.mamitahaya-theme .site-footer__nav > div:last-child {
  grid-column: 1 / -1;
}

body.mamitahaya-theme .site-footer__brand .site-footer__wordmark {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e45a8c;
}

body.mamitahaya-theme .site-footer .h3 {
  color: #fff;
  font-size: 1.125rem;
}

body.mamitahaya-theme .site-footer a {
  color: rgba(255, 252, 248, 0.65);
  text-decoration: none;
}

body.mamitahaya-theme .site-footer a:hover {
  color: #fff;
}

body.mamitahaya-theme .site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mamitahaya-theme .site-footer__nav li {
  margin: 0 0 0.5rem;
}

body.mamitahaya-theme .site-footer__bottom {
  margin-top: 2rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid rgba(255, 252, 248, 0.12);
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

body.mamitahaya-theme .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

body.mamitahaya-theme .site-footer__funding {
  margin: 0;
  width: 100%;
}

body.mamitahaya-theme .site-footer__funding img {
  width: 100% !important;
  max-width: 480px;
  height: auto !important;
  display: block;
}

@media (min-width: 768px) {
  body.mamitahaya-theme .site-footer__grid {
    grid-template-columns: 1.1fr 2fr !important;
  }

  body.mamitahaya-theme .site-footer__nav {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  body.mamitahaya-theme .site-footer__nav > div:last-child {
    grid-column: auto;
  }

  body.mamitahaya-theme .site-footer__bottom {
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
  }

  body.mamitahaya-theme .site-footer__funding {
    justify-self: end;
  }
}

/* ——— WooCommerce shop / archive content width ——— */
body.mamitahaya-theme.woocommerce #primary.content-area,
body.mamitahaya-theme.woocommerce-page #primary.content-area,
body.mamitahaya-theme:not([class*="elementor-page-"]) .site-main,
body.mamitahaya-theme.woocommerce .site-main,
body.mamitahaya-theme.woocommerce-page .site-main {
  width: var(--mh-chrome-width) !important;
  max-width: var(--mh-chrome-max) !important;
  margin-inline: auto !important;
  padding-block: clamp(1.5rem, 4vw, 2.75rem) !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

body.mamitahaya-theme .woocommerce-products-header__title,
body.mamitahaya-theme .woocommerce-products-header .page-title {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

body.mamitahaya-theme .woocommerce-result-count,
body.mamitahaya-theme .woocommerce-ordering {
  margin-bottom: 1.25rem;
}

body.mamitahaya-theme ul.products,
body.mamitahaya-theme .woocommerce ul.products,
body.mamitahaya-theme.woocommerce ul.products,
body.mamitahaya-theme.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  clear: both !important;
}

body.mamitahaya-theme ul.products::before,
body.mamitahaya-theme ul.products::after,
body.mamitahaya-theme .woocommerce ul.products::before,
body.mamitahaya-theme .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

body.mamitahaya-theme ul.products li.product,
body.mamitahaya-theme .woocommerce ul.products li.product,
body.mamitahaya-theme.woocommerce ul.products li.product,
body.mamitahaya-theme.woocommerce-page ul.products.columns-2 li.product,
body.mamitahaya-theme.woocommerce-page ul.products.columns-3 li.product,
body.mamitahaya-theme.woocommerce-page ul.products.columns-4 li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  position: relative;
  background: #fffcf8;
  border: 1px solid #ddd5c8;
  border-radius: 20px;
  overflow: hidden;
  padding: 0 0 1.25rem !important;
  text-align: left;
  box-sizing: border-box;
}

body.mamitahaya-theme ul.products li.product a img,
body.mamitahaya-theme .woocommerce ul.products li.product a img {
  width: 100% !important;
  margin: 0 0 1rem !important;
  border-radius: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body.mamitahaya-theme ul.products li.product .woocommerce-loop-product__title,
body.mamitahaya-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 1.25rem;
  font-size: 1.15rem !important;
  font-weight: 700;
}

body.mamitahaya-theme ul.products li.product .price,
body.mamitahaya-theme ul.products li.product .button,
body.mamitahaya-theme .woocommerce ul.products li.product .price,
body.mamitahaya-theme .woocommerce ul.products li.product .button {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

@media (min-width: 640px) {
  body.mamitahaya-theme ul.products,
  body.mamitahaya-theme .woocommerce ul.products,
  body.mamitahaya-theme.woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  body.mamitahaya-theme ul.products,
  body.mamitahaya-theme .woocommerce ul.products,
  body.mamitahaya-theme.woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}
