/* Unified mobile font stack - keep small headings bold on adjusted pages. */
@media (max-width: 1020px) {
  .custom-talisman-page .custom-talisman-section-title h2,
  .custom-talisman-page .custom-talisman-process-list h3,
  .custom-talisman-page .custom-talisman-variant-grid h3,
  .custom-talisman-page .custom-talisman-support-grid b,
  .custom-talisman-page .custom-talisman-making h2,
  .custom-talisman-page .custom-talisman-value h2,
  .custom-talisman-page .custom-talisman-form label,
  .custom-talisman-page .custom-talisman-form label > span,
  .amulet-making-page .amulet-making-text-card h2,
  .amulet-making-page .amulet-making-comparison-card h2,
  .amulet-making-page .amulet-making-section-title h2,
  .amulet-making-page .amulet-making-detail-panel h2,
  .amulet-making-page .amulet-making-compare-option h3,
  .amulet-making-page .amulet-making-process-grid h3,
  .amulet-making-page .amulet-making-tool-grid h3,
  .amulet-making-page .amulet-making-two-panels h2,
  .amulet-making-page .amulet-making-detail-grid h3,
  .amulet-making-page .amulet-making-cta h2 {
    font-weight: 700;
  }
}

@media (max-width: 800px) {
  .profile-page .profile-empty-state h2,
  .profile-page .profile-favorite-card h2,
  .profile-page .profile-form-section h2 {
    font-weight: 700;
  }
}

@media (max-width: 600px) {
  .product-page .product-main-info h2,
  .product-page .product-kit-content h2,
  .product-page .product-kit-header h2,
  .product-page .product-kit-list h3,
  .product-page .product-kit-card h3,
  .product-page .product-kit-item h3,
  .product-page .product-mobile-kit .product-kit-aside h3,
  .product-page .product-mobile-card h2,
  .product-page .product-mobile-card h3,
  .product-page .product-mobile-suitable h3,
  .product-page .product-related h2,
  .product-page .product-related-card span,
  .product-page .product-view-collection b {
    font-weight: 700;
  }
}

/* Unified mobile header - match the simple main mobile header everywhere. */
@media (max-width: 1020px) {
  :is(.page-shell, .profile-page-shell) > .site-header,
  .page-shell > .amulet-v2-header {
    position: relative !important;
    z-index: 100 !important;
    display: flex !important;
    width: 100% !important;
    height: 76px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(201, 120, 24, 0.2) !important;
    border-radius: 0 !important;
    background: rgba(255, 253, 249, 0.98) !important;
    box-shadow: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand,
  .page-shell > .amulet-v2-header .amulet-v2-brand {
    display: flex !important;
    min-width: 0 !important;
    max-width: calc(100% - 62px) !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 10px !important;
    color: #be741f !important;
    text-decoration: none !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page) > .site-header .brand {
    max-width: calc(100% - 110px) !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-mark,
  .page-shell > .amulet-v2-header .amulet-v2-brand > img {
    display: grid !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    place-items: center !important;
    padding: 7px !important;
    border: 1.4px solid rgba(201, 120, 24, 0.72) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: inset 0 0 0 5px rgba(207, 141, 39, 0.04) !important;
    box-sizing: border-box !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .lotus-mark {
    display: block !important;
    width: 33px !important;
    height: 33px !important;
    object-fit: contain !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text,
  .page-shell > .amulet-v2-header .amulet-v2-brand > span {
    min-width: 0 !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text strong,
  .page-shell > .amulet-v2-header .amulet-v2-brand strong {
    display: block !important;
    color: #be741f !important;
    font-family: "Noto Serif", Georgia, serif !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 0.94 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text small,
  .page-shell > .amulet-v2-header .amulet-v2-brand small {
    display: block !important;
    max-width: none !important;
    margin-top: 6px !important;
    color: #725c4d !important;
    font: 700 7.2px/1 Inter, Arial, sans-serif !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .header-actions,
  :is(.page-shell, .profile-page-shell) > .site-header .header-utility-cluster,
  :is(.page-shell, .profile-page-shell) > .site-header .language,
  :is(.page-shell, .profile-page-shell) > .site-header .header-profile-link,
  .page-shell > .amulet-v2-header .amulet-v2-actions {
    display: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav,
  .page-shell > .amulet-v2-header .amulet-v2-nav {
    display: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open,
  .page-shell > .amulet-v2-header .amulet-v2-nav.is-open {
    position: absolute !important;
    top: calc(100% + 1px) !important;
    right: 12px !important;
    left: 12px !important;
    z-index: 1001 !important;
    display: grid !important;
    height: auto !important;
    max-height: min(70vh, 440px) !important;
    gap: 0 !important;
    overflow-y: auto !important;
    padding: 8px !important;
    border: 1px solid rgba(190, 132, 68, 0.25) !important;
    border-radius: 12px !important;
    background: rgba(255, 253, 248, 0.99) !important;
    box-shadow: 0 18px 38px rgba(74, 48, 31, 0.16) !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open a,
  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open summary,
  .page-shell > .amulet-v2-header .amulet-v2-nav.is-open a {
    min-height: 38px !important;
    padding: 10px 11px !important;
    color: #4b3a32 !important;
    font: 600 12px/1.2 Inter, Arial, sans-serif !important;
    text-decoration: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .menu-button,
  .page-shell > .amulet-v2-header .amulet-v2-mobile-toggle {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 43px !important;
    height: 43px !important;
    flex: 0 0 43px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(201, 120, 24, 0.34) !important;
    border-radius: 10px !important;
    color: #b46a1d !important;
    background:
      linear-gradient(currentColor, currentColor) center 13px / 18px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center 20px / 18px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center 27px / 18px 1.5px no-repeat,
      rgba(255, 251, 245, 0.92) !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  .page-shell > .amulet-v2-header .amulet-v2-mobile-toggle span {
    display: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .collection-mobile-cart {
    display: none !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page) > .site-header .collection-mobile-cart {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 36px !important;
    height: 43px !important;
    flex: 0 0 36px !important;
    place-items: center !important;
    margin: 0 2px 0 auto !important;
    color: #4e382d !important;
    background: transparent !important;
    text-decoration: none !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page) > .site-header .collection-mobile-cart i {
    position: relative !important;
    display: block !important;
    width: 20px !important;
    height: 18px !important;
    border: 2px solid currentColor !important;
    border-radius: 2px !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page) > .site-header .collection-mobile-cart i::before {
    position: absolute !important;
    top: -9px !important;
    left: 4px !important;
    width: 8px !important;
    height: 7px !important;
    border: 2px solid currentColor !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    content: "" !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page) > .site-header .collection-mobile-cart b {
    position: absolute !important;
    top: 4px !important;
    right: 0 !important;
    display: grid !important;
    width: 16px !important;
    height: 16px !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #c77978 !important;
    font: 700 9px/1 Inter, Arial, sans-serif !important;
  }
}

@media (max-width: 380px) {
  :is(.page-shell, .profile-page-shell) > .site-header,
  .page-shell > .amulet-v2-header {
    height: 72px !important;
    padding: 0 14px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand,
  .page-shell > .amulet-v2-header .amulet-v2-brand {
    gap: 8px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-mark,
  .page-shell > .amulet-v2-header .amulet-v2-brand > img {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .lotus-mark {
    width: 30px !important;
    height: 30px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text strong,
  .page-shell > .amulet-v2-header .amulet-v2-brand strong {
    font-size: 24px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text small,
  .page-shell > .amulet-v2-header .amulet-v2-brand small {
    font-size: 6.4px !important;
    letter-spacing: 1.45px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .menu-button,
  .page-shell > .amulet-v2-header .amulet-v2-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
}

/* Correct mobile header and cart checkout view. */
@media (max-width: 1020px) {
  :is(.page-shell, .profile-page-shell) > .site-header,
  .page-shell > .amulet-v2-header {
    position: relative !important;
    z-index: 100 !important;
    display: flex !important;
    width: auto !important;
    height: 64px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand,
  .page-shell > .amulet-v2-header .amulet-v2-brand {
    display: inline-flex !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 9px !important;
    color: #be741f !important;
    text-decoration: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-mark,
  .page-shell > .amulet-v2-header .amulet-v2-brand > img {
    display: grid !important;
    width: 39px !important;
    height: 39px !important;
    flex: 0 0 39px !important;
    place-items: center !important;
    padding: 6px !important;
    border: 1.4px solid rgba(201, 120, 24, 0.72) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .lotus-mark {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    object-fit: contain !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text,
  .page-shell > .amulet-v2-header .amulet-v2-brand > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text strong,
  .page-shell > .amulet-v2-header .amulet-v2-brand strong {
    display: block !important;
    color: #be741f !important;
    font-family: "Noto Serif", Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 0.96 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .brand-text small,
  .page-shell > .amulet-v2-header .amulet-v2-brand small {
    display: block !important;
    max-width: 72px !important;
    margin-top: 4px !important;
    color: #725c4d !important;
    font: 700 6.8px/1.12 Inter, Arial, sans-serif !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav,
  .page-shell > .amulet-v2-header .amulet-v2-nav {
    display: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .header-actions,
  .page-shell > .amulet-v2-header .amulet-v2-actions {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: auto !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .consult-button,
  :is(.page-shell, .profile-page-shell) > .site-header .header-cart-button,
  .page-shell > .amulet-v2-header .consult-button,
  .page-shell > .amulet-v2-header .amulet-v2-cart {
    display: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .header-utility-cluster,
  .page-shell > .amulet-v2-header .header-utility-cluster {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .language,
  .page-shell > .amulet-v2-header .language {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #3f2f2a !important;
    font: 700 14px/1 Inter, Arial, sans-serif !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .language a,
  .page-shell > .amulet-v2-header .language a {
    color: #2e2724 !important;
    font: 700 14px/1 Inter, Arial, sans-serif !important;
    text-decoration: none !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .language a.is-active,
  .page-shell > .amulet-v2-header .language a.is-active {
    color: #ba5664 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .header-profile-link,
  .page-shell > .amulet-v2-header .header-profile-link {
    display: inline-grid !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #2f2824 !important;
    background: transparent !important;
    opacity: 1 !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .header-profile-link img,
  .page-shell > .amulet-v2-header .header-profile-link img {
    width: 22px !important;
    height: 22px !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .collection-mobile-cart {
    display: none !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page, .product-page) > .site-header .collection-mobile-cart {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 29px !important;
    height: 32px !important;
    flex: 0 0 29px !important;
    place-items: center !important;
    margin: 0 1px 0 2px !important;
    color: #3f2f2a !important;
    background: transparent !important;
    text-decoration: none !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page, .product-page) > .site-header .collection-mobile-cart i {
    position: relative !important;
    display: block !important;
    width: 18px !important;
    height: 16px !important;
    border: 2px solid currentColor !important;
    border-radius: 2px 2px 5px 5px !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page, .product-page) > .site-header .collection-mobile-cart i::before {
    position: absolute !important;
    top: -8px !important;
    left: 4px !important;
    width: 7px !important;
    height: 7px !important;
    border: 2px solid currentColor !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    content: "" !important;
  }

  :is(.amulet-shop-page, .collection-page, .growth-resources-page, .instruction-detail-page, .book-detail-page, .gift-card-page, .product-page) > .site-header .collection-mobile-cart b {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: grid !important;
    width: 15px !important;
    height: 15px !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #c95d6a !important;
    font: 800 8.5px/1 Inter, Arial, sans-serif !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .menu-button,
  .page-shell > .amulet-v2-header .amulet-v2-mobile-toggle {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 30px !important;
    height: 34px !important;
    flex: 0 0 30px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #3f2f2a !important;
    background:
      linear-gradient(currentColor, currentColor) center 9px / 25px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 17px / 25px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 25px / 25px 2px no-repeat !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open,
  .page-shell > .amulet-v2-header .amulet-v2-nav.is-open {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 12px !important;
    left: 12px !important;
    z-index: 1001 !important;
    display: grid !important;
    height: auto !important;
    max-height: min(70vh, 440px) !important;
    gap: 0 !important;
    overflow-y: auto !important;
    padding: 8px !important;
    border: 1px solid rgba(190, 132, 68, 0.25) !important;
    border-radius: 12px !important;
    background: rgba(255, 253, 248, 0.99) !important;
    box-shadow: 0 18px 38px rgba(74, 48, 31, 0.16) !important;
  }

  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open a,
  :is(.page-shell, .profile-page-shell) > .site-header .desktop-nav.is-open summary,
  .page-shell > .amulet-v2-header .amulet-v2-nav.is-open a {
    min-height: 38px !important;
    padding: 10px 11px !important;
    color: #4b3a32 !important;
    font: 600 12px/1.2 Inter, Arial, sans-serif !important;
    text-decoration: none !important;
  }
}
