/* Shared responsive frame based on the approved layout specification. */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { overflow-x: clip; }

body.jie-storefront-page :is(.container, .search-inner, .jie-checkout-main, .jie-account-page .account-main, .account-main) {
  width: calc(100vw - 32px);
  max-width: 1160px;
  margin-left: calc((100vw - min(1160px, calc(100vw - 32px))) / 2);
  margin-right: 0;
  padding-inline: 0;
}

body.jie-storefront-page .container .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

/* The footer is full-width; its own inner rows follow the same centered frame. */
body.jie-storefront-page .jie-site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.jie-storefront-page .jie-site-footer .homepage-footer-grid .homepage-footer-updates .container.payment-methods {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.jie-storefront-page .site-header .header-inner {
  width: 100%;
  max-width: none;
  min-height: 56px;
  margin: 0;
  padding-inline: 12px;
}

.notice { min-height: 40px; height: 40px; }
.notice { padding-inline: 48px; }
body.jie-storefront-page #promo-bar { padding-inline: 48px; overflow: hidden; }
.notice-center, .promo-window, .promo-item { min-width: 0; max-width: 100%; }
.notice-center { width: 100%; padding-inline: 0 !important; overflow: hidden; }
.promo-window { width: 100%; overflow: hidden; }
.promo-item { width: 100% !important; padding-inline: 4px !important; overflow: hidden; }
.promo-copy { flex: 1 1 0%; width: 0; min-width: 0; max-width: 100%; }
.brand-mark { width: 36px; height: 36px; }

.site-header .header-inner { min-height: 56px; }
body.jie-storefront-page .catalog-section .product-grid { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 20px; }
.hero-copy, .section-copy, .faq-copy, .quality-copy { max-width: 48rem; }
@media (min-width: 640px) {
  body.jie-storefront-page :is(.container, .search-inner, .jie-checkout-main, .jie-account-page .account-main, .account-main) {
    width: calc(100vw - 48px);
    margin-left: calc((100vw - min(1160px, calc(100vw - 48px))) / 2);
    margin-right: 0;
  }
  body.jie-storefront-page .site-header .header-inner { padding-inline: 24px; }
  body.jie-storefront-page .catalog-section .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (min-width: 768px) {
  .notice, body.jie-storefront-page #promo-bar { padding-inline: 140px; }
  .announcement-inner, .announcement-bar .container, .site-announcement .container { padding-inline: 140px; }
  .faq-section, .homepage-tools, .quality-section { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .site-header .header-inner { min-height: 56px; }
  .nav-links { display: flex; }
  .mobile-menu-toggle, .menu-toggle, .header-menu-toggle { display: none; }
  body.jie-storefront-page .hero { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); column-gap: 48px; }
  body.jie-storefront-page .hero-content { width: min(100%, 610px); }
  .hero-visual, .hero-media { width: min(100%,440px); aspect-ratio: 5 / 6; }
  body.jie-storefront-page .catalog-section .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  .footer-main, .homepage-footer-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); column-gap: 48px; }
  .jie-checkout-page .wc-block-components-sidebar-layout { grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 32px; }
}

/* Keep long specification lists inside each card in two tidy rows. */
body.jie-storefront-page .catalog-section .product-variant-options,
.related-section .related-options,
.option-row[data-strength-options],
.option-row:has(> [data-rt-strength]),
.option-row:has(> [data-product-strength]) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  width: 100%;
  min-width: 0;
  max-width: 100% !important;
  overflow: visible;
}

body.jie-storefront-page .catalog-section .product-variant-options > .product-variant-button,
.related-section .related-options > .related-option,
.option-row[data-strength-options] > .option-chip,
.option-row > [data-rt-strength],
.option-row > [data-product-strength] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

@media (min-width: 1280px) {
  body.jie-storefront-page :is(.container, .search-inner, .jie-checkout-main, .jie-account-page .account-main, .account-main) {
    width: min(1160px, calc(100vw - 48px));
    max-width: 1160px;
    margin-left: calc((100vw - min(1160px, calc(100vw - 48px))) / 2);
    margin-right: 0;
  }
  body.jie-storefront-page .site-header .header-inner {
    width: min(1160px, calc(100vw - 48px));
    max-width: 1160px;
    margin-left: calc((100vw - min(1160px, calc(100vw - 48px))) / 2);
    margin-right: 0;
    padding-inline: 0;
  }
}

@media (min-width: 400px) {
  .brand-mark { width: 44px; height: 44px; }
}

@media (min-width: 1536px) {
  .section { margin-block: 24px; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .mobile-menu-toggle, .menu-toggle, .header-menu-toggle { display: inline-flex; }
  body.jie-storefront-page .hero { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 639px) {
  body.jie-storefront-page .site-header .header-inner { padding-inline: 12px; }
  .hero-visual, .hero-media { width: min(100%,290px); aspect-ratio: 5 / 6; margin-inline: auto; }
  .jie-checkout-page .wc-block-components-sidebar-layout { grid-template-columns: minmax(0,1fr); }
  .footer-main, .homepage-footer-grid { grid-template-columns: minmax(0,1fr); }
}

/* Keep the homepage hero copy off the viewport edge. */
@media (min-width: 701px) {
  body.jie-storefront-page .hero-content { padding-left: 16px; }
}
/* Match the inset of the homepage introduction across its four feature panels. */
body.jie-storefront-page .homepage-coa-copy,
body.jie-storefront-page .homepage-calculator-copy,
body.jie-storefront-page .quality-heading,
body.jie-storefront-page .quality-grid,
body.jie-storefront-page .faq-heading,
body.jie-storefront-page .faq-layout {
  padding-left: 16px;
}

/* Remove the dark outline visible on the homepage calculator banner. */
body.jie-storefront-page #homepage-calculator { border-color: transparent !important; outline: 0 !important; }

/* The banner image is trimmed cleanly, so keep it fitted to the card. */
body.jie-storefront-page #homepage-calculator { background-size: 100% 100% !important; background-position: center !important; }

/* Keep every product detail route on the Retatrutide content frame. */
@media (min-width: 961px) {
  body.jie-storefront-page:has(.product-layout) .container,
  body.jie-storefront-page:has(.product-layout) .search-inner,
  body.jie-storefront-page:has(.product-layout) .site-header .header-inner {
    width: min(1320px, 66vw);
    max-width: 1320px;
    margin-inline: auto;
  }
  body.jie-storefront-page:has(.product-layout) .site-header .header-inner {
    padding-inline: 0;
  }
}

@media (min-width: 701px) and (max-width: 960px) {
  body.jie-storefront-page:has(.product-layout) .container,
  body.jie-storefront-page:has(.product-layout) .search-inner,
  body.jie-storefront-page:has(.product-layout) .site-header .header-inner {
    width: calc(100% - 48px);
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  body.jie-storefront-page:has(.product-layout) .container {
    width: min(520px, calc(100% - 36px));
    max-width: 520px;
    margin-inline: auto;
  }
  body.jie-storefront-page:has(.product-layout) .site-header .header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 16px;
  }
  body.jie-storefront-page:has(.product-layout) .search-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 16px;
  }
  body.jie-storefront-page:has(.product-layout) .product-layout,
  body.jie-storefront-page:has(.product-layout) .product-layout > *,
  body.jie-storefront-page:has(.product-layout) .product-gallery,
  body.jie-storefront-page:has(.product-layout) .product-media,
  body.jie-storefront-page:has(.product-layout) .product-copy {
    min-width: 0;
    max-width: 100%;
  }
}
